Repository navigation
test(docs): fail CI when the guide omits a config key, env var, command, or flag; write CHANGELOG at release (OB10) - #160
Merged
Conversation
…nd, or flag; write CHANGELOG at release (OB10) The binary's test suite now enumerates, from code, every `Document` and `PolicyPatch` key (published as `qq_config::DOCUMENT_FIELD_NAMES` / `POLICY_FIELD_NAMES`, proven complete against serde's field list), every environment variable `LoadRequest::from_process_env` reads (now indexed from `qq_config::ENVIRONMENT_VARIABLES` so the two cannot drift), the installer's `QQ_*` variables, provider credential variables, every TUI slash name, every clap subcommand and long flag, and every `qq doctor` check name, and asserts each appears as a code span or fenced block in docs/guide. Misses are reported together by category. It found one gap (the `qq jev observe` flags), now documented in guide/cli.md. `cargo xtask release X.Y.Z` prepends a section to CHANGELOG.md grouped from Conventional Commit subjects since the last tag (Features / Fixes / Performance / Other, `**breaking:**` for `!`, release bumps skipped). Closes ENG-883.
This was referenced Sep 24, 2026
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.
Plan slice OB10 of
docs/plans/onboarding-ux.md. Linear: ENG-883.What ships
The guide can no longer silently drift from the CLI.
cargo testnow fails when any of these is missing fromdocs/guide/*.md(as a code span or inside a fenced block):config.ronkeysqq_config::DOCUMENT_FIELD_NAMES/POLICY_FIELD_NAMES(new; proven complete against serde's field list by parsing a document with every key and recovering the derive'sFIELDSfrom the unknown-field error)qq_config::ENVIRONMENT_VARIABLES(new) —from_process_envnow destructures it by position, so it cannot read a variable it doesn't publish; plusQQ_*parsed frominstall.sh; plus provider credential variablesqq_tui::slash_names()(new), aliases includedCommandtree; hidden args skipped automaticallyqq doctorchecksCHECK_NAMESvscli.mdMisses are reported together, grouped by category, in one panic. Allow-list: one entry (
QQ_RELEASE_BASE_URL, the installer's test hook), and the test asserts allow-listed names still exist so stale entries fail too.It found one real gap: the seven
qq jev observeflags lived only in a runbook.docs/guide/cli.mdgains aqq jevtable.CHANGELOG.mdat release.cargo xtask release X.Y.Zprepends a dated section grouped Features / Fixes / Performance / Other from Conventional Commit subjects since the last tag;!→**breaking:**;chore(release):skipped; PR numbers kept; non-conforming subjects land in Other verbatim rather than vanishing. Runs before the release commit so the bump itself isn't listed. Smoke-tested against real history (10 entries,**breaking:**on #152).Why it matters
The site (#156) is generated from the guide, so this is what keeps https://retsu-ai.github.io/qq/ true as the CLI grows.
Verification
-D warnings,cargo test --workspace(qq bin 233, qq-config 102, xtask 61),cargo test -p qq-provider --no-default-features --features test-support/bogus-commandcargo xtask release --helpDocs
guide/cli.md(qq jev),runbooks/release.md(changelog step),runbooks/website.md, ledger (OB10 in review, OB12 shipped).Note
provider_credential_variables()derives from the presets and pins xAI's variable name in qq-config; the runtime/doctor still spell their own literals — consolidating is a small follow-up, kept out to stay narrow.