Skip to content

fix(traces): ship architecture docs in the production image#49

Merged
albanm merged 1 commit into
mainfrom
fix-architecture-docs
Jun 29, 2026
Merged

fix(traces): ship architecture docs in the production image#49
albanm merged 1 commit into
mainfrom
fix-architecture-docs

Conversation

@albanm

@albanm albanm commented Jun 29, 2026

Copy link
Copy Markdown
Member

The evaluator's readArchitectureDoc tool bundles the architecture docs at build time via import.meta.glob('../../../docs/architecture/*.md'), which reaches outside the ui/ workspace into the repo-root docs/ directory. The Docker ui build stage never copied docs/, so in the production image the glob matched nothing: the tool advertised an empty topic list and its empty enum prevented the model from forming a valid call. Copy docs/architecture into the ui stage so the glob resolves.

Why: evaluator chats kept reporting that the architecture-docs tool returned an empty list, and the tool was never observed working in the deployed app.

Heads-up: build-only change. The copied path must land at /app/docs/architecture for the relative glob to resolve — confirmed against the current stage layout.

The evaluator's readArchitectureDoc tool bundles the docs at build time
via import.meta.glob('../../../docs/architecture/*.md'), which reaches
outside the ui workspace into the repo-root docs/ directory. The Docker
ui build stage never copied docs/, so the glob matched nothing: the tool
advertised an empty topic list and its empty enum prevented the model
from forming a valid call. Copy docs/architecture into the ui stage.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@albanm albanm merged commit 91685ed into main Jun 29, 2026
3 checks passed
@github-actions github-actions Bot added the fix label Jun 29, 2026
@albanm albanm deleted the fix-architecture-docs branch June 29, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant