Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
1e03eb9
Run the assistant natively without a bundled chat service
zlareb1 Nov 19, 2026
3f87d88
Use shared signing for native assistant streams
zlareb1 Nov 19, 2026
a2fcfd6
Native answers retain publication proofs through response delivery
zlareb1 Nov 19, 2026
f27e95d
Native authorization fixtures use the retained evidence paths
zlareb1 Nov 19, 2026
95bdd69
Assistant fixtures follow asynchronous credential admission
zlareb1 Nov 19, 2026
38ad0de
Native assistant evidence uses request-owned receipts
zlareb1 Nov 20, 2026
027fbb0
Describe SQL citations using answer-owned receipts
zlareb1 Nov 20, 2026
303a4a9
Native display steps use the receipt formatter
zlareb1 Nov 20, 2026
ff66108
Translated setup links point to the native assistant guide
zlareb1 Nov 20, 2026
50b1c04
Keep assistant archives private and bound retained credential writes
zlareb1 Nov 20, 2026
a334714
Retain streamed source proofs and bound help citations
zlareb1 Nov 20, 2026
aeeb545
Exercise the terminal publication boundary in stream delivery tests
zlareb1 Nov 20, 2026
59ad0a8
Cover source proof loss before streamed assistant content
zlareb1 Nov 20, 2026
2d11f94
Renew streamed source proofs at each HTTP send
zlareb1 Nov 20, 2026
95e6c44
Native assistant tests retain mirror admission and private accounting
zlareb1 Nov 20, 2026
0777b98
Clarify provider setup and failure diagnostics
zlareb1 Nov 20, 2026
7f3ec74
Refresh the provider architecture summary
zlareb1 Nov 20, 2026
56272e7
Route the conflict judge in the single-provider recipe
zlareb1 Nov 20, 2026
87de10e
Describe the dashboard model selection boundary
zlareb1 Nov 20, 2026
a73629a
Bound JSON encoder setup in Cell proof regression cases
zlareb1 Nov 20, 2026
a5c96fe
Compare Cell proof defaults in one canonical mapping
zlareb1 Nov 20, 2026
9ebbbd8
Cleanup tests measure their shared idle deadline
zlareb1 Nov 20, 2026
6591307
Isolate retirement fixture timing in assistant qualification
zlareb1 Nov 20, 2026
5be56d9
Verify assistant code citations against complete returned source
zlareb1 Nov 20, 2026
e2d8205
Grep fallback tests separate deadlines from response handling
zlareb1 Nov 21, 2026
c059d72
Bound native gateway refusal reads before stream parsing
zlareb1 Nov 21, 2026
da787df
Native assistant checks use receipt verdicts and caller context
zlareb1 Nov 21, 2026
df037d2
Redaction cost samples meet their CPU clock floor
zlareb1 Nov 21, 2026
14b43a2
Describe assistant support from answer-owned receipts
zlareb1 Nov 21, 2026
dbbe973
Bedrock rejects content block indices after close
zlareb1 Nov 21, 2026
4ad4195
Remove an unused citation test constant
zlareb1 Nov 21, 2026
401469d
Grep fallback tests separate deadlines from response handling
zlareb1 Nov 21, 2026
a60c847
Keep native assistant retirement with current client setup
zlareb1 Nov 21, 2026
808d9e9
Compose canonical cleanup and fallback fixture controls
zlareb1 Nov 21, 2026
75f3b6a
Compose current code index with native assistant
zlareb1 Nov 21, 2026
a86c318
Merge main into grep response fixture tests
zlareb1 Nov 21, 2026
f31ec17
Compose current documentation with the reviewed change
zlareb1 Nov 21, 2026
91351d2
Compose current documentation with the reviewed change
zlareb1 Nov 21, 2026
0d588ec
Compose the reviewed scanner action pin with the change
zlareb1 Nov 21, 2026
cb72e85
Compose the reviewed scanner action pin with the change
zlareb1 Nov 21, 2026
7e3a572
Reserve assistant tool provider costs before sending
zlareb1 Nov 21, 2026
90223f1
Bind tool price reservations to text inference protocols
zlareb1 Nov 21, 2026
60e81d7
Compose the reviewed test prerequisites with the change
zlareb1 Nov 21, 2026
e58a48e
Compose current main with assistant cost admission
zlareb1 Nov 21, 2026
5c486b0
test: enforce assistant tool budget through authenticated MCP
zlareb1 Nov 21, 2026
fe225fd
Merge current main into native assistant execution
zlareb1 Nov 21, 2026
538099b
Merge current main into Grep fallback tests distinguish responses fro…
zlareb1 Nov 21, 2026
1971fae
Prove grep fallback aborts an admitted stalled fetch
zlareb1 Nov 21, 2026
b274208
Allow native assistant reads to select user and session rows
zlareb1 Nov 21, 2026
73193f8
Merge admitted grep timeout coverage into native assistant reads
zlareb1 Nov 21, 2026
b86f47f
Keep retained qualification state out of version control
zlareb1 Nov 21, 2026
0404172
Check retired chat sources without traversing retained data
zlareb1 Nov 21, 2026
e7bf764
Merge current main into native assistant
zlareb1 Nov 21, 2026
c38bfd6
Derive assistant support from successful request receipts
zlareb1 Nov 21, 2026
b8026f2
Restore scoped history and namespace population reads
zlareb1 Nov 21, 2026
8249f14
Resolve assistant code reads through the configured code target
zlareb1 Nov 21, 2026
9cc63b6
Merge current main into native assistant answerability repairs
zlareb1 Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ jobs:
# Every optional object on, so each template renders at least once.
on=(--set analyticsExport.enabled=true --set analyticsExport.bucket=ci --set analyticsExport.nameKeySecret.name=ci)
extractor=(--set extractor.enabled=true --set secrets.extractorToken="$(openssl rand -hex 24)")
assistant=(--set assistant.enabled=true --set assistant.existingSecret=ci)
# TLS on Loom's port, which the assistant (in "all") cannot reach: its own render.
assistant=(--set assistant.enabled=true --set env.LOOM_ASSISTANT_PROVIDER=fake)
# TLS on Loom's port; native tools stay in process.
tls=(--set tls.secretName=ci --set 'ingress.annotations.alb\.ingress\.kubernetes\.io/backend-protocol=HTTPS' --set workers.enabled=true --set networkPolicy.enabled=true "${on[@]}" "${extractor[@]}")
all=(--set workers.enabled=true --set workers.replicaCount=2 --set autoscaling.enabled=true --set networkPolicy.enabled=true --set alerts.prometheusRule.enabled=true --set mustMatchChange.publish=ci --set cellProbe.port=8777 --set settingsFile.memory_ask_recency_weight=0.3 "${on[@]}" "${extractor[@]}" "${assistant[@]}")
# The PrometheusRule's schema: the CRD catalog at a pinned commit.
Expand Down Expand Up @@ -484,8 +484,6 @@ jobs:
refused "needs analyticsExport.bucket" "${on[@]}" --set analyticsExport.bucket=
refused "needs analyticsExport.nameKeySecret.name" "${on[@]}" --set analyticsExport.nameKeySecret.name=
refused "expectedBucketOwner must be a quoted string" "${on[@]}" --set analyticsExport.expectedBucketOwner=123456789012
refused "assistant.existingSecret is required" --set assistant.enabled=true
refused "assistant.enabled calls Loom's port over plain HTTP" "${assistant[@]}" --set tls.secretName=ci
refused 'set ingress.annotations."alb.ingress.kubernetes.io/backend-protocol" to HTTPS' -f "$chart/values-eks.yaml" --set tls.secretName=ci
# The release Secret (named after the release here) and envFrom Secrets reach every pod.
shared="is a Secret every web and workers pod loads"
Expand Down Expand Up @@ -515,7 +513,7 @@ jobs:
# No Loom pod reaches the instance metadata service, with the policy on or off.
- name: metadata egress
run: python3 scripts/gates/helm_metadata_egress.py
# What LibreChat and its MongoDB can be reached by and reach, read off the render.
# Native assistant enablement adds no workload, store or network access.
- name: assistant isolation
run: python3 scripts/gates/helm_assistant_isolation.py
# The Postgres authority's DSN, password, CA mount and egress, and its refusals.
Expand Down Expand Up @@ -1060,7 +1058,6 @@ jobs:
tests/integration/test_mirror_ask_http.py
tests/integration/test_marked_admin_events_native.py
tests/integration/test_marked_analytics_export_native.py
tests/integration/test_marked_assistant_ledger_native.py
tests/integration/test_marked_cost_summary_native.py
tests/integration/test_marked_derived_activity_native.py
tests/integration/test_marked_event_readers_native.py
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
*.key
secrets.json

# Qualification state and results can contain credentials.
/integrations/librechat/qualification/.state.json
/integrations/librechat/qualification/results.json
/integrations/librechat/qualification/results-*.json

# ============================================================
# Frontend (React/Vite dashboard served at /) — node deps + build output
# ============================================================
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ COPY sdk ./sdk
# at runtime to compute expected-vs-present table drift. Without them
# the endpoint flags every existing table as "extra".
COPY schemas ./schemas
# The assistant's agent definition, which a boot seeds into the LibreChat beside it.
COPY integrations/librechat/agent.yaml ./integrations/librechat/agent.yaml
# The compiler-tier workers (code_scip_delta, code_scip_go_delta,
# code_scip_ts_delta, code_scip_py_delta) shell out to scripts/scip_harness/run_*.sh resolved
# relative to server/ — without this COPY every in-container pass reports the
Expand Down
60 changes: 2 additions & 58 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# COMPOSE_PROFILES=bundled start the clickhouse service below (the default)
# COMPOSE_PROFILES= use the ClickHouse that LOOM_CH_* in .env names:
# a self-managed server or ClickHouse Cloud
# ...,assistant also run the assistant's LibreChat (librechat below)
#
# install.sh writes .env for either choice, and docs/operations/deployment.md
# covers both. The release bundle ships this file with the repository's layout,
Expand Down Expand Up @@ -100,11 +99,10 @@ services:
# this host and the container has no limits, so the image's own default
# (one per host CPU and GiB) could leave it no room.
LOOM_WEB_WORKERS: "${LOOM_WEB_WORKERS:-2}"
# The assistant profile's LibreChat; unset, the server sets no assistant up.
LOOM_ASSISTANT_LIBRECHAT_URL: "${LOOM_ASSISTANT_LIBRECHAT_URL:-}"
LOOM_ASSISTANT_ENABLED: "${LOOM_ASSISTANT_ENABLED:-false}"
volumes:
- loom-code-repos:/app/var/code_repos
networks: [default, extractor, assistant]
networks: [default, extractor]
healthcheck:
test:
[
Expand Down Expand Up @@ -142,64 +140,10 @@ services:
cpus: 1
pids_limit: 64

# The assistant (`assistant` in COMPOSE_PROFILES): LibreChat runs the agent Loom seeds,
# headless.
# Neither it nor its MongoDB publishes a port. The internal `assistant` network
# joins LibreChat to the loom service alone, and `assistant-db` to its MongoDB
# alone, so the loom container (which builds repository code) cannot reach that
# database; LibreChat also has `assistant-egress`, a network of its own, to reach
# its model provider, so it reaches neither ClickHouse nor the extractor
# (docs/architecture/assistant.md#deployment).
librechat:
profiles: [assistant]
image: registry.librechat.ai/librechat-ai/librechat:v0.8.8@sha256:5b706bcee1ca154a1e2987303aaeca0eb27f97919cccee4bb604226c2f8abf61
restart: unless-stopped
depends_on: [librechat-mongo]
environment:
# Its secrets and model key, from .env beside this file
# (docs/features/integrations/librechat.md#the-deployed-assistant).
CREDS_KEY: "${LIBRECHAT_CREDS_KEY:-}"
CREDS_IV: "${LIBRECHAT_CREDS_IV:-}"
JWT_SECRET: "${LIBRECHAT_JWT_SECRET:-}"
JWT_REFRESH_SECRET: "${LIBRECHAT_JWT_REFRESH_SECRET:-}"
# A name of its own: the loom service loads all of .env, and an ANTHROPIC_API_KEY
# there would become Loom's own model key.
ANTHROPIC_API_KEY: "${LIBRECHAT_ANTHROPIC_API_KEY:-}"
# A model server on the Docker host, for LOOM_ASSISTANT_PROVIDER=local.
LOCAL_LLM_BASE_URL: "${LIBRECHAT_LOCAL_LLM_BASE_URL:-http://host.docker.internal:11434/v1}"
HOST: 0.0.0.0
PORT: "3080"
MONGO_URI: mongodb://librechat-mongo:27017/LibreChat
CONFIG_PATH: /app/librechat.yaml
SEARCH: "false"
ALLOW_REGISTRATION: "true"
ALLOW_UNVERIFIED_EMAIL_LOGIN: "true"
BAN_VIOLATIONS: "false"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./deploy/librechat/assistant.librechat.yaml:/app/librechat.yaml:ro
networks: [assistant, assistant-db, assistant-egress]

librechat-mongo:
profiles: [assistant]
image: mongo:8.0.20@sha256:098862b1339f031900ca66cf8fef799e616d6324fa41b9a263f2ec899552c1ef
restart: unless-stopped
command: mongod --noauth --quiet
volumes:
- librechat-mongo:/data/db
networks: [assistant-db]

networks:
extractor:
internal: true
assistant:
internal: true
assistant-db:
internal: true
assistant-egress: {}

volumes:
loom-ch-data:
loom-code-repos:
librechat-mongo:
26 changes: 2 additions & 24 deletions deploy/helm/loom/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,6 @@ app.kubernetes.io/name: {{ include "loom.name" . | trunc 53 | trimSuffix "-" }}-
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{- define "loom.assistantName" -}}
{{- include "loom.suffixed" (dict "root" . "suffix" "librechat") }}
{{- end }}

