Skip to content

fix(compose): align agentlens to current image — JWT_SECRET + health port#13

Merged
amitpaz1 merged 1 commit into
mainfrom
fix/stack-align-agentlens
Jun 26, 2026
Merged

fix(compose): align agentlens to current image — JWT_SECRET + health port#13
amitpaz1 merged 1 commit into
mainfrom
fix/stack-align-agentlens

Conversation

@amitpaz1

Copy link
Copy Markdown
Member

The stack's agentlens was perpetually unhealthy (compose env was pinned to the 0.12.2 era). Two concrete causes, both fixed:

  1. Current AgentLens requires JWT_SECRET — fatal at boot if unset, even with AUTH_DISABLED=true. The compose only gave JWT_SECRET to agentgate → agentlens crashed. Added it to agentlens (reuses the stack's shared dev secret).
  2. Healthcheck port mismatch — the image's built-in HEALTHCHECK probes port 3400 (its default PORT), but we run it on 3000, so it never passed. Added a compose healthcheck probing the real port (node fetch localhost:3000/api/stats — the node base image has no curl/wget).

Verified locally: docker compose --profile governance up -d --wait brings agentlens + agentgate + lore + lore-db all to (healthy).

CI: re-widened the smoke test from lore-only back to the full governance profile with health polling on /api/stats, /health, /health.

(The earlier diagnosis that agentlens was a "newer major incompatible with the env" was only half-right — it's these two specific env/healthcheck deltas, not a broad rewrite.)

…port

The stack's agentlens was perpetually unhealthy (it was pinned to 0.12.2-era
env). Two concrete causes, both fixed:

1. Current AgentLens REQUIRES JWT_SECRET — fatal at boot if unset, even with
   AUTH_DISABLED=true. The compose only gave JWT_SECRET to agentgate. Added it to
   agentlens (reuses the stack's shared dev secret).
2. The image's built-in HEALTHCHECK probes port 3400 (its default PORT), but we
   run it on 3000 — so the healthcheck never passed. Added a compose healthcheck
   that probes the real port (node fetch localhost:3000/api/stats; the node base
   image has no curl/wget).

Verified locally: `docker compose --profile governance up -d --wait` now brings
agentlens + agentgate + lore + lore-db all to (healthy).

CI: re-widened the smoke test from lore-only back to the full governance profile
(agentlens + agentgate + lore) with health polling on /api/stats, /health, /health.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019tXZpN29akdmG8AEjgSZwk
@amitpaz1 amitpaz1 merged commit 91d1bb0 into main Jun 26, 2026
1 check passed
@amitpaz1 amitpaz1 deleted the fix/stack-align-agentlens branch June 26, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant