Repository navigation
test: assert release navigation shape instead of pinned versions - #133652
Conversation
The Release & CI navigation assertion pinned the exact release-notes page list, so every release that added a docs/releases/<version> page broke it. The tooling lane is not selected by a docs-only release PR's change classification, so the break landed green and first appeared on main (#133557 turned main red; #133581 rebumped the literal). Read the published versions from the English navigation instead, and keep the invariants that matter: releases/index first, version-shaped entries after it, the full tab equal to those pages plus the fixed non-release routes, no duplicates, and the zh-CN group mirroring English exactly.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 8:20 PM ET / August 31, 2026, 00:20 UTC. ClawSweeper reviewWhat this changesThe PR replaces a release-version-specific navigation assertion with checks for release-route shape, fixed-route ordering, and duplicate-free localized navigation. Merge readinessKeep open for normal maintainer landing: this narrow test repair restores meaningful Release & CI route assertions that current main still lacks. The supplied comment snapshot omits one later ClawSweeper comment, so its rank-up list should be checked before landing. Priority: P3 Review scores
Verification
How this fits togetherThe docs publishing script reads English navigation from flowchart LR
A[English docs navigation] --> B[Docs publishing script]
B --> C[English Release and CI tab]
C --> D[Localized navigation]
C --> E[Route invariant test]
D --> F[Published documentation]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +19. Total +19 across 1 file. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the data-driven release-route assertion after exact-head checks are green and any current ClawSweeper rank-up move is addressed; retain exact checking of the fixed route tail and locale mirrors. Do we have a high-confidence way to reproduce the issue? Yes—source inspection reproduces the coverage gap: current main derives the expected routes from the same tab it checks, so fixed route composition is not independently asserted. Is this the best way to solve the issue? Yes—the patch keeps versioned release pages data-driven while restoring the independent ordering, shape, uniqueness, and locale-mirroring invariants at the navigation-composition boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against afac389cee3e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…nclaw#133652) The Release & CI navigation assertion pinned the exact release-notes page list, so every release that added a docs/releases/<version> page broke it. The tooling lane is not selected by a docs-only release PR's change classification, so the break landed green and first appeared on main (openclaw#133557 turned main red; openclaw#133581 rebumped the literal). Read the published versions from the English navigation instead, and keep the invariants that matter: releases/index first, version-shaped entries after it, the full tab equal to those pages plus the fixed non-release routes, no duplicates, and the zh-CN group mirroring English exactly.
Restore the exact ordered Contributing route inventory and the last-five-tab Gateway & Ops guard after #144037. Keep the #144021 split, translated Chinese overlay, hidden QA exclusion, and dynamic release-version checks intact. The real publisher mutation probe shows a removed qa-reporting route escaping the old sampled check and failing the restored guard. All 32 publisher/catalog tests, required changed checks, and independent P2 review passed. Preserves the fixed non-release inventory contract from #133652.
Restore the exact ordered Contributing route inventory and the last-five-tab Gateway & Ops guard after openclaw#144037. Keep the openclaw#144021 split, translated Chinese overlay, hidden QA exclusion, and dynamic release-version checks intact. The real publisher mutation probe shows a removed qa-reporting route escaping the old sampled check and failing the restored guard. All 32 publisher/catalog tests, required changed checks, and independent P2 review passed. Preserves the fixed non-release inventory contract from openclaw#133652.
What Problem This Solves
Resolves a problem where cutting a release turned
mainred for everyone. Thedocs-sync-publishnavigation test pinned the exact release-notes page list, soevery release that added a
docs/releases/<version>.mdpage plus itsdocs/docs.jsonnav entry broke the assertion. Because that assertion lives inthe
toolinglane and a release PR's change classification never selects it, therelease PR itself went green and the failure first surfaced on
main, whereevery subsequent PR inherited it. This already happened once end-to-end:
#133557 (v2026.8.1 release notes) turned
mainred and #133581 fixed it bybumping the literal, leaving the landmine armed for the next release.
Why This Change Was Made
#133565 removed the pinned literals, but by making
releaseRoutestautological(
collectPages(releaseTab)compared against itself), which also dropped theEnglish route-composition assertion entirely — the eight fixed non-release routes
and their order stopped being checked, and only
releaseNotes[0]survived fromthe release-notes group. This restores the invariants while keeping the list
release-proof: the published versions are read from the English navigation, and
the test asserts that
releases/indexis first, that every entry after it matches/^releases\/\d{4}\.\d{1,2}\.\d+$/, that the full tab equals those pages followedby the fixed non-release routes, that there are no duplicates, and that the zh-CN
release group mirrors the English list exactly with the
zh-CN/prefix. Thelocale-mirroring assertions are unchanged and now compare against a list that
means something.
User Impact
No user-visible or runtime change. Maintainers stop having to repair
mainafterevery release, and the navigation invariants that actually matter are enforced
again instead of being silently dropped.
Evidence
Test-only change: production
+0/-0, tests+21/-2.Three negative controls, each reverted afterwards:
releases/2026.9.1nav entry and page — still 6 passing, sothe next release no longer breaks this lane.
scripts/docs-sync-publish.mjs— fails withexpected [ …(579) ] to deeply equal [ …(580) ], so the mirror assertion stillhas teeth. Note zh-Hans is the one locale with
navMode: "overlay"(
docs/.i18n/zh-Hans-navigation.json), so this guards a real composition step.releases/next— fails on the version-shape regex,so the derived list cannot absorb a malformed route.
node scripts/check-changed.mjsis green (format, test-root typecheck, lint,guards). Fresh
$autoreviewon the diff:scoped-clean, no accepted findings.