Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
405cfdd
Run the assistant natively without a bundled chat service
zlareb1 Nov 19, 2026
6a60870
Use shared signing for native assistant streams
zlareb1 Nov 19, 2026
57ccafe
Native answers retain publication proofs through response delivery
zlareb1 Nov 19, 2026
80b8b50
Native authorization fixtures use the retained evidence paths
zlareb1 Nov 19, 2026
4d2b867
Assistant fixtures follow asynchronous credential admission
zlareb1 Nov 19, 2026
f00dcfc
Native assistant evidence uses request-owned receipts
zlareb1 Nov 20, 2026
49112e9
Describe SQL citations using answer-owned receipts
zlareb1 Nov 20, 2026
00d88b7
Native display steps use the receipt formatter
zlareb1 Nov 20, 2026
0b22570
Translated setup links point to the native assistant guide
zlareb1 Nov 20, 2026
68e0477
Keep assistant archives private and bound retained credential writes
zlareb1 Nov 20, 2026
75fca61
Retain streamed source proofs and bound help citations
zlareb1 Nov 20, 2026
c09e6f5
Exercise the terminal publication boundary in stream delivery tests
zlareb1 Nov 20, 2026
d128f78
Cover source proof loss before streamed assistant content
zlareb1 Nov 20, 2026
011dd91
Renew streamed source proofs at each HTTP send
zlareb1 Nov 20, 2026
ac647de
Repository expiry tests control their watchdog clock
zlareb1 Nov 20, 2026
604aceb
Scope person-query observations to the decision task
zlareb1 Nov 20, 2026
6a72280
Native assistant tests retain mirror admission and private accounting
zlareb1 Nov 20, 2026
086b941
Clarify provider setup and failure diagnostics
zlareb1 Nov 20, 2026
a0da132
Refresh the provider architecture summary
zlareb1 Nov 20, 2026
31c1880
Route the conflict judge in the single-provider recipe
zlareb1 Nov 20, 2026
f4fcfbf
Describe the dashboard model selection boundary
zlareb1 Nov 20, 2026
ebc52f7
Bound JSON encoder setup in Cell proof regression cases
zlareb1 Nov 20, 2026
0dd79e4
Compare Cell proof defaults in one canonical mapping
zlareb1 Nov 20, 2026
36baeaa
Cleanup tests measure their shared idle deadline
zlareb1 Nov 20, 2026
1161547
Isolate retirement fixture timing in assistant qualification
zlareb1 Nov 20, 2026
55540a9
Verify assistant code citations against complete returned source
zlareb1 Nov 20, 2026
87c2e4b
Grep fallback tests separate deadlines from response handling
zlareb1 Nov 21, 2026
9a02055
Bound native gateway refusal reads before stream parsing
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
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