Repository navigation
PASS_WITH_CONDITIONS
Baseline. This re-reviews e701890c against the PASS_WITH_CONDITIONS on 044f75ad (this PR), on arch 15b603e6. The checkout has no arch-map.md, so I found the sections by search. git diff 044f75ad e701890c changes only crates/bep/src/tpm.rs: TpmStore::run_once and one new unit test. The ruling on 044f75ad stands for everything else.
Governs. Gatehouse §6.10 line 837: the helper's long-lived keys are generated non-exportable in TPM 2.0 on Linux, ECDH-ES P-256 for sealing and ECDSA P-256 for the intermediate. Design principle 7, architecture.md line 337: safe by default. Repo spec BEP-088 and its TPM sub-requirement.
Ruling. The compare keeps a tool's TPM response code when the tool closes stdin before it reads the authorization value. A broken pipe now defers to the exit status and stderr. Any other write error on a successful exit still fails. A successful exit after a broken pipe returns Ok, but each caller then reads the output file and fails without it, and the TPM enforces the key's authorization. So the path stays fail-closed, and the T128 diagnostics line (the key-store error names the TPM response code) holds better than before. The new unit test a_tool_that_exits_before_its_input_reports_its_response_code tests that rule directly. C1 carries over unchanged: the swtpm leg is still deferred, and a deferred leg is open (rubric rule 4).
Departure from precedent. None. The ledger truncates the earlier rulings, so I restated their open condition from the deferred-lane table in pr.json rather than copying it.
Not checked. No TPM or tpm2-tools on this box, and no build by contract. I did not confirm the tpm2-tools argument shapes or that the 4 MiB stdin in the new unit test reliably triggers EPIPE on every host.
Conditions
- C1: The
tpmlane runscargo nextest run -p bep --run-ignored ignored-only a_tpm_key_is_fixed_exempt_from_lockout_and_needs_its_authorization(crates/bep/tests/key_store_tpm_integration.rs) against swtpm withBEP_TPM_TCTIset, and records the pass in the PR or the tracking issue. The run must confirm the tpm2-tools argument shapes that the PR body lists as unconfirmed (-G ecc256:null:null,-p file:-,tpm2_sign -d -f plain, the TPM2B_ECC_POINT format fortpm2_ecdhzgen). Until then the leg is open, not passed. Same condition as the rulings on ee851be and 044f75a.
Ruled at e701890 against gominimal/arch@15b603e6afb8 by claude-opus-5-5; arch_rulings 1222, job e90df2f2-59eb-4e5c-b934-5360d7bb2ae8.