Repository navigation
ci: stop PR work after failures - #156375
Conversation
|
🦞👀 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. |
89438c9 to
eddcdba
Compare
|
Codex review: blocked before merge. Reviewed September 25, 2026, 4:54 AM ET / 08:54 UTC (Revision 5). ClawSweeper reviewWhat this changesThe branch adds first-attempt PR failure cancellation, Node matrix fail-fast, aggregate failure reporting, and narrower CI selection for bot-generated native locale changes. Merge readiness⛔ Blocked before merge - 2 items remain Current main still lacks cross-family PR failure cancellation. A hosted run supports the intended behavior, and the branch remains useful. GitHub currently reports a merge conflict with main. Priority: P2 Review scores
Verification
How this fits togetherGitHub Actions selects jobs for each pull request and runs Node, native, and other checks in parallel. The new monitor observes those jobs and passes a failure cause to the aggregate CI check. flowchart LR
A[Pull request] --> B[Preflight selection]
B --> C[CI job families]
C --> D[Failure monitor]
D --> E{Current run failed?}
E -->|Yes| F[Cancel remaining jobs]
E -->|No| G[Finish observation]
F --> H[Aggregate CI check]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceTests +834, Docs +31, Config +97, Other +335. Total +1297 across 17 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one scoped PR failure monitor that stops wasted jobs while preserving scheduled main validation, manual coverage, and a red aggregate check for genuine failures. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug report. A deliberate failed Node row in hosted CI demonstrates the changed cancellation and failure-reporting path. Is this the best way to solve the issue? Yes. Native Node matrix fail-fast and one scoped monitor use the existing CI graph and aggregate gate without adding another result owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 79399a653aab. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
e3e427d to
2c8b2fe
Compare
72ea91d to
1788276
Compare
Observe same-repository PR failures from preflight, cancel remaining families through one authorized job, and preserve a red aggregate naming the failed row. Bind cancellation and planner count facts to the current run attempt, retain retry isolation, and bound observation by the monitor's actual start. Reconcile installed check planning without delaying failure observation. Preserve upstream policy-watch selection and release-publish routing, the existing hybrid routing, and the missing Blacksmith failure reporting route. Keep generated-native-only selection with its artifact owner. Verify every present shared-helper importer, combined release-routing assertions, changed CI rows, and source-identical stress evidence. Full staged review and changed-file checks pass; retain the upstream child-launch repair for inherited credentials rather than its superseded shell-string assertion.
The native artifact classifier moved to its own ESM module, but the zero-install scope fixture still copied the previous import closure. Include the dependency-free module so the real Node CLI runs without node_modules and all existing execution and scope-output assertions remain effective. Reproduce all ten zero-install failures in the full 121-case file before the repair. Verify the full file twenty times, the captured failing CI row three times, and the scope owner/siblings without changing assertions or budgets.
4c0725e to
fd26532
Compare
* ci: fail fast across PR job families Observe same-repository PR failures from preflight, cancel remaining families through one authorized job, and preserve a red aggregate naming the failed row. Bind cancellation and planner count facts to the current run attempt, retain retry isolation, and bound observation by the monitor's actual start. Reconcile installed check planning without delaying failure observation. Preserve upstream policy-watch selection and release-publish routing, the existing hybrid routing, and the missing Blacksmith failure reporting route. Keep generated-native-only selection with its artifact owner. Verify every present shared-helper importer, combined release-routing assertions, changed CI rows, and source-identical stress evidence. Full staged review and changed-file checks pass; retain the upstream child-launch repair for inherited credentials rather than its superseded shell-string assertion. * test(ci): complete zero-install scope fixture The native artifact classifier moved to its own ESM module, but the zero-install scope fixture still copied the previous import closure. Include the dependency-free module so the real Node CLI runs without node_modules and all existing execution and scope-output assertions remain effective. Reproduce all ten zero-install failures in the full 121-case file before the repair. Verify the full file twenty times, the captured failing CI row three times, and the scope owner/siblings without changing assertions or budgets.
Two reasons, both from the stale base: - The pr-fail-fast job checks out scripts/ci-pr-fail-fast.mjs from the pull request's recorded base, f6a3ed7 (2026-09-23), and main only gained that script in d53f229 (openclaw#156375, 2026-09-25), so the job fails with "Cannot find module" before it inspects this diff. - Main's 1d09a03 (openclaw#167916) renamed the safeguard's summarizer seam to summarizeCompactionHistory and its test hook to setSummarizeCompactionHistoryForTest. The textual merge is clean, but the quality-feedback suite then fails on "testing.setSummarizeInStagesForTest is not a function" (6 of 6) and the agents-other test graph on TS2305/TS2339. The suite now uses main's names; its assertions are unchanged. The branch still changes only compaction-safeguard-quality.ts and its quality-feedback suite.
Merged as
d53f229e9cb2f4f469689fa6be1970c56d7d35f1from reviewed headfd265321c03b3e15738c86ca872677e0f8092f5a. Final CI run 36118796587, attempt 1, passed all 68 executed jobs with 15 expected skips. GitHub completed the existing auto-merge on September 25 at 09:46:03 UTC. No required check or auto-merge condition was weakened.What Problem This Solves
PR CI keeps spending paid runner time after a failed row has already made the run unusable.
User Impact
PR Node matrices stop sibling rows on failure. A same-repository PR first-attempt monitor cancels the remaining job families and preserves a failed
openclaw/ci-gatenaming the originating job. Main and manual runs retain complete matrices. Only the monitor receivesactions: write; all existing job permissions stay unchanged. Fork PRs retain native matrix fail-fast without cross-family cancellation authority.Why This Change Was Made
The monitor reads the current run attempt, revalidates the open PR/head and newer same-head runs, records the failed job before its single cancellation request, and finishes so the aggregate can report red. Observation errors retain ordinary CI; an uncertain cancellation response remains red. Superseded runs without a failure cause retain existing behavior. Partial reruns keep native fail-fast and ignore earlier monitor outputs/results. Expected selected-job counts prevent an incomplete jobs listing from ending monitoring before matrices appear. When installed check planning is selected, its successful same-attempt Jobs API marker replaces only the four provisional check-family counts; failure observation starts immediately. Missing or invalid metadata leaves ordinary CI in charge. The observer derives a non-failing cutoff from its actual job start, leaving cleanup time inside the existing 60-minute job limit.
Live proof exposed two issues now fixed: GitHub can report a workflow as
queuedwhile its jobs run, and a hosted failure-reporting gate can remain unassigned through the cancellation grace period. Current-run identity checks accept that queued state. The final integration preserves R4’s existing trusted first-attempt hybrid routing. This PR additionally puts current failure-triggered default/explicit Blacksmith reporting on the existing 4-vCPU class; explicit GitHub overrides, retries, and manual behavior retain upstream routing.Bot-authored, same-repository PRs changing only generated native locale artifacts retain strict source/parity checks and omit unrelated Node/native builds. Mixed/source/unknown diffs, human PRs, main, manual validation, and
ci:fullretain ordinary selection. The existing artifact classifier owns the path rules. Docs/UI-locale narrowing remains with its separate selector change.Existing per-PR concurrency, draft suppression, and heavy-job preflight dependencies are retained. Repeated head SHAs remain candidates rather than automatic success reuse because their tested merge trees can differ. Existing concurrency coalesces overlapping work, and the monitor rejects a superseded same-head run. No required check or ruleset was removed.
Evidence
Historical production head for the evidence below:
72ea91da4005bc2a9adc61511ec3cc8d03243694, rebased on main238347227b08df23859c3e366bf2cfbb1aa42d3a. Final refreshed-head evidence appears below. All temporary experiment commits remain dropped. Auto-merge remains armed per maintainer direction.Both requested live experiments passed.
eddcdbad998161d3f1cee7848add67cae771efbc. Node job 107134149651,checks-node-compact-small-36-tail, failed at 10:04:40Z. Monitor 107134145632 recordedfailure-cancelledat 10:04:51Z. 124 jobs cancelled, including other families. Gate 107134906528 failed at 10:06:26Z; both failure reporting and selected-lane verification failed. Its rendered summary was verified to say: “PR CI stopped after checks-node-compact-small-36-tail failed.”e3e427d43e45935c1e6f5c98dcefd555049288c0. Assigned preflight 107148622974 started at 10:50:36Z. The production-head push began at 10:51:30Z; successor CI was created at 10:51:49Z. Old preflight cancelled at 10:52:07Z, and the run completed cancelled at 10:52:08Z: 32 cancelled jobs, zero failures, no assigned monitor/gate. Heavy fanout never started.Observed compute and historical projection
Non-Node work fell from 2,641.87 to 705.13 vCPU-min (73.3%) in the two failure observations. Different merge bases, row counts, and checkout timing mean this is an observed comparison, not an identical-plan causal benchmark. Supersession consumed 4,463.07 fewer vCPU-min than that failed reference, but stopped much earlier; this unmatched difference is not a causal saving estimate. Costs use assigned job time multiplied by the declared Blacksmith vCPU class, not CPU utilization or billing records.
The September 16–22 census contains 19,923 PR run IDs: 5,939 success, 6,581 failure, 2,995 cancelled, 4,393 skipped, and 15 other/nonterminal outcomes. Repository/ref proxy median/p90 are 2/7; incomplete historical PR associations prevent exact overall runs-per-PR quantiles. 667 cancelled heads were replaced within five minutes and 1,166 within ten minutes. Draft suppression already works. 3,745 repeated-head candidates are not credited as savings.
The 84-run stratified historical sample projects 16.92M gross vCPU-min/week removed for the implemented scope with a 30-second stopping allowance. This excludes monitor overhead, overlaps generated-only savings, and is not a post-change or invoice measurement. An illustrative 15-minute monitor on every one of the 10,770 same-repository non-skipped runs costs 0.65M/week, giving 16.27M/week under that explicit assumption; actual admission and duration are narrower. Other packing/routing changes will alter the counterfactual.
Two concrete historical sightings underpin the mechanism: run 35077918937, job 104734891194, failed on a missing declaration-fixture module while sibling Node rows spent another 5,983.2 vCPU-min; run 35108810979, job 104837212642, failed a line-cap ratchet 168 seconds after creation while Node rows spent another 4,843.0 vCPU-min.
Local validation and review
All three new files passed 20 standalone repetitions at the required worker ceiling, with controller/gate repetitions refreshed after corrections. Three actual CI shard-executor replays used the two-worker group policy and owner siblings. The queued-run regression failed before its fix and passed afterward. Owner/sibling checks,
node scripts/check-changed.mjs, type-aware lint with a rejecting canary, formatter, workflow security/ownership guards, andgit diff --checkpassed. Final cumulative branch P2 autoreview: scoped-clean, no findings. This change stops wasted work; it does not claim to reduce the historical 52.6% success/failure-cohort failure rate.One-worker standalone wall costs through the repository test wrapper: controller 2.303s, gate/PR control 1.969s, generated-native scope 2.826s (16, 9, and 17 tests). Per-file final CI timings were not captured before cancellation; the deliberate-failure experiment is mechanism proof, not full-suite green proof.
Earlier CI observations
Original production-head run 35851209319 was observed once and cancelled after a genuine unrelated failure in Node job 107149572452,
checks-node-compact-small-43. Gate 107151872953 correctly failed at 11:01:38Z. The untouchedtest/scripts/install-smoke-no-push-workflow.test.tsstill requires reusable preflightworkflow_repository/workflow_shaoutputs to be absent, while main commit 9ed5a04 adds them for its trusted build-warning relay. Neither file is changed by this PR. That historical sighting required an owner correction without relaxing its security guarantees; no owning fix had been identified at the time. The final rebase and fresh CI below determine current status. No rerun or green CI claim is made.An earlier restored run, 35848900678, hit the unlisted
swiftlintdependency already fixed on main by d9a3356 / #156415.Routing guard repair after main integration
Run 35854123407, job 107184361959, exposed a main-qualification guard failure: its parity loop evaluated the PR-only monitor's runner expression on a push payload without
pull_request.head. The failure reproduced locally before the repair. The guard now first asserts that the monitor is excluded from both main push and main qualification, then compares placement for their admitted jobs. Production routing and all existing main/native-worker expectations remain unchanged. The rebase also carries main's real-Gateway shard fixture additions into the extracted shared manifest helper.The five affected workflow test files passed once: 725 tests, 12 existing skips.
node scripts/check-changed.mjs, targeted formatter, andgit diff --checkpassed; the guard delta received P2 scoped-clean review. Earlier live cancellation and repetition proof was reused. The Windowssrc/daemon/schtasks.env-case.real.test.tsfailure in job 107184359411 is unrelated and was not changed or rerun by this repair.LND1 integration proof
Frozen consumer proof checkpoint:
4cb92ed0e9092803ba35196bae12c818d2376982, treee62756107e56f04028704141b3007d5a0d80206e, tested against the exact producer contract at053a3f38767a46aaacd460ac7578a91f04002181. The producer script and its test are byte-identical to that producer; they are excluded from the consumer-only transplant. This checkpoint establishes the source proof below; final parent and refreshed-head CI are recorded separately.The integration replaces the four early check-family reservations with the installed planner's successful same-attempt count publication. The observer still starts after preflight and processes failures before reading the count. Missing, malformed, duplicated, unfinished, or wrong-attempt count evidence cannot end observation as a clean completion. Preflight totals now include the admitted baseline, Android Access, and screenshot rows. The release evidence sealer joins the monitor, and the observer's advisory cutoff uses its Jobs API start time inside the existing job limit.
The rebase preserved R4's existing trusted hybrid routing and added only the missing failure-reporting route for default/explicit Blacksmith. Proof caught an obsolete duplicate test assertion that still expected the hybrid gate on GitHub immediately before the stronger R4 matrix expected Blacksmith for the same context. Removing that conflicting assertion retained the complete R4 matrix and explicit failure-routing tests. Other caught integration conflicts were the Android aggregate guard assuming the first step, a duplicated gate expectation key, and the extracted manifest fixture needing the producer's installed-planner simulation. These were deterministic integration repairs, not hosted flakes.
Two count regressions failed on the previous observer before the fix: reconciling the early reservation with the completed planner, and refusing clean completion before its successful fact. The deadline regression also failed before its earlier fix. These are deterministic before/after observations; no random failure-rate improvement is claimed.
Blacksmith Testbox proof: monitor and shared-helper run 36090476287, lease
tbx_01m3b9pajaywnna96w277tqy8f; control and routing-guard run 36090739242, leasetbx_01m3b9xca3hnem4ce1dq5wcjcd. Both executions verified the exact source hashes. Wrapper commands completed successfully; lease cleanup can make the supporting Actions lease run appear cancelled.OPENCLAW_VITEST_MAX_WORKERS=8; its currentcompact-small-6CI row passed 3/3, taking 238/231/236 s.compact-small-2CI row passed 3/3, taking 34/32/32 s.compact-small-8, passed 3/3, taking 105/106/106 s.OPENCLAW_NODE_TEST_PLAN_CONCURRENCY=1, andOPENCLAW_CI_TEST_RUNTIME_POLICY=bun-compatiblethroughci-run-node-test-shard.mts.One-worker
pnpm test <file> --maxWorkers=1cost: monitor 2 s wall / 1.31 s wrapper, PR control 2 s wall / 1.60 s wrapper. These frozen runs used Node 24.19.0 and the pinned lockfile. The earlier checkpoint's standalone 20-run proof for unchanged planning, Android, and release-routing behavior was reused; the integrated helper sweep and affected shard replays were refreshed. Final-parent dependency/runtime checks are reported separately rather than treating this pinned evidence as proof of different inputs.node scripts/check-changed.mjs, workflow sanity, targeted type-aware lint, formatting, andgit diff --checkpassed. After the conflicting routing assertion was corrected, its exact test and formatting passed, the full importer sweep and routing row were repeated, and the routing correction was verified by the refreshed sweep. The earlier branch-mode review covered committed changes but excluded staged integration edits; it is not claimed as full integration review. Before the final consumer commit, the complete staged candidate against producer697af3978ecabaaad072fa4fad13352fc8b7de1b, with complete workflow and producer-source evidence, received a P2 scoped-clean local-mode review with no findings across all three passes. The frozen checkpoint's normal hooks passed and its tree exactly matches the remote proof. No assertions, timeouts, required checks, or auto-merge conditions were weakened.Historical red jobs, run 35893809952 attempt 2:
checks-node-compact-small-38, job 107323160443, failedopenai-image-auth-docker-client.test.tswhen the oversized-body request encounteredUND_ERR_SOCKET/ "other side closed" after about 90 s.checks-windows-node-test-5, job 107323155792, failedagent-tools.read.windows.test.tswith PowerShellspawnSync ETIMEDOUTduring its 10 s startup/Out-File fixture. Both failures are outside this PR's changed owner. Their historical root causes remain unproven; no owning fix or successful replay is claimed, and no rerun was issued for them. At comparison time, main hourly run 36081177285 had no failed jobs and 36087033303 was pending. The refreshed source receives fresh CI.Refreshed producer integration
Consumer candidate
10b259d603433b132d8be53a8fd2db7b10916d40has exact proven tree0e4b98e11a97da2828da04ea9cb8ce417594a260. Its consumer-only patch applies cleanly to producer697af3978ecabaaad072fa4fad13352fc8b7de1bon main18ce5c82559a2b83f4aec5af0e4adc5035b3c13d. Its stable patch identity exactly matches the frozen consumer checkpoint. The producer script, producer test, and completecheck-planjob remain unchanged. The new lockfile was installed independently; local runtime was Node 24.21.0 with pnpm 12.4.2. Full changed-file checks, workflow sanity, formatting, and diff checks passed. Full staged local-mode P2 review, including producer source and complete workflow evidence, completed with no findings across all three passes.The new-parent 17-file integration run completed once: 1,643 tests passed, 14 skipped, one failed in 953.00 s. Its only failure is a pre-existing main-owned static assertion in
package-acceptance-workflow.test.ts:9323: the test expectsenv -u OPENCLAW_GATEWAY_TOKEN -u OPENCLAW_GATEWAY_PASSWORD openclaw, while main commit8fd584f8abf96489858ac6edcb183f6541c13629insertsOPENCLAW_GATEWAY_STARTUP_TRACE=1beforeopenclaw gatewayinscripts/e2e/lib/upgrade-survivor/run.sh. Bothenv -uoperations remain present. Those files are unchanged by the consumer and match its main parent. The failure was handed to its main owner without changing this PR or retrying the failing file.The repository's actual logical runner profile is
hybrid. Its current monitor/control/guard rows changed membership, so their row proof is refreshed on the final candidate instead of treating old row labels as equivalent. The proof explicitly selected Node 24.21. Its runtime precondition initially stopped the hydrated Node 24.19 shell before any test; the existingensure-node.showner selected 24.21, after which source/dependency/runtime assertions passed. Both versions satisfy the package engines contract: 24.19 was not an invalid product environment. The observed real CI job 107951002711 used Node 24.19.0, despite its declaredNODE_VERSION=24.21.0. These Testbox runs establish compatible-runtime coverage on 24.21; they do not establish the observed runtime of fresh CI. Frozen 24.19 proof, new-parent 24.21 proof, and subsequent exact-head CI remain separate evidence.Final hybrid row proof: the exact candidate tree
0e4b98e11a97da2828da04ea9cb8ce417594a260passed all three repetitions of each selected CI row on Node 24.21.0, with the actual ordered file groups, tooling configs, two-worker group policy, and plan concurrency of one:compact-small-5compact-small-6compact-small-8Blacksmith Testbox evidence: monitor run 36097317407, lease
tbx_01m3bfe7tjs3es0hjefqxdk4cc; control/guard run 36097355725, leasetbx_01m3bff7scf2grb40nhzk7p105. Every command checked source, lockfile, and runtime identity before proof. No row contained the known failing Package Acceptance file, so its failure was not repeated.The candidate commit passed normal hooks with the verified maintainer identity. Both proof leases were stopped after their logs were downloaded. Publication of that checkpoint was held until the producer merged and the consumer could be mechanically rebased onto its actual main parent.
The stale Package Acceptance assertion above is now repaired on main by
98313da6cab4b5f0477b6acd2dfaf0592ba7e8c3(#157902): the existing child-process test checks that neither inherited credential reaches the launched gateway. The final-parent integration will consume that landed owner repair. No duplicate assertion patch is published.Reviewed consumer checkpoint
Consumer
4639cace72d8cb86f779c9cd2fa31bcf1ec8a623is based on immutable producered0bfb627e74e475151fc9f62d620cc5bad126ca(producer tree2d4ae85647ba9e839e24cc42022ab524eb463046). The consumer tree6d58ed01d5c43598a70affb2319b4cb8b3506ac8exactly matches the source verified on both Testboxes. The producer script, producer tests, and complete planner job are unchanged. The monitor, control tests, and extracted manifest helper remain byte-identical to the previously proved consumer.The integration preserves the incoming policy-watch fix and the release publisher's
releasePublishRunIdevaluator input. The release-routing test combines upstream approval/credentialed-publishing/preview expectations with CS2's explicit assertions that the PR-only monitor is not admitted on non-PR runs. The prior Package Acceptance shell-string failure is resolved by its upstream owner:98313da6verifies both inherited credentials at the actual child-launch boundary.All 17 helper-importing test files present in this immutable checkpoint, plus the release-evidence sibling, passed: 18 files, 1,726 tests, 160.79 s through the repository wrapper using their owned CI configs.
full-release-validation-nightly.test.ts, present in a later main snapshot, is absent from this checkpoint and is not claimed as tested here; it needs its own integration proof if it enters the final parent.The combined release-routing file passed 20/20 standalone runs, 46 tests per run, with
OPENCLAW_VITEST_MAX_WORKERS=8. Its one-workerpnpm test <file> --maxWorkers=1cost was 3 s wall / 2.05 s wrapper. Existing source-identical monitor/control 20-run proof is retained.compact-small-5compact-small-3compact-small-9The control row moved from
compact-small-6tocompact-small-7, but its ordered files, configs, environment, and concurrency are identical; only inventory/timing identifiers changed. Its previous 3/3 proof is reused explicitly, and the current helper sweep exercises its tests with the integrated helper.These new runs selected and verified Node 24.19.0, matching the previously observed CI runtime. Earlier Node 24.21 proof remains compatible-runtime evidence; neither is substituted for later exact-head CI. All row replays use the actual group configs, two-worker policy, plan concurrency one, and
bun-compatibleruntime policy through the repository shard executor. Evidence: monitor Testbox run 36103201279, leasetbx_01m3bm4w9v5svdzzpn22pc7xzh; helper/release/guard Testbox run 36103202126, leasetbx_01m3bm4x3eyecrvbyg2y9405kr.Full changed-file checks, workflow sanity, formatting, diff checks, and the complete staged P2 local-mode review passed. All three review passes reported no findings. The normal commit hooks passed, the worktree is clean, and both proof leases are stopped after downloading their logs. No required check, assertion, timeout, or auto-merge condition was weakened. Publication and any mechanical rebase to the actual producer squash remain separate steps.
Mechanical integration with the published producer
Consumer
c4d36628c90f0d5de259b633f99db9267c93eb92, tree6751d1a555f4b93ccbf7c405488fe94bff1364e2, is privately rebased onto published producer4425e490bd1a3f612b4a36d68058a335614dbda8. All 16 consumer-touched files are byte-identical to reviewed checkpoint4639cace72d8cb86f779c9cd2fa31bcf1ec8a623; the stable patch identity is unchanged. Producer script/test/job, lockfile, workspace configuration, and shared/tooling Vitest configuration also match the earlier proof. The inherited packing fix changes the GitHub push path while preserving the hybrid/PR path. Existing review, standalone stress, row proof, and unchanged importer coverage are retained rather than repeated for ancestry or inventory changes.The sole new shared-helper importer,
full-release-validation-nightly.test.ts, passed all six cases on native Blacksmith Testbox, undertest/vitest/vitest.tooling.config.tswith two workers and observed Node 24.19.0. Vitest duration was 1.28 s. This test mocks workflow dispatch; it did not launch Full Release Validation. Source and helper hashes were checked before execution. Evidence: run 36110559239, leasetbx_01m3bs8kexarvaz5fzk0bzfbdx, wrapper exit 0. The one-shot lease stopped successfully. A subsequent external portal synchronization warning did not change the completed command result.Current coverage is 18 helper importers plus the release-evidence sibling: the prior exact-input sweep passed 1,726 tests across 18 files, and the newly present nightly importer adds six passing tests. These are explicitly separate runs, not a claimed single combined sweep. Final test-root typechecking, formatter, and diff checks passed. The worktree is clean; no source edit, dependency reinstall, additional stress run, or repeated shard run was needed for this mechanical rebase.
That checkpoint remained private pending the producer merge. The verified actual-squash integration is recorded below; ancestry alone does not invalidate the retained proof.
Actual producer squash integration
Published consumer
17882761db6697c3b2f14c84e5e21c7c07ed3411, tree40f6a09146611ee49ca3f090253c0c18689f9ebc, is based directly on merged producerabde4d463ded7312cb53ecca9b0ab436166c6cb7. The squash was fetched into a private ref without changing remote-tracking refs orFETCH_HEAD. The transplant was conflict-free.All 16 consumer-touched files, all 18 helper-importing tests plus the release-evidence sibling, producer script/test/job, nightly workflow inputs, and shared/tooling Vitest configuration remain byte-identical to the corresponding recorded proof inputs. The stable consumer patch identity remains
426cc449ef0faacbe4127f23bb6e770823dcd964. Existing P2 review, stress, row, all-importer, and six-case nightly evidence is therefore retained explicitly; no test was repeated for ancestry alone.The actual squash also carries unrelated main changes. Its moved lockfile only replaces the Lit analyzers' private classic TypeScript 5.2.2 with 5.9.3; all lockfile importers are unchanged. The owned checkout was reconciled with the frozen lockfile. Both analyzer resolvers now select 5.9.3, while the consumer toolchain remains TypeScript 7.0.2, Vitest 5.0.1, and YAML 2.9.1. Added database/Gateway routing entries are outside the tooling targets and do not change this helper proof's config or admission. The package script change only renames the iOS review-notes input.
Prior-head fixture failure and live cancellation
Job
107997263696,checks-node-compact-small-5, failed ten cases insrc/scripts/ci-changed-scope.test.ts:920withERR_MODULE_NOT_FOUNDforscripts/lib/ci-native-generated-scope.mjs. This PR imports that dependency-free module from the real scope CLI, but the zero-install test fixture’s explicit copy list still contains only the old files. The other 111 cases passed. All ten workload annotations identify that same missing module. This is a PR fixture integration defect, not a new main regression; the earlier workflow-helper sweep did not cover this separate CLI copy fixture. The repair adds the missing fixture file while retaining its no-node_modules, real-process, and output assertions. No rerun, timeout increase, or assertion change is used.The same run exercised the completed producer/consumer cancellation contract. Planner
107996452317successfully published the unique same-run/attempt markerCI check job count v1: 17; preflight supplied 70 total jobs and a 20-job provisional check reservation. Monitor107996452366recordedfailure-cancelledat 08:19:40 UTC and 32 jobs were cancelled across families. Gate107998602557receivedFAILURE_JOB_ID=107997263696andFAILURE_JOB_NAME=checks-node-compact-small-5, executed its failure-summary step, and remained red. Selected-lane verification also rejected the failed/cancelled families. The completed run has 35 successful, 15 skipped, 32 cancelled, and two failed jobs (the owner row and aggregate). Both failed jobs’ annotations and all relevant logs were inspected. No manual cancellation or rerun was issued.Zero-install fixture repair after fresh CI
Fresh CI run 36111583823 at
17882761db6697c3b2f14c84e5e21c7c07ed3411exposed a PR-caused fixture integration defect inchecks-node-compact-small-5, job 107997263696. The realci-changed-scope.mjsimports the extractedci-native-generated-scope.mjs, but its zero-install test fixture copied only the previous module closure. All ten zero-install cases failed withERR_MODULE_NOT_FOUNDbefore the CLI could emit its decisions. This was not a new-main regression or a hosted flake.Commit
4c0725ed924697d6ebccbe34edfc5105099a9ab4, tree6caeda1538b18ba82de3aa073701fee701706f90, adds exactly one explicit fixture copy-list entry. The new module has no imports. No production or shared-helper module changed, and the existing node_modules-absence, actual Node CLI execution, and full output assertions are preserved.Native Blacksmith Testbox reproduced the full file before editing: 10 failed / 111 passed, 121 total. After repair, the full 121-case file passed 20/20 runs at worker ceiling eight—0/20 failing runs, 2,420 passing case executions. The exact failed CI row, decoded from the saved job's
GROUPS_GZIPvalue, passed 3/3 with its original ordered groups, tooling configs, two-worker policy, concurrency one, andbun-compatibleexecutor policy; replay walls were 191 / 133 / 124 s. Scope owner/siblings passed 7 files / 297 tests. Proof observed Node 24.19.0 and verified the exact source hashes.One-worker
pnpm test src/scripts/ci-changed-scope.test.ts --maxWorkers=1cost: 21 s wall / 20.01 s wrapper. The target's wrapper times within the three captured-row replays were 7.76 / 7.14 / 8.61 s. Fresh full-run CI timings remain separate from this Testbox proof.Evidence: before/stress/sibling Testbox run 36112773712, lease
tbx_01m3btnfzndgtexdkxqqsav0pc; captured-row Testbox run 36113240357, leasetbx_01m3btyx0p306t54ktxrtmb7p1. Both command outcomes and source hashes are recorded; the leases are stopped after log download. Full scopedcheck-changed, type-aware lint, formatting, diff checks, and fresh P2 scoped-clean review passed. The normal commit hooks passed. Existing source-identical workflow-helper and monitor/control proof is reused.The failed fresh run also exercised the intended fail-fast behavior: monitor job 107996452366 read preflight reservation 70, check reservation 20, and successful planner count 17, giving final expected count 67. It recorded the failed row before its single cancellation request at 08:19:40Z, and 32 jobs were cancelled. Gate 107998602557 executed its red failure-reporting step with
FAILURE_JOB_NAME=checks-node-compact-small-5andFAILURE_JOB_ID=107997263696. No GitHub rerun was issued to hide the defect; the repaired commit receives fresh CI.Scheduled-main integration after the green CS2 run
Rebased CS2 onto
1ae730f6750bfc841d2444fa61111f93d0662dea, integrating #157751's direct hourly schedule onci.yml. Published head:fd265321c03b3e15738c86ca872677e0f8092f5a. Its tree is exactly the reviewed and final-row-tested tree5cbb69c2b548b9e6872ef988e5a1671347ded662. The two commits aree368636a5a1ab5c1f1919e112dacae152f4ef757andfd265321c03b3e15738c86ca872677e0f8092f5a; the worktree is clean.The aggregate gate now prefixes the entire existing CS2 condition with upstream canonical scheduled-main admission. PR-only cancellation, the single
actions: writejob, attempt-scoped failure reporting, named red aggregate, retry behavior, and GitHub runner override are preserved. The extracted manifest fixture remains the sole owner; its only upstream interface addition iseventName: "schedule". Upstream scheduled planning, exact-checkout diff-base behavior, and evaluated guard tables remain intact.The new hourly runner/cache parity loop incorrectly tried to evaluate the PR-only monitor's runner expression on main, whose context has no PR head. The unadapted full file failed 5 of 21 cases in one observed baseline run. The repair first evaluates the real monitor admission expression and asserts it is false for both schedule and push, then skips only that inadmissible job's placement comparison. All other parity assertions remain. Mechanical inherited lint cleanup adds braces, folds a constant string, and renames one shadowed tuple binding; it changes no assertions or budgets.
Proof:
tbx_01m3bxe3q0mfv2ge6rch358pat: all 18 shared-helper importers plus the release-evidence sibling passed, 19 files / 1,741 tests. The ordinary wrapper usedvitest.unit-fast-isolated.config.ts(2 files / 38 tests) andvitest.tooling.config.ts(17 files / 1,703 tests), finishing in 188.72 s.OPENCLAW_VITEST_MAX_WORKERS=8.pnpm test test/scripts/ci-hourly.test.ts --maxWorkers=1took 3 s wall / 2.51 s wrapper / 1.42 s Vitest. This frozen proof preceded only the mechanical lint cleanup; the helper and assertion behavior are identical. Final local focused proof passed all 21 hourly cases plus the affected guard-table case.tbx_01m3bxe35p66bfjg9hr8ezym66: final tree passed the actual generatedchecks-node-changedrow three times (4 files / 43 tests each; 20, 21, and 20 s). Targets were changed-path-facts, changed-lanes-generated-extension-lint, ci-workflow-native-generated, and ci-hourly. The real shard executor retained the automatic two-worker policy,bun-compatibleruntime routing, and blank matrix concurrency. It used the repository's checksum-pinned Bun action after verifying Linux/X64; both archive and binary checksums passed. Node was 24.19.0; Bun reported1.4.3-canary.1+ddfce5d01from public commitddfce5d01f6a436203a8f41fc8bff074f9b09614. The final guard-table case also passed on this Testbox.node scripts/check-changed.mjspassed completely, including formatting, all selected type lanes, type-aware lint, dead exports, and boundary guards. Workflow sanity andgit diff --checkpassed. Fresh full-candidate local-mode independent autoreview against the pinned base returnedscoped-clean, zero P0–P2 findings across both passes.36114665302and the earlier live red gate correctly naming originating job107997263696in run36111583823. Rebase ancestry and row labels do not invalidate that behavior proof.Two preliminary row attempts failed before any tests: the lease lacked Bun, then the copied Actions setup step lacked Actions-provided runner environment values. Supplying verified Linux/X64 and a task-owned temporary directory to the unchanged pinned installer fixed provisioning. These are setup failures, not flaky tests or rerun-for-green evidence. Bun emitted a directory-mismatch diagnostic after passing tests; every file and row exited 0. No test, timeout, wait budget, auto-merge condition, or runtime policy was weakened.
The helper/standalone lease is linked by its exact lease ID in hydration run 36117205584. Final row logs and source receipts were downloaded before cleanup; both proof leases are stopped.
Prior green CI also verified all 121 scope cases in job
108007387374; the test file reported 0.726 seconds, separate from setup/transform/job wall time. Monitor108006387128ended withPR failure monitor: completed, validating healthy completion after the successful planner count.Final monitor job
108019632274ended withPR failure monitor: completedat 09:43:42 UTC. The aggregate gate passed. Together with the earlier observed cross-family cancellation and named red gate, this verifies both healthy completion and failure reporting through live CI.