Skip to content

fix(ci): catch stale workflow routing expectations before merge - #151340

Closed
steipete wants to merge 1 commit into
mainfrom
upd/redmain90-routing-expectations
Closed

steipete wants to merge 1 commit into
mainfrom
upd/redmain90-routing-expectations

Conversation

@steipete

@steipete steipete commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Related: #151282, #151319. Maintainer-directed update-reliability campaign, lane L683, red-main class #90.

What Problem This Solves

Fixes workflow-routing expectation failures after a new tooling test lands, as seen in checks-node-compact-small-45.

User Impact

No user-visible runtime change. CI checks routing expectations on PRs that add or modify tooling tests, so inventory drift can fail before merge. Update, rollback, and release behavior are unchanged.

Why This Change Was Made

#151282 (b10b53175) added openclaw-npm-plugin-recovery-workflow.test.ts. Workflow-reference discovery already selected it correctly, but the CI-workflow and npm-release-workflow expectations omitted it. Both exact lists now include the recovery test.

The existing CI policy-watch owner also selects test-projects.test.ts for test/scripts/**/*.test.ts changes. This adds the inventory guard while preserving each changed test's own coverage; it does not add a competing discovery path or weaken assertions.

Evidence

  • Reproduced the two original assertions locally: both failed with the same missing recovery-test entry as the saved job log.
  • The new createChangedNodeTestShards regression failed before the policy-watch change because it selected only the recovery test. It now selects that test and the routing guard.
  • node scripts/run-vitest.mjs test/scripts/test-projects.test.ts test/scripts/ci-changed-node-test-plan.test.ts test/scripts/ci-node-test-plan.test.ts --reporter=dot: 3 files / 1,159 tests passed.
  • pnpm check:changed: passed, including script/root-test typechecks, changed-file lint, line-cap ratchet, and dead-export scans. No suppressions or baseline changes.
  • Change size: tooling +4/-0 LOC, tests +13/-2 LOC, docs +1/-0 LOC.
  • Codex autoreview: scoped-clean at P0/P1, using --mode branch --base origin/main --max-priority P1.

Exact-head CI status

For head 0917869ede1a3ec500ea4b1aab271878556024ad, node scripts/watch-pr-ci.mjs attached to run 35302166041 and terminated with FAILING (exit 15); 74 checks were still pending at that observation. This is not a green CI claim.

The two observed failures are outside this diff:

  • checks-node-compact-small-23: src/infra/fs-safe-import-boundary.test.ts reports a direct import in src/test-utils/symlink-rebind-race.ts.
  • checks-node-compact-large-9: src/gateway/server-methods/sessions-mutations.catalog-queue.test.ts expects UNAVAILABLE but receives INVALID_REQUEST for an unsupported extended context-window request.

Fetched each failed job log once. No CI rerun or landing was attempted. ClawSweeper review was still in progress at handoff.

@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Sep 18, 2026
@steipete
steipete marked this pull request as ready for review September 18, 2026 03:09
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Sep 18, 2026
@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 11:22 PM ET / September 18, 2026, 03:22 UTC.

ClawSweeper review

What this changes

The PR makes tooling-test changes select the workflow-routing regression suite, updates two expected test inventories, and documents the selection rule.

Merge readiness

✅ Ready for maintainer review

Keep open: current main contains the corrected expectation lists, but the preventive routing guard remains useful and unimplemented. No actionable patch defect was found; this maintainer-directed PR is also protected from automatic closure.

Priority: P2
Reviewed head: 0917869ede1a3ec500ea4b1aab271878556024ad

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful regression coverage and no identified correctness or security defect; CI completion remains a separate landing gate.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a member-authored internal CI repair, so the external-contributor proof gate does not apply; reported regression tests exercise the changed planner entrypoint without claiming live product behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a member-authored internal CI repair, so the external-contributor proof gate does not apply; reported regression tests exercise the changed planner entrypoint without claiming live product behavior.
Evidence reviewed 7 items Pinned introduced change: The host-verified introduction is merge-base 6dd4b06 to the reviewed head. Its four-file delta contains the policy watch, regression coverage, expectation corrections, and documentation; unrelated endpoint drift is excluded.
Additive selection through the existing owner: The new watch has no ownerGlobs, so ordinary changed-test resolution remains active. createChangedNodeTestShards adds policy targets to the ordinary plan, and resolvePreciseChangedTargets deduplicates the combined targets while preserving validation and fallback behavior.
Meaningful regression coverage: The added regression checks that changing the recovery workflow test selects both that test and the routing guard. Existing serial-owner assertions retain their capacity, execution, and Git-prerequisite checks with the additional target.
Findings None None.
Security None None.

How this fits together

OpenClaw’s CI planner converts changed repository paths into test jobs. Policy watches supplement import-based discovery so tests that inspect repository inventories run when those inventories change.

flowchart LR
  A[Changed repository paths] --> B[CI test planner]
  B --> C[Ordinary test discovery]
  B --> D[Inventory policy watches]
  C --> E[Combined test targets]
  D --> E
  E --> F[CI test jobs]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +11, Docs +1, Other +4. Total +16 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 13 2 +11
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 1 4 0 +4
Total 4 18 2 +16

