Skip to content

ci: scope UI fallback to its consumers - #154162

Merged
steipete merged 5 commits into
mainfrom
ci-burden/c2-changed-set
Sep 21, 2026
Merged

steipete merged 5 commits into
mainfrom
ci-burden/c2-changed-set

Conversation

@steipete

@steipete steipete commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

PR CI falls back to the complete core plan when a Control UI source path names an area rather than a test file, and instruction Markdown beside a precise code change can force the same fallback.

User Impact

This changes developer test selection. UI fallback retains the complete canonical Node UI rows and host-side consumers, with the existing dedicated browser and E2E lanes. Other code changes keep their independently resolved targets. Selection preserves test inventory, timeouts, worker limits, runner budgets, caps, release tiers, and repository settings. The verification fixes below adapt deterministic QA fixtures to the current tool contracts.

Why This Change Was Made

The newest 40 completed PR runs contain 22 broad plans, 3 changed-set plans, 2 docs-only plans, and 13 runs skipped before planning. Broad selection is 88% of the 25 runs that emitted Node work. Most broad cases really reach shared runtime/public SDK consumers; the actionable bounded owner gap is UI source routing.

The generated Control UI boot manifest now maps to its chunking and Vite consumers. The existing performance lane still builds and checks its generated chunks. The partial fallback retains entire existing compact rows, including co-located tests, setup, isolation, environment, and conservative timing floors. It also includes host tests that import any UI-area source through the tooling graph and tests that read the changed UI paths, so dynamically loaded UI data does not strand external consumers. Only consumers present in the original automatic compact plan affect this subset; dedicated and release-only owners stay in their existing tiers. Covered precise targets are credited once. Unknown non-UI paths, deleted sources, workspace aliases and SDK impact retain broad coverage.

Independently checked AGENTS.md and skill Markdown no longer expand mixed changes or trigger artifact builds. Packaged templates and Markdown fixtures retain their runtime ownership. Existing docs-only routing is verified in two sampled runs. Preflight now logs the selected mode/row count or the first broad-fallback reason, making future measurement attributable without guessing from compact job names.

Coordinated by reading #153962 (A-release-tier), including its latest open head 73725554a2933698b53acb816efb38bf9c882a47: this change does not implement its tooling-family path gate. When combining with that still-open change, forward its includeReleaseOnlyToolingShards option into the UI-area factory and retain both target filters; its shared .agents tooling predicate also needs to preserve skill-Markdown docs-only routing. These integration points belong to that single tooling owner, not a second C2 classification. No package.json or lockfile changes appear in this sample. The current pre-install test graph excludes package specifiers; the existing lock reporting graph omits development/workspace edges. Those inputs remain broad until their complete consumers can be proven. Removing type-only edges alone still leaves more than 6,390 reachable test candidates and demonstrable runtime SDK paths for sampled core changes, with no row savings, so that scanner change is excluded.

Evidence

Current status: the controlled replay saves 90 rows. The fourth native run was blocked by an upstream duplicate catalog entry; its owner has now fixed main in f76d38a4ac5, and the composed head is pushed after a clean P2 review. Its native run completed with 113/114 Node rows passing and one Crabbox fixture timeout; all four QA profiles, artifact checks and Docker passed. The PR remains open and CI is not green.

CI selection census

22 of 25 runs that emitted Node work used the broad plan (88%). Across all 40 completed runs, 22 were broad, 3 changed-set, 2 docs-only, and 13 skipped before planning. These are baseline observations, not measured savings from this PR.

The census queried repos/openclaw/openclaw/actions/workflows/ci.yml/runs?event=pull_request&per_page=40, verified the same cohort with status=completed, and fetched every jobs page (per_page=100) plus each executed preflight log. GitHub returned Date: Sun, 20 Sep 2026 21:35:23 GMT and a 60-second cache policy; the newest listed run was created September 19 at 17:24:02 UTC. This is the exact returned cohort, including skipped and cancelled runs; it is not a replacement sample of 40 successful runs.

Node rows count expanded, non-skipped checks-node-* jobs, including an admitted compatibility row when present. Skipped matrix placeholders do not count. Cancelled expanded rows remain planned rows. Workflow wall is run_started_at → updated_at, including queue time; cancelled walls are truncated observations. Job and step durations below come from their own start/completion timestamps.

Preflight logs provide exact changed paths and routing flags, but no explicit planner-mode or fallback-reason output. Mode classification combines the emitted matrix with the preflight scope. The trigger categories below are inferred from those paths and the current source; they are not claimed as historical reason strings. Skipped runs have no observed scope or matrix to replay. For the two docs-only runs, changed paths were recovered by comparing the base and checkout SHAs recorded by preflight.

Inferred broad trigger Runs Avg Node rows Avg workflow wall
transitive public SDK impact 15 117.7 15m28s
workspace package surface 2 113.0 15m27s
unmapped non-test UI target 3 73.3 14m41s
timing/packing policy full-plan guard 1 70.0 18m18s
workflow/native surface 1 71.0 25m00s

