Repository navigation
fix(tooling): bound package compiler and canary lifetimes - #160160
vincentkoc wants to merge 5 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. |
f3f18af to
dc493d6
Compare
407ae2a to
91c0c8e
Compare
|
Codex review: blocked before merge. Reviewed September 28, 2026, 1:46 AM ET / 05:46 UTC. ClawSweeper reviewWhat this changesThe branch serializes plugin package-boundary compilers under shared memory admission, tightens negative-canary results and cleanup, and removes the compiler-concurrency override from tooling and CI. Merge readiness⛔ Blocked before merge - 5 items remain Keep open. Current main still runs package compilers according to CPU count, so this dependent PR addresses remaining work. The non-Linux canary behavior needs an explicit compatibility decision, and the serial run has not yet been shown to fit its CI deadline. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's package-boundary check compiles bundled plugins and runs negative canaries against their TypeScript boundaries. Its results feed developer commands and a dedicated CI check. flowchart LR
A[Plugin packages] --> B[Package boundary check]
B --> C[Shared memory admission]
C --> D[Compiler process tree]
D --> E[Canary result check]
E --> F[Developer and CI result]
Decision needed
Why: The diff changes an existing cross-platform command into a fail-closed platform path; source review cannot decide whether that operator impact is acceptable. Before merge
Agent review detailsSecurityNone. PR surfaceTests +20, Docs +2, Config -2, Other -109. Total -89 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: 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: Use one bounded compiler owner, preserve strict canary qualification and retained artifacts, and establish a supported non-Linux operator path with measured cold and warm CI completion. Do we have a high-confidence way to reproduce the issue? No live reproduction was run. Current-main source shows CPU-based compiler concurrency without the shared process-tree admission that this PR adds. Is this the best way to solve the issue? Unclear. The shared admission owner and stricter canary result check fit the defect, but the platform cutover and full-run timing need qualification. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1ca6a5d0a801. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
dc493d6 to
6f5f4fa
Compare
Related: #160010
Depends on: #160152 and #160014
What Problem This Solves
Package-boundary checks started multiple native compilers based on CPU count, without a hard process-tree memory budget. Canary cleanup could remove inputs before an uncertain compiler shutdown, and any nonzero exit containing the expected text could count as a passing negative canary.
User Impact
The existing compiler owner now admits one compiler at a time through the shared host memory budget and waits for its descendants before proceeding. A failed step stops the batch. The caller's Go environment remains intact; CPU count no longer selects memory concurrency. The obsolete compiler concurrency setting and its additional-check fallback are removed.
Negative canaries accept only exit 1 with TS6059 and the canonical canary source path. Timeout, cancellation, resource refusal and killed compilers fail. Canary inputs and their receipt remain available when cleanup cannot be verified, with the retained artifact owner. Queued cancellation preserves the original error identity, including DOMException, and the CLI ends failures with one final trailer.
Evidence
Focused remote native/lifecycle/canary tests, independent review and cold/warm real package-boundary timing are in progress. The existing CI deadline is unchanged; runtime proof is required before readiness. Changed tests retain package exports, private workers, ambient declarations, inherited paths, cache invalidation, cancellation and bounded output coverage.
Production/tooling +133/-245 (net -112), tests +249/-229 (net +20), changelog +2: 858 changed lines across seven files. No dependency change.