Review metrics

None.

Technical review

Best possible solution:

Keep inventory-dependent routing checks in the existing policy-watch owner while preserving each changed test’s normal coverage.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: current main routes an ordinary changed tooling test to itself without adding the inventory-dependent routing suite. The PR reports a failing-before regression; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. Extending the existing additive policy-watch mechanism is a narrow repair that preserves ordinary discovery and avoids a competing routing implementation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 448d5f35e000.

Labels

Label justifications:

  • P2: This is a bounded CI coverage repair that catches inventory drift before merge without changing product runtime behavior.
  • 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 supplied repository state identifies a member-authored internal CI repair, so the external-contributor proof gate does not apply; reported regression tests exercise the changed planner entrypoint without claiming live product behavior.

Evidence

What I checked:

  • Pinned introduced change: The host-verified introduction is merge-base 6dd4b06 to the reviewed head. Its four-file delta contains the policy watch, regression coverage, expectation corrections, and documentation; unrelated endpoint drift is excluded. (scripts/lib/ci-node-test-plan.mts:144, 0917869ede1a)
  • Additive selection through the existing owner: The new watch has no ownerGlobs, so ordinary changed-test resolution remains active. createChangedNodeTestShards adds policy targets to the ordinary plan, and resolvePreciseChangedTargets deduplicates the combined targets while preserving validation and fallback behavior. (scripts/lib/ci-changed-node-test-plan.mts:674, 0917869ede1a)
  • Meaningful regression coverage: The added regression checks that changing the recovery workflow test selects both that test and the routing guard. Existing serial-owner assertions retain their capacity, execution, and Git-prerequisite checks with the additional target. (test/scripts/ci-changed-node-test-plan.test.ts:665, 0917869ede1a)
  • Partial overlap on current main: GitHub verifies fix: avoid session-list rebuilds when cron bindings are unchanged #151279 as merged at 34c735e. Its patch contains the same two expectation additions. Comparing the reviewed head with fetched main still shows the new policy watch and its regression, so that merged PR does not supersede this entire change. (test/scripts/test-projects.test.ts:1195, 34c735e1ccb1)
  • Latest-release comparison: The policy-watch inventory in v2026.9.4 lacks the tooling-test inventory watch. The requested preventive behavior is absent from both the supplied latest release and fetched main. (scripts/lib/ci-node-test-plan.mts, 3a9d69db306c)
  • Validation and inspection limits: The captured PR body reports a failing-before routing regression, 1,159 passing focused tests, and passing changed-file checks. This review ran no tests; read-only diff checking passed. Live CI metadata confirms three failed jobs. The additional small-39 job exposes only an exit-code annotation; its log download was blocked by the network allowlist, so its cause remains unverified. (0917869ede1a)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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 added a commit that referenced this pull request Sep 18, 2026
…151339)

Restore filesystem import-boundary, workflow-routing, and full-suite inventory guards after the changes in #151302, #151282, and #151001. Route native filesystem configuration through the existing facade, register the recovery and Codex attempt tests in their existing owners, and select those guards when their inventory inputs change. Includes the reviewed routing repair from #151340 with its original human authorship preserved.

Finalize the existing Gateway serial admission and two-worker ceiling before runtime placement reads recipient policy. This preserves compact worker limits when inventory changes without changing timing measurements, original compaction assertions, configuration, dependencies, or user-facing runtime behavior.

Validation: exact-head CI run 35306657804 completed green; the native watcher exited 0 with no pending checks. Retained focused proof passed 1,591 tests across six files, with both new placement regressions failing before the repair and all four placement cases passing after it. Committed-branch review found no actionable defects. The pre-existing diagnostics test-support lint issue from #151161 remains an explicitly nonblocking follow-up.
@steipete

Copy link
Copy Markdown
Contributor Author

Folded into #151339 (landed on main as 70916d0) together with the fs-safe import-boundary fix and the Vitest project inventory registration, because no single guard fix could pass exact-head CI while the other two guards were still red. This PR's commit was cherry-picked with its author preserved; closing as superseded.

@steipete steipete closed this Sep 18, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…penclaw#151339)

Restore filesystem import-boundary, workflow-routing, and full-suite inventory guards after the changes in openclaw#151302, openclaw#151282, and openclaw#151001. Route native filesystem configuration through the existing facade, register the recovery and Codex attempt tests in their existing owners, and select those guards when their inventory inputs change. Includes the reviewed routing repair from openclaw#151340 with its original human authorship preserved.

Finalize the existing Gateway serial admission and two-worker ceiling before runtime placement reads recipient policy. This preserves compact worker limits when inventory changes without changing timing measurements, original compaction assertions, configuration, dependencies, or user-facing runtime behavior.

Validation: exact-head CI run 35306657804 completed green; the native watcher exited 0 with no pending checks. Retained focused proof passed 1,591 tests across six files, with both new placement regressions failing before the repair and all four placement cases passing after it. Committed-branch review found no actionable defects. The pre-existing diagnostics test-support lint issue from openclaw#151161 remains an explicitly nonblocking follow-up.
@RomneyDa
RomneyDa deleted the upd/redmain90-routing-expectations branch October 22, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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