Docs-only routing fired twice: preflight recorded DOCS_ONLY=true and RUN_NODE=false, with zero Node rows. This cohort contains no package.json/lockfile changed set and no AGENTS/skills-only changed set; it cannot establish their observed frequency. Current-source before/after replays must remain separate from these historical rows because the inventory changed and some PR-only paths do not exist in the current tree.

All 40 completed runs
Run Conclusion Observed plan Runner profile Node rows Workflow wall
35457971318 skipped skipped-before-plan — 0 0m01s
35457966711 skipped skipped-before-plan — 0 0m02s
35457435914 failure changed-set github 6 9m48s
35456568835 success broad github 120 26m25s
35456329034 failure broad hybrid 113 31m18s
35455241025 skipped skipped-before-plan — 0 0m01s
35454938239 failure docs-only github 0 6m04s
35454912618 skipped skipped-before-plan — 0 0m02s
35454834838 failure broad hybrid 113 7m41s
35454816308 failure changed-set github 1 7m33s
35454791857 failure changed-set github 13 7m17s
35454678496 cancelled docs-only github 0 5m05s
35454553412 skipped skipped-before-plan — 0 0m02s
35454511618 skipped skipped-before-plan — 0 0m02s
35454506959 skipped skipped-before-plan — 0 0m02s
35454502929 failure broad github 120 7m26s
35454442664 skipped skipped-before-plan — 0 0m02s
35454248166 failure broad github 120 9m32s
35454142991 failure broad hybrid 113 8m07s
35454136903 failure broad github 120 16m45s
35454021670 cancelled broad github 120 7m10s
35453974910 failure broad hybrid 113 7m19s
35453952736 failure broad github 120 9m49s
35453949245 cancelled broad hybrid 113 10m23s
35453935887 success broad hybrid 113 22m07s
35453889536 failure broad github 78 13m32s
35453889152 success broad hybrid 113 20m31s
35453674776 success broad github 120 23m48s
35452181593 failure broad github 120 40m14s
35451458879 skipped skipped-before-plan — 0 0m01s
35451368167 skipped skipped-before-plan — 0 0m02s
35450760030 cancelled broad github 120 11m06s
35450634079 success broad hybrid 71 15m15s
35450497500 skipped skipped-before-plan — 0 0m02s
35450461233 failure broad hybrid 70 18m18s
35450416918 skipped skipped-before-plan — 0 0m02s
35450353778 success broad hybrid 71 15m17s
35450319146 cancelled broad github 120 3m08s
35450189109 skipped skipped-before-plan — 0 0m02s
35450121971 success broad hybrid 71 25m00s

Job and step baseline

Two successful hybrid runs with broad core/plugin selection are compared below with the successful UI-only run 35450634079 (three changed UI files). These are different workloads, not causal before/after measurements. The UI run itself still selected the broad core plan. Row identifiers are comparable for baseline inspection, but their test payloads and queue conditions can differ. The matched planner replay and this PR’s live run provide the change-specific comparison.

Baseline metric 35453935887 (core/UI) 35453889152 (package/core/UI) 35450634079 (UI)
Node rows 113 113 71
Workflow wall 22m07s 20m31s 15m15s
Preflight job 0m59s 0m43s 0m45s
compact-large-1 job 9m25s 9m07s 14m13s
↳ Build Node test runtime 0m39s 0m35s 0m40s
↳ Run Node test shard 8m17s 8m03s 12m48s
compact-large-19 job 12m33s 12m35s 13m26s
↳ Run Node test shard 12m05s 12m07s 12m46s
changed-extensions-bundle-23 job 17m23s 17m22s Not selected
↳ Run Node test shard 16m19s 16m24s Not selected
checks-ui-e2e-real-gateway job 10m51s 10m54s 11m22s
↳ Test Control UI suites with a real Gateway 7m48s 7m46s 7m54s

For example, a three-file UI change admitted 71 Node rows and spent 12m48s in the test step of compact-large-1, while its real-Gateway UI test step took 7m54s. That establishes the baseline cost and ownership mismatch; it does not predict the final PR wall time.

Matched planner replay

The same observed changed sets were evaluated against base 007f648e356e9caaf0da39beb0a7091fca13e561 and the C2 selection patch on that same frozen inventory, using identical recorded path sets and runner inputs. Across 27 scopes with observable inputs (including two docs-only routes), the controlled Node matrix changes from 2,748 to 2,658 rows: 90 fewer (3.3%). The 13 runs skipped before preflight have no recorded changed set and remain N/A; they contribute no invented savings.

Historical rows below are observations from the original runs. Matched rows are current-inventory planner outputs and exclude compatibility rows and dist-only jobs. They need not equal historical rows: inventories moved, historical added paths can be absent, and missing paths retain the conservative fallback. The observed classification and the replay classification are reported separately.

Modeled Node wall schedules the known row predicted_seconds values in descending order onto the least-loaded of 96 slots (LPT), then takes the final makespan. It adds no checkout/setup, queue, preflight, or other workflow-lane time, and is not a prediction of total PR wall. Untimed rows are omitted from that calculation and counted explicitly; ≥ marks a lower-bound estimate that omits such work. Row reductions do not imply an equal reduction in wall time. The candidate also batches UI reverse-consumer scans; this Node-row model does not quantify that preflight scan optimization.