{{- define "loom.assistantSelectorLabels" -}}
app.kubernetes.io/name: {{ include "loom.name" . | trunc 53 | trimSuffix "-" }}-librechat
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{- define "loom.assistantMongoName" -}}
{{- include "loom.suffixed" (dict "root" . "suffix" "librechat-mongo" "max" 52) }}
{{- end }}

{{- define "loom.assistantMongoSelectorLabels" -}}
app.kubernetes.io/name: {{ include "loom.name" . | trunc 47 | trimSuffix "-" }}-librechat-mongo
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{- define "loom.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "loom.fullname" .) .Values.serviceAccount.name }}
Expand Down Expand Up @@ -239,11 +221,8 @@ LOOM_PG_POOL_MAX_SIZE: {{ $pg.poolMaxSize | quote }}
# The release's extractor (extractor.yaml); its token is in the release Secret.
LOOM_DOCUMENT_EXTRACTOR_URL: {{ printf "http://%s:8790" (include "loom.extractorName" .) | quote }}
{{- end }}
{{- $ownAssistant := hasKey .Values.env "LOOM_ASSISTANT_LIBRECHAT_URL" }}
{{- range .Values.extraEnv }}{{ if eq .name "LOOM_ASSISTANT_LIBRECHAT_URL" }}{{ $ownAssistant = true }}{{ end }}{{ end }}
{{- if and .Values.assistant.enabled (not $ownAssistant) }}
# The release's LibreChat (assistant.yaml), which runs the agent Loom seeds.
LOOM_ASSISTANT_LIBRECHAT_URL: {{ printf "http://%s:3080" (include "loom.assistantName" .) | quote }}
{{- if not (hasKey .Values.env "LOOM_ASSISTANT_ENABLED") }}
LOOM_ASSISTANT_ENABLED: {{ .Values.assistant.enabled | quote }}
{{- end }}
# The web processes' shared files: serve.sh makes $XDG_RUNTIME_DIR/loom, 0700
# and owned by the pod's user (an emptyDir itself is neither).
Expand Down Expand Up @@ -337,7 +316,6 @@ upgraded with --reuse-values from a chart without the block has none. */}}
{{- if $tls.secretName -}}
{{- if not (kindIs "string" $tls.secretName) }}{{ fail "tls.secretName must be the name of a kubernetes.io/tls Secret" }}{{ end -}}
{{- if not (has (toString $tls.minVersion) (list "1.2" "1.3")) }}{{ fail "tls.minVersion must be \"1.2\" or \"1.3\"" }}{{ end -}}
{{- if dig "enabled" false (.Values.assistant | default dict) }}{{ fail "assistant.enabled calls Loom's port over plain HTTP, which tls.secretName turns off: turn one of them off" }}{{ end -}}
{{- $ingress := .Values.ingress | default dict -}}
{{- if and $ingress.enabled (eq (toString $ingress.className) "alb") -}}
{{- /* The controller also reads these from the Service, where they win over the Ingress's. */}}
Expand Down
61 changes: 0 additions & 61 deletions deploy/helm/loom/templates/assistant-config.yaml

This file was deleted.

Loading
Loading