Repository navigation
fix(tooling): contain compiler graph discovery - #160112
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. |
|
Codex review: blocked before merge. Reviewed September 28, 2026, 2:51 AM ET / 06:51 UTC (Revision 5). ClawSweeper reviewWhat this changesThe branch puts TypeScript compiler graph queries under shared memory admission, extends cancellation through cleanup, and updates the supplemental check scheduler, tests, and CI guidance. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 5 items remain This PR remains useful: current main has the admission helper but does not apply it to compiler graph discovery. The earlier non-Linux compatibility blocker remains unresolved; the corrected command example and recorded test cost address the other prior findings. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s CI tooling asks the TypeScript compiler for project configurations and file inventories. Those results feed boundary checks and changed-file type-check planning. flowchart LR
A[CI or changed-file check] --> B[Graph discovery]
G[Supplemental check scheduler] --> B
B --> C[Host admission]
C --> D[Compiler process tree]
D --> E[Project file inventory]
E --> F[Boundary and type-check plan]
Decision needed
Why: The branch intentionally trades an existing working local path for a stronger memory boundary; source establishes the break, but accepting that operator impact requires maintainer intent. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +454, Docs +25, Other +97. Total +576 across 9 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 the complete graph-check workflow usable on supported developer hosts through a qualified bounded Linux route, and activate CI admission after its runner backend is provisioned. Do we have a high-confidence way to reproduce the issue? Yes for the merge regression: the new graph-query call reaches an admission helper that returns 75 on macOS and Windows before launch. The reported high-memory incident was not reproduced in this read-only review. Is this the best way to solve the issue? No as submitted. Linux containment addresses the process lifetime, but the complete non-Linux workflow and CI backend must be qualified before the new refusal is safe to land. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ab07fa87ec08. 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 (4 earlier review cycles)
|
41edba4 to
06bd63c
Compare
06bd63c to
ebdcb13
Compare
Related: #160010
Prerequisite merged: #160094
CI provisioning prerequisite: #160014
Problem and repair
Compiler graph discovery starts native programs for configuration expansion and file inventories. These queries can grow far beyond the selected file list. Cancellation previously covered an active child but not admission waits or gaps between queries.
Both public graph-inspection entrypoints now use shared host admission and Linux kernel process-tree containment. Cancellation covers the complete operation, preserves the original signal status, stops later queries and preserves uncertain ownership as an error. Inventory output remains bounded at 256 MiB.
The supplemental boundary scheduler now launches the graph's actual Node owner directly. Its 250 ms force-kill deadline remains for disposable checks; graph cancellation instead joins the implementation through cgroup extinction and admission release. Repeated signals cannot kill that owner, and cancellation stops queued checks from starting.
Platform behavior
Direct native graph queries currently require a qualified Linux backend. macOS and Windows must run the complete check through a bounded Linux worker or VM; there is no unbounded fallback. The documented route now names the actual package command:
node scripts/crabbox-wrapper.mjs run --workload ci-fast --target linux -- corepack pnpm lint:tmp:tsgo-core-boundaryThe non-Linux compatibility review and live qualification of that whole-command route remain open. Remote preparation does not promise local generated artifacts. General compiler and lint activation remain separate slices.
Validation
Current head:
7a5e75cf9491238d3b649c00ca34fb40e292674d.Previous review fixes: corrected the nonexistent remote entrypoint and recorded this process suite's measured cost. Linux backend qualification and platform policy remain explicit landing requirements.
Production/tooling +158/-61, tests +470/-16, docs +25. Growth owns complete cancellation and the scheduler/graph lifetime boundary; it reuses existing admission and compiler containment without a new runner, dependency or configuration switch.