Untimed matrix rows: 0 before → 1 after across the controlled scopes. The matched results show selection changes only; the live PR run supplies execution proof.

Changed row counts or modeled makespans: 35450634079: 69→24 rows, 8m38s→≥6m00s; 35450353778: 69→24 rows, 8m38s→6m00s.

Matched replay for all 40 observed runs
Run Historical class / rows Replay mode before→after Matched rows before→after Modeled Node wall before→after Untimed rows before→after
35457971318 skipped / 0 N/A N/A N/A N/A
35457966711 skipped / 0 N/A N/A N/A N/A
35457435914 changed-set / 6 broad 84→84 5m30s→5m30s 0→0
35456568835 broad / 120 broad 130→130 10m09s→10m09s 0→0
35456329034 broad / 113 broad 119→119 10m09s→10m09s 0→0
35455241025 skipped / 0 N/A N/A N/A N/A
35454938239 docs / 0 docs 0→0 0m00s→0m00s 0→0
35454912618 skipped / 0 N/A N/A N/A N/A
35454834838 broad / 113 broad 119→119 10m09s→10m09s 0→0
35454816308 changed-set / 1 broad 81→81 5m30s→5m30s 0→0
35454791857 changed-set / 13 broad 94→94 10m09s→10m09s 0→0
35454678496 docs / 0 docs 0→0 0m00s→0m00s 0→0
35454553412 skipped / 0 N/A N/A N/A N/A
35454511618 skipped / 0 N/A N/A N/A N/A
35454506959 skipped / 0 N/A N/A N/A N/A
35454502929 broad / 120 broad 130→130 10m09s→10m09s 0→0
35454442664 skipped / 0 N/A N/A N/A N/A
35454248166 broad / 120 broad 130→130 10m09s→10m09s 0→0
35454142991 broad / 113 broad 119→119 10m09s→10m09s 0→0
35454136903 broad / 120 broad 130→130 10m09s→10m09s 0→0
35454021670 broad / 120 broad 130→130 10m09s→10m09s 0→0
35453974910 broad / 113 broad 119→119 10m09s→10m09s 0→0
35453952736 broad / 120 broad 130→130 10m09s→10m09s 0→0
35453949245 broad / 113 broad 119→119 10m09s→10m09s 0→0
35453935887 broad / 113 broad 119→119 10m09s→10m09s 0→0
35453889536 broad / 78 broad 80→80 5m30s→5m30s 0→0
35453889152 broad / 113 broad 119→119 10m09s→10m09s 0→0
35453674776 broad / 120 broad 130→130 10m09s→10m09s 0→0
35452181593 broad / 120 broad 130→130 10m09s→10m09s 0→0
35451458879 skipped / 0 N/A N/A N/A N/A
35451368167 skipped / 0 N/A N/A N/A N/A
35450760030 broad / 120 broad 130→130 10m09s→10m09s 0→0
35450634079 broad / 71 broad→changed-set 69→24 8m38s→≥6m00s 0→1
35450497500 skipped / 0 N/A N/A N/A N/A
35450461233 broad / 70 broad 69→69 8m38s→8m38s 0→0
35450416918 skipped / 0 N/A N/A N/A N/A
35450353778 broad / 71 broad→changed-set 69→24 8m38s→6m00s 0→0
35450319146 broad / 120 broad 130→130 10m09s→10m09s 0→0
35450189109 skipped / 0 N/A N/A N/A N/A
35450121971 broad / 71 broad 69→69 8m38s→8m38s 0→0

Verification fixes

The first native run exposed a virtual-repository import string that the boundary scanner interpreted as a real private-plugin import. Computing that same fixture path preserves its bytes without a boundary exception. It also exposed stale Code Mode mock arguments; main independently landed that JavaScript-only fixture repair in f5aeb9e3671, so the final rebase retains upstream coverage and removes duplicate edits from this branch.

The structured Tool Search default in #154068 exposed a QA adapter gap: the provider saw tool_call and deferred sessions_spawn, but emitted an acknowledgment instead of spawning. A later native run exposed a private-continuation observer that still required a direct sessions_spawn counter despite two valid committed structured receipts. Main independently landed both repairs and their executable coverage in b86dc712079 (#154131) before final publication. The final rebase retains that single routing owner and its stricter exact-receipt observer; C2 drops its duplicate mock implementation, tests, baseline edit and pending observer patch. The remaining C2 QA fix makes the existing Tool Search evidence consumer read plannedWireToolName ?? plannedToolName so logical capability names do not replace the observed wire stages. Runtime defaults, tool schemas, permissions, and execution policy are unchanged.

The second native run also timed out in the sparse release worker-contract test. Its code and observed file order were unchanged from the first run, where it passed in 14.357s. A corrected, instrumented Linux replay preserved both original groups, two workers, one plan, and the existing deadline; the case passed in 11.380s and all 18 top-level child commands exited and drained normally. The lease had four CPUs/16 GB versus CI’s two CPUs/8 GB, and it did not capture nested npm/Node termination state. The timeout did not reproduce and its original cause remains unproven; it is not claimed fixed. The first reproduction stopped before that case because a detached checkout lacked package-local dependencies; a frozen workspace install corrected that setup. No CI job was rerun to obtain green.

Validation

The original four required guard files passed: 237 changed-plan cases locally (142.05s wall), and 101 canonical-planner cases (59.35s), 1,181 test-target cases (47.16s), and 636 workflow guards (129.04s) on Linux Testbox proof. The native PR runs also executed all four files. Focused generated-manifest, whole-area consumer, instruction-page and source-reader regressions passed, including failures demonstrated before their fixes.

The QA adapter regression failed on the old server with Expected tool_call tool call (15.52s command wall), then its three-case HTTP file passed (12.26s). All 310 existing mock-server cases passed (16.25s). The wire-stage consumer regression failed on the old consumer (25.59s), then its complete 34-case file passed (14.49s); the final HTTP file passed again (12.49s). The final rebase keeps main’s routing and MCP coverage and removes the duplicate C2 HTTP cases; these timings document the earlier diagnostic repair, not extra tests retained by this PR.

The pre-rebase Linux proof completed the original 49-file Node row in 350.69s and the complete changed-file gate in 560.01s, with overall exit 0. Testbox tbx_01m30vrgpacmnfey1hc9ze9x22 stopped successfully; the backing Actions lifecycle may show cancellation after external cleanup. Script and extension types, type-aware lint and its negative canary, all three unused-export scans, workflow validation, formatting, Markdown/MDX sanity, 14,232 internal links, import-cycle and source-policy guards, and diff checks passed. No product suite, shard, or benchmark ran on the Mac. Two local single-file attempts were stopped during startup and are not counted as proof.

P2 autoreviews for the original selection change and both CI repairs are scoped-clean with zero findings. The published conflict resolution also received a clean P2 review. The superseded private-receipt observer correction also received a clean P2 review. The upstream cutover received a fresh clean P2 review against its immutable merge base; the exact rebased branch review is also scoped-clean with zero P0–P2 findings. Exact CI per-file walls were not emitted by the saved verbose logs; containing-process and job/step durations are reported separately, never as sums of case timings.

QA diagnostic setup

The third native run completed all 116 Node rows, artifact and Docker checks, and QA profiles 1–3. Profile 4 reached private continuation and rejected the direct-name counter, now repaired on main as described above. Before that rebase, C2’s equivalent observer regression failed on the old YAML and passed all 13 cases on Linux; that duplicate patch is excluded from the final diff.

The complete Linux profile then printed success for all six primary and three Matrix scenarios but returned exit 1 during artifact publication. Retained summaries identified all nine post-scenario failures as Private mutation boundary is writable by another POSIX principal. The Testbox’s umask was 0002, and its task-created .artifacts root was mode 775. The proof setup now uses a private umask and a fresh private repo-relative output directory; the guard, scenarios, assertions and deadlines are unchanged. An initial /tmp output attempt was correctly rejected by the CLI’s repo-relative output contract before any scenario ran. With the task-owned .artifacts root corrected to 0755 and a fresh 0700 child under umask 077, the same complete profile passed: six primary plus three Matrix scenarios, zero failures/skips, CLI exit 0, 174.80s including the build. The supplemental all-lanes changed-file gate returned exit 1 after 2,238.11s, but the long SSH connection stopped delivering output before its error reached the local log. It is not counted as green. A captured lint invocation then refused a stale artifact lock. After verifying all build/check processes had stopped and preserving the lock, a captured diagnostic reached extension lint, but the retained Testbox shut down before a terminal result could be recovered. This supplemental gate remains incomplete; neither the stale lock nor a passing diagnostic is claimed as the original failure’s cause. The earlier complete changed-file gate passed in 560.01s. These supplemental diagnostics used the retained pre-rebase source. The final native run separately passed all four QA profiles, type/lint lanes, artifact checks and Docker; it still failed the Crabbox fixture described below.

Publication state and follow-ups

The fourth head d17b2721fa81fc666e4de71af093432579ff2ba6 was watched once and failed preflight before emitting Node jobs. The failure came from #154244 duplicating src/worker/worker.runtime.test.ts at lines 31 and 481 in test/vitest/vitest.database-worker-core-paths.mjs. Its parent catalog had 456 entries/456 unique paths; the introducing commit and fourth C2 head had identical catalog bytes with 484 entries/483 unique paths. The canonical storage/state planner consumed that catalog, and its unchanged uniqueness guard correctly refused it.

The owning correction, f76d38a4ac5 (fix(ci): remove duplicate database worker test entry), subsequently landed on main. C2 rebased onto the fix without changing the catalog or planner guard. Head 01b200a2f4e8f76b2997f374a7e5ef0b00029d88 is pushed after fresh P2 review (zero findings). Its canonical planner passes. Native run 35564059419 completed in 21m25s: 113/114 Node rows passed, all four QA profiles, build-artifacts and Docker passed, and one Crabbox staging fixture timed out. The aggregate gate correctly failed. No native job was rerun. This is changed-source validation; no failed job was rerun to obtain green.

