Fail closed on unavailable Windows startup evidence
Stacked on https://github.com/manaflow-ai/cmux/pull/10131.
The trusted preflight currently reports Windows job, process, privilege, and handle observations that it does not collect. The red test requires unavailable observations to stay null. The follow-up commit will relay only the optional child job observation and leave unsupported signals unavailable, so existing validation rejects an unproven Windows claim.
Regression proof uses two commits: test first, implementation second. Hosted CI only; no local Rust/Cargo/Zig/Xcode tests.
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Fails closed when Windows startup preflight evidence is unavailable and publishes an explicit skipped Windows claim. Previously, missing Windows signals implied success; now Windows-only unavailability exits 78 with a Windows-specific reason, sets claim_status=unverified and claim_reason, attests the account-process AppContainer probe and staging failures, and gates packaging, paired runs, and profile capture.
Review notes
- Enforces a shared evidence contract in
startup_benchmark_contract.py;verify-startup-benchmark.pyvalidates schema v8, rejects malformed/foreign fields, and classifies Windowsverifiedvsunverified. Links claims to attested inputs by checking bootstrap SHA-256 and approved imports plus Windows API set DLLs, and requires linked AppContainer feasibility evidence and the attested account-process probe. - Windows preflight relays only
windows_grandchild_in_job;trueis required for verification,Noneexits 78 with a Windows reason (unverified), andfalsehard-fails. AppContainer feasibility unavailability exits 78; access denied or core failures hard-fail. The account-process probe and staging capability failures are attested before any skip. - CI runs contract and claim tests, handles Windows exit 78, writes the skipped claim via
startup_benchmark_claim.py, and gates downstream onclaim_status/claim_reason.
Required actions
- Do not synthesize unsupported Windows observations.
- Gate all downstream steps on
claim_status; treat Windows exit 78 as unverified, not error. - When unverified on Windows, use
startup_benchmark_claim.pyto write the skipped claim with expected SHA-256s; include and link Windows AppContainer feasibility evidence and the attested account-process probe.