Repository navigation
fix(docs): detect missing navigation routes - #144075
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 9:41 AM ET / 13:41 UTC. ClawSweeper reviewWhat this changesThe PR checks all 56 Contributing documentation routes in order and restores the Gateway & Ops tab-order assertion in the publisher test. Merge readiness✅ Ready for maintainer review This remains a useful, focused regression guard: current main still permits unsampled Contributing routes to disappear without failing the test. No actionable patch defects were found, and the maintainer-protected PR should remain open. Priority: P3 Review scores
Verification
How this fits togetherThe documentation publisher combines English navigation with translated labels to generate localized navigation. This test checks that the generated menus preserve required routes and ordering. flowchart LR
A[English navigation] --> C[Documentation publisher]
B[Translated labels] --> C
C --> D[Localized navigation]
D --> F[Navigation assertions]
E[Independent route inventory] --> F
F --> G[Pass or report missing routes]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +49. Total +49 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the independent non-release route inventory alongside dynamic release-version checks and the existing locale projections. Do we have a high-confidence way to reproduce the issue? Yes, from source: removing an unsampled Contributing route propagates into derived locale expectations and evades main's sampled assertion. The body reports that exact mutation probe; this review did not execute it. Is this the best way to solve the issue? Yes. Strengthening the existing publisher-boundary assertion restores an independent contract without adding another validator or pinning changing release versions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a024092e2a88. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
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.
Related: #144037 and #133652. Preserves the navigation split introduced in #144021.
What Problem This Solves
The publisher test sampled six Contributing routes from the generated navigation instead of checking its complete independent inventory. Removing another route, such as
concepts/qa-e2e-automation/qa-reporting, from English also removed it from every generated locale while the test continued to pass. Its last-four-tab assertion also stopped protecting Gateway & Ops ordering.Why This Change Was Made
Restore the explicit ordered 56-route Contributing inventory and exact equality, and assert the last five tabs including Gateway & Ops. Keep the existing dynamic release-version check, locale projections, translated Chinese labels, and manifest-driven hidden QA exclusion.
User Impact
Documentation checks again detect accidentally lost Contributing routes and tail-tab ordering changes. This follow-up changes only the publisher test; the merged navigation and translated overlay are preserved.
Evidence
A real publisher mutation test removed
concepts/qa-e2e-automation/qa-reporting: the original test passed, while the corrected test failed specifically on the missing route. The navigation bytes were restored afterward. Fresh independent review through P2 accepted the full corrected candidate. The follow-up uses the same correction bytes and unchanged publisher, navigation, manifest, and catalog context from that review.The complete docs publisher and official channel catalog suites passed, 32 tests. Required changed checks passed, including formatting, test-root types, lint, dead-export checks, and the selected guards. Exact-head hosted CI remains required before native landing.