fix(traces): ship architecture docs in the production image#49
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The evaluator's
readArchitectureDoctool bundles the architecture docs at build time viaimport.meta.glob('../../../docs/architecture/*.md'), which reaches outside theui/workspace into the repo-rootdocs/directory. The Dockeruibuild stage never copieddocs/, so in the production image the glob matched nothing: the tool advertised an empty topic list and its emptyenumprevented the model from forming a valid call. Copydocs/architectureinto theuistage 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/architecturefor the relative glob to resolve — confirmed against the current stage layout.