Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 6, 2026, 8:19 PM ET / October 7, 2026, 00:19 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch narrows CI to affected SDK and UI consumers, adds historical selection replay coverage and diagnostics, repairs wrapper and QA evidence handling, and signals idle memory workers before closing stdin. Merge readiness⛔ Blocked before merge - 4 items remain Keep open for explicit owner disposition. Current main and the latest release already use alias-aware test selection, but this branch retains a distinct memory-worker shutdown fix and an unmet historical safety condition. The protected maintainer PR cannot be closed automatically. Priority: P2 Review scores
Verification
How this fits togetherThe CI planner turns changed repository paths into test jobs using dependency graphs and canonical execution settings. Its output determines which regressions pull-request CI can detect. flowchart TD
A[Changed repository paths] --> B[Import and SDK alias graph]
B --> C[Affected test consumers]
C --> D[Canonical test jobs]
B --> E[Unresolved coverage]
E --> F[Broad fallback]
D --> G[CI execution]
F --> G
Decision needed
Why: Main now addresses the central CI problem through a different merged owner, while a useful runtime fix remains and the branch's historical safety condition is still unresolved. Before merge
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +11242, Docs +5, Config +3, Other +211. Total +11463 across 14 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep main's canonical selector and isolate the still-missing memory shutdown fix; retain additional replay coverage only under an explicit safety contract. Do we have a high-confidence way to reproduce the issue? Yes, source identifies the memory retirement race: current main closes stdin before signaling, and the recorded native failure observed a natural exit instead of SIGKILL. No current-main execution was performed during this read-only review. Is this the best way to solve the issue? Unclear for the complete branch: main already has a merged alias-aware selector, while the signal-before-EOF memory repair remains a narrow useful change. Preserving the current selector and separating the remainder is the clearest path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against de3d26ee61a0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
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.
Resolve public and bundled SDK aliases through the existing dependency graph. Keep canonical consumer rows, affected extension roots, SDK contracts, and the shared compiled-worker fixture owner. Retain broad fallback for unresolved aliases and SDK identity changes. Replay the fixed C2 failure corpus, retaining failed suites still present in the checkout and reporting unavailable historical files explicitly. Preserve row policies and existing release tiers.
16d461b to
d813d49
Compare
|
Superseded by current generic changed-owner selection and alias-aware source traversal, including the bounded hub policy in bbb074a and newer mock-consumer coverage. The side fixes were checked separately: structured wire-stage evidence remains in the QA fixture, and #172681 retired the old KNN subprocess owner. The historical census and original-tree qualification gaps remain preserved here; merging this older SDK-specific selector would introduce a competing policy. |
Historical safety condition remains blocked; this PR is unarmed and must not be treated as ready to merge. The current-tree guard passes, but original-tree evidence leaves 1,667 historical failed-file observations unmatched, as detailed below.
Problem and behavior
PR Node planning treated a core change reaching the public Plugin SDK as a reason to select the complete core and plugin plan. All 15 SDK-triggered runs in C2's census reached that surface transitively; none directly edited SDK files.
The planner now resolves both SDK package-alias namespaces through canonical public, private, and QA entry registries, including type imports, re-exports, and literal dynamic imports. It retains complete canonical rows containing affected consumers, affected plugin test envelopes, SDK contract suites, and borrowers of the shared real SDK/worker compiler fixture. Selected rows preserve their complete inventories, isolation, environments, workers, and timing floors. Canonical file ownership also prevents duplicate raw-target rows when local aggregate config names differ from CI split configs.
Broad fallback remains for the SDK registry identities, removed root index, API baseline, missing sources, unresolved production aliases, and independent broad inputs. Ordinary named barrels have enumerable consumers. The wrapper extraction manifest includes the new registry dependency and its JSON inputs.
This branch includes C2's three prerequisite commits from #154162 and preserves current main's process-proof tiering. The separate release tooling-tier proposal is outside this change. The native run also exposed an existing memory-child EOF/signal race; its bounded repair and proof are recorded below.
Repaired publication head:
d813d49cdd5e695eb2671dbff9dc6ffa871ca3a6. Main base:761725d03f294aaddc399a759a0755d34a0e1ecf. Auto-merge is disabled; no landing was requested or performed.Historical safety condition: blocked
The current-tree guard passes, but it does not establish the requested absolute historical-failure condition. A stronger follow-up recovered ten exact historical merge trees as data and projected the reviewed consumer policy from first head
16d461bb5e5onto their recorded native rows. The repaired-head current-tree replay is a separate proof. Across eleven failure-bearing scopes, that projection retains 36,193 of 37,860 failed file/run observations and leaves 1,667 unmatched. No original paths are unavailable in this projection.35453889536, under C2's inherited UI narrowing. The original locale file exists; the current-tree replay's missing-file broad fallback cannot prove historical coverage. Its other changed inputs have bounded owners and no independent broad reason.test/scripts/run-vitest-state-cleanup.test.tsin runs35454502929,35454248166, and35453952736. Those versions launched compilation through filesystem paths and did not import today's shared prepared-worker fixture. The current implementation imports that fixture and is retained by the current planner.Of the 56 observations of eleven files absent from the publication checkout, 53 have original-tree witnesses: 46 SDK dependency paths, two affected extension envelopes, and five retained UI row memberships. Three remain unmatched in the locale run. The expanded projection above also checks the other original failed files, exposing the larger gap rather than treating absent files as the only uncertainty.
The original job failures include compiled-subprocess and module-link failures, including the missing
rejectConfigNonFiniteNumbersexport. They are not demonstrated assertion defects caused by the changed UI/SDK source. They still count under the requested all-failures oracle. No run-specific production exception, relaxed assertion, or historical-failure allowlist was added.This is a trusted graph and recorded-row projection, not a complete historical planner execution on every backend. Independent broad reasons were checked and credited first: target-count overflow, unbounded E2E plans, and a changed workspace package. The original archives were read only as data; no historical contributor code or configuration was executed. All forty SDK registry comparisons preserved the original aliases. Exact trees, hashes, dependency witnesses, row inventories, and unmatched-job causes are retained in the task evidence.
This PR remains unarmed and is not ready to merge under the absolute historical safety condition. Resolving that condition requires a decision about the inherited C2 UI scope and historical dynamic compilation dependencies.
Selection evidence
C2’s fixed 40-run cohort contains 25 runs with Node work, 2 docs-only runs, and 13 runs skipped before preflight. The 13 skipped scopes stay N/A: they have no observed changed set or executed tests. Exact paths, checkout/base SHAs, routing flags, and failed-job provenance are retained in the fixed corpus.
All 15 runs inferred by C2 to have public SDK impact changed zero SDK entry/barrel/canary/API-baseline files. Every one reached the SDK transitively from core. The labels remain inferred triggers, not historical preflight reason strings.
Canonical file membership is credited before focused config routing. A file’s local aggregate config can differ from its CI split config (
unitversusunit-src, orgatewayversus its canonical child configs); those names must not cause a second raw-target process for a file already selected in an SDK group.Current-tree failure guard
The fixed corpus binds losslessly to all 40 original C2 runs: changed paths, base/checkout/head SHAs, routing flags, profiles, expanded failed paths, and failed Node job ids. Thirteen runs stopped before preflight and remain N/A. The failure oracle includes test assertions and suite/collection failures from actual job logs, with 5,637 distinct Node failed files and 37,946 file/run observations.
On the repaired current checkout, every one of the 37,882 present failed-file/run observations remains selected on each backend. There are zero present-file omissions, planner errors, or duplicate raw targets across the 123 replay cells (40 runs × three profiles, plus one direct-entry spot per profile). The baseline replay took 118.25s and the candidate 185.40s command wall; these are planner costs, not suite or CI timings.
64 observations across 13 historical files are absent from this checkout, and are not counted as covered by this replay. The original-tree investigation below is separate and exposes a substantive safety gap. The upstream rebase newly removed
src/infra/update-repair-agent-worker.test.tsandsrc/infra/update-repair-candidate-runtime.test.tsin545089c61a85(#154453); this explains eight more unavailable observations than the first publication replay.The guard exercises the registered planner and native-shard completeness. It exposed omitted real compiler consumers during development; the production fix records their shared compiler fixture dependency rather than a run-id or historical-test allowlist. The first native CI run passed all 14 corpus cases; its measured cost is recorded with that run below.
Matched current-tree planner replay
Baseline:
d8dd61d53794ee96b93f016d3326b66cb902cae5(C2 prerequisite parent). Candidate:d813d49cdd5e695eb2671dbff9dc6ffa871ca3a6. Both use the same main base and the exact same recorded changed sets and flags. Each revision uses its own canonical inventory, including the candidate's new guard cost. Upstream changed 304 baseline files since the first publication pair, so this is a fresh matched comparison, not a selector-only experiment with identical inventories.Same 40 C2 runs, each checkout’s current canonical inventory. Node wall is LPT/96 predicted-seconds only; excludes queue/setup/preflight and other lanes. Untimed rows make it a lower bound. Absent historical files are not covered by this current-tree replay. Non-Node failures retain separate existing owners.
hybrid: all 40 recorded runs
github: all 40 recorded runs
blacksmith: all 40 recorded runs
Direct-entry spot case
src/plugin-sdk/allow-from.tsis outside the 40-run cohort and all aggregates. It checks a narrow public entrypoint absent from the historical sample.Validation before native publication
The following Linux guard/check proof is bound to the recorded source manifests before the final rebase. The repaired-head replay above and subsequent native run validate the updated inventory; the two native repairs received their own fresh checks and review.
Blacksmith Testbox
tbx_01m31dgwnw8xkn8mw806vn4ty8, run 35572670062, verified SHA-256 input manifests and completed:node scripts/check-changed.mjs, including script and test-root type checks, formatting, lint and selected ratchets.ci-workflow-guards.test.ts: 647 passed, 146.24s command wall.ci-node-test-plan.test.ts: 119 passed, 80.11s.ci-changed-node-test-plan.test.ts: 243 passed, 110.44s; the final ownership repair also passed its complete file in the same lease.test-projects.test.ts: 1,250 passed, 55.77s.ci-sdk-impact-replay.test.ts: 14 passed; final run 126.56s. This guard reconstructs real plans for the 14 failure-bearing scopes, reusing the fixed 40-run corpus. Its cost protects the historical oracle through the registered planner, including native-shard completeness.The final ownership repair reran complete changed checks plus the changed-plan and corpus guard files; the wrapper reported exit 0. The Linux lease may leave its linked hydration workflow cancelled during cleanup; the wrapper's completed command receipt owns this remote result.
The two new ownership assertions failed before the repair and passed after it. Earlier Linux validation caught and resolved a replay projection type error and a missing assertion-helper context argument. A type-aware lint canary rejected an unawaited Promise. Docs formatting and MDX passed; the link audit checked 14,257 internal links with zero failures.
git diff --checkpassed.Codex P2 branch review was scoped-clean. The subsequent assertion-context and duplicate-ownership repairs each received fresh, scoped-clean P2 reviews. No timeouts, retry policies, worker settings, runner caps, repository variables, or rulesets changed.
This PR is unarmed; the historical safety condition remains blocked.
First native PR execution
Run 35581008512 tested head
16d461bb5e5a7b8333e63e4b1478988698176afcand concluded failure in 25m11s, including queue time. It expanded 113 regular Node rows: 109 passed and 4 failed. No compatibility row ran. The aggregate gate failed, and no job was rerun.The slowest regular Node job was
checks-node-compact-large-4: 17m11s (success). The aggregate gate began 4m10s after the last other job completed; the saved watch observed it queued during this interval. This waiting time is included in workflow wall.The native run exposed one memory subprocess lifecycle assertion and three failures sharing C3’s missing extracted-wrapper metadata dependency. These are retained first-head failures; later source repairs need their own validation.
checks-node-changed-extensions-bundle-31manager-search-knn-subprocess.test.ts:284: idle-capacity eviction expectedSIGKILL, receivednull.checks-node-compact-small-42pr-worktree-provision.test.ts:37: extracted runtime closure omittedplugin-sdk-entries.mtsand its four SDK metadata JSON files.checks-node-compact-small-35pr-wrappers.test.ts:1503: anchor cannot importplugin-sdk-entries.mts; later soft assertions cascade.checks-node-compact-small-45eager-import-closure.test.ts:96: unresolved./lib/plugin-sdk-entries.mtsin extracted dependency context.openclaw/ci-gateNative guard evidence
The new
ci-sdk-impact-replay.test.tsguard passed all 14 cases inchecks-node-compact-small-40, groupcore-tooling-11-hosted-2. Its reported case durations total 128.789s; this is summed case execution time, not isolated file or command wall. The native verbose reporter did not emit a standalone file wall. The containing 23-file group took 244.46s command wall (242.84s Vitest duration). The containing job took 12m09s, and itsRun Node test shardstep took 10m26s; both include other groups.The same successful job records 648 passing workflow-guard cases. The cached failed
compact-small-42log separately records 119 passing canonical-planner cases before its later wrapper-provisioning group failed. Those guard files passed; the containing row’s failure remains a failure. The other required guard owner jobs passed, but their individual logs were not fetched in this evidence collection.All job and step values come from saved GitHub timestamps. Failed logs were fetched once per failed job and reused; the corpus/workflow guard log and preflight log were fetched once. No local proof or GitHub mutation was performed by this evidence lane.
Repairs from the first native run
The three extracted-wrapper failures had one cause: the consumer graph added an import of the canonical SDK registry, but the production wrapper extraction manifest omitted that module and its four JSON inputs. The manifest now carries all five files. The existing eager-import case failed locally before the fix; afterward, the complete 12-case eager-import file passed (24.07s command wall), the exact provisioning regression passed (55.27s including cold compilation), and the extracted-anchor execution case passed (43.02s). The manifest's complete changed checks and formatting passed.
The memory failure exposed an EOF/signal race in existing idle-child retirement: destroying stdin before signaling allowed a child to exit naturally before
SIGKILL. Retirement now signals first and then destroys stdin; admission still releases only afterclose. Existing assertions are unchanged. Blacksmith Testboxtbx_01m31m09df0n2g9czeear13zgy, hydration run 35582285035, verified source hashes and ran the original 20-file/230-test group once (168.89s, passed), the repaired identical group (157.05s, passed), the repaired 25-test file (35.61s, passed), and complete targeted changed checks (772.92s, passed). The native failure is the observed red regression; the race did not recur in the single original replay. No timing improvement is claimed from the warmed comparison.Two remote payload errors stopped before tests (an overstrict transport-HEAD assertion and payload-generation syntax); corrected source-hash binding and syntax validation preceded the actual proof above. The final wrapper reported exit 0 despite a later portal-sync warning. Both owned Testbox leases are verified stopped.
Fresh P2 review found no actionable issues in either repair. The final rebase preserved all eight task commits' patches exactly (
git range-diff), while incorporating current main. No timeouts, assertions, worker settings, retry policies, or CI capacities changed. The repaired head's native run is recorded separately below; the first failed run remains evidence.Repaired-head native PR execution
Run 35586405521 tested source head
d813d49cdd5e695eb2671dbff9dc6ffa871ca3a6and concluded failure in 21m19s, including queue time. Its 113 regular Node rows finished 113 passed / 0 failed; 0 compatibility rows ran. The first native run remains separate evidence: 113 Node rows, 109 passed / 4 failed, aggregate failure in 25m11s. No job was rerun.The repaired run retains the original failure evidence. The SDK metadata manifest repair restores the extracted wrapper dependency closure, and the memory repair requests child termination before destroying stdin. The table below compares their existing native owner jobs; it does not claim unchanged workloads or a causal C3 wall saving.
checks-node-changed-extensions-bundle-31checks-node-compact-small-42checks-node-compact-small-35checks-node-compact-small-45Remaining native failure
checks-ui-e2e (1/13)failed inui/src/e2e/chat-mobile-bubble-margin.e2e.test.ts:24: “preserves system-notice gutters at 390 and 430 px in light and restores desktop geometry” hit the unchanged 120,000ms deadline (120,029ms reporter record). The following dark case passed in 859ms. The shard completed 46 files: 45 passed and 1 failed; 203 tests: 202 passed and 1 failed; Vitest duration 381.15s.The retained failure-state capture records a connected browser and a page closed during post-timeout capture, with no recorded crash or disconnect. It does not establish the original timeout cause. Artifact
control-ui-e2e-timeout-1-1is retained as artifact 10632687449. The failure remains recorded; no deadline, assertion, retry policy, or expected result was relaxed.Measured job and step comparison
Historical, C2, first C3, and repaired C3 runs have different source inventories, row payloads, and queue conditions. Numeric compact suffixes locate observed jobs; they do not prove identical contents. Failed-step duration is time to failure. This table is measured execution evidence, separate from the modeled current-tree planner replay and the unresolved original-tree safety proof.
preflightjobchecks-node-compact-large-1jobchecks-node-changed-extensions-bundle-23jobchecks-node-compact-small-43jobbuild-artifactsjobchecks-ui-e2e-real-gatewayjobdocker-seed-e2ejobSlowest repaired regular Node job:
checks-node-compact-small-35, 15m28s (success). All durations use saved GitHub job/step start and completion timestamps; workflow wall usesrun_started_at→updated_at.The repaired native run directly observed all 14 current-tree corpus cases passing, with 109.498s total reported case time. This is not a standalone file or command wall; the native verbose reporter emits no isolated file wall. Its containing 23-file group took 235.90s command wall (234.54s Vitest duration). The containing
checks-node-compact-small-40job took 14m02s, and its test step took 13m13s, including other groups. The same cached log records 647 passing workflow-guard cases. For comparison, the first native run reported 128.789s case time and 244.46s containing-group wall. Current-tree replay success does not prove the historical run checkouts; the original-tree blocker remains explicit in the PR.Bounded UI timeout investigation
The UI, core source, fixtures, Vitest configs/launcher, timing inventory, dependency manifest, and lockfile have identical Git object IDs between main base
761725d03f2and the repaired head. The UI shard command is unchanged. The original artifact contains only post-timeout teardown state, without a live pending-operation trace; the cause remains unexplained.A single Blacksmith Testbox replay on
tbx_01m31qjcj7h66v0nsnz4arc9sb(hydration run 35588025199) verified input hashes and used the same shard 1/12, two-worker configuration, sequencer, and Chromium 153.0.8010.12 / Playwright v1243. All 46 project/file specifications matched the native shard exactly. Read-only Playwright API logging was added for diagnosis.The replay passed all 46 files and 203 tests in 234.11s Vitest wall. The previously failing light system-notice case passed in 1.107s; its dark counterpart passed in 1.143s. No source, timeout, assertion, or retry change was made. This passing diagnostic replay does not establish a fix or clear the native failure. The lease is verified stopped. A follow-up for the UI E2E diagnostics owner is to capture the pending browser operation and live renderer state at the test deadline, before suite teardown.
The PR remains open and unarmed. All task checkouts are clean, disposable baseline worktrees are removed, and owned proof leases are stopped. The original-tree safety condition and unexplained native UI timeout remain explicit follow-ups; no landing or CI rerun was performed.