The PR remains open and unmerged. No timeout, cap, retry, assertion, variable or ruleset was relaxed. The earlier release-fixture timeout remains separately unproven. Package/lock graph completeness, broad runtime SDK fan-out, and A-release-tier integration remain the selection follow-ups described above.

Remaining native fixture failure

checks-node-compact-small-43 failed in test/scripts/crabbox-staging.test.ts, “keeps preparation callbacks and additional Git workspaces held without disabling them.” At the fsmonitor-disabled stage, the outer wrapper reached its unchanged 30,000ms managed-command deadline. The lifecycle trace records SIGTERM and closed stdout/stderr at 30,037ms, then settled cleanup at 30,054ms; it also records 195 stdout bytes, so this is not established as a startup or no-output stall. That length matches the fixture’s expected refusal JSON, but the raw bytes, first-output timestamp, inner process identity and exit were not retained. The precise termination cause remains unproven.

The next proof belongs at the wrapper/fixture lifecycle boundary: preserve the original file order and command, capture the inner wrapper’s report and termination, and repair the observed cause. A Node runtime flag, larger timeout, retry or passing rerun is not established as a fix. C2 leaves the fixture and its deadline unchanged and does not claim this final CI run is green.

Focused final-head guard completion

The final native logs verify 643 workflow-guard cases, 115 canonical-planner cases, and 238 changed-planner cases passing in their actual owner jobs.

The failed compact row registered test-projects.test.ts in its second serial group, but the Crabbox failure in its first group prevented that later group from starting. It was not a failure in the test-target planner. At the final head, the permitted macOS planner-guard command node scripts/run-vitest.mjs test/scripts/test-projects.test.ts --maxWorkers=1 passed 1,243 cases in 227.81s command wall (225.58s Vitest duration). This is focused guard proof; it does not turn the native aggregate green. No product suite, shard campaign, endurance test or benchmark ran on the Mac.

The retained Testbox is confirmed completed and shut down. Its full nine-scenario passing summaries were downloaded before shutdown; the interrupted supplemental lint diagnostic has no recovered terminal verdict. Earlier task-owned leases were stopped. The worktree is clean.

Live PR execution

The first run 35545332869 tested 965b4cd25902d7dcfbc0cfb9049c56cb42c6c3eb and concluded failure. The final-head run 35564059419 tests 01b200a2f4e8f76b2997f374a7e5ef0b00029d88 and is failure. Regular Node work: first 118 rows (118 success); final 114 rows (1 failure, 113 success).

The preserved third run 35555238443 tested 5c5bee98b4625c35924b9ed13e2894e649aec0f6 and concluded failure, with 116 rows (116 success). That remains prior-head proof; it does not validate the final head. Its QA/build/Docker measurements below retain the intervening failure evidence.

Workflow wall: first 17m29s, final 21m25s. Gate results: first openclaw/ci-gate: failure; third openclaw/ci-gate: failure; final openclaw/ci-gate: failure.

Slowest completed final-head job: docker-seed-e2e — 17m19s (success). Slowest completed regular Node row: checks-node-compact-large-1 — 15m06s (success).

These measurements do not establish a live changed-set wall saving. The planner edit selects broad validation by design. Historical, first-head, and repaired-head changes and inventories differ, as can row payloads, runner availability, and queue time. The table is measured execution evidence; the controlled changed-set replay supplies the selection comparison.

Measured metric Historical 35453935887 Historical 35453889152 First PR run Final-head run
Workflow result success success failure failure
Regular Node rows 113 113 118 114
Node compatibility rows 0 0 0 0
Workflow wall, including queue 22m07s 20m31s 17m29s 21m25s
Slowest completed regular Node row checks-node-changed-extensions-bundle-23 — 17m23s (success) checks-node-changed-extensions-bundle-23 — 17m22s (success) checks-node-compact-large-1 — 13m20s (success) checks-node-compact-large-1 — 15m06s (success)
Preflight job 0m59s 0m43s 0m48s 1m06s
↳ Build CI manifest 0m07s 0m07s 0m11s 0m27s

The fourth run 35562147109 failed before matrix emission because test/vitest/vitest.database-worker-core-paths.mjs listed src/worker/worker.runtime.test.ts twice. The owning lane removed the duplicate in f76d38a4ac5. This candidate rebased onto the corrected main and passed its canonical locator planner; this new-head CI follows that source correction rather than retrying the unchanged fourth-run failure.

Planner/guard owner jobs and test steps

First-job mappings follow saved planner locators; final mappings are verified from the decoded native job group metadata and execution logs. They follow test files, not numeric matrix suffixes; no final mapping is inferred when preflight fails. Gateway scheduling changes on main renumbered compact rows. Historical rows with the same numeric suffix are not asserted to contain these files. Each measured job and test step also includes other tests; these are owner-job costs, not isolated per-file costs or a causal C2 wall comparison.

