Skip to content

ci(windows): prove VS Code managed-server install lock suite on Windows (#9498) - #9541

Merged
EffortlessSteven merged 7 commits into
mainfrom
claude/vscode-install-lock-windows-proof
Oct 22, 2026
Merged

EffortlessSteven merged 7 commits into
mainfrom
claude/vscode-install-lock-windows-proof

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #9498

Acceptance delta (one sentence): The existing advisory windows-advisory-subset job now runs editors/vscode/test/suite/managed_server_install.test.js under plain mocha on a Windows runner, with verdict, missing-evidence and zero-test checks.

What changed

  • .github/workflows/windows-advisory.yml: setup-node, npm ci && tsc, and mocha --ui tdd for the install-lock suite inside windows-advisory-subset (no new job/workflow; same merge-ready / schedule / workflow_dispatch routing; advisory outcome, non-advisory evidence). The suite imports no vscode module, so the VS Code test host is not needed.
  • docs/CI.md, policy/ci-lane-whitelist.toml: lane description and command list.
  • No change to managedServerInstall.ts: by Node/libuv semantics process.kill(pid, 0) on Windows yields ESRCH for a nonexistent pid, so isProcessAlive and the test's deadPid() are expected to hold; the hosted Windows run is the proof and any divergence it shows will be fixed in the existing owner.

Local proof (Linux)

  • Suite: 21 passing under npx mocha --ui tdd out/test/suite/managed_server_install.test.js.
  • Negative experiment: forcing isProcessAlive to return true in the compiled output makes 3 dead-owner tests fail (18 passing, 3 failing); restored afterwards.
  • cargo xtask check-workflows: pass. cargo xtask precommit: all policy gates passed; ended with an instrument failure (cargo lock timeout enumerating test-valued covered_by, shared target contention), not a source failure.

Hosted Windows result

Pending; see comments.


Generated by Claude Code

…-advisory-subset (#9498)

Adds Node/mocha steps (no VS Code host) to the existing advisory subset job,
with verdict, missing-evidence and zero-test checks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 103 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: b3af62f7-54e7-4316-9574-6671ec2101fd
📥 Commits

Reviewing files that changed from the base of the PR and between f039726 and 8e3314d.

📒 Files selected for processing: 4
  • .github/workflows/windows-advisory.yml
  • changelog.d/9498-windows-install-lock-proof.md
  • docs/CI.md
  • policy/ci-lane-whitelist.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 06:59

Copy link
Copy Markdown
Member Author

Hosted Windows proof (head 3723981): workflow_dispatch run https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/39735687445, job windows-advisory-subset on windows-latest. Node 24, npm ci && tsc, then mocha --ui tdd out/test/suite/managed_server_install.test.js: 21 passing, 0 failing; verdict subset-vscode-install-lock: PASS; the zero-test guard passed. All dead-pid tests passed unmodified, so process.kill(pid,0) ESRCH semantics and directory rename hold on Windows and no change to managedServerInstall.ts was needed. The PR-event run was skipped by the label gate (no merge-ready/windows-ci), as designed. Unrelated: the same job's pre-existing subset-selector-literal receipt reported FAIL (advisory), not touched here.


Generated by Claude Code

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed findings

  • Hosted Windows result for the VS Code managed-server install lock suite is pending; PR body states 'Pending; see comments.' No review comment or review summary in the seeded thread contains a hosted Windows log, status file, or mocha passing count.
  • policy/ci-lane-whitelist.toml 'estimated_lem = 30' is unchanged while the new step adds npm ci, full tsc compile of editors/vscode, and a mocha run on a Windows runner that historically has been the bottleneck for the subset job. The PR body does not claim a measured LEM delta, so the whitelist number is now a soft under-count for the merge-ready subset path.

Verification questions

  • Confirm the claimed red/green discriminator is not backed here by an immutable receipt, although the workflow itself has a nonzero-test oracle.
  • Confirm the new 'mocha exited 0 but reported no passing test' grep is a real defense against a silent 0-test pass, but it only triggers when status==0, and 'N passing' is anchored to one+ leading space plus 1-9 leading digit; verify mocha's tdd reporter output on Windows matches that shape under bash redirection.

Refuted

  • A green no-op Mocha run can satisfy the new proof contract.; refuted because: When status is zero, the workflow requires a log line matching one or more passing tests.

Evidence gaps

  • The workflow validation receipt failed, leaving the changed YAML without affirmative syntax/schema proof.
  • No public architecture issue is established, but native Windows proof and workflow validation remain unavailable.
  • The workflow checker failed, so YAML validity and action metadata remain unverified.
  • Hosted Windows proof is still pending, so the Windows process-liveness and lock semantics remain unverified in the supplied evidence.
  • Model proof intent was rejected by deterministic validation.
  • Native Windows behavior of the managed-server install-lock suite remains unverified in the available packet.
  • PR body claims 'process.kill(pid,0) on Windows yields ESRCH' as the reason the install-lock suite passes, and explicitly says any divergence on the hosted run 'will be fixed in the existing owner.' That is an unverified-by-this-PR portability claim resting entirely on a future hosted run; opposition cannot validate it from the diff alone.

Copy link
Copy Markdown
Member Author

Hosted Windows proof (answers the bot review's "pending" gap): workflow_dispatch run https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/39735687445, job windows-advisory-subset on windows-latest concluded success. The mocha step reported 21 passing, 0 failing, and subset-vscode-install-lock: PASS, with deadPid() unchanged, so no divergence needed fixing. The N passing grep shape matched mocha's output on Windows under bash. Local negative experiment: forcing isProcessAlive true fails 3 dead-owner tests. cargo xtask check-workflows passed locally. The separate full windows-advisory job failure on that run is the advisory lane's existing selector-literal receipt, not touched by this diff. estimated_lem left at 30: the subset step adds npm ci, tsc and 21 fast mocha tests, not measured separately; I'll adjust if the lane's recorded duration moves.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Integration handoff for the existing branch owner: head 3723981 is currently mergeable=false/dirty, but the native Windows install-lock proof is already present. Job 119680706912 in run 39735687445 checked out that exact head and recorded 21 passing plus subset-vscode-install-lock: PASS. Reuse that receipt rather than repeat old-head proof based on the stale pending review. Please resolve the current-main composition, preserve existing functionality, then obtain independent exact-new-head review and applicable qualification. The same job's selector-literal FAIL and failed full Windows advisory are separate outcomes, not an install-lock failure and not an all-green qualification claim; route them to the existing selector owner rather than silently suppressing them. No competing writer or broad diagnostic campaign requested.

…/xtask/LSP subset steps

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh
…o a compile failure cannot skip them

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

Copy link
Copy Markdown
Member Author

Integration update. I resolved the conflict with current main, keeping main's process-owner, xtask-capture and LSP-initialize subset steps and adding the install-lock suite alongside them (head f7ec3cf). cargo xtask check-workflows passes on the merged tree and the YAML parses.

Independent read-only review of merge commit 640a7be (workflow correctness, and policy/doc parity) found no blocking issues. The label lists (verdict loop, missing-evidence loop, artifact paths) carry each of main's labels once plus subset-vscode-install-lock; the mocha zero-test guard and working-directory paths are correct; whitelist command text matches the workflow. One non-blocking finding was taken: the compile step was a hard-fail placed before main's three steps and could skip their evidence, so the install-lock steps now run after them (f7ec3cf).

The native Windows install-lock receipt (run 39735687445, 21 passing, subset-vscode-install-lock: PASS) was recorded at an earlier head and is reused for the suite itself. The merged ordering has not yet run hosted; the merge-ready label is re-applied so it does. Selector-literal FAIL and the full windows-advisory failure are separate outcomes tracked in #9521, not an install-lock failure and not an all-green claim.


Generated by Claude Code

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread .github/workflows/windows-advisory.yml Resolved
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

Copy link
Copy Markdown
Member Author

Independent static delta review at f264d7b: no blocking ordering/composition finding. The repaired order preserves process-owner, xtask-capture and LSP-initialize before Node setup and the hard-fail compile; verdict/evidence/artifact entries remain intact. f264d7b is a changelog-only successor, fixing the missing-fragment finding in content; please reconcile its still-open review thread. The current workflow blob also matches the observed merge object.

Reuse existing Windows run 39742742208 / job 119703938578 to verify actual checkout and ordered step outcomes. It is still running; temporary log BlobNotFound does not establish failure or executed checkout. Full Windows is skipped in this run, not passed. The earlier 21-test receipt remains proof only of its original head/suite, and #9521 stays separate. No extra dispatch or duplicate native proof requested.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the hosted Windows receipt cited by the thread proves 21 passing tests, a zero-test guard pass, and subset-vscode-install-lock: PASS for the earlier suite head, but does not prove the current merged step order.
  • Confirm the new npm install/compile step is placed before the selector-recovery step, so an npm or TypeScript failure can prevent the pre-existing selector evidence from being produced in that run.
  • Confirm native-Windows proof (run 39735687445, 21 passing) was recorded at an earlier head; the merged f264d7b has not yet run hosted end-to-end with the new step, so the receipt is reused rather than regenerated on the exact new head.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Independent source review of successor af90f40 found a qualification-reporting gap in the new continue-on-error on npm ci/tsc. The compile step has no retained outcome consumed by the verdict; the subsequent mocha step overwrites subset-vscode-install-lock.status with its own exit alone. tsconfig.json does not set noEmitOnError, so tsc may emit runnable JavaScript while returning nonzero for type errors. The suite could therefore pass despite compile failure. This is a source-based finding, not an observed failure of the running successor.

Please keep this with the existing owner: retain the compile outcome and make compile failure produce FAIL or explicit UNVERIFIED for install-lock, while still allowing later selector evidence to run. Add a bounded negative control for failed compile plus otherwise passing suite, then obtain independent exact-successor review. No duplicate qualification campaign is requested; reconcile the already running successor first.

Preserve the valid prior receipt separately: run 39742742208/job 119703938578 actually checked out f264d7b and passed all nine subsets, including install-lock 21 passing (830 ms), with selector PASS. That receipt does not clear af90's changed failure semantics.

…e cleared by a passing suite

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

Copy link
Copy Markdown
Member Author

Review of record, head 1522fb9.

Compile-status finding from the source review is fixed: the compile step now retains subset-vscode-install-lock-compile.status and exits 0 so later evidence still runs; the mocha step overwrites the install-lock status to 1 (and appends a log line) when the compile status is nonzero or missing, so a passing suite cannot clear a failed npm ci/tsc. Bounded negative control run locally against the two shell steps: failed compile with a passing suite gives status 1, successful compile gives status 0. cargo xtask check-workflows passes and the YAML parses.

Angles reviewed on this exact head (independent read-only reviewer for the delta f264d7b..1522fb9, plus the earlier merge-commit review): (1) shell semantics: $? of the npm ci && tsc list, PIPESTATUS capture, fail-closed on a missing status file, relative paths from editors/vscode; (2) downstream consumption: verdict loop prints FAIL for status 1, the missing-evidence check still finds both files, the zero-test guard is gated on status 0 so it cannot misfire; artifact upload includes the new file. No blocking findings. Non-blocking, not taken: surface ::warning:: on compile failure, include the cause in the log line, split the long one-liners. The lane stays advisory: a FAIL verdict does not turn the job red (unchanged by this PR).

Receipts: suite proof 21 passing on windows-latest (run 39735687445, earlier head) and a full nine-subset pass at f264d7b (run 39742742208); neither covers the changed failure semantics, which the hosted run on the merge-ready label for this head will exercise. Selector-literal failures are tracked in #9521.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Independent read-only delta review at 1522fb9 closes the compile-failure masking concern in 6336391898. The npm ci && tsc status is captured immediately; nonzero, missing, empty or malformed compile status forces the combined install-lock result to FAIL even if Mocha passes. Mocha/tee status, zero-test guard, artifact retention and selector continuation remain intact. No new blocking finding in this narrow repair.

This is static review, not independent execution of the owner's local negative control. A normal hosted success does not itself demonstrate failed-compile/passing-suite discrimination. Keep the reported local control scoped accordingly. Existing Windows run 39749616443/job119726582741 is running; actual checkout, compile status, suite verdict/count and selector receipt remain to be established when logs are available. Full Windows is skipped; the other green CI run with Rust/VS Code execution skipped is not install-lock proof. Reuse existing runs; no additional campaign requested.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • Whitelist estimated_lem=30 is unchanged while the subset now also runs npm ci + tsc + 21 mocha tests; the lane budget is a soft under-count, not a correctness boundary, so this is tracked not blocking.

Verification questions

  • Confirm reused Windows receipt (run 39735687445) predates the current merged ordering; no hosted run on the new head is cited, so the install-lock PASS does not prove the new step composition end-to-end.
  • Confirm no targeted red/green test was added or modified for the install-lock behavior change; the proof rests entirely on the existing suite and a hosted run. A small in-repo test that asserts isProcessAlive returns false for a clearly-dead pid and that the dead-owner reclaim path fires (already present per PR body) would make the red/green discriminator survive workflow reordering.

Refuted

  • Zero-test guard ^ +[1-9][0-9]* passing requires at least one leading space, but mocha's spec/tdd reporter prefixes ' ' (two spaces) before 'N passing'; single-space fallback or tab indentation would slip past the grep.
  • compile_status=$? after npm ci && npx tsc -p ./ could mask an npm ci failure with a subsequent tsc success; refuted because: && short-circuits on the first nonzero, so if npm ci fails npx tsc never runs and $? is npm ci's exit; if tsc runs, its status is the captured one. The status file therefore reflects whichever command actually completed the list, not a silently overwritten 0.

Test proof

  • Focused HEAD proof failed (exit 101): cargo test --locked --package vscode --test managed_server_install. This is a current failure, not a red/green witness.

Evidence gaps

  • Reused Windows receipt (run 39735687445) was recorded at an earlier head; merged successor ordering with new compile step has not yet run hosted end-to-end on the exact new head.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Terminal exact-head hosted receipt now available for 1522fb9: Windows run39749616443/job119726582741 SUCCESS. Independently read logs identify actual checkout and selector source as that exact head; install-lock suite 21 passing (793ms), all nine subset verdicts PASS, missing-evidence/zero-test checks pass, selector literal replays and actual-ID retries pass, five negative controls reject before launch. npm ci completes without TypeScript errors; combined PASS under the reviewed fail-closed logic implies compile status0, though the status artifact was not downloaded.

This closes the missing exact-head hosted evidence noted in review5611756642; please reconcile that stale gap rather than repeat qualification. Preserve owner-reported failed-compile/passing-suite control separately: a normal hosted success does not independently exercise it. The cargo-based VS Code invocation in the review is not the actual Mocha suite. Existing owner should reconcile remaining required checks, substantive reviews and protections before merge; no duplicate campaign requested.

Copy link
Copy Markdown
Member Author

Ripr Rust Small Result failed on 1522fb9 in "Required Rust tests": reports::verdict_corpus::known_false::tests::wiring_accepts_the_committed_ledger_against_blessed_rows ("known_false case shape-op-add-impl is no longer a false verdict"). This is ledger drift on main, run against the merge ref, and not this PR's change (workflow, docs and policy files only). The fix is #9588, which is merge-ready. Once it lands I will re-apply merge-ready here so the check re-runs on the new merge ref; the Windows run for this head already passed 21 tests and all nine subset verdicts.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

#9588 has now landed as 969b0b8 with required run39753176270 and aggregate119753349531 successful. Please continue your reserved next step from6337277700: admit the repaired-base integration once through the existing merge-ready flow, then verify the actual checkout contains that repair before relying on the new result. Preserve exact-head1522 source review and successful Windows receipt; the old required failure remains a failure on its original composition. No parallel repair or duplicate dispatch has been started.

Copy link
Copy Markdown
Member Author

The relabeled run on 1522fb9 failed again on the same known_false ledger test: GitHub's merge ref for that head had not picked up #9588 (the log still names shape-op-add-impl, shape-drop-impl-side-effect, shape-dyn-trait-method-exact). I merged current main into the branch (new head 8e3314d, main f039726, no change to the PR's own files) and re-applied merge-ready. The source review and the Windows run (21 tests, nine subset verdicts) were on 1522fb9; this head adds only the main merge. #9527 got the same update.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Independent source/composition review at8e3314dce32311765a6e3e44a85411f512c1fdbb finds no blocker in the repaired-base delta. Actual parents are reviewed1522fb9c and mainf0397266; f039 is a descendant of corpus repair969b0b8c (ahead2/behind0, merge-base969b). Candidate-vs-main scope remains the original four paths/46lines; Windows workflow blob is identical to reviewed1522:033ec64846d3c15a2f92441b97eb6eb43573e2c1. The integrated Rust spec-coverage ledger no longer lists the three stale cases.

New run39761995840 is the correct existing campaign to consume. Its docs job119768168459 actually checked out f5353fe, merging8e3314dc into f039. Rust job119768504524 remains running; its own executed-subject/terminal receipt is still pending. This is source/composition clearance, not qualification completion. Prior failed retrigger39757994067 did execute stale1c382b66 and remains failed on that old subject; no further unchanged retry requested.

Copy link
Copy Markdown
Member Author

The stale retrigger now has a source-linked disposition for the existing #4836/#4986 qualification-subject owner; no new issue or parallel implementation is needed. Run39757994067 explicitly fetched immutable merge1c382b66 (created08:41, ordered parents[2e2757d,1522fb9c]) in both admission119754985819 and Rust119755106160, then passed admission by comparing only live head1522 with expected-head. This was not checkout/cache contamination. routed-rust.yml and candidate_admission.py424-450 do not validate a coherent base/merge/tree tuple; the separate live-base hard-cut observation is not compared with the checked-out first parent. We cannot distinguish old event payload from old merge-ref observation upstream from retained logs alone.

Canonical #4836 already owns H/Bq/Iq/Tq capture and ordered-parent mismatch refusal. Please retain this as a concrete incident/control there: unchanged H, old I=[B1,H], newly observed B2 containing a demonstrated prerequisite repair must not allocate expensive qualification as if the repair were present. Preserve its contrasting requirement that unrelated main movement alone must not force refresh or full replay. Do not silently substitute floating main.

The current8e3314dc campaign already repairs this PR's composition; continue it, without waiting for or duplicating the broader #4836 implementation. This comment does not retry any denied #8082 handoff or expand its access.

@EffortlessSteven
EffortlessSteven merged commit 22702b7 into main Oct 22, 2026
39 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/vscode-install-lock-windows-proof branch October 22, 2026 11:05

Copy link
Copy Markdown
Member Author

Merged as 22702b7 (squash, expected head 8e3314d). Ripr Rust Small Result green on that head (run 39761995840). Windows evidence from the reviewed head 1522fb9: 21 tests passing and all nine subset verdicts.


Generated by Claude Code

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants