Repository navigation
fix(release): support stable 3.2 in the docs release flip - #7721
Merged
Merged
Conversation
The release-docs snapshot job failed for a stable minor (`update-release-docs-nav.mjs 3.2.1 3.2` threw "schema-tools.ts is missing docs release line 3.2") and, before throwing, left docs.json with a second non-default 3.2 entry, 3.1 still default, and two Latest tags. - update-release-docs-nav.mjs: a stable X.Y.N release for a line newer than the docs default now promotes X.Y to the only default and only Latest entry (pinned to dist/docs/X.Y.N, first in the picker), demotes and flattens the previous default, removes the line's -rc/-beta selectors from the picker (snapshots and redirects stay), repoints clean /docs/* aliases, retargets the 3.2 story aliases, and regenerates llms-current.md. Refuses a prerelease build for a stable label. Addie's DOCS_SCHEMA_RELEASES is now regenerated from docs.json (same entries, same order) instead of patched per label. The CLI computes every output before writing any file. - schema-tools.ts: default schema version and stable/current/latest/v3 follow the first (docs default) entry instead of a hardcoded 3.1; preview routing is derived for any line, never shadows a stable line's bare alias, and no longer throws when no prerelease remains. Adds 3.2 historical prerelease ranges for $schema inference after the channels retire. - docs-nav-validation / broken-links.yml: compare against the maintenance branch of the docs default (origin/<X.Y>.x) and require it only once that branch exists. - Tests simulate the 3.2.1 GA flip on fixtures and on temp copies of the repository docs.json and schema-tools.ts. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths require human/CODEOWNERS approval.
This PR modifies files under hard-gated paths (.agents/** and .github/workflows/**) and review_decision is REVIEW_REQUIRED, not APPROVED. Per decision rule row 2, the outcome must be escalate regardless of how clean the diff is.
Gated files requiring approval:
.agents/shortcuts/cut-major.md(matches.agents/**).github/workflows/broken-links.yml(matches.github/workflows/**).github/workflows/release-docs.yml(matches.github/workflows/**)
No blocking or medium findings were surfaced by the reviewer — the release-tooling fix (partial-write and duplicate-3.2-entry failure modes closed, no protocol schema change, no changeset required) looks mechanically sound. Once a human/CODEOWNERS review lands review_decision: APPROVED, this can fall through to a normal approve.
Why human review
- Gated path
.agents/shortcuts/cut-major.md(matches.agents/**) modified; requires human/CODEOWNERS approval (review_decision is REVIEW_REQUIRED, not APPROVED). - Gated path
.github/workflows/broken-links.yml(matches.github/workflows/**) modified; requires human/CODEOWNERS approval. - Gated path
.github/workflows/release-docs.yml(matches.github/workflows/**) modified; requires human/CODEOWNERS approval. - This PR touches a path under a hard, non-overridable approval gate (.agents/shortcuts/cut-major.md (modified) matches
.agents/**; .github/workflows/broken-links.yml (modified) matches.github/workflows/**; .github/workflows/release-docs.yml (modified) matches.github/workflows/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
This was referenced Sep 29, 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.
Summary
release-docs.ymlrunsnode scripts/update-release-docs-nav.mjs <version> <X.Y>whenever a release is published. For the stable 3.2 GA (3.2.1 3.2), it exited 1 withschema-tools.ts is missing docs release line 3.2. Before it threw, it had already left docs.json in a bad state: a second, non-default3.2entry, 3.1 still the default, and twoLatesttags. Audit refs: release-mechanics §2b, release-notes M-1, personas-search Must-fix 1, addie M1/M2.scripts/update-release-docs-nav.mjsX.Y.Nis released for a line newer than the current docs default. Steps:X.Ybecomes the onlydefaultand the onlyLatest. It is placed first in the picker and pinned todist/docs/X.Y.N/(the OpenAPI source is pinned tovX.Y.N).X.Y-rcandX.Y-betaselectors are removed from the picker. Their snapshots and redirects stay in place./docs/*aliases are repointed at the new default. Aliases for pages that exist only in the old default keep resolving to its immutable snapshot./3.2,/docs/reference/3-2-beta, …) are retargeted.llms-current.mdis regenerated.3.2.0-rc.8 3.2). It also rejects a default that still points at livedocs/.DOCS_SCHEMA_RELEASESis now regenerated from docs.json (same entries, same order) instead of being patched one label at a time. Today this is a no-op.server/src/addie/mcp/schema-tools.ts(version mapping and default only; tool copy untouched)stable/current/latest/v3aliases are now the first entry of the map, which is the docs.json default. They were a hardcoded3.1. A test enforces parity with docs.json.PREVIEW_RELEASE_LINEis gone.3.2alias no longer shadows a stable3.2entry.$schemainference keeps working after the channel selectors are retired.Stable-ref drift check
docs-nav-validation.test.cjsandbroken-links.ymlpreviously hardcodedorigin/3.1.x. They now compare againstorigin/<docs default>.x.3.2.xyet, and main is the stable surface.This PR does not flip docs.json; the flip happens at GA via the workflow. No changeset: the changes are release tooling, Addie, and CI, none of it protocol-scoped (the scope check passes).
Simulated GA (temp copies of the real docs.json / schema-tools.ts)
3.2.1 3.2→Promoted docs.json version 3.2 (from 3.2-rc) to the default; demoted 3.1; retired selectors 3.2-rc, 3.2-beta3.2 (default, Latest) · 3.1 · 3.0 · 2.5 (archived)/docs/*redirects →3.2.1llms-current.md→Version: 3.2. Build: 3.2.1.'3.2': '3.2.1', '3.1', '3.0', '2.5'docs/todist/docs/3.2.1and rannpm run test:docs-navagainst the flipped docs.json: 46/46 passed.Left for other PRs / humans
/docs/reference/3-2-betais retargeted todist/docs/3.2.1/reference/3-2-beta. If that page is deleted or redirected before the tag, update its redirect in the GA-flip PR.Tests
npm run test:release-docs-nav: 23/23 (5 new GA-flip cases, including a CLI run on temp copies of the repo files)REQUIRE_STABLE_DOCS_REF=1 npm run test:docs-nav(withorigin/3.1.xfetched): 55/55npx vitest runon schema-tools, docs-indexer, addie-chat-object-authorization, and knowledge-baseline-registration: 118/118npm run test:release-workflow: passnpm run test:addie-tools: passnpx tsc --noEmit -p server/tsconfig.json: cleanHUSKY=0and am relying on CI for the full suite.🤖 Generated with Claude Code