File under test/scripts/ First actual job Final actual job Job wall first→final Run Node test shard first→final Job result first→final Final file execution
ci-workflow-guards.test.ts checks-node-compact-small-42 checks-node-compact-small-39 6m54s→6m55s 6m23s→6m21s success→success observed passing cases (643 passing case records)
ci-node-test-plan.test.ts checks-node-compact-small-44 checks-node-compact-small-41 7m59s→6m43s 7m28s→6m03s success→success observed passing cases (115 passing case records)
test-projects.test.ts checks-node-compact-small-46 checks-node-compact-small-43 6m55s→6m37s 6m23s→6m05s success→failure not executed; preceding serial group failed
ci-changed-node-test-plan.test.ts checks-node-compact-small-47 checks-node-compact-small-42 6m22s→9m19s 5m48s→8m43s success→success observed passing cases (238 passing case records)

Registered does not mean executed: test/scripts/test-projects.test.ts belongs to checks-node-compact-small-43 but its serial group core-tooling-9-hosted-2 was not admitted after an earlier group failed. That file is not the failing test, and this native run does not supply passing execution proof for it.

QA, build-artifact, and Docker execution

These stable job names identify the same CI responsibility across the saved runs, but their selected scenarios, inputs, dependencies, and mainline repairs can differ. A failed step's duration is time to failure, not the cost of completing passing work. No duration delta in this table is attributed causally to C2. All numbers come from recorded completion timestamps; incomplete or unselected work has no estimated value.

Job / metric First 35545332869 Third 35555238443 Final 35564059419
QA Smoke CI (profile 4/4) result success failure success
↳ Job wall 3m47s 3m49s 3m50s
↳ Build QA smoke runtime 0m31s (success) 0m33s (success) 0m29s (success)
↳ Run smoke profile part 2m34s (success) 2m23s (failure) 2m35s (success)
build-artifacts result failure success success
↳ Job wall 5m19s 5m24s 5m29s
↳ Build dist 1m33s (success) 1m30s (success) 1m25s (success)
↳ Smoke test built CLI with Bun 0m01s (success) 0m01s (success) 0m01s (success)
↳ Run built artifact checks 2m42s (failure) 2m39s (success) 2m51s (success)
docker-seed-e2e result failure success success
↳ Job wall 7m14s 11m33s 17m19s
↳ Resolve published Docker seed upgrade baseline 0m01s (success) 0m02s (success) 0m02s (success)
↳ Run changed Docker seed owner lanes 6m29s (failure) 10m54s (success) 16m04s (success)

Failed or otherwise unsuccessful jobs

Run Job Result Unsuccessful step(s)
First build-artifacts failure Run built artifact checks
First docker-seed-e2e failure Run changed Docker seed owner lanes
First openclaw/ci-gate failure Verify selected CI lanes
Third QA Smoke CI (profile 4/4) failure Run smoke profile part
Third openclaw/ci-gate failure Verify selected CI lanes
Final checks-node-compact-small-43 failure Run Node test shard
Final openclaw/ci-gate failure Verify selected CI lanes

All values come from saved GitHub run/job/step records. Workflow wall uses run_started_at → updated_at; individual durations use their own start/completion timestamps. Incomplete work has no final duration. Regular Node rows exclude compatibility rows and skipped matrix placeholders; admitted compatibility rows are shown separately. Cancelled rows remain admitted rows. No verbose test-case durations were summed or presented as per-file wall time.

@clawsweeper

clawsweeper Bot commented Sep 20, 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: M maintainer Maintainer-authored PR labels Sep 20, 2026
@steipete
steipete marked this pull request as ready for review September 20, 2026 23:40
@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 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 21, 2026, 4:52 PM ET / 20:52 UTC (Revision 14).

ClawSweeper review

What this changes

The PR narrows UI-triggered CI to existing UI and host-consumer test groups, improves selection diagnostics, and corrects Tool Search QA evidence.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open: the optimization remains useful and absent from current main, but the previously reported consumer-selection defect remains unfixed. The historical coverage criterion also needs an explicit CI-owner decision.

Priority: P2
Reviewed head: 4794ca896a6cc3f9bac5cc255665215ba61f6c91
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Substantial, carefully qualified execution evidence supports useful work, but the repeated coverage defect still blocks readiness.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The matching captured body records actual planner replay on fixed changed sets and native execution of the CI and QA paths, including after-fix Tool Search results. This proves exercised behavior, not complete consumer coverage or green checks for the current head; inspected screenshots belong to related UI changes.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The matching captured body records actual planner replay on fixed changed sets and native execution of the CI and QA paths, including after-fix Tool Search results. This proves exercised behavior, not complete consumer coverage or green checks for the current head; inspected screenshots belong to related UI changes.
Evidence reviewed 9 items Pinned introduced change: Reviewed the introduced delta from pinned base 267bb9d to original PR head 4794ca8. The UI subset requires local-plan config equality when selecting canonical groups.
Concrete aggregate-config mismatch: The ancestor-placement test imports UI session reconciliation. Local classification returns the aggregate Gateway config, whereas canonical CI Gateway groups use gateway-core and gateway-client child configs. The new equality predicate cannot select that consumer's owner; UI inputs are subsequently removed from precise resolution.
Prior finding remains: The affected planner is unchanged from the previous completed review at c808ab6. Its config-name comparison also remains in duplicate suppression at lines 818–827.
Findings 1 actionable finding [P2] Match UI consumers through canonical file ownership
Security None None.

