Repository navigation
fix(tooling): contain SDK declaration preparation across callers - #160152
vincentkoc wants to merge 2 commits into
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 September 28, 2026, 2:09 AM ET / 06:09 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch runs plugin SDK declaration preparation inside the shared memory and cancellation lifecycle used by lint and package-boundary checks. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 5 items remain This remains a useful part of the reported memory repair, but the previously identified macOS and Windows compatibility blocker is still present. The earlier changelog finding is resolved. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's tooling prepares declaration files before lint and plugin package checks consume them. The preparation step launches native compilers, publishes artifact records, and releases ownership when the work finishes. flowchart LR
A[Lint or package check] --> B[Declaration preparation]
B --> C[Artifact ownership]
C --> D[Host admission]
D --> E[Native compiler]
E --> F[Declaration files and records]
F --> G[Lint or package result]
Decision needed
Why: The branch intentionally replaces a working local command with a refusal on two supported development platforms; accepting that compatibility change requires maintainer intent. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +208, Other +122. Total +330 across 12 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep Linux declaration compilers within one admitted, joined lifecycle while providing a working default route for macOS and Windows and verifying the provisioned CI path before activation. Do we have a high-confidence way to reproduce the issue? Yes for the introduced platform regression: a cold declaration step on macOS or Windows reaches the admission owner's status-75 return. This review did not execute that path. Is this the best way to solve the issue? Not yet. Shared admission and joined cleanup fit the memory problem, but the unconditional platform refusal needs a supported default route or an explicit compatibility decision. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cf858b51cca6. LabelsLabel changes: No label 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)
|
41edba4 to
06bd63c
Compare
f3f18af to
dc493d6
Compare
06bd63c to
ebdcb13
Compare
dc493d6 to
6f5f4fa
Compare
Related: #160010
Depends on: #160112 and #160014
What Problem This Solves
SDK declaration preparation launched native compilers with only Go GC hints. Its lint and package-check callers also launched a separate preparation supervisor which could be killed before its compiler process tree and locks finished cleanup.
User Impact
Each declaration compiler now uses the shared host admission and Linux kernel process-tree memory limit. Compiler batches run serially on every machine. Preparation exports one operation composed directly into the existing artifact owner in both lint entrypoints and the package boundary checker. One cancellation signal survives admission, execution, inventory publication, and asynchronous ownership release. The package checker retains its 420-second preparation deadline without a competing outer process-kill timer.
Streamed preparation output respects backpressure and rejects lines over 64 KiB; output cleanup errors preserve any unjoined compiler failure. Inherited artifact owners record unverified cleanup before a CLI can catch the error and turn it into an exit status. Interrupted commands cannot publish completion receipts. Unsupported hosts receive the existing bounded remote-worker guidance.
This slice activates declaration preparation only. The package checker's compile/canary leaves and Oxlint itself remain separate tracked activation slices. CI backend provisioning must land first.
Evidence
Focused remote proof used one worker and a 7 GiB kernel scope. At
67ceda95, 189 tests passed across the eight-file selection; the run exposed a relocated fixture import and a real inherited-owner retention regression. At exact headf3f18af4df744537e51314a55e26d2f42fce457b, both repaired suites pass: 70 tests, 33.52 seconds Vitest / 34.21 seconds test wall time. The unchanged other six files passed in the first run. Script typecheck, typed lint of all five changed production modules, formatting and whitespace checks also pass (63.135 seconds combined). Independent review found no actionable P0–P2 finding. Changed-test typed lint and final combined CI remain pending parent graph/backend landing. The new tests cover compiler serialization/fail-stop, oversized output, cleanup-error preservation, a real kernel-contained declaration worker, and existing cold/warm/invalidation/lock-through-consumption behavior.Production/tooling +230/-108 (net +122) replaces nested supervisors with a shared lifetime. Test changes +303/-95 include fixture composition changes; changelog +2. No dependency change.