{
  "component": "regtest-offline",
  "baseCommit": "aebd9183af6a4b1643ddd1e71277f0e8166f3eda",
  "objectiveStatus": "INCOMPLETE",
  "componentStatus": "implemented and tested",
  "summary": "Offline official Core 28.1 runtime, fresh isolated seven-input P2PKH sweep to the exact recipient witness program on regtest, real fee/interruption tests, public raw transaction/block receipt and independent byte verifier.",
  "implemented": [
    "Two official unmodified Linux x86_64 executables as separate XZ ordinary files; no distribution archive, duplicate binaries, submodules or runtime downloads.",
    "Pinned archive, executable, compressed and provenance hashes; immutable source/key provenance; upstream MIT license and offline release signature verification.",
    "Fresh disposable regtest node; networking disabled, loopback-only RPC, fixture-owned config/cookie authentication and minimal child environment; source keys generated in fresh wallets.",
    "Seven distinct 50000000-sat P2PKH prevouts, exactly one witness-v1 output, no change; supplied mainnet Bech32m checksum validated by exact re-encoding.",
    "Absolute and signed-vsize fee bounds, Core mempool admission, confirmed verbose prevouts/fee, active chain depth two.",
    "SIGINT/SIGTERM cleanup with real subprocess tests; success receipt published after node/runtime/secrets removal.",
    "Public SYNTHETIC raw funding and sweep transactions, blocks and headers; independent parser checks transaction hashes, prevouts, accounting, Merkle roots, regtest PoW and header linkage.",
    "Callable run(receipt_path, signer=adapter) boundary for later private-claim integration; no production key input or external node path."
  ],
  "tested": [
    "Official archive SHA256 against upstream SHA256SUMS; pinned Ava Chow release signature verified offline with isolated keyring.",
    "Both compressed payloads regenerated byte-for-byte from verified upstream archive.",
    "Actual bundled Core 28.1 successful seven-input sweep; no executable mocks.",
    "10-test standalone suite: amounts, checksum/program, chain guard, fee bounds, delivered receipt, receipt tampering, real Core unsigned rejection, real fee rejection, fresh sweep, real SIGTERM/SIGINT cleanup.",
    "Independent receipt-byte verification and git diff --check."
  ],
  "untested": [
    "No successful external private-claim signer adapter exists in this checkout; callback rejection boundary only was tested.",
    "Other CPU architectures/operating systems, SIGKILL/power-loss cleanup and long-running production operation.",
    "Other release signers were not verified; only fingerprint 152812300785C96444D3334D17565732E08E5E41 is claimed."
  ],
  "unavailable": [
    "Real-target execution and production secret handling on this shared worker are outside this component and prohibited by the task. No real solution, UTXO verification, production broadcast or prize payment occurred."
  ],
  "files": [
    {
      "path": "regtest-payment/README.md",
      "bytes": 7754,
      "sha256": "e6fcd6689a249e524494449c3405ab0da33c6188fc942f48fe48375e2a090d30"
    },
    {
      "path": "regtest-payment/package_runtime.py",
      "bytes": 1830,
      "sha256": "416390c1c28a12223da81e269e92f5cc5322d8b5db1d63a45532eef3fffe4fbd"
    },
    {
      "path": "regtest-payment/receipt.json",
      "bytes": 10911,
      "sha256": "869980db8cd03bb1c76455acd758d011213d6409e3c6db46394a9ceecdefdec4"
    },
    {
      "path": "regtest-payment/regtest_payment.py",
      "bytes": 14856,
      "sha256": "53e0a4f14ca3ad9577be4de1e0b61621055085e100b8be57ad7f72f0d57b0956"
    },
    {
      "path": "regtest-payment/runtime/COPYING",
      "bytes": 1142,
      "sha256": "779d9beab4eef2340bb1e86e91f8f55dea9b0985a2d03fbcbb52bd713e091e1b"
    },
    {
      "path": "regtest-payment/runtime/SHA256SUMS",
      "bytes": 2620,
      "sha256": "5411f333fce232f4072e6440cc507e36a0305861414740fbbd5f5abf569c3cf4"
    },
    {
      "path": "regtest-payment/runtime/SHA256SUMS.asc",
      "bytes": 9122,
      "sha256": "38ceccc2e21a21d37028242817ec928dbea8b3ddd8af77bec7a1befd02380ea4"
    },
    {
      "path": "regtest-payment/runtime/achow101.gpg",
      "bytes": 11662,
      "sha256": "1b31ab2e336d5ee44dd4d9f5703ad4445798fcee3b1352ab75afa145e737224a"
    },
    {
      "path": "regtest-payment/runtime/bitcoin-cli.xz",
      "bytes": 722720,
      "sha256": "4be0272c5e69f7b77d69792fbdb0a153e197dda8384521df4e23c5258b9a749d"
    },
    {
      "path": "regtest-payment/runtime/bitcoind.xz",
      "bytes": 6068820,
      "sha256": "668ba50f245a5f4ce6b37819668886e6818ab297016385e5a30a6150c51f47d5"
    },
    {
      "path": "regtest-payment/runtime/manifest.json",
      "bytes": 2140,
      "sha256": "d560959c26f87bc80d31ed0bbfb170a25ebe13753aa20973425abb3c92b2185a"
    },
    {
      "path": "regtest-payment/tests/test_regtest_payment.py",
      "bytes": 6348,
      "sha256": "b1e819c182bafff255bc6ad99a4f9a7ee4e3af974eea1bbfcdaf95d2b6546670"
    },
    {
      "path": "regtest-payment/verify_receipt.py",
      "bytes": 6908,
      "sha256": "5f467c5a5e9890b19c690d2f6fe0c668656cbd10d9d23214d61cba1d98eaa470"
    },
    {
      "path": "regtest-payment/verify_runtime.py",
      "bytes": 3407,
      "sha256": "a2c930463998617b5fd0e9a1d2fd091e4a99a5b25c42a2b90e68fac220b99c1a"
    }
  ],
  "resultFile": "artifacts/goal/batches/e2-runner-components/items/regtest-offline/result.json",
  "commands": [
    {
      "command": "git rev-parse HEAD",
      "exitCode": 0,
      "result": "aebd9183af6a4b1643ddd1e71277f0e8166f3eda"
    },
    {
      "command": "curl -fL https://bitcoincore.org/bin/bitcoin-core-28.1/SHA256SUMS -o test/scratch/core-download/SHA256SUMS",
      "exitCode": 0,
      "purpose": "One-time packaging provenance; never used by default tests."
    },
    {
      "command": "curl -fL https://bitcoincore.org/bin/bitcoin-core-28.1/bitcoin-28.1-x86_64-linux-gnu.tar.gz -o test/scratch/core-download/core.tar.gz",
      "exitCode": 0,
      "result": "49598812 bytes, SHA256 07f77afd326639145b9ba9562912b2ad2ccec47b8a305bd075b4f4cb127b7ed7; archive remains only in disposable scratch."
    },
    {
      "command": "curl -fL https://bitcoincore.org/bin/bitcoin-core-28.1/SHA256SUMS.asc -o regtest-payment/runtime/SHA256SUMS.asc",
      "exitCode": 0
    },
    {
      "command": "curl -fL https://raw.githubusercontent.com/bitcoin/bitcoin/32efe850438ef22e2de39e562af557872a402c31/COPYING -o test/scratch/core-download/COPYING.pinned",
      "exitCode": 0,
      "result": "Byte comparison with delivered runtime/COPYING passed."
    },
    {
      "command": "curl -fL https://raw.githubusercontent.com/bitcoin-core/guix.sigs/93aacee89333de43a96e7d128baa84e737c41b0b/builder-keys/achow101.gpg -o regtest-payment/runtime/achow101.gpg",
      "exitCode": 0
    },
    {
      "command": "git ls-remote https://github.com/bitcoin/bitcoin.git refs/tags/v28.1 refs/tags/v28.1^{}",
      "exitCode": 0,
      "result": "Tag object 0e6ddeca339cef84d862bd8ce4e38f4bf83a8760; source commit 32efe850438ef22e2de39e562af557872a402c31."
    },
    {
      "command": "python3 -B regtest-payment/package_runtime.py test/scratch/core-download/core.tar.gz --output test/scratch/repacked-core",
      "exitCode": 0,
      "result": "PASS: two exact official components; compressed hashes reproduced."
    },
    {
      "command": "TMPDIR=\"$PWD/test/scratch\" python3 -B regtest-payment/verify_runtime.py --signature",
      "exitCode": 0,
      "result": "PASS runtime hashes, 19008016 installed bytes, 6791540 compressed bytes; pinned signature PASS."
    },
    {
      "command": "TMPDIR=\"$PWD/test/scratch\" python3 -B regtest-payment/regtest_payment.py --receipt regtest-payment/receipt.json",
      "exitCode": 0,
      "result": "Real Core sweep; 3000 sat fee, 1082 vbytes, depth 2, 3.165132 seconds."
    },
    {
      "command": "python3 -B regtest-payment/verify_receipt.py",
      "exitCode": 0,
      "result": "PASS: synthetic, 7 inputs, 1 output, 3000 sat fee, 1082 vbytes, depth 2."
    },
    {
      "command": "TMPDIR=\"$PWD/test/scratch\" python3 -B -m unittest discover -s regtest-payment/tests -v",
      "exitCode": 0,
      "result": "10 tests passed in 13.636 seconds on first suite run."
    },
    {
      "command": "TMPDIR=\"$PWD/test/scratch\" /usr/bin/time -f \"elapsed_seconds=%e\\nuser_seconds=%U\\nsystem_seconds=%S\\nmax_rss_KiB=%M\" -o test/scratch/regtest-measurements.txt python3 -B -m unittest discover -s regtest-payment/tests -v",
      "exitCode": 0,
      "result": "Final suite: 10 tests passed; unittest elapsed 14.260 seconds. Task-only resource measurements below."
    },
    {
      "command": "git diff --check",
      "exitCode": 0,
      "result": "No whitespace errors."
    }
  ],
  "tests": {
    "passed": 10,
    "failed": 0,
    "skipped": 0,
    "mockedExecutableTests": 0,
    "realCore": {
      "version": "/Satoshi:28.1.0/",
      "inputCount": 7,
      "outputCount": 1,
      "inputSats": 350000000,
      "paidSats": 349997000,
      "feeSats": 3000,
      "vsize": 1082,
      "height": 103,
      "activeHeight": 104,
      "depth": 2,
      "txid": "4b08ec4c920f72b0e4e7cce4f19181e3f1f359dbc7ad3805454239dbfcc1ba69",
      "mempoolAllowed": true,
      "networkactive": false,
      "connections": 0,
      "disposableSecretsRemoved": true
    },
    "negative": {
      "fee_sats": [
        0,
        10001,
        1
      ],
      "fee_behavior": "0 and 10001 rejected before startup; 1 sat rejected against actual signed vsize before admission/broadcast; no receipt or remaining datadir. Unit tests additionally cover negative, boolean, entire-input fees and upper rate bounds.",
      "unsigned": "Actual Core testmempoolaccept rejected unsigned sweep.",
      "interruptions": [
        "SIGTERM after signing: exit 130, node stopped, datadir removed, no receipt",
        "SIGINT after signing: exit 130, node stopped, datadir removed, no receipt"
      ]
    },
    "developmentFailuresRepaired": [
      {
        "command": "gpg --homedir test/scratch/gpg --no-options --batch --import regtest-payment/runtime/achow101.gpg",
        "exitCode": 2,
        "cause": "Public key imported, but gpg-agent could not start in this runtime. Replaced import with offline dearmor into isolated keyring; final verification exit 0."
      },
      {
        "command": "gpg --homedir test/scratch/gpg --no-options --batch --no-autostart --status-fd 1 --verify regtest-payment/runtime/SHA256SUMS.asc regtest-payment/runtime/SHA256SUMS",
        "exitCode": 2,
        "cause": "Pinned Ava Chow signature valid, other signatures lacked public keys. Final verifier selects the pinned signature packet and exits 0; no claims about remaining signers."
      },
      {
        "file": "regtest-payment/verify_runtime.py",
        "line": 41,
        "exitCode": 1,
        "cause": "Initial concatenated-base64 parser stopped at first padded armor block. Fixed to decode each armor block separately; final signature test passed."
      },
      {
        "file": "regtest-payment/verify_runtime.py",
        "line": 48,
        "exitCode": 1,
        "cause": "Initial isolated key import still requested unavailable agent. Fixed by dearmoring public key to explicit keyring; final signature test passed."
      }
    ]
  },
  "measurements": {
    "deviceLabel": "unknown",
    "compressedExecutablePayload": {
      "value": 6791540,
      "unit": "bytes"
    },
    "installedExecutables": {
      "value": 19008016,
      "unit": "bytes",
      "definition": "Sum of the two decompressed official executable file lengths; temporary at run time."
    },
    "runtimeDirectory": {
      "value": 6818226,
      "unit": "bytes"
    },
    "deliveredComponent": {
      "value": 6870240,
      "unit": "bytes",
      "excludes": "separately uploaded result.json"
    },
    "originalArchiveNotDelivered": {
      "value": 49598812,
      "unit": "bytes"
    },
    "receiptRunElapsed": {
      "value": 3.165132,
      "unit": "seconds"
    },
    "finalSuiteWall": {
      "value": 14.38,
      "unit": "seconds"
    },
    "finalSuiteUserCpu": {
      "value": 10.6,
      "unit": "seconds"
    },
    "finalSuiteSystemCpu": {
      "value": 1.83,
      "unit": "seconds"
    },
    "finalSuiteMaxRss": {
      "value": 75984,
      "unit": "KiB",
      "definition": "GNU time task/child maximum resident set; not aggregate simultaneous memory or machine inventory."
    },
    "externalSpending": {
      "value": 0,
      "unit": "IMD"
    },
    "components": {
      "bitcoind": {
        "archive_member": "bitcoin-28.1/bin/bitcoind",
        "sha256": "c2e73c31a0b371bd0721bc8bb6d199736fa1f3d2bb45edb7c8056eab3cec168a",
        "bytes": 16541800,
        "compressed_sha256": "668ba50f245a5f4ce6b37819668886e6818ab297016385e5a30a6150c51f47d5",
        "compressed_bytes": 6068820
      },
      "bitcoin-cli": {
        "archive_member": "bitcoin-28.1/bin/bitcoin-cli",
        "sha256": "cbf9e57b8aa71f337bd790e8a6a3eac8739da00e476e0c0b646961599ee3b936",
        "bytes": 2466216,
        "compressed_sha256": "4be0272c5e69f7b77d69792fbdb0a153e197dda8384521df4e23c5258b9a749d",
        "compressed_bytes": 722720
      }
    }
  },
  "blockers": [],
  "limitations": [
    "No known packaging blocker; exact submitted component bytes reported above. No upload ceiling was specified, so no limit is invented.",
    "This component supplies reproducible synthetic workflow evidence only. The overall objective requires a real solution and confirmed mainnet payment, neither achieved here.",
    "SIGKILL/power loss cannot execute cleanup; remove disposable scratch manually after such termination."
  ],
  "offlineCommands": [
    "mkdir -p test/scratch",
    "TMPDIR=\"$PWD/test/scratch\" python3 -B regtest-payment/verify_runtime.py",
    "TMPDIR=\"$PWD/test/scratch\" python3 -B -m unittest discover -s regtest-payment/tests -v",
    "TMPDIR=\"$PWD/test/scratch\" python3 -B regtest-payment/regtest_payment.py --receipt test/scratch/new-synthetic-receipt.json",
    "python3 -B regtest-payment/verify_receipt.py test/scratch/new-synthetic-receipt.json"
  ],
  "restartCommand": "mkdir -p test/scratch && TMPDIR=\"$PWD/test/scratch\" python3 -B regtest-payment/regtest_payment.py --receipt test/scratch/new-synthetic-receipt.json"
}