How this fits together

CI preflight converts changed files into test jobs using dependency discovery and canonical test inventories. This change narrows the Node job selection while retaining dedicated browser and E2E coverage.

flowchart TD
  A[Changed files] --> B[CI preflight]
  B --> C{Owners resolved?}
  C -->|UI source| D[UI suites and host consumers]
  C -->|Other known source| E[Focused test owners]
  C -->|Unknown or broad impact| F[Full fallback plan]
  D --> G[Canonical Node jobs]
  E --> G
  F --> G
Loading

Decision needed

Question Recommendation
After repairing canonical consumer selection, may UI-only changes use affected-consumer coverage despite the documented unmatched historical failures? Accept affected-consumer coverage: After the ownership repair is proven, explicitly accept narrower coverage and document that unrelated historical failures may no longer be detected.

Why: The related replay distinguishes incidental failures from affected-source regressions, but neither code inspection nor passing CI can choose the intended coverage guarantee.

Before merge

  • Match UI consumers through canonical file ownership (P2) - The prior finding remains. For a UI source change, buildVitestRunPlans assigns ordinary Gateway consumers the aggregate vitest.gateway.config.ts, while canonical CI rows use child configs. For example, src/gateway/session-row-event-ancestor-placement.test.ts imports UI reconciliation but belongs to Gateway core. This equality cannot select its owning group, and removing UI paths from precise resolution leaves coverage dependent on incidental co-location. Match canonical file membership and apply the same rule to duplicate suppression at lines 818–827.
  • Resolve merge risk (P1) - UI narrowing can stop detecting unrelated historical failures previously caught by broad CI; the recorded all-failures criterion has not been explicitly reconciled with affected-consumer selection.
  • Complete next step (P2) - Repair canonical consumer selection and duplicate suppression, with regression coverage for aggregate-versus-child config ownership.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P2] Match UI consumers through canonical file ownership — scripts/lib/ci-changed-node-test-plan.mts:782-788
Agent review details

Security

None.

PR surface

Source +1, Tests +173, Docs +4, Config +3, Other +105. Total +286 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 1 3 2 +1
Tests 4 206 33 +173
Docs 1 4 0 +4
Config 1 3 0 +3
Generated 0 0 0 0
Other 1 129 24 +105
Total 8 345 59 +286

Review metrics

Metric Value Why it matters
Controlled selection replay 90 fewer rows across 27 observed scopes The frozen-inventory comparison supports selection savings but does not establish CI wall-time improvement.
Code growth by responsibility Product runtime +0; CI tooling +125; tests/QA +157; docs +4 Growth supports consumer discovery, diagnostics, and regression evidence rather than adding product capability.

Merge-risk options

Maintainer options:

  1. Repair canonical consumer selection (recommended)
    Use canonical file membership for selection and duplicate suppression, then verify Gateway and unit aggregate consumers across runner profiles.
  2. Defer the UI narrowing
    Retain broad UI fallback if the CI owner requires preservation of every historical failure observation.

Technical review

Best possible solution:

Select complete canonical rows by file ownership, preserve existing execution policies, and document the CI owner's accepted coverage criterion.

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

Yes, by source inspection: a UI source change with dedicated E2E enabled discovers Gateway consumers whose aggregate local config cannot match their canonical child configs. No target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Not yet: retaining existing canonical rows is appropriate, but file ownership must drive selection and duplicate suppression instead of local config-name equality.

Full review comments:

  • [P2] Match UI consumers through canonical file ownership — scripts/lib/ci-changed-node-test-plan.mts:782-788
    The prior finding remains. For a UI source change, buildVitestRunPlans assigns ordinary Gateway consumers the aggregate vitest.gateway.config.ts, while canonical CI rows use child configs. For example, src/gateway/session-row-event-ancestor-placement.test.ts imports UI reconciliation but belongs to Gateway core. This equality cannot select its owning group, and removing UI paths from precise resolution leaves coverage dependent on incidental co-location. Match canonical file membership and apply the same rule to duplicate suppression at lines 818–827.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 07435fa8ee22.

Labels

Label justifications:

  • P2: This is a bounded CI efficiency improvement with a remaining test-selection defect.
  • merge-risk: 🚨 automation: Config-name matching can miss canonical consumer groups, and narrowing changes which historical failures CI detects.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The matching captured body records actual planner replay on fixed changed sets and native execution of the CI and QA paths, including after-fix Tool Search results. This proves exercised behavior, not complete consumer coverage or green checks for the current head; inspected screenshots belong to related UI changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The matching captured body records actual planner replay on fixed changed sets and native execution of the CI and QA paths, including after-fix Tool Search results. This proves exercised behavior, not complete consumer coverage or green checks for the current head; inspected screenshots belong to related UI changes.

Evidence

