Repository navigation
chore(ci): qualify selective compiler backports - #175991
vincentkoc wants to merge 17 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: needs maintainer review before merge. What this changesThis PR pins a repaired compiler candidate and adds isolated resource profiles, synthetic cache checks, and paired canonical-wrapper qualification. Example: Qualify the extensions-test graph with four CPUs and no swap.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored draft open: it adds useful, bounded compiler qualification, and the introduced changes reveal no actionable correctness finding. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe opt-in CI workflow supplies pinned compiler binaries and immutable source inputs to a Docker collector, which exports diagnostics and lifecycle receipts for a separate qualification auditor. flowchart LR
A[Manual qualification workflow] --> B[Pinned binaries and workload]
B --> C[Isolated collector]
C --> D[Graph cache and wrapper trials]
D --> E[Diagnostics and lifecycle receipts]
E --> F[Independent auditor]
F --> G[Scoped qualification verdict]
Technical reviewBest possible solution: Retain the bounded qualification tooling and its explicit experimental limits while leaving compiler adoption to the existing qualification program. Do we have a high-confidence way to reproduce the issue? This is qualification infrastructure rather than a current-main product bug; supplied hosted runs exercise the declared collector paths, and no target code was executed during this review. Is this the best way to solve the issue? The existing collector remains the execution owner, with shared admission checks and separate auditors; the added cache and row machinery serves distinct lineage, lifecycle, and completeness contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bd36d52666e6. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +1095, Config +80, Other +2885. Total +4060 across 13 files. Added test files: 3. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed October 19, 2026, 4:08 PM ET / 20:08 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
The previous compiler candidate lost generic arguments in value import queries such as
typeof import("./factory").fn<T>, producing a real Slack test failure. This draft pins the repaired candidate and adds explicit graph profiles, independently auditable synthetic cache checks, and isolated admission through the canonical CI wrappers. The repository compiler selection stays unchanged.Related: #175541
Stack base: #175567
User Impact
The repository compiler selection is unchanged. This opt-in qualification workflow and all compiler fixes remain drafts; landing and adoption require explicit owner approval.
Why This Change Was Made
Candidate
vincentkoc/tsc-ts@a80cd9190942d16286a8483f1f51d9a68037324fincludes four stacked repairs: uniform-union narrowing, recursion/identity relations, no-emit exit semantics, and generic import-query instantiation. It remains a selective 7.0.2-based candidate.The separate capacity profile preserves four CPUs, no swap, immutable inputs, original flags/Go policy, deadlines and cleanup rules, while raising the two large plugin graphs' hard limit from 12GiB to 24GiB. The other 36 graphs retain 12GiB. Profile identity is recorded and audited; the failed 12GiB controls remain failed. Memory diagnostics retain raw traces but cannot qualify as benchmark samples.
Linux 6.6.141 can create inactive fallback tunnels inside a network namespace; Docker's null network driver does not make a one-device inventory a valid contract. The shared collector/auditor validator replaces the incorrect one-device assertion with exact documented device name/type pairs, all non-loopback devices down, matching sysfs/proc inventories, distinct namespaces, all five capability sets zero,
NoNewPrivs=1, complete loopback-only route inventories, and observed TCPENETUNREACH. Unknown or incomplete facts fail admission before compiler invocation. The artifact retains the receipt for independent replay; EROFS, resource, deadline and cleanup enforcement remain in place.Synthetic cache checks use one fresh container per call, bounded cache-only transport, immutable producer snapshots and fresh receiver controls. The wrapper proof uses the seven canonical row commands and scheduling, with an identical experiment-only CLI overlay in both arms. API/declaration consumers remain pinned. Frozen cgroup snapshots, descendant accounting, row-level outcomes, generated-input hashes and exact cleanup are recorded before a pair can qualify; a rejected pair stops later row admission.
Validation
38/38 canonical graphs qualify across the two declared profiles. All 576 planned trials were attempted and accepted; none were rejected or missing.
Candidate and pinned compilers typecheck cleanly with equivalent, stable outcomes in all 44 repository graph/mode comparisons (396 trials). All 180 canary trials are valid, with candidate/pinned diagnostic and exit parity and matching configured expectations. The 7.0.2 reference completes with stable outcomes, including known version-specific diagnostics; it is not a clean-reference result.
All 38 artifact ZIP digests and actual pinned-auditor replays were independently verified. Checks cover source/run/attempt, immutable producer and compiler identities, the common 108-library manifest, input equality, resource profiles, raw isolation receipts, EROFS/deadline/exit smokes, terminal non-OOM trial state, process/GNU-time exits, output hashes and joined cleanup.
These results cover compiler/typechecking, including test-source graphs. Application runtime and E2E test execution are outside this run. The separate 24GiB profile does not replace or turn the earlier failed uniform-12GiB controls into a pass.
Historical graph workload:
37ceb90e289b181af83c0c58a74caa1dceec2a5a. At that head, hosted tooling passed 63 tests, both tooling typechecks, lint, formatting and workflow checks. The isolation-only diagnostic passed without compiler invocation; its ZIP digest and actual validator replay were independently verified.Full compiler CI, attempt 1, passed all 69 selected units on their first attempts, with no omitted, skipped or quarantined selected units. The workflow branch was
614c02692c886460780faa77d54dbd942d5571b7; the actual PR checkout33c70ec2cc345fcb199566883e783898cc24112ewas verified tree-equivalent. Compiler semantics remain those ofa80cd919. Existing internal exclusions remain: 29 excluded CLI cases; 263 parser-only boundary cases reported separately from 4,982 comparisons per arm; resolver exclusions in each of three modes; and threshold-based emit/declaration sampling. This is not exhaustive compiler equivalence. The selected native-watch unit passed all 10 tests on their first attempts; the earlier retry is historical evidence. The earlier 67/69 fixture-failure run remains historical failed evidence.The synthetic cache run, attempt 1, collected all 56 planned calls at collector
0998c17442a86369272fd043e1bec71021f0cca5. Its original auditor rejected upstream-valid bare standard-library names. The strict manifest-based correction at auditor2d66b712cfc6c9156926152e9a831551a6cc62abwas independently replayed against the same digest-verified artifact12206310576, with no compiler recollection: 56/56 outcomes, 26 seeded transitions, 59 cache files (396,996 bytes), fresh controls, immutable handoff seeds, diagnostics, hashes and cleanup all pass. ZIP SHA256:f5fd7aceff885b0a4ab8d102d89d28e3654078f2dfae73c693d6640ed4d997f7. Corrected-auditor tooling passed. The original run remains failed; this is a separately attributed successful replay, withperformanceEligible=false. Truncated-cache cases do not establish actual interrupted-write recovery.Separate package qualification passed seven targets, 14 Node 24.16/26.1 observations and 98 checks: six non-Windows targets from run 39284302977, and Windows from run 39290103425 after the portable archive-path repair. The original Windows harness failure remains recorded. Those package binaries and their 107-library manifest
2261994e4ef466f5e79bcc81f81de2b3798b1d3bb3e398fd98a9a97e774e620ddiffer from the qualified raw binary9785e87d…and 108-library manifestb13ee3a6…; semantic qualification does not transfer between them.Canonical-wrapper correctness passed under the declared four-CPU / 24GiB / no-swap profile in run 39308750952, attempt 1, at harness
04c2ea15fe62ed3d71f71dd6e9e70a7654ac35a5. All nine mandatory smokes, seven row pairs / 14 arms and 76 checking calls passed; both parent-row exits and all checking outcomes are clean and equivalent. The independent audit verified all 23 row-profile container cleanups, frozen lifecycle evidence and zero OOM events on actual rows, and replayed the exact04c2ea15auditor with the same verdict as hosted CI. Artifact12217109269(11,911,885 bytes), ZIP SHA256b10bb78778f8a55a06ed985946e018fe23671c3fcce1d68df22b31c659884fce, binds the immutable workload37ceb90e289b181af83c0c58a74caa1dceec2a5a, baseline2330ea6c0951273da91489db91af768d214f93c71583a377a327363a6828e72e, candidate9785e87da1650d3a4007d234bc194c63b640524c010497884e4b93161c7bb149and common 108-library manifestb13ee3a64a0d52a1bffd5b509cdfd56552444b4295dd258463edf46cb58e9133. Collector accounting is 76 checking calls plus two explicit compiler-version queries: 78 native CLI calls. Provenance hashing/extraction performs no native call; CLI discovery, API sessions/operations and declaration emission are zero in this collector route. The separate tooling prerequisite adds two explicit pinned typechecks, giving 80 explicit native calls across these identified routes. Dependency installation/setup is outside the collector inventory; no zero-call or whole-CI total is asserted for it. All 76 build-info hash/size and input receipts were validated; raw build-info bytes were intentionally not retained under this proof plan. The proof preserves each canonical row's commands and inner scheduling, with a serial outer pair loop; it is not normal 16-CPU CI, a whole-CI timing comparison, a speedup or adoption proof.The two earlier wrapper attempts stopped before any compiler version/provenance or checking invocation. Run 39302907626 failed the first smoke on scratch-directory
EACCES; effective ownership/mode on that failed runner was not recorded. Run 39305749476 proved the corrected 0700 scratch owner and first five smokes, then rejected the deliberate child-OOM control because Docker correctly reportedOOMKilled=truewhile the harness expected false. Both artifacts prove exact cleanup and 0/76 checking calls. Only that designated positive control now expects the true flag; ordinary controls and actual rows still require false and zero OOM counters.Exact harness
04c2ea15passes 117 focused tests, both tooling typechecks, lint, formatting and workflow checks. Earlier tooling-only failures remain recorded: argv narrowing and lint; both skipped comparison with zero compiler calls.The original native producer, run
39162206911, attempt 1, artifact12149466946, expired on 2026-10-21. The historical behavioral evidence above remains attributed to its original harness and artifact identities.Producer-only restoration, attempt 1, rebuilt immutable compiler source
a80cd9190942d16286a8483f1f51d9a68037324fat producer workflowe256fcaca159a4bada953b27430157a71831a657. Independently audited artifact12545079224expires2026-11-23T02:52:19Z; ZIP SHA-256bc7e7ab2562ba84e1c55b85ea70155bb35d44d1670cfa716f2c2b6188d5b27d7, tar SHA-256a435f15e1fd1c7f20e9732823e43c82a0c0fa0a27674b39f234b50c66d404c75. The restored compiler exactly matches SHA-2569785e87da1650d3a4007d234bc194c63b640524c010497884e4b93161c7bb149; the separately restored 108-library manifest exactly matchesb13ee3a64a0d52a1bffd5b509cdfd56552444b4295dd258463edf46cb58e9133. The first restoration attempt failed an added post-build content guard on npm workspace-launcher mode normalization and retained no native bytes; it establishes neither a binary match nor mismatch.Consumer transport refresh
782b3a63c288a0661c7009626cb28c48b6da1f91changes only seven run/artifact/hash/expiry literals or comments (+7/-7). Compiler source and binary, libraries, workload, sandbox and qualification logic are unchanged. Exact-diff independent review, collector syntax, scoped formatting and workflow syntax checks pass. Current-head PR tooling, attempt 1, passed the focused boundary tests, both tooling typechecks, lint, formatting and workflow checks; its comparison job was skipped with zero steps. Workflow Sanity also passed. No graph, cache or wrapper campaign was redispatched. The completed behavioral proof remains at04c2ea15fe62ed3d71f71dd6e9e70a7654ac35a5, not a fresh run at the transport head. No moving-build fallback.Limits and Follow-ups
04c2ea15fe62ed3d71f71dd6e9e70a7654ac35a5, with no actionable findings or before-merge requests. It used REST/linked-artifact evidence; the separate audit above performed receipt replay. It is not an exact-head review of the transport refresh, which received separate bounded independent review. Landing remains subject to explicit owner approval.476fbb2663c1b6e2c67d14e3a8b26cb793e9fc05: tooling/workflow +3,109/-144 (+2,965 net), tests/fixtures +1,095/-0; no product runtime changes. The positive tooling delta owns bounded cache transport and lineage audit, runtime staging, actual-row isolation, cgroup barriers, terminal outcome and cleanup receipts. These are required to distinguish complete compiler/wrapper proof from a collector-only green result. Independent source reviews and scoped autoreviews closed the identified admission defects; hosted execution remains separately reported above.