Skip to content

fix(ci): scope narrow PR checks to their inputs - #157740

Merged
steipete merged 3 commits into
mainfrom
ci-burden/cs1c-final
Sep 25, 2026
Merged

steipete merged 3 commits into
mainfrom
ci-burden/cs1c-final

Conversation

@steipete

@steipete steipete commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Merged as abde4d463ded7312cb53ecca9b0ab436166c6cb7 from reviewed head 4425e490bd1a3f612b4a36d68058a335614dbda8. CI run 36109206280, attempt 1, passed, and GitHub completed the existing auto-merge on September 25 at 08:02:53 UTC. No prior failed run was rerun.

Related: #156729

What Problem This Solves

Narrow pull requests still start lint, compiler, guard, contract, and artifact jobs that do not consume their changes.

User Impact

PR check families follow their inputs. Main, ordinary manual validation, and broad fallbacks retain their existing coverage. There is no runtime product change.

Both budget targets remain unmet: the fixed narrow sample has a 123-job median, and its retained Node component alone models 2,855.23 vCPU-minutes. A resolved import graph can still reach thousands of tests. No net or billed savings are established.

Why This Change Was Made

Dependency-free preflight selects family owners. A required hosted check-planning job uses the installed compiler to select every consuming type graph and uses the existing lint owner to select complete touched workspace packages. Execution rows keep their runner and worker policies. Config, ambient, deleted, and unknown inputs retain conservative compiler fallbacks; Markdown and UI styles do not broaden an otherwise targeted compiler plan.

Artifact builds follow selected dist consumers. Source boundary and channel tests retain coverage without requiring a build; channel files share their canonical one-worker process. Guards retain generated native inputs, while plugin contracts retain SDK documentation and packaged skills. Narrow code PRs run coercion checks once through guards.

Repeated selector queries reuse an already-complete import graph after validating its options and file inventory. Four full-checkout integration scenarios move intact to the existing release tier; direct edits still select them on PRs, and a fast process-owner representative remains in the ordinary suite.

Evidence

Both targets remain unmet: median ≤40 jobs and ≤1,500 modeled vCPU-min. No net or billed savings are established.

Matched replay: base 7435149323e9 versus staged candidate c96e04e796ee; all 40 original PRs and the fixed narrow 34 retained. Commit 65f2fed contains that exact staged tree; the replay ledger preserves its original pre-commit execution identity.

Corpus Median jobs before → after Median Node rows before → after Priced-both component, modeled vCPU-min before → after
Original narrow 34 122.5 → 123 87 → 89 3,060.87 → 3,060.87
All 40 126.5 → 125 88 → 90 3,550.30 → 3,550.30

Across the narrow 34, total selected jobs fall from 3,408 to 3,324 (-84). Conditional families remove 155 rows, offset by 32 planner rows and 39 source-test rows. The median still rises slightly: retained runtime import closures remain broad, and removing shared artifact execution introduces explicit source-test jobs plus the installed planner. Aggregate reductions and the median describe different parts of this distribution.

Family across narrow 34 Before After Change
Build artifacts 24 1 -23
Additional guard/contract checks 160 143 -17
Hosted core lint 91 84 -7
Hosted extension lint 138 80 -58
Installed check planner 0 32 +32
Central checks 224 203 -21
Channel contracts 32 30 -2
Fast checks 128 103 -25
Plugin contracts 32 30 -2
Node source-test jobs 2144 2183 +39

The priced-both column contains only retained work calibrated in both phases; it is unchanged. Moved or unpriced work is excluded, so it is not a complete cost estimate. No runner-routing savings are credited. Positive-cost unknowns remain in 29/34 narrow cases and 35/40 overall.
32 historical requests use explicit replay-only full-type projections because historical native compiler inputs are unqualified. These counts are not exact native type plans or guaranteed cost upper bounds. The exactly retained Node component alone is 2,855.23 modeled vCPU-min at the narrow median (2,101 qualified occurrences); this is not a measured runtime or billing floor.
Historical coverage: 78/83 test observations selected; the same five explained omissions, zero unexplained. Separate 48 failed jobs plus one cancellation: zero coverage gaps. Main execution preserved: 100 jobs / 63 Node rows in both phases.

Full changed-file checks, workflow validation, formatting, and documentation links pass. The installed planner passed a cold invocation using an actual 13-path replay input, selecting six check rows, five core type rows, two core lint rows, and three extension lint rows. Both required global guards passed.

Local selector proof passed 279 ordinary cases, four retained integration scenarios, 32 family/compiler cases, and five workflow-wiring cases. The ordinary file took 712.27 seconds before and 399.45 seconds after on the same shared Mac; four scenarios moved to the release tier, so this is a qualified PR-suite comparison. A separate repeated-query probe reduced warm Git scans from three to zero while preserving consumer results and the newly tracked importer fallback.

The five unchanged historical omissions
Historical observation Qualification
changed-lanes, run 35534507716 / job 106141139433 Failing read-set unchanged; owner fix 017146c predates the base.
crabbox-staging, run 35563422224 / job 106220808164 All 220 consumed input pairs unchanged; fixture/shim repair 7205715 predates the base. No historical native stack proves the timeout mechanism.
lint-suppressions, run 35687223887 / job 106616886990 Changed UI files add no directives; 402 marker-bearing blobs unchanged; owner fix 44559eb predates the base.
mobile-release-authority, run 35687223887 / job 106616886964 Startup fixture inputs unchanged; FIFO-readiness fix b4f1fec predates the base. Historical scheduling was not reproduced.
pr-worktree-provision, run 35694312635 / job 106638081388 Existing named release-tier deferral from 1271c0a is unchanged in both phases.

Native proof used the same source tree as commit 65f2fed: 200/200 standalone repetitions, 30/30 complete canonical CI-group executions, and verified raw passed-file evidence for all 32 shared-helper importers. The groups retain their native configuration, complete file inventory, worker ceilings, and inherited parent concurrency. The 54-file source-channel proof passed without root dist. The installed planner passed in 73.76 seconds on Linux (4 actual CPUs, 16.6 GB RAM, Node 24.19.0); all nine outputs matched Mac byte-for-byte.

Raw-log retention limitation: both original standalone provisioning jobs were cancelled after the successful runs completed; the cancellation cause is unconfirmed. All 200 command/exit/timing/hash receipts and both completion markers remain, but only 63 of 212 standalone-command raw logs were retained and verified. No passing repetitions were rerun to recreate logs. Group, channel, planner, and exact-cost logs are fully retained and verified.

The following are exact pnpm test --maxWorkers=1 command walls on Testbox, excluding provisioning. They are not GitHub CI job durations. The longer files exercise canonical inventory, source routing, or executable workflow boundaries; isolated fixtures alone would not verify those shipped combinations. The four whole-checkout selector compositions now retain their assertions in the release tier.

Test file Seconds
test/scripts/ci-changed-build-selection.test.ts 42.62
test/scripts/ci-changed-lint.test.ts 10.13
test/scripts/ci-changed-node-test-plan.integration.test.ts 107.57
test/scripts/ci-changed-node-test-plan.test.ts 183.26
test/scripts/ci-changed-type-graphs.test.ts 1.30
test/scripts/ci-check-family-scope.test.ts 1.33
test/scripts/ci-npm-lock-admission.test.ts 1.93
test/scripts/ci-workflow-guards.test.ts 70.68
test/scripts/ci-workflow-planning.test.ts 107.49
test/scripts/plugin-prerelease-test-plan.test.ts 24.25

Independent P2 branch review completed with no actionable findings. The Testboxes for that original proof campaign were stopped.

GitHub CI: run 36075684694, attempt 1 at head 65f2fed1363f, was deferred by release priority: only security-fast ran. The authorized full rerun (attempt 2) subsequently exposed the missing release-evidence dependency repaired below. It also hit a first-sighting hosted timeout in the unchanged guest-question UI test (job 107897228748); the same test passed in main run 36068250349, job 107880604061, in 12.364 seconds. No separate rerun was issued for that timeout: the source repair gets fresh CI. Auto-merge remains armed, with all required conditions retained.

Historical failure accounting describes selection against the same fixed sample, not rerunning those historical failures. Modeled costs are not measured billing savings. No runner-routing savings are attributed to this change.

CI repair and proof (September 24)

The next CI run 36085424085, head c2fe0002f92b483a66af7a7e8f424f12024c6c36, passed the repaired seal guard and exposed two main-owned fixture-placement failures: job 107920157386 found 80 production suppressions instead of 79; job 107920160319 found 11 production GatewayClient callsites instead of 10. Both named src/gateway/server.config-rpc-gateway.test-support.ts, introduced by the landed config-patch fixture extraction. Aggregate job 107922355853 correctly failed. These deterministic failures were not rerun.

Run 36075684694, attempt 2, job 107898033461 failed the existing release-child evidence dependency guard: the new check-plan workload was missing from seal_release_child_evidence.needs. Commit c2fe0002f92b483a66af7a7e8f424f12024c6c36 adds that dependency in the workflow owner. The existing test and all gate conditions remain unchanged.

