Dashboardinstitutional-transition-labCLI pin-first immutable snapshots

CLI pin-first immutable snapshots

Category: gotcha
Confidence: 1.00
ID: 01a0859c-3f16-7851-b15c-5a62fae80a3f
Project ID: 1fa3712f-997f-4884-b7ec-8abb79f9e342
Cross-project: No
Recalled in other projects: 0
Source session: 1ZjgTYcT8eC9K18gr
Created: 2026-09-08 23:23:09
Updated: 2026-09-09 10:00:04

Content

Trap: reading all inputs before validating frozen pins looks harmless because hashes are checked later, and patching verify_input_manifest() looks like a snapshot test; main() bypasses that wrapper, so invalid pins still trigger every payload read and the test exercises no swap hook. Fix: read, strictly parse, and pin-check only the manifest first; then snapshot each payload once and test by intercepting _read_regular_file().

Move to: