Fail closed on unavailable Windows startup evidence

Closed
LA
3mo ago
+3263-242

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.


View with [code]smith Autofix with [code]smith
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.py validates schema v8, rejects malformed/foreign fields, and classifies Windows verified vs unverified. 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; true is required for verification, None exits 78 with a Windows reason (unverified), and false hard-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 on claim_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.py to write the skipped claim with expected SHA-256s; include and link Windows AppContainer feasibility evidence and the attested account-process probe.