Blacksmith Testbox (hydration run) verified source 65f2fed1363f0f2ce0351e746615bb9267ddfd65 and the one-line repair. The unchanged regression failed before the repair (1/1 Testbox run, also reproduced locally), then passed 20/20 standalone runs with OPENCLAW_VITEST_MAX_WORKERS=8 (2–3 seconds each). The original compact-small-40 85-file plan passed 3/3 complete replays in 370, 326, and 320 seconds, preserving both CI groups and their worker policies; each replay passed 3,034 assertions with 125 existing skips. Four owner/sibling files passed another 827 tests. node scripts/check-changed.mjs -- .github/workflows/ci.yml, workflow sanity (actionlint, zizmor, CI Git owner and composite-action guards), oxfmt --check, and git diff --check passed. The Testbox command exited 0; the owned lease was stopped afterward.

The fresh independent review returned one P2 finding about dropping the SDK API-diff report. That finding was rejected after source verification: narrowing is admitted only for pull_request (ci.yml:1681), whereas that report is deliberately generated only for workflow_dispatch (ci.yml:2176); its existing owning planning tests also passed. No accepted actionable finding remains; the raw review result is retained as a finding, not relabeled as a clean tool verdict.

Planner count publication

The late check planner now publishes check_job_count as the exact number of admitted rows across its four check families. Retained lint templates on disabled runner profiles do not inflate it. A final normal-success step exposes the bounded value as CI check job count v1: N through existing Jobs API metadata, allowing the coordinated failure observer to remain concurrent with planning. No job, permission, artifact, or job-level output was added.

New regression coverage executes the real planner step and compares its count with the actual workflow consumers for Blacksmith, GitHub, and hybrid profiles, including retained-but-disabled templates, hosted compiler placement, zero rows, success-only marker semantics, and the existing 400-job observation bound. The original producer failed all seven cases. On Blacksmith Testbox tbx_01m3b78p6kccnajtfeb2wysadd (hydration run), the candidate passed 20/20 standalone runs with eight workers, then 3/3 complete canonical compact-small-43 replays (89 files; 380, 364, and 357 seconds), including existing planning/evidence siblings. pnpm test test/scripts/ci-check-plan.test.ts --maxWorkers=1 took 2.01 seconds wall time. Full changed checks (scripts/test-root types, dead exports, lint and guards), workflow sanity, formatting, and diff checks passed; fresh P2 review was scoped-clean. Testbox command exited 0 and its lease was stopped. The original seal repair and R4 routing proof remain unchanged.

Main-owned fixture guard repair

Main commit 818b0092d2ee65080b53a57e8949b0f8b4e03ff9 by @joshavant moves the Vitest-only config RPC fixture to test/helpers/gateway/config-rpc-gateway.ts, updates its sole importer and preserves its resolved dependencies. This branch incorporates that existing owner repair. Neither production guard, suppression baseline, nor constructor allowlist was changed. Current-main Testbox proof on that exact commit passed both unchanged guards (4 suppression cases and 1 constructor inventory) and all 81 cases in the sole config-patch importer under its native gateway-server CI config, with its existing two-worker policy (102.32 seconds). Source hashes and the importer inventory were verified. The hydrated runtime was Node 24.19.0; proof run 36090871901 exited successfully.

Final rebased integration

Final integration rebases onto main 818b0092d2ee65080b53a57e8949b0f8b4e03ff9, including the landed Gateway test-fixture ownership correction. The producer and seal commits are patch-identical; the selector integrates the upstream compiler-cache checks without a manual conflict. R4 routing and the exact count marker remain intact.

The new main lockfile was installed into this task’s own checkout, preserving the other lane’s active dependencies. Under Node 24.21 and the updated shared worker setup, producer/seal/workflow-planning coverage passed 473 tests across three files in 169.66 seconds. Scoped changed checks (including full scripts and test-root types, dead exports and lint), workflow sanity, formatting, and diff checks passed. The earlier full Testbox 20×/3× evidence and clean P2 review are retained for the unchanged producer/seal patches; no unnecessary stress repetition was added for this rebase.

Published head: 018ecfe507e4e9c4d13f1954e8165c4292aca404. Fresh exact-head CI: run 36091036438, attempt 1. Auto-merge remains armed with the existing required checks.

Refreshed CI failure accounting

Run 36091036438 at 018ecfe507e4e9c4d13f1954e8165c4292aca404 completed with seven failed workload jobs; all annotations and failed job logs were inspected once. No rerun was issued.

Job Evidence and owner
107933495387, runtime topology/architecture The existing raw-SQL marker at src/state/user-profiles-schema.ts:107 was attached to the multiline call's closing line, outside the checker's recognized marker positions. Current-main reproduction confirmed; canonical main fix af545bf3b6add3f90825e1532bfeac884a4a3c0c moves that same comment above the call. The landed file is byte-identical to the independently reviewed/Testbox-proven repair.
107934017894, compact-small-40 Test-plan native-owner ordering and bundle-count fixture assumptions. Main fix cb3e6df656769034268df9331fcde9f21d19946f repairs both.
107934017909, compact-small-44 Missing plugin-instance-disposal.ts in wrapper inventory is repaired by cb3e6df65676; separately, the archive-worker bundle includes writable database lifecycle through the shared archive query kernel. The latter reproduced on current main and is repaired by a759f770a9dbe876c915311dfe2e349192de157c, which uses the existing low-level query factory without importing writable lifecycle code.
107934017943, compact-large-11 The real Gateway loopback/LAN proof ran in the fast threaded/Bun owner without the required host broker. The same failure appears in main hourly 36087033303, job 107933689250; current-main reproduction confirmed. Native routing landed in 63d299c31b06150cc5fbff90c3b8123290608e13; 18ce5c82559a2b83f4aec5af0e4adc5035b3c13d preserves its prior watch-owner admission.
107934017990, compact-large-14 The maintenance fixture dropped authorization columns while retaining their index. Main fix cb3e6df65676 restores the correct old-schema fixture; main hourly 36087033303, job 107933689156, has the same failure.
107934018091, compact-small-1 The Discord seed in server.config-patch.test.ts persisted but returned a failed active-Gateway application receipt before the numeric-record-key assertion. Cause remains unproven after bounded investigation: the unchanged exact row passed 81/81 in 134.57 seconds, and two logging-only diagnostic executions passed 81/81 in 110.84 and 111.21 seconds. The diagnostic edit was removed. Other tests’ teardown cancellation logs do not explain this seed. Newer main commit 71cc18ae186d5f73fcf243ed955fe237cbd40335 repairs wrapped stale-secret publication retries, but is not claimed as a proven fix for this sighting. No GitHub rerun or speculative repair was made.
107934020462, compact-large-30 Native Gateway owner list order differed from canonical watch/project selection. Main fix cb3e6df65676 restores canonical ordering.

Aggregate job 107936165173 correctly failed, naming check-additional-shard and checks-node-core-test-nondist-shard. Main hourly architecture job 107933127559 stopped earlier on two Madge cycles repaired by 818b0092d2ee; the refreshed PR run passed both cycle checks before reaching the raw-SQL marker issue. These receipts distinguish the successive main defects rather than treating every architecture failure as the same cause.

The schema-marker repair’s Testbox proof (run 36092314972) reproduced the original guard failure, then passed the complete architecture lane and all 41 schema/owner tests with the comment moved. Executable output is byte-identical. Fresh P2 review, exact-file type-aware lint with a rejecting canary, formatting, and diff checks passed. Full changed-file checking was intentionally stopped after production types and 5/25 consuming test graphs; the authorized typed-lint substitute was used, and the partial check is not claimed as passed. The canonical main repair landed independently before publication of this lane’s duplicate checkpoint.

All established deterministic failures from that run now have canonical main fixes, included in refreshed head 697af3978ecabaaad072fa4fad13352fc8b7de1b. Auto-merge stays armed; fresh CI accompanies this source update, and the old failed gate was not rerun.

Final main-repair proof

Archive repair a759f770a9db: existing bundled-worker regression failed on original main (1/1), then the full 43-case file passed 20/20 standalone runs at the eight-worker ceiling (17–21 seconds each), and the original complete 93-file CI row passed 3/3 with its existing two-worker/group-concurrency policy (305/235/251 seconds). All 54 archive worker/session/read/admission cases passed. Full production build and changed checks passed; P2 review was scoped-clean. Current-base bundle/owner checks passed again (97 tests), including a final check after SQLite read-only startup/snapshot changes. The production build emitted a non-fatal startup-JS budget diagnostic (160 bytes over its reported threshold); attribution remains unproven and no budget was changed.

Native loopback/watch ownership: the existing three real-network cases failed through the original threaded/Bun owner, then passed 20/20 in the canonical native owner. Its complete four-group CI row passed 3/3 (293/281/261 seconds; 2,882 tests and two existing skips). The full watch file passed 20/20 at the eight-worker ceiling, each with 1,660 tests: 16 completed samples on one Testbox and four on another. Completed logs were captured before cleanup; an in-progress sample was excluded and its wrapper’s intentional exit 130 is retained. All four direct registry/mapping importers ran in their canonical tooling or unit-fast configs. The final rebased Testbox passed three real-network cases, seven registry cases, and 1,766 watch/scoped cases. Watch-file one-worker wall was 68.87 seconds; the new regression itself took 116 ms. Full changed checks and fresh P2 review passed. The canonical native entry was already on main, so the published follow-up contains only the missing watch mapping and its regression.

Refreshed candidate after main repairs