What I checked:

  • Pinned introduced change: Reviewed the introduced delta from pinned base 267bb9d to original PR head 4794ca8. The UI subset requires local-plan config equality when selecting canonical groups. (scripts/lib/ci-changed-node-test-plan.mts:784, 4794ca896a6c)
  • Concrete aggregate-config mismatch: The ancestor-placement test imports UI session reconciliation. Local classification returns the aggregate Gateway config, whereas canonical CI Gateway groups use gateway-core and gateway-client child configs. The new equality predicate cannot select that consumer's owner; UI inputs are subsequently removed from precise resolution. (src/gateway/session-row-event-ancestor-placement.test.ts:2, 4794ca896a6c)
  • Prior finding remains: The affected planner is unchanged from the previous completed review at c808ab6. Its config-name comparison also remains in duplicate suppression at lines 818–827. (scripts/lib/ci-changed-node-test-plan.mts:824, 4794ca896a6c)
  • Current-main necessity: Fetched main still sends regular paths directly through precise resolution and falls back when UI area targets cannot resolve to bounded test files. It does not contain this UI subset implementation; no supplied merged PR establishes replacement of the central change. (scripts/lib/ci-changed-node-test-plan.mts:716, 07435fa8ee22)
  • Recovered proof matches captured body: Read the omitted body sections through GitHub and verified SHA-256 e899d606a74ce9328c272c19f72da2179b5cdc8d573af95bdc506d6cc5a26e0b, matching the supplied snapshot. The matched planner replay records 2,748→2,658 rows on a frozen inventory. Native execution and QA results are explicitly identified as earlier-head evidence, and the body does not claim causal wall-time savings or a green aggregate.
  • Historical coverage decision: The supplied discussion for ci: select SDK consumers instead of the whole Node suite #154668 reports 1,664 unmatched historical failed-file observations under the inherited UI narrowing. It distinguishes these from demonstrated UI-caused assertion defects and explicitly leaves the absolute historical-failure condition unresolved. This is a coverage-policy choice, not proof of 1,664 introduced product bugs. (d813d49cdd5e)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Vincent Koc: 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.

  • Repair canonical membership selection and duplicate suppression, covering Gateway and unit aggregate consumers across runner profiles.
  • Record the CI owner's decision on affected-consumer coverage versus the historical all-failures criterion.

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 (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-21T04:55:10.742Z sha d17b2721fa81fc666e4de71af093432579ff2ba6 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T05:08:46.905Z sha d17b2721fa81fc666e4de71af093432579ff2ba6 :: needs changes before merge. :: none
  • reviewed 2026-09-21T05:31:22.597Z sha 01b200a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T05:56:26.472Z sha 01b200a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T12:13:55.265Z sha 317bd89 :: blocked before merge. :: [P2] Match UI consumers through canonical file ownership
  • reviewed 2026-09-21T14:19:19.475Z sha 4c021db :: blocked before merge. :: [P2] Match UI consumers through canonical file ownership
  • reviewed 2026-09-21T17:19:16.780Z sha 88330f9 :: blocked before merge. :: [P2] Match UI consumers through canonical file ownership
  • reviewed 2026-09-21T19:56:14.776Z sha c808ab6 :: blocked before merge. :: [P2] Match UI consumers through canonical file ownership

@steipete
steipete force-pushed the ci-burden/c2-changed-set branch from 965b4cd to 447f769 Compare September 21, 2026 01:09
@steipete
steipete force-pushed the ci-burden/c2-changed-set branch from 447f769 to 5c5bee9 Compare September 21, 2026 02:45
@steipete
steipete force-pushed the ci-burden/c2-changed-set branch from 5c5bee9 to d17b272 Compare September 21, 2026 04:44
@steipete
steipete force-pushed the ci-burden/c2-changed-set branch from d17b272 to 01b200a Compare September 21, 2026 05:16
@steipete
steipete enabled auto-merge (squash) September 21, 2026 05:53
@steipete
steipete force-pushed the ci-burden/c2-changed-set branch from 01b200a to 317bd89 Compare September 21, 2026 12:03
@clawsweeper clawsweeper Bot added 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 21, 2026
@steipete
steipete force-pushed the ci-burden/c2-changed-set branch from 4c021db to 3d70784 Compare September 21, 2026 17:05
Retain canonical UI and host-consumer rows instead of unrelated core suites, map generated boot metadata to its owners, and keep instruction docs from widening precise plans. Batch source-reader discovery and log changed-set selection or the broad fallback reason.
Read the recorded dispatcher name separately from its logical capability so the Tool Search fixture preserves the observed search/call sequence.
@steipete
steipete force-pushed the ci-burden/c2-changed-set branch from 3d70784 to 88330f9 Compare September 21, 2026 17:12
@steipete
steipete merged commit 4e62c38 into main Sep 21, 2026
218 checks passed
@steipete
steipete deleted the ci-burden/c2-changed-set branch September 21, 2026 21:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
* ci: scope UI fallback to its consumers

Retain canonical UI and host-consumer rows instead of unrelated core suites, map generated boot metadata to its owners, and keep instruction docs from widening precise plans. Batch source-reader discovery and log changed-set selection or the broad fallback reason.

* test(ci): align Code Mode mocks and virtual import fixtures

* fix(qa-lab): retain wire stages in Tool Search evidence

Read the recorded dispatcher name separately from its logical capability so the Tool Search fixture preserves the observed search/call sequence.
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 extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant