Repository navigation
fix(orcad): Windows readiness identifies itself by one PID when the process-table snapshot times out - #25723
Merged
OrcaWin merged 3 commits intoOct 6, 2026
Conversation
…rocess-table snapshot times out A loaded Windows runner timed the whole-table snapshot out during the bundled runtime's readiness preflight, so the candidate failed to start and activation rejected it.
6 of 8 tasks
OrcaWin
marked this pull request as draft
October 6, 2026 00:37
…ble, never an unreadable one An unreadable table (EDR-hooked snapshot, restricted token) must still fail qualification. The table now rejects slowness with a typed WindowsProcessTableTimeoutError, and only that falls back. Review by win-serve.
OrcaWin
marked this pull request as ready for review
October 6, 2026 00:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
On a busy Windows machine, a new managed Orca server version could fail to start because one startup check, reading the list of running processes, took longer than 3 seconds. The update then rejected that version. Without a previous version to fall back to, the host served nothing. The check now has a cheaper fallback, so a slow process list no longer stops a healthy runtime from starting.
What Changed
preflightWindowsProcessIdentity) takes a full process-table snapshot to confirm it can read its own process creation time.windows process table timed out, and the candidate never published readiness.orcad_activation_no_readiness. Seen in fix(ssh): a connected conversion proves the host idle with the account-wide census, not this target's lists #25697's CI (run 37380932177, job 112002884926); the job passed on rerun.readWindowsProcessCreationTime(process.pid)), which needs no snapshot. "Slow" means it timed out, or it was refused because an earlier read hasn't called back yet.WindowsProcessTableTimeoutErrorfor exactly those two cases, with unchanged messages, so the preflight never matches error text.Why
The preflight exists to prove this runtime can identify a process by creation time, which the instance lock and the stop checks need. The addon's one-process query proves that, without the cost of the whole-table snapshot that timed out. Retrying the snapshot would not help: after a timeout the table refuses further reads until the stuck read returns.
Linked Issue
The Windows counterpart of BUG-17 (#25701), reported by relay-grace from #25697's CI. Internal.
Visual Proof
N/A. No UI changes.
Testing
orcad-runtime-native-preflight.test.ts:windows-process-table.test.tsasserts that a timed-out read and a read refused behind it both raise the typed error;Ran locally:
pnpm tc:node, the changed-code gate, oxlint, the format check, and the preflight tests.Review
Reviewed by win-serve: the fallback now covers slowness only. EDR posture, the epoch-millisecond units of
getProcessCreationTimeand the effect on the serving process's reader were checked and are fine.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Windows-only code path, guarded by
process.platform === 'win32'. SSH: this runs on the host that executes orcad.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)