{
  "component": "private-claim",
  "baseCommit": "aebd9183af6a4b1643ddd1e71277f0e8166f3eda",
  "files": [
    "private-claim/README.md",
    "private-claim/bitcoin.py",
    "private-claim/claim.py",
    "private-claim/regtest.py",
    "private-claim/test_claim.py",
    "artifacts/goal/batches/e2-runner-components/items/private-claim/result.json"
  ],
  "commands": [
    {
      "command": "python3 -B private-claim/claim.py --help",
      "exitCode": 0,
      "result": "Mainnet CLI help rendered without network access."
    },
    {
      "command": "python3 -B private-claim/regtest.py --rpc-url http://127.0.0.1:18443 --rpc-auth-fd 3 --max-fee-sats 2000 claim --help",
      "exitCode": 0,
      "result": "The synthetic fee fallback option appeared in regtest help. No node connection."
    },
    {
      "command": "python3 -B private-claim/claim.py --rpc-url http://127.0.0.1:8332 --rpc-auth-fd 3 --max-fee-sats 2000 verify --help",
      "exitCode": 0,
      "result": "Verification help requires a txid and confirmation depth. No node connection."
    },
    {
      "command": "/usr/bin/time -f 'elapsed_s=%e peak_process_rss_kib=%M user_cpu_s=%U system_cpu_s=%S' python3 -B -m unittest discover -s private-claim -p 'test_*.py' -v",
      "exitCode": 0,
      "result": "21 offline tests passed. An earlier run failed on a missing hex digit in the expected source script fixture at private-claim/test_claim.py:139. Corrected the fixture and reran the suite."
    },
    {
      "command": "git rev-parse HEAD && git status --short --untracked-files=all && git diff --check",
      "exitCode": 0,
      "result": "Base commit matched. The file status and handoff validation checked scope and confirmed the result was untracked."
    }
  ],
  "implemented": [
    "Fixed mainnet puzzle parameters and payout. Candidate verification by interval, secp256k1 derivation and address derivation. Local Bech32m payout validation.",
    "Explicit numeric loopback RPC with authentication and candidate on distinct private descriptors. No wallet import or automatic authentication discovery.",
    "Confirmed-set and local mempool discovery, raw prevout and gettxout cross-checks, all selected inputs exactly once, one fixed output, node-derived fee policy and explicit total fee cap.",
    "Independent raw transaction structure and signed virtual-size checks, mempool validation and current-state recheck before optional broadcast. Separate verification of raw payment, prevouts, block membership and active-chain depth.",
    "Distinct regtest entrypoint restricted to a fixed synthetic scalar and regtest chain. Shared transaction checks and an explicitly supplied synthetic fee fallback."
  ],
  "tests": {
    "status": "passed",
    "offlineTests": 21,
    "scope": "Synthetic mock RPC, parser, address derivation and checksum, candidate interval and mismatch, private FD closure, RPC redaction, stale and mismatched UTXOs, fee-policy rejection, transaction tampering, mempool rejection, and confirmation checks.",
    "untested": ["Real Bitcoin Core signing", "Live regtest broadcast and mining", "Entrant-local mainnet RPC and fee policy"]
  },
  "measurements": {
    "scope": "Final offline Python test invocation",
    "elapsed": {"value": 0.30, "unit": "seconds"},
    "peakProcessRss": {"value": 25984, "unit": "KiB"},
    "userCpu": {"value": 0.24, "unit": "seconds"},
    "systemCpu": {"value": 0.05, "unit": "seconds"},
    "deviceLabel": "unknown",
    "spending": {"value": 0, "unit": "IMD"}
  },
  "sources": [
    "https://lotterypuzzle.org/puzzles/140/",
    "https://bips.dev/350/",
    "https://bitcoincore.org/en/doc/30.0.0/rpc/blockchain/getdescriptoractivity/",
    "https://bitcoincore.org/en/doc/30.0.0/rpc/rawtransactions/signrawtransactionwithkey/",
    "https://bitcoincore.org/en/doc/30.0.0/rpc/rawtransactions/testmempoolaccept/",
    "https://bitcoincore.org/en/doc/30.0.0/rpc/rawtransactions/sendrawtransaction/"
  ],
  "blockers": [
    "The worker assignment deferred live regtest integration to the next episode.",
    "Mainnet execution requires a recovered valid candidate, an entrant-controlled fully synced Bitcoin Core node with txindex, and entrant-selected fee settings. Actual spendable mainnet funds and fee policy remain to be verified on that node.",
    "No real search, mainnet signing, broadcast or confirmation took place in this item."
  ],
  "restartCommand": "python3 -B -m unittest discover -s private-claim -p 'test_*.py' -v",
  "runbook": "private-claim/README.md",
  "objectiveStatus": "INCOMPLETE"
}
