Skip to content

fix(tooling): bound package compiler and canary lifetimes - #160160

Draft
vincentkoc wants to merge 5 commits into
fix/semantic-sdk-preparationfrom
fix/semantic-package-compiler
Draft

vincentkoc wants to merge 5 commits into
fix/semantic-sdk-preparationfrom
fix/semantic-package-compiler

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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.

@vincentkoc vincentkoc self-assigned this Sep 28, 2026
@clawsweeper

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

@vincentkoc
vincentkoc force-pushed the fix/semantic-sdk-preparation branch from f3f18af to dc493d6 Compare September 28, 2026 05:39
@vincentkoc
vincentkoc force-pushed the fix/semantic-package-compiler branch from 407ae2a to 91c0c8e Compare September 28, 2026 05:39
@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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 28, 2026, 1:46 AM ET / 05:46 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 91c0c8e2863b81d001196cc697c1828835310ff9
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) PR readiness rating was derived from proof quality, review findings, security review, and reviewer confidence.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate; its changed production path is the package compiler and canary CLI, while the captured body says real cold/warm and lifecycle runs are still in progress. The stored artifact format is unchanged.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate; its changed production path is the package compiler and canary CLI, while the captured body says real cold/warm and lifecycle runs are still in progress. The stored artifact format is unchanged.
Evidence reviewed 8 items Introduced compiler path: The pinned PR hunk sends each Node compiler step through shared semantic admission and requires its process tree to exit.
Canary qualification: The changed canary accepts only a joined exit-code-1 failure containing TS6059 and the canonical source-path hint.
Platform boundary: The shared admission owner returns status 75 before launching a compiler outside Linux; the standalone canary now reaches this owner.
Findings None None.
Security None None.

How this fits together

OpenClaw'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]
Loading

Decision needed

Question Recommendation
Should the standalone package canary become Linux or bounded-remote only before a native macOS or Windows containment backend exists? Qualify the bounded path: Document the supported remote or VM command and show the full package check completes within the CI deadline before landing.

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

  • Resolve merge risk (P1) - The standalone package canary previously used a cross-platform managed compiler; this branch routes it to Linux-only admission, so existing macOS and Windows invocations fail with status 75 unless maintainers accept and explain the bounded remote path.
  • Resolve merge risk (P1) - Serial compile and canary work has not been timed in a real cold and warm package-boundary run at this head, so its fit within the unchanged 20-minute CI job remains unverified.
  • Complete next step (P2) - Resolve the non-Linux canary compatibility choice and provide exact-head real package-boundary timing and lifecycle proof before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +20, Docs +2, Config -2, Other -109. Total -89 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 249 229 +20
Docs 1 2 0 +2
Config 1 0 2 -2
Generated 0 0 0 0
Other 2 133 242 -109
Total 7 384 473 -89

Review metrics

Metric Value Why it matters
Compiler and CI budget 1 host/account compiler slot; 20-minute CI job Serial execution needs an end-to-end timing result against the existing job limit.

Stored data model

Persistent data-model change detected: unknown-data-model-change: scripts/check-extension-package-tsc-boundary.mts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #160010
Summary: This PR is one package-compiler activation slice of the open memory-containment repair series.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Qualify the bounded path (recommended)
    Confirm the non-Linux operator route and capture exact-head cold and warm package-check timing under the existing CI deadline.
  2. Retain local canary support
    Pause this canary cutover if preserving the existing macOS and Windows command is required.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This repairs a bounded developer and CI tooling failure rather than an urgent user-facing runtime outage.
  • add merge-risk: 🚨 compatibility: Routing the standalone canary through Linux-only admission changes an existing macOS and Windows command's outcome.
  • add merge-risk: 🚨 automation: Serializing package compilers can cause the dedicated CI check to exceed its unchanged 20-minute limit.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate; its changed production path is the package compiler and canary CLI, while the captured body says real cold/warm and lifecycle runs are still in progress. The stored artifact format is unchanged.

Label justifications:

  • P2: This repairs a bounded developer and CI tooling failure rather than an urgent user-facing runtime outage.
  • merge-risk: 🚨 compatibility: Routing the standalone canary through Linux-only admission changes an existing macOS and Windows command's outcome.
  • merge-risk: 🚨 automation: Serializing package compilers can cause the dedicated CI check to exceed its unchanged 20-minute limit.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate; its changed production path is the package compiler and canary CLI, while the captured body says real cold/warm and lifecycle runs are still in progress. The stored artifact format is unchanged.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit e07ec8c adds scripts/lib/semantic-check-admission.mts:16 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e07ec8c700d5; files: scripts/lib/semantic-check-admission.mts)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: L 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