Skip to content

test: assert release navigation shape instead of pinned versions - #133652

Merged
steipete merged 1 commit into
mainfrom
steipete/trusting-tu-bbaffb
Aug 31, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/trusting-tu-bbaffb

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where cutting a release turned main red for everyone. The
docs-sync-publish navigation test pinned the exact release-notes page list, so
every release that added a docs/releases/<version>.md page plus its
docs/docs.json nav entry broke the assertion. Because that assertion lives in
the tooling lane and a release PR's change classification never selects it, the
release PR itself went green and the failure first surfaced on main, where
every subsequent PR inherited it. This already happened once end-to-end:
#133557 (v2026.8.1 release notes) turned main red and #133581 fixed it by
bumping the literal, leaving the landmine armed for the next release.

Why This Change Was Made

#133565 removed the pinned literals, but by making releaseRoutes tautological
(collectPages(releaseTab) compared against itself), which also dropped the
English route-composition assertion entirely — the eight fixed non-release routes
and their order stopped being checked, and only releaseNotes[0] survived from
the 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/index is first, that every entry after it matches
/^releases\/\d{4}\.\d{1,2}\.\d+$/, that the full tab equals those pages followed
by 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. The
locale-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 main after
every 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.

node scripts/run-vitest.mjs test/scripts/docs-sync-publish.test.ts
# Test Files  1 passed (1) | Tests  6 passed (6)

Three negative controls, each reverted afterwards:

  1. Added a synthetic releases/2026.9.1 nav entry and page — still 6 passing, so
    the next release no longer breaks this lane.
  2. Temporarily filtered one release page out of the zh-CN prefix path in
    scripts/docs-sync-publish.mjs — fails with
    expected [ …(579) ] to deeply equal [ …(580) ], so the mirror assertion still
    has teeth. Note zh-Hans is the one locale with navMode: "overlay"
    (docs/.i18n/zh-Hans-navigation.json), so this guards a real composition step.
  3. Renamed a release entry to releases/next — fails on the version-shape regex,
    so the derived list cannot absorb a malformed route.

node scripts/check-changed.mjs is green (format, test-root typecheck, lint,
guards). Fresh $autoreview on the diff: scoped-clean, no accepted findings.

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.
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 31, 2026 00:14
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 31, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 8:20 PM ET / August 31, 2026, 00:20 UTC.

ClawSweeper review

What this changes

The PR replaces a release-version-specific navigation assertion with checks for release-route shape, fixed-route ordering, and duplicate-free localized navigation.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: 50b069651b9bf20d0e605c4827638d1c89bb16ff

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused source review supports a correct invariant repair with no functional or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The introduced behavior is confined to a maintainer-authored test assertion; no production owner or user-visible runtime path changes, and the PR body supplies targeted test and negative-control evidence as supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The introduced behavior is confined to a maintainer-authored test assertion; no production owner or user-visible runtime path changes, and the PR body supplies targeted test and negative-control evidence as supplemental validation.
Evidence reviewed 6 items Introduced test repair: The verified merge-base-to-head delta changes only the release-navigation test, replacing the self-derived route comparison with version-shape, exact-order, and uniqueness assertions.
Current-main behavior: Fetched current main still has the old assertion: it derives releaseRoutes from the same tab and checks only duplicate count, leaving the fixed route composition unasserted.
Navigation owner boundary: The generator reads the canonical language navigation, clones English routes for locales, then applies the zh-Hans label overlay; it does not use the overlay to remove new English release routes.
Findings None None.
Security None None.

How this fits together

The docs publishing script reads English navigation from docs/docs.json, clones it for localized documentation, and applies labels for Simplified Chinese. The changed test verifies the Release & CI section before that navigation is published.

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]
Loading

Before merge

  • Resolve merge risk (P1) - One filtered ClawSweeper comment is unavailable in the supplied snapshot; confirm that it contains no unaddressed rank-up move before landing.
  • Complete next step (P2) - No repair job is needed because the maintainer-authored PR has no actionable finding; remaining work is ordinary exact-head CI and review completion.
Agent review details

Security

None.

PR surface

Tests +19. Total +19 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 21 2 +19
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 21 2 +19

Review metrics

Metric Value Why it matters
Production versus test delta production +0/-0; tests +21/-2 All introduced code is a focused test assertion repair; no runtime, configuration, or published-navigation behavior changes.

Root-cause cluster

Relationship: canonical
Canonical: #133652
Summary: This PR is the focused remaining repair for the release-navigation test assertion; the cited earlier PRs either added the release input or applied incomplete/one-off coverage changes.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a bounded test-maintenance repair with no user-facing runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The introduced behavior is confined to a maintainer-authored test assertion; no production owner or user-visible runtime path changes, and the PR body supplies targeted test and negative-control evidence as supplemental validation.

Label justifications:

  • P3: This is a bounded test-maintenance repair with no user-facing runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The introduced behavior is confined to a maintainer-authored test assertion; no production owner or user-visible runtime path changes, and the PR body supplies targeted test and negative-control evidence as supplemental validation.

Evidence

What I checked:

  • Introduced test repair: The verified merge-base-to-head delta changes only the release-navigation test, replacing the self-derived route comparison with version-shape, exact-order, and uniqueness assertions. (test/scripts/docs-sync-publish.test.ts:184, 50b069651b9b)
  • Current-main behavior: Fetched current main still has the old assertion: it derives releaseRoutes from the same tab and checks only duplicate count, leaving the fixed route composition unasserted. (test/scripts/docs-sync-publish.test.ts:177, afac389cee3e)
  • Navigation owner boundary: The generator reads the canonical language navigation, clones English routes for locales, then applies the zh-Hans label overlay; it does not use the overlay to remove new English release routes. (scripts/docs-sync-publish.mjs:499, afac389cee3e)
  • Current navigation input: The English Release & CI tab contains the release index and versioned release pages followed by the eight fixed maturity, release-process, testing, CI, and help routes that the PR reconstructs. Public docs: docs/docs.json. (docs/docs.json:2080, afac389cee3e)
  • Related history: The PR head has raw parent 99eec0ee…; merged commits for the related literal bump and prior broader navigation-test change are 7504a3b3… and cd3543fe…. Older blob history could not be read because this partial clone's promisor fetch could not resolve GitHub, so no line-introduction claim is made. (test/scripts/docs-sync-publish.test.ts:184, 50b069651b9b)
  • Review-context gap: The supplied GitHub context hydrated two comments but included only one; the unavailable later ClawSweeper comment was not treated as absent evidence.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • hannesrudolph: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm the unavailable latest ClawSweeper comment has no unaddressed rank-up move, then let exact-head checks finish green.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 2896a94 into main Aug 31, 2026
196 checks passed
@steipete
steipete deleted the steipete/trusting-tu-bbaffb branch August 31, 2026 00:31
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
…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.
steipete added a commit that referenced this pull request Sep 10, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant