Repository navigation
fix(docs): run every guide sample against the real CLI and loader in CI - #223
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
lg2m
force-pushed
the
fix/eng-979-ge0-2-samples
branch
from
September 29, 2026 04:04
1e38a4b to
6a3a374
Compare
lg2m
force-pushed
the
fix/eng-979-ge0-2-samples
branch
from
September 29, 2026 04:30
6a3a374 to
dac4584
Compare
lg2m
force-pushed
the
fix/eng-979-ge0-2-samples
branch
from
September 29, 2026 04:55
dac4584 to
a0aaad7
Compare
Three docs-truth tests make sample drift a CI failure: - Every ```ron block loads through the real ConfigLoader as the file its fence names (config.ron by default; managed.ron, pack.ron, tui.ron when titled), and every model route it resolves to is in the catalog. - Every `qq …` command in sh blocks and inline spans parses with the real clap CLI. - The doctor sample, resume hint and exit-code table match the code. Fix what they found: - The policy sample put six managed-only keys in a block a user could copy (PolicyOutsideManaged). They are now a separate managed.ron sample. - The pack and Mantle samples were not valid RON. - The MCP pin was truncated. - The doctor sample was missing the mcp row. - Session ids were ULID-style `01J…`; real ids are 32 hex characters. Linear: ENG-979
lg2m
force-pushed
the
fix/eng-979-ge0-2-samples
branch
from
September 30, 2026 07:34
a0aaad7 to
8d2011c
Compare
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.
Stacked on #222 (GE0.1). Merge order: #222 → this.
Slice GE0.2 of
docs/plans/guide-expansion.md· Linear ENG-979.What changes for users
Every copyable sample in the guide now works when pasted. Fixed:
policysample intoconfig.ronfailed withmanaged-only policy settings are only allowed in managed configuration, because it mixed in six administrator-only keys. The keys any layer may set are now one sample, and the managed-only keys are a separatemanaged.ronsample, which also shows the threedeny_*keys.qq run --sessionshowed ULID-style01J…ids. Real ids are 32 hex characters, and the old form fails withidentifier must contain 32 hexadecimal characters.pin. It was truncated (5a1f…e9c0), which the loader rejects. It is now a full digest, with a pointer toqq mcp inspect.mcpvalue and the Mantle snippet were not valid RON.mcprow thatqq doctorprints.How staleness is prevented
Three new tests in
src/docs_truth.rs, part ofcargo test:every_ron_sample_in_the_guide_loads```ronblock is written to an isolated temp config tree and loaded by the realConfigLoader(orload_tui_config) as the file its fence names: bareronisconfig.ron;ron managed.ron,ron pack.ronandron tui.ronname the others. Every model route the resolved snapshot reports must be in its provider's catalog.every_qq_command_in_the_guide_parsesqq …line in```shblocks and every inline`qq …`span goes through the real clapCli. Synopses (capital placeholders,…,<…>,[…]) are skipped, and prose may name a command without its required arguments.output_samples_in_the_guide_match_the_codeqq doctorsample listsCHECK_NAMESin order; quickstart showsresume_hintexactly; the headless exit-code table has a row perHeadlessStatuswith its code.Checking that each test can fail: I planted one defect of each kind and confirmed each test names it. The defects were: a typo'd flag in an
shblock, a typo'd inline subcommand, a nonexistent model route, a renamed MCP key, an invalid pack enum value, a badtui.ronchord, and a dropped doctor row. All tests failed first on the real defects above.Verification
cargo fmt --checkcargo clippy --workspace --all-targets --all-features -D warningscargo test --workspace(0 failures)nub run build(479 links resolve)Compatibility and performance
Guide and tests only. The new tests run in about 30 ms. No runtime change.
Next in the stack
GE0.3: the reference tables (managed-only markings, precedence rows, the TUI command table, troubleshooting messages) are checked against the code. This fixes
Alt-Upand the policy table's "any" markings.