CHAT_OUTPUT_BEGIN
COMMAND_ID=NEWFI-260921-NEWFDOM-DR221-FULLRESTORE-PRODUCER-DISCOVERY400R1
STATUS=OK
RC=0
HOST=pve01
MODE=read-only
COMPONENT=newfi-dr221-fullrestore-producer-discovery
REFERENCE_REGISTER_CHECK=OK
REFERENCE_SHA256=5a3d8e5154c41cb582a4e0aca68090be1f0138918bf82131a948df326f9d8d66
ERROR_REGISTER_CHECK=OK
ERROR_REGISTER_SHA256=3b09a553ec0f527ed3afeed4753f52a74ee3036045bbfb3c685e9f8af4ba7ba0
COMMAND_SHA256=2a0d471748737f7d051a3deafe1425c8a934c4e5535b8a05c0bc574712ba2fa5
DUPLICATE_FAILED_COMMAND_BLOCKED=false
EXECUTION_STARTED=true
CHANGE_DECLARED=false
RESULT_CONTRACT_VALID=true
RESULT_CONTRACT_STATUS=NOT_APPLICABLE
RESULT_CONTRACT_ERROR=NONE
COMMAND_RC=0
CHANGES_MADE=false
ROLLBACK_STARTED=false
ROLLBACK_RESTORED=null
MUTATION_OUTCOME=NO_MUTATION
SANITIZED=yes
SECRETS_INCLUDED=no
PRIVATE_ADDRESSES_INCLUDED=no
RAW_EVIDENCE_SHA256=11d93b813945620a0de139480a8aacab2b567e47fb6c2dee9e9586a6dab4ce96
SANITIZED_OUTPUT_SHA256=11d93b813945620a0de139480a8aacab2b567e47fb6c2dee9e9586a6dab4ce96
OUTPUT_BEGIN
ERROR_REGISTER_CHECK=OK
REFERENCE_CHECK=OK
AUTHORITY_CHECK_SCOPE=READABILITY_ONLY_INCIDENTS_NOT_CLOSED
AUTHORITY_HASHES={"/etc/pve/31_HOMELAB_REFERENCE.md":{"bytes":201129,"sha256":"5a3d8e5154c41cb582a4e0aca68090be1f0138918bf82131a948df326f9d8d66"},"/etc/pve/HOMELAB_ASSISTANT_ERROR_REGISTER.md":{"bytes":302058,"sha256":"3b09a553ec0f527ed3afeed4753f52a74ee3036045bbfb3c685e9f8af4ba7ba0"}}
WORKTREE=/root/newfi-portal/.worktrees/implementation-newfi-closed-mvp-20260906
WORKTREE_GIT_TOP=/root/newfi-portal/.worktrees/implementation-newfi-closed-mvp-20260906
WORKTREE_HEAD=9c4814db67759dc09a5469d254c41a7b73f4d89a
WORKTREE_BRANCH=implementation/newfi-closed-mvp-20260906
WORKTREE_CLEAN=true
WORKTREE_STATUS_SHA256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
IMMUTABLE_PLAN_EXPECTED_SHA256=2764b24d11a3f1505af0a856f674b67e025cb2684c4dcd5c997134a2035a7e65
IMMUTABLE_PLAN_MATCHES=[]
IMMUTABLE_PLAN_CHECK=FAIL
CURRENT_SCHEMA_MATCH_COUNT=5
CURRENT_SCHEMA_MATCHES=[{"bytes":4306,"hits":[{"line":25,"text":"- `verify-foundation-restore.sh` — `cc8b821ffd64c8b2d780eb6efaf96f3724230c2bfe50c7db08c4162f79dc2186` — fresh PASS"},{"line":59,"text":"Fresh `verify-foundation-restore.sh` PASS is part of this acceptance."}],"path":"docs/checkpoints/foundation-v1.md","sha256":"75ce90e0e021989a6216888eb9f3f7ffe976ae1c136eb317c8d5e46ea64176f0"},{"bytes":2138,"hits":[{"line":11,"text":"Full isolated restore evidence: `/var/lib/homelab-backup/vm-restore-validation/vm211/vm211-pve03-20260906T213759Z-newfi-full.json`"}],"path":"docs/checkpoints/private-staging-backup-restore.md","sha256":"d8692f662ec16017b4f49c60aa3add6a14c8fab822ab0a9d2272eb20fb9c5e37"},{"bytes":3166,"hits":[{"line":13,"text":"- Full isolated restore evidence: `/var/lib/homelab-backup/vm-restore-validation/vm211/vm211-pve03-20260906T083057Z-newfi-full.json`"},{"line":76,"text":"`./scripts/verify-foundation-restore.sh`"}],"path":"docs/operations/backup-restore.md","sha256":"0d0bb33f688f2a44271eaed49b63560619a2442104db886d9c21ec87758f105f"},{"bytes":10886,"hits":[{"line":137,"text":"- Create: `scripts/verify-foundation-restore.sh`"}],"path":"docs/superpowers/plans/2026-09-04-newfidom-foundation.md","sha256":"71b104556e575518d0b1a31f5cfc3c9d6c0200a5133cd243bc43ff436e531390"},{"bytes":5019,"hits":[{"line":12,"text":"FULL=/var/lib/homelab-backup/vm-restore-validation/vm211/${GEN}-newfi-full.json"},{"line":105,"text":"    and full.get(\"schema\")==\"newfi-foundation-full-restore-v1\""},{"line":115,"text":"    and full.get(\"full_restore_proven\") is True"}],"path":"scripts/verify-foundation-restore.sh","sha256":"cc8b821ffd64c8b2d780eb6efaf96f3724230c2bfe50c7db08c4162f79dc2186"}]
PRODUCER_CANDIDATE_COUNT=1
PRODUCER_CANDIDATES=[{"path":"scripts/verify-foundation-restore.sh","sha256":"cc8b821ffd64c8b2d780eb6efaf96f3724230c2bfe50c7db08c4162f79dc2186","structural":[{"line":12,"text":"FULL=/var/lib/homelab-backup/vm-restore-validation/vm211/${GEN}-newfi-full.json"},{"line":83,"text":"    state.get(\"schema\")==\"homelab-cloud-quorum-payload-v1\""},{"line":97,"text":"    and bounded.get(\"schema\")==\"homelab-vm-restore-validation-v1\""},{"line":105,"text":"    and full.get(\"schema\")==\"newfi-foundation-full-restore-v1\""},{"line":108,"text":"    and full.get(\"source_vmid\")==211"},{"line":109,"text":"    and full.get(\"test_vmid\")==9211"},{"line":115,"text":"    and full.get(\"full_restore_proven\") is True"},{"line":187,"text":"print(\"FULL_RESTORE_PROVEN=true\")"}]}]
VERIFIER_CANDIDATE_COUNT=1
VERIFIER_CANDIDATES=[{"bytes":5019,"hits":[{"line":12,"text":"FULL=/var/lib/homelab-backup/vm-restore-validation/vm211/${GEN}-newfi-full.json"},{"line":105,"text":"    and full.get(\"schema\")==\"newfi-foundation-full-restore-v1\""},{"line":115,"text":"    and full.get(\"full_restore_proven\") is True"}],"path":"scripts/verify-foundation-restore.sh","sha256":"cc8b821ffd64c8b2d780eb6efaf96f3724230c2bfe50c7db08c4162f79dc2186"}]
HISTORY_SCHEMA_COMMIT_COUNT=2
HISTORY_SCHEMA_COMMITS=[{"commit":"9c1405588883f2e5ecd0c285d2b1ac561b045ee8","epoch":"1788732709","paths":["docs/checkpoints/private-staging-backup-restore.md"],"subject":"docs: seal Newfi private staging backup restore gate"},{"commit":"beb054ee374142a9b65c28b0ac985156cfac5da8","epoch":"1788685354","paths":["docs/operations/backup-restore.md","scripts/verify-foundation-restore.sh"],"subject":"ops: prove Newfi foundation restore"}]
HISTORICAL_SCHEMA_FILE_COUNT=3
HISTORICAL_SCHEMA_FILES=[{"blob_sha256":"d8692f662ec16017b4f49c60aa3add6a14c8fab822ab0a9d2272eb20fb9c5e37","commit":"9c1405588883f2e5ecd0c285d2b1ac561b045ee8","path":"docs/checkpoints/private-staging-backup-restore.md","structural":[{"line":11,"text":"Full isolated restore evidence: `/var/lib/homelab-backup/vm-restore-validation/vm211/vm211-pve03-20260906T213759Z-newfi-full.json`"}],"subject":"docs: seal Newfi private staging backup restore gate"},{"blob_sha256":"0d0bb33f688f2a44271eaed49b63560619a2442104db886d9c21ec87758f105f","commit":"beb054ee374142a9b65c28b0ac985156cfac5da8","path":"docs/operations/backup-restore.md","structural":[{"line":13,"text":"- Full isolated restore evidence: `/var/lib/homelab-backup/vm-restore-validation/vm211/vm211-pve03-20260906T083057Z-newfi-full.json`"},{"line":34,"text":"The same sealed generation was reconstructed from Cloud A and restored with native Proxmox `qmrestore` into temporary VMID `9211`."},{"line":66,"text":"`NEWFI76` reconstructed the correct bytes and archive SHA but used the temporary basename `archive.vma.zst`. Proxmox `qmrestore` determines archive metadata from the filename and rejected it before restore. Committed-state checks proved no VM9211 residue."}],"subject":"ops: prove Newfi foundation restore"},{"blob_sha256":"cc8b821ffd64c8b2d780eb6efaf96f3724230c2bfe50c7db08c4162f79dc2186","commit":"beb054ee374142a9b65c28b0ac985156cfac5da8","path":"scripts/verify-foundation-restore.sh","structural":[{"line":12,"text":"FULL=/var/lib/homelab-backup/vm-restore-validation/vm211/${GEN}-newfi-full.json"},{"line":83,"text":"    state.get(\"schema\")==\"homelab-cloud-quorum-payload-v1\""},{"line":97,"text":"    and bounded.get(\"schema\")==\"homelab-vm-restore-validation-v1\""},{"line":105,"text":"    and full.get(\"schema\")==\"newfi-foundation-full-restore-v1\""},{"line":108,"text":"    and full.get(\"source_vmid\")==211"},{"line":109,"text":"    and full.get(\"test_vmid\")==9211"},{"line":115,"text":"    and full.get(\"full_restore_proven\") is True"},{"line":187,"text":"print(\"FULL_RESTORE_PROVEN=true\")"}],"subject":"ops: prove Newfi foundation restore"}]
FULLRESTORE_PRODUCER_DISCOVERY_RESOLVED=true
DECISION=HOLD_FULLRESTORE_PRODUCER_DISCOVERY
NEXT_GATE=TARGETED_READONLY_SOURCE_RECOVERY
ACTIVE_MAJOR_STAGE=DR221
MAJOR_STAGES_REMAINING=1
HELPERS_EXECUTED=0
CLOUD_WRITES=0
VM_MUTATIONS=0
PRODUCTION_MUTATION=false
HOMELAB_RESULT_CONTRACT={"changes_made":false,"command_id":"NEWFI-260921-NEWFDOM-DR221-FULLRESTORE-PRODUCER-DISCOVERY400R1","rollback_restored":null,"rollback_started":false,"status":"OK","version":1}

OUTPUT_END
CHAT_OUTPUT_END