Refreshed onto main 18ce5c82559a2b83f4aec5af0e4adc5035b3c13d, including the archive-worker repair a759f770a9dbe876c915311dfe2e349192de157c and completed Gateway loopback native/watch ownership repairs. Rebased head: 697af3978ecabaaad072fa4fad13352fc8b7de1b. Range-diff marks all three campaign commits unchanged; all 25 campaign files and the lockfile are byte-identical to the previously published head. The exact CI check job count v1 marker/count, check-plan seal dependency, and R4 routing remain intact.

Fresh Node 24.21 integration passed 478 producer/planning/evidence tests with two existing skips in 168.96 seconds, plus all 18 release-child seal cases. Workflow sanity, formatting, and diff checks passed. Dependencies were retained. Existing Testbox stress evidence and P2 review are reused for the unchanged patches; the earlier config-patch seed sighting remains an unproven mechanism rather than being attributed to these main repairs.

Remaining UI measurement sighting

Prior-head run 36096855866 completed all 186 jobs. Workload job 107951002711, UI E2E 8/9 (actual Vitest 8/8, three workers), failed only chat-composer-input-measurement.e2e.test.ts: ordinary typing recorded three transcript scrollHeight reads where the existing assertion requires zero. Aggregate 107953887420 correctly named the failed UI family. The runner was self-hosted Blacksmith16.

The exact test passed on main 818b0092d2ee in run 36090933962, job 107943508536, in 1,924ms. Native weighted-shard placement and the saved successful log establish execution: the main test belongs to actual shard1/8, despite the failing PR using8/8. The overall inventories contain654 versus656 files, so equal job labels are not interchangeable proof. The failed merge’s UI tree equals its main parent’s UI tree; the direct measurement, composer-DOM, scrolling, and readiness owners are unchanged from the successful main run. An intervening Stop-control change is equivalent for this idle-typing branch; broader sidebar CSS changes were identified but not experimentally excluded.

A bounded local mocked-browser stack probe retained the zero-read assertion and frame sequence and passed with zero reads/no stacks (macOS, Node24.21, 1,697ms). It does not reproduce or prove a repair of the Linux failure. Two isolated Linux Testbox attempts failed before executing tests at the existing source-sync guards; no guard or timeout was widened. All owned attempts were stopped and joined, and the diagnostic-only edit was removed. No safe fixture/product repair or causal attribution was established, and no GitHub rerun has been issued for this sighting.

Current-main conflict resolution

GitHub reported unknown mergeability, but a native merge-tree check against main 1976a166443f43268becc80cc3fd79240c819996 established a real conflict in scripts/lib/ci-changed-node-test-plan.mts. The resolution preserves main's explicit policy-watch admission through tooling/runtime deferral and the campaign's built-TUI exclusion when artifacts are absent. Existing Gateway and upgrade-survivor watches remain selected. The workflow, release seal, and exact-count publication retain their previously proven campaign bytes.

The upstream policy watch exposed one incomplete synthetic build-selection fixture: its source tree omitted the now-required Gateway callsite guard, so the selector correctly returned a broad fallback. Adding the missing fixture file preserves every assertion. The original fixture failed one of four cases. The corrected complete file passed 20/20 standalone runs at OPENCLAW_VITEST_MAX_WORKERS=8; its exact one-worker pnpm test cost was 44.14 seconds. The actual 76-file hybrid compact-small-43 row passed 3/3 complete replays in 309.89/283.33/278.14 seconds, with 1,969 tests per replay. Its resource step selected job ceiling three on four CPUs, while both tooling groups retained their two-worker pins and plan concurrency one. All 34 direct shared-helper importers passed under their owning CI configs. The held Package Acceptance importer and the additional child-launch boundary test passed together in 121.63 seconds. Full changed-file checks passed in 313.85 seconds; formatting and diff checks passed. Proof used frozen tree 2d4ae85647ba9e839e24cc42022ab524eb463046 and Node 24.19.0. Original producer/seal stress proof is reused only for byte-identical source; the changed upstream selector inputs received fresh 282-case selector, 199-case planner, and four-case integration proof.

