Commit Graph
3 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 c2d68f750d STRA-326: cross-check the declared machine against hardware.machine_role / gpu_name
validity.py trusted --machine alone, so laptop records declared "server" skipped the 100 W
power floor and the owner attestation. derive_pairs now refuses (MACHINE_MISMATCH, exit 3,
run ids named) records whose hardware.machine_role differs from the declared machine and a
"server" declaration over a Laptop GPU. A schedule `machine` key pre-registers the machine;
run_core finalize reads it from there (--machine only a fallback) and refuses a conflicting flag.
The golden fixture builder stamps machine_role = machine; golden cases unchanged (0 differences).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:01:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 eb7fbf6f9d fix(e2e): owner attestation required on laptop pairs only (STRA-312 rework)
BA decision after Train A QA (STRA-245 comment 9dcb717a, E2(2)): a server
pair needs no owner attestation; a missing one is not a reason and a present
one is ignored. validity.py now applies ATTESTATION_MISSING / OWNER only when
--machine laptop. Two tests added for the server cases. Golden vectors are
unchanged (all attestation vectors are laptop pairs).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 21:58:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 806774609e feat(e2e): validity derivation module, schedule balance check and ledger/manifest cross-check (STRA-312)
Adds scripts/e2e/evidence/validity.py (E2 validity rules, E1 balanced-schedule check, E8
ledger/manifest cross-check; countable is derived, never typed) and test_validity.py.
The STRA-311 golden vectors pass unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:36:31 +01:00