{
 "component": "prize-state: public read-only prize evidence collector + offline verifier for 1QKBaU6WAeycb3DbKbLBkX7vJiaS8r42Xo",
 "baseCommit": "aebd918",
 "objectiveStatus": "INCOMPLETE",
 "files": [
  "prize-state/prize_state.py (collector/deriver/verifier/claim-input; stdlib only; sha256 2840348a1126bc1f78dff4077abae95254a096ae7aedc2332c49ef3836bf8f62, equal to collector_sha256 recorded in the bundle)",
  "prize-state/test_prize_state.py (17 offline tests; sha256 554894d8f29db7e30f961c95cb7e628287242f18280c24995859fc39e422116b)",
  "prize-state/README.md",
  "prize-state/evidence/live-20261124/ (manifest.json, summary.json, SHA256SUMS, raw/r1/{blockstream,mempool}/*.body; 1.1 MB public data)"
 ],
 "implemented": ["bounded live collection from blockstream.info and mempool.space Esplora APIs (cap 200 requests, 20 s timeout)", "tip before/after + /block/:tip/status in_best_chain", "address stats, paginated confirmed history, mempool txs, /utxo", "raw hex for every history tx and every spending tx of an address output; txid recomputed", "outspends per tx with vin back-reference check; pending vs confirmed spends", "exact index-vs-raw value/script/vin comparison; integer-only amounts", "cross-provider reconciliation at a common stable active tip; AGREE/AGREE_WITH_ISSUES/DISAGREE/NO_COMMON_TIP/UNAVAILABLE", "one immediate repeat round if a tip moved or no common tip (no waiting)", "per-request UTC start/end, elapsed ms, sha256; SHA256SUMS over the bundle; collector source hash", "offline verify (hashes, unlisted files, byte-identical re-derivation of summary.json)", "claim-input JSON interface that refuses unless verified, AGREE and no pending spends"],
 "tested": ["17 offline unit/mutation tests pass (OK, 0.08 s)", "live collection ran once and verified"],
 "untested": ["repeat round path against a live tip change (round 2 was not triggered; logic covered offline by test_tip_moved_needs_repeat only at derive level)", "live provider outage (simulated offline only)", "history >25 confirmed txs pagination against live data (address has 9)"],
 "unavailable": ["full-node / PoW validation (indexes only)", "atomic mempool view"],
 "commands": [
  "python3 -I prize-state/prize_state.py collect --out prize-state/evidence/live-20261124   (exit 0)",
  "PYTHONDONTWRITEBYTECODE=1 python3 -I -W ignore -m unittest discover -s prize-state -p 'test_*.py' -v   (Ran 17 tests, OK)",
  "python3 -I prize-state/prize_state.py verify prize-state/evidence/live-20261124   (VERIFIED)",
  "python3 -I prize-state/prize_state.py claim-input prize-state/evidence/live-20261124   (7 utxos, total_sats 1400002880)"
 ],
 "tests": {"count": 17, "passed": 17, "failed": 0, "mutations_covered": ["flipped raw byte", "edited summary amount", "unlisted file", "tampered raw tx value -> txid mismatch", "index value != raw", "float amount", "provider unavailable", "provider /utxo disagreement", "derived-state disagreement (confirmed spend on one provider)", "tip moved -> NO_COMMON_TIP + needs_repeat", "pending spend -> reported, spendable reduced, claim-input refuses", "outspend not referencing outpoint", "bad base58 checksum", "trailing/truncated raw tx", "non-integer amounts"]},
 "liveResult": {
  "agreement": "AGREE",
  "anchor": {"height": 977347, "hash": "00000000000000000000614edfbe082ed1b23371f34068273fb6c19a8800d8c7", "in_best_chain": true, "tip_stable_before_after": true},
  "observed_from": "2026-11-24T09:05:38.921Z",
  "observed_until": "2026-11-24T09:06:25.907Z",
  "observation_windows": {"blockstream": ["2026-11-24T09:05:38.921Z", "2026-11-24T09:06:12.552Z"], "mempool": ["2026-11-24T09:06:12.552Z", "2026-11-24T09:06:25.907Z"]},
  "confirmed_unspent_sats": 1400002880,
  "spendable_sats_excluding_pending_spends": 1400002880,
  "pending_spends": [],
  "pending_funding": [],
  "mempool_tx_count": 0,
  "utxos_sorted_unique": [
   {"outpoint": "08389f34c98c606322740c0be6a7125d9860bb8d5cb182c02f98461e5fa6cd15:139", "sats": 14000000, "height": 339085},
   {"outpoint": "12f34b58b04dfb0233ce889f674781c0e0c7ba95482cca469125af41a78d13b3:64", "sats": 1260000000, "height": 785620},
   {"outpoint": "2b4f5f05b1377845ff0f8c1552dc901172ee2da9508b08d5c951366f74fbbf63:0", "sats": 640, "height": 971144},
   {"outpoint": "5d45587cfd1d5b0fb826805541da7d94c61fe432259e68ee26f4a04544384164:88", "sats": 126000000, "height": 475240},
   {"outpoint": "918c913baad2ae7a3b444350e047559434a4441041b5ba5050d09b8b54ef68b7:0", "sats": 640, "height": 976130},
   {"outpoint": "d8c38d06fe7ea6adf44c5cc2cbf50083ec9cd8a3fc6c537e8d39db30639e8a77:0", "sats": 1000, "height": 763870},
   {"outpoint": "dd23b1079095ec6821f003b5a1acd5942152f478411157d717c8bddf8f67fb94:0", "sats": 600, "height": 881168}
  ],
  "spent_confirmed": [{"outpoint": "7c432398c7631600af01695c9767eff109cbfae4f7ecccaff388043a474d4f1e:16", "sats": 1000, "spending_txid": "17e4e323cfbc68d7f0071cad09364e8193eedf8fefbcbd8a21b4b65717a4b3d3", "height": 578732}],
  "script_hex": "76a914ffbb35a7bb9bbe16c1aa2534f7ff11d59c8e3d1a88ac",
  "differs_from_prior_observation": false,
  "note": "Matches the prior 1,400,002,880 sats figure, but was refreshed independently at height 977347, not taken from height 977345. Only valid as of observed_until."
 },
 "sourceUrls": ["https://blockstream.info/api/blocks/tip/height", "https://blockstream.info/api/blocks/tip/hash", "https://blockstream.info/api/address/1QKBaU6WAeycb3DbKbLBkX7vJiaS8r42Xo", "https://blockstream.info/api/address/1QKBaU6WAeycb3DbKbLBkX7vJiaS8r42Xo/txs/chain", "https://blockstream.info/api/address/1QKBaU6WAeycb3DbKbLBkX7vJiaS8r42Xo/txs/mempool", "https://blockstream.info/api/address/1QKBaU6WAeycb3DbKbLBkX7vJiaS8r42Xo/utxo", "https://blockstream.info/api/tx/{txid}/hex|status|outspends", "https://blockstream.info/api/block/{tip}/status", "same paths under https://mempool.space/api"],
 "measurements": {"wall_clock_s": 47.0, "max_rss_kB": 25344, "requests_total": 72, "requests_per_provider": 36, "rounds": 1, "bundle_size_MB": 1.1, "offline_test_s": 0.082, "device": "unknown"},
 "bundleHashes": {"sha256(SHA256SUMS)": "146779f9514b7150250235d6af37e765637d395593cefcb8f8f714b34c93efcb", "collector_sha256": "2840348a1126bc1f78dff4077abae95254a096ae7aedc2332c49ef3836bf8f62"},
 "restartCommand": "python3 -I prize-state/prize_state.py collect --out prize-state/evidence/live-$(date -u +%Y%m%dT%H%M%SZ) && python3 -I prize-state/prize_state.py claim-input prize-state/evidence/live-<same>",
 "recheckCommands": ["python3 -I prize-state/prize_state.py verify prize-state/evidence/live-20261124", "python3 -I -m unittest discover -s prize-state -p 'test_*.py' -v"],
 "blockers": [],
 "evidenceGaps": ["Esplora indexes only; no own full node or PoW/header-chain check", "mempool views are per-provider, non-atomic, and not global; a pending spend could exist unseen", "providers queried sequentially (about 47 s window); the anchor is checked by tip stability, not by an atomic snapshot", "repeat-on-tip-change path not exercised live", "the evidence goes stale after 2026-11-24T09:06:25.907Z; re-collect immediately before any claim", "the public-key/address match for puzzle #140 is not checked here (out of scope; the address is hard-coded)"],
 "secrets": "none: no keys, signing, broadcasting, wild-walk records or checkpoints",
 "howChecked": "Ran the live collector once (exit 0, AGREE at a common stable best-chain tip), then offline verify, claim-input and 17 mutation tests. Every changed file is under prize-state/."
}