Main 98313da6cab4b5f0477b6acd2dfaf0592ba7e8c3 (#157902) also supersedes the independently prepared startup-string assertion repair. Its existing child-process test now seeds inherited token/password values and checks that neither reaches the launched Gateway. No duplicate main patch is published.

Fresh complete local-mode P2 review of the conflict resolution and one-line fixture repair is scoped-clean. The earlier rejected SDK API-diff finding remains recorded above; the later clean verdict follows the changed fixture, not a retry for a different review label.

The newer main hourly run 36098922114 at 98313da6 has different failures. UI job 107959967670 failed plugin-installation status visibility; main fix 14a1f931382ba542f8e8008b36354201ec1f73c0 preserves keyed cards through same-selection catalog refresh and covers the interrupted-refresh case. Native-i18n job 107959967428 found eight new Android keys missing from 21 locale artifacts; canonical automation repair f0eae1f598f20ab870945f187edad8066cb119da adds all 168 translations with preserved variables and matching generated resources, without changing validation. macOS job 107959967702 failed the initial jobs/ControlChannel readiness predicate in CronGatewayOwnershipTests, before its active-replacement scenario; the artifact does not identify which predicate failed, so mechanism remains unproven. These jobs were not rerun and do not establish a cause for the earlier typing-measurement sighting.

The normal three-commit rebase completed on main 1976a166443f43268becc80cc3fd79240c819996. Final head 8cf800b827fc609490d155afeef072708d07f3d3 has tree 2d4ae85647ba9e839e24cc42022ab524eb463046, exactly matching the reviewed and tested candidate; the final diff check passed. A fresh merge-tree check against current remote main is clean.

Conflict-integration Testbox runs: owner/importer/static proof 36101192775, 20-run fixture stress and one-worker cost 36102864444, and held owner tests plus three complete rows 36103113360. All 34 importer filenames were verified in the passed-file logs. All three owned proof leases are stopped.

Prior-head main fixture failure

Run 36104892880 at 8cf800b827fc passed all nine UI E2E jobs; no fix is inferred for the earlier typing-measurement sighting. Workload 107976085608, checks-node-compact-large-30, fails the two legacy-operator-state cases in test/scripts/upgrade-survivor-baseline-order.test.ts:149: baseline_version: unbound variable. Its shell fixture extracts production orchestration without defining that input. Main 379ca86a74ed5f2339ab634e24b78271ba8dfe04 added the corresponding restored-index version condition. The test and production script match main hourly head 878ee97ecda92e3394a1d0876ea0ff34dc0345a5 and the failed merge parent cb64558f80bcf053ee3f0bf87a60016aa789a287 byte-for-byte. Main repair 4fa09e93bc311eab23066418c073999c8b6675cb initializes the fixture baseline to the same 2026.8.1 used by the file’s migration fixture. Production, shared helpers, assertions, and budgets remain unchanged; no rerun was issued. Head 4425e490bd1a incorporates this repair.

The fixture defect reproduced on main with two failures and eight passes. The corrected full file passed 20/20 runs at the eight-worker ceiling (22–28 seconds, median 23), and the complete captured 42-file row passed 3/3 in 179/177/181 seconds: 1,604 passes and the same 73 existing skips each time. The config-recipe sibling passed 70 cases. Single-worker pnpm test cost was 22.29 seconds. Proof used Node 24.19.0; fresh P2 review, formatting, diff checks, and the authorized exact-file type-aware lint/rejecting-canary substitute passed. Full changed-file checking was not run for this one-line fixture repair. Standalone/baseline proof and complete-row proof. The secondary lease is stopped; the idle primary is handed to the focused producer refresh through the native freshness checks.

Run 36104892880 completed all 187 jobs: 170 succeeded, 15 were skipped, and the fixture workload plus aggregate 107979318296 failed. Aggregate annotations correctly report checks-node-core-test-nondist-shard failure. Both failed jobs’ annotations and logs were inspected.

Refresh after the main fixture repair

Rebased onto 4fa09e93bc311eab23066418c073999c8b6675cb; all three campaign commits are patch-identical in range-diff. Final tree is 260d2c98b5597483b96a77e443ecdfdf696c85d0. Incoming main also includes the hosted push-packing fix 921b1df671d5 (PR and hybrid predicates are unchanged) and compiler-input snapshot repair 505652e88d74. The prior P2 review and unchanged standalone/shard evidence are retained; the changed owning inputs received focused proof.

Eight tooling files passed 340 cases in 132.83 seconds: planner 201, compiler snapshot 39, artifact cache 43, worker cache 25 plus lifecycle 1, new nightly importer 6, planner count 7, and release seal 18. This covers the newly present 35th direct shared-helper importer. The earlier importer inventory is retained; the affected planner and compiler/cache inputs were rechecked above. Exact-file type-aware lint passed in 12.36 seconds, the core graph boundary passed in 67.52 seconds, and formatting/diff checks passed. The native freshness owner rejected the old Testbox base; that lease was stopped and the focused proof used a freshly admitted lease. The lockfile stayed unchanged and existing dependencies were retained.

Focused refresh proof: Testbox run 36108544409. Its command exited successfully, the 201 planner, 39 snapshot, and six nightly cases were verified in passed-file logs, and the lease is stopped.

Final CI also directly verified the repaired upgrade-survivor-baseline-order.test.ts: all ten cases passed in job 107989783413 (20.938 seconds). All nine UI E2E jobs passed; the earlier typing-measurement sighting remains an unproven mechanism rather than a claimed repair.

@clawsweeper

clawsweeper Bot commented Sep 25, 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.

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 3:53 AM ET / 07:53 UTC (Revision 9).

ClawSweeper review

What this changes

The branch makes pull-request CI choose check, lint, compiler, contract, test, and artifact jobs from changed inputs, with documentation and selector tests.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open. Related merged work scopes Node tests and preserves policy checks, but current main does not contain this check-family planner. Direct planning evidence is substantial; a hosted narrow-input run has not yet verified the scheduling path identified in the prior review.

Priority: P2
Reviewed head: 4425e490bd1a3f612b4a36d68058a335614dbda8

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The owner-level selectors and tests have useful evidence, while the changed narrow GitHub Actions path remains unverified.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Repository State identifies the author as a member, so the external-contributor proof gate does not apply. Testbox and replay evidence exercises planner selection with after-change outputs, but the exact-head hosted run skipped check-plan; integrated narrow scheduling remains a separate merge risk. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository State identifies the author as a member, so the external-contributor proof gate does not apply. Testbox and replay evidence exercises planner selection with after-change outputs, but the exact-head hosted run skipped check-plan; integrated narrow scheduling remains a separate merge risk. No stored-data contract changes.
Evidence reviewed 8 items Introduced workflow path: The introduced workflow adds check-plan as a prerequisite for selected check jobs and the required CI gate.
Planner output: The new planner computes the admitted check-row count and publishes selected matrices for workflow consumers.
Workflow and count coverage: Tests execute the planner step and compare its count with evaluated workflow consumers across runner profiles; this is supplemental to hosted scheduling proof.
Findings None None.
Security None None.

How this fits together

CI preflight reads a PR’s changed files and prepares job templates. For narrow changes, an installed planner refines those templates before GitHub Actions schedules checks and the required gate evaluates them.

flowchart LR
A[PR changed files] --> B[CI preflight]
B --> C{Narrow plan available?}
C -->|Yes| D[Installed check planner]
C -->|No| E[Full check plan]
D --> F[Scheduled check jobs]
E --> F
F --> G[Required CI gate]
Loading

Before merge

  • Resolve merge risk (P1) - A real narrow PR has not exercised check-plan through GitHub Actions, so a mismatch between emitted matrices, the Jobs API count marker, scheduled jobs, and the required gate could omit checks after merge.
  • Complete next step (P2) - Obtain a hosted narrow-input run showing check-plan output, scheduled jobs, the count marker, and the required-gate result before merge.
Agent review details

Security

None.

PR surface

Tests +1762, Docs +3, Config +181, Other +907. Total +2853 across 25 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 13 2066 304 +1762
Docs 1 5 2 +3
Config 1 252 71 +181
Generated 0 0 0 0
Other 10 952 45 +907
Total 25 3275 422 +2853

Review metrics

Metric Value Why it matters
Narrow PR job budget median 122.5 → 123 jobs; target ≤40 The PR reports fewer aggregate jobs, while its stated median budget remains unmet.
Workflow and test growth workflow/tooling +1,092 net lines; tests +1,758 net lines The new planner and input selectors explain the tooling growth, making integrated proof important before merge.

Merge-risk options

Maintainer options:

  1. Prove narrow hosted scheduling (recommended)
    Capture a hosted narrow-input run and compare its planner rows and count marker with the jobs that ran and the required-gate result.

Technical review

Best possible solution:

Keep conservative fallback for ambiguous inputs and verify one hosted narrow-input run through the planner, scheduled jobs, count marker, and required gate before enabling the new selection on main.

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

Not applicable: this PR improves CI selection rather than reporting a product bug. Its direct planner behavior has replay evidence, but the hosted narrow workflow has not run.

Is this the best way to solve the issue?

Unclear: the patch uses existing CI owners and retains conservative fallback, but the scheduling and gate integration needs a narrow hosted observation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3b0297c17e8c.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded CI efficiency improvement with no product-runtime change or established urgent regression.
  • merge-risk: 🚨 automation: The diff changes which PR checks GitHub Actions schedules, and the narrow hosted path remains unobserved.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository State identifies the author as a member, so the external-contributor proof gate does not apply. Testbox and replay evidence exercises planner selection with after-change outputs, but the exact-head hosted run skipped check-plan; integrated narrow scheduling remains a separate merge risk. No stored-data contract changes.

Evidence

What I checked:

  • Introduced workflow path: The introduced workflow adds check-plan as a prerequisite for selected check jobs and the required CI gate. (.github/workflows/ci.yml:4435, 4425e490bd1a)
  • Planner output: The new planner computes the admitted check-row count and publishes selected matrices for workflow consumers. (scripts/ci-check-plan.mts:123, 4425e490bd1a)
  • Workflow and count coverage: Tests execute the planner step and compare its count with evaluated workflow consumers across runner profiles; this is supplemental to hosted scheduling proof. (test/scripts/ci-check-plan.test.ts:87, 4425e490bd1a)
  • Current-main boundary: Fetched current main has the existing check jobs and gate, but no check-plan job or narrow-check outputs. (.github/workflows/ci.yml:4341, 3b0297c17e8c)
  • Exact-head hosted observation: In run 36109206280 at the reviewed head, check-plan was skipped and the required gate had not completed at inspection time. This broad tooling PR does not exercise narrow scheduling. (4425e490bd1a)
  • Prior review continuity: The completed review at 8cf800b827fc609490d155afeef072708d07f3d3 requested a hosted narrow-input run showing planner rows, scheduled jobs, the count marker, and gate outcome; the present head has not supplied that observation. (8cf800b827fc)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: 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.

  • Capture one hosted narrow-input run showing planner rows, actual scheduled jobs, the count marker, and the required-gate outcome.

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.

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-25T00:09:35.292Z sha 65f2fed :: blocked before merge. :: none
  • reviewed 2026-09-25T00:33:32.792Z sha 65f2fed :: blocked before merge. :: none
  • reviewed 2026-09-25T02:23:24.116Z sha c2fe0002f92b483a66af7a7e8f424f12024c6c36 :: blocked before merge. :: none
  • reviewed 2026-09-25T03:48:43.404Z sha 018ecfe :: blocked before merge. :: none
  • reviewed 2026-09-25T04:45:23.938Z sha 018ecfe :: blocked before merge. :: none
  • reviewed 2026-09-25T05:16:27.371Z sha 697af3978ecabaaad072fa4fad13352fc8b7de1b :: blocked before merge. :: none
  • reviewed 2026-09-25T07:02:36.054Z sha 8cf800b827fc609490d155afeef072708d07f3d3 :: blocked before merge. :: none
  • reviewed 2026-09-25T07:16:14.168Z sha 8cf800b827fc609490d155afeef072708d07f3d3 :: blocked before merge. :: none

@steipete
steipete enabled auto-merge (squash) September 25, 2026 00:15
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 25, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 25, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL labels Sep 25, 2026
@steipete
steipete force-pushed the ci-burden/cs1c-final branch 2 times, most recently from 018ecfe to 697af39 Compare September 25, 2026 05:01
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 25, 2026
@steipete
steipete force-pushed the ci-burden/cs1c-final branch from 697af39 to 8cf800b Compare September 25, 2026 06:52
Resolve compiler consumers and complete touched lint packages after dependency
setup, then feed the existing execution rows. Scope guard and contract families
to their inputs, retain source proof when dist is unnecessary, and keep main,
manual validation, and broad fallbacks unchanged.

Reuse admitted import graphs for repeated consumer queries. Keep four complete
checkout integration scenarios in the release tier while retaining direct-test
admission and a fast first-signin representative in the ordinary selector suite.
The new check-plan workload was missing from the release child receipt's
complete dependency set. The existing evidence guard detected the omission
in run 36075684694, job 107898033461.

Include check-plan in seal_release_child_evidence.needs so the receipt
retains its contract of waiting for every workload job before sealing.
Preflight retains lint and compiler templates that the dependency-aware
check planner can later shrink. A concurrent failure observer needs the
final admitted cardinality to recognize healthy completion.

Count those four check families at their planner owner and publish the
bounded count in a final successful step name. The existing Jobs API can
carry that fact without delaying observation behind the planner or adding
permissions, jobs, or artifacts.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
* ci: select PR checks from affected inputs

Resolve compiler consumers and complete touched lint packages after dependency
setup, then feed the existing execution rows. Scope guard and contract families
to their inputs, retain source proof when dist is unnecessary, and keep main,
manual validation, and broad fallbacks unchanged.

Reuse admitted import graphs for repeated consumer queries. Keep four complete
checkout integration scenarios in the release tier while retaining direct-test
admission and a fast first-signin representative in the ordinary selector suite.

* ci: await check planning before sealing release evidence

The new check-plan workload was missing from the release child receipt's
complete dependency set. The existing evidence guard detected the omission
in run 36075684694, job 107898033461.

Include check-plan in seal_release_child_evidence.needs so the receipt
retains its contract of waiting for every workload job before sealing.

* ci: publish exact check-plan workload counts

Preflight retains lint and compiler templates that the dependency-aware
check planner can later shrink. A concurrent failure observer needs the
final admitted cardinality to recognize healthy completion.

Count those four check families at their planner owner and publish the
bounded count in a final successful step name. The existing Jobs API can
carry that fact without delaying observation behind the planner or adding
permissions, jobs, or artifacts.
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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL 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