{"schema":"identitymd-boundary-audit/v1","item":"boundary-audit","batch":"e3-private-path-audit","objectiveStatus":"INCOMPLETE","summary":"Pinned-source audit: five boundary findings; no later repair is assessed or approved.","pin":{"repository":"https://github.com/identity-md-launches/goal-3375-objective-solve-public-bitcoin","commit":"0992632e39cd0624c0ead76e9e4ab6f176fb07c5","sourceUrlTemplate":"https://raw.githubusercontent.com/identity-md-launches/goal-3375-objective-solve-public-bitcoin/0992632e39cd0624c0ead76e9e4ab6f176fb07c5/{path}","lineConvention":"1-based lines of raw pinned files; ranges are inclusive.","fetchIntegrity":"68 component blobs, excluding pyc, matched their pinned-tree Git blob SHA1 (blob + space + byte length + NUL + raw bytes). The pinned legacy receipt was also fetched for baseline tests.","corpusSha256":"df4b226a4b59b36d063081ee2a0980786fad7192f933c806104c161214233f1b","corpusHashRecipe":"SHA256 of sorted lines <raw-file-sha256>  <repository-relative-path>\\n for those 68 blobs. Select tree blobs under private-search, candidate-check, private-claim, rckangaroo and receipt-check, excluding __pycache__.","sourceSha256":{"private-claim/claim.py":"432dc71bd4145f78ca46293262f9e5103621c190aee7667e44119f7cee46f158","private-claim/bitcoin.py":"f72c020227fe4212847bd87e0900502a012a0b6104eedf39a7a40107dae46991","private-claim/test_claim.py":"c09d783c4dca4b2d16d576ee4edbcd84de6c25ace3d21bfb1ad580e486cd9572","candidate-check/cc_core.py":"ec1927f1a3c0f8236246c0d71aa34449fa314a02905500363ceb38c7183aec64","candidate-check/candidate_check.py":"75d291e72c0ce369114613e12e394e493d6cdc6a3e92102baa965542c90d2926","candidate-check/synthetic_api.py":"dc6a6f2cf45c07c10ec2c606eaaa593c0aa256625cbb5f9fc91f11ef4bc7b80c","private-search/kangaroo/manifest.py":"ca2af9f364bc4b586d5ff199b9ecadf189834cb5343fdaf40f57403da4420520","private-search/kangaroo/engine.py":"aadb57c51ac54f9c1d0cd23e62716d673560f71cb1a58076ae2fda5aaf6f77f1","private-search/kangaroo/storage.py":"5c241de646d5b86217fe4de21d63c2eeaf7ffe89f6a982c87f7bc283e91fd1f0","rckangaroo/adapter/rck_adapter.py":"7fbcba32ef51942e934b1891d317a70180c0f9d847bafbc3d4e64cece9439fe0","rckangaroo/adapter/manifest_140.json":"9057d510ca1ed66ff144c893462d18facb98ed3dd233253d3c7dd12bb06de4d9","rckangaroo/upstream/RCKangaroo.cpp":"7d0224cc72fd32bc78a7568e671408c705d3935c7470d3d4c3d353ef3b6ce13a","rckangaroo/upstream/utils.cpp":"b659548681e3f3091a13d8f7106c72aa9ab39de739bd469582fdb4c0921f3562","rckangaroo/upstream/utils.h":"11a16bfc9ffa143fa2ed96adb685254cd43da1794b043e2a1248ef3050ce2459","rckangaroo/upstream/README.md":"65327d14621769c411a4ae58a27b557c25b01171854c1ec56b8315810ee586f3","receipt-check/audit.py":"0281f535860b204d5fd7061f7f276349c6e1bf263b2256d57396c6b569701891","receipt-check/README.md":"dc40620515c55bda134730942f987450c7d3826e3cf5573489744f92adf3e011","rckangaroo/docs/CHECKPOINTS.md":"5418ec6466ca9edb5bb4c9c8a315c762700fe86d309838ec7f6b0a56c8994b9a"}},"prioritizedFindings":[{"id":"BA-01","priority":"P1","severity":"high acceptance risk","title":"Confirmed payment does not establish a complete prize sweep","status":"REPRODUCED_SYNTHETIC_MOCK","evidence":[{"path":"private-claim/claim.py","lines":"245-264, especially 253-255"},{"path":"receipt-check/audit.py","lines":"194-218,245-258"}],"detail":"verify derives selected solely from the transaction being verified, so it compares inputs against themselves rather than a complete pre-spend inventory. The auditor proves coverage only relative to its caller-supplied snapshot.","impact":"An integrator that treats confirmed or auditor PASS as objective completion can accept a partial sweep while 80000 pre-existing sats remain outside it. No such completion decision by an external orchestrator was observed.","limits":"Dummy signatures and mock block assertions prove local control flow only. prepare does scan inventory twice; this finding concerns independent verify and receipt composition.","acceptanceChecks":["Persist a complete pre-broadcast inventory bound to a named chain tip and mempool observation; verify its independent provenance and equality with spend inputs.","A missing second pre-existing output must prevent a complete-prize verdict, even if payment confirmation succeeds. Distinguish paymentConfirmed from completePrizeSweep; do not count later deposits as prior inventory."],"reproEvidence":"partialSweep,narrowedReceipt,fullInventoryReceipt"},{"id":"BA-02","priority":"P1","severity":"medium integration gap","title":"Claim summary receipts cannot cross the public evidence boundary","status":"REPRODUCED_SYNTHETIC_MOCK","evidence":[{"path":"private-claim/claim.py","lines":"240-264"},{"path":"receipt-check/audit.py","lines":"183-218,245-258"},{"path":"receipt-check/README.md","lines":"62-88"}],"detail":"Claim emits aggregate amounts/counts and txid. verify adds blockHash/depth but no raw spend/funding bytes, exact pre-spend inventory, block height or observed tip. receipt-check requires another exact schema; the audited workflow has no exporter.","impact":"Summary receipts do not independently prove complete coverage or confirmation. No overall success gate should infer those from a summary or byte PASS.","limits":"The auditor explicitly documents its offline limit; its NOT ESTABLISHED fields are correct. This is a missing composed workflow, not proof that its documented byte checks falsely establish confirmation.","acceptanceChecks":["Export canonical v1 bytes and the independently captured complete inventory before spending, with a transaction/source/build identity.","Export containing block hash/height, observed mainnet tip hash/height and required depth. Reproduce membership/depth using a validating node or appropriate inclusion evidence; reject stale/reorged blocks.","No overall payment-success gate may use byte-only PASS, prepared or broadcast_pending as confirmation."],"reproEvidence":"claimReceiptToAuditor,narrowedReceipt"},{"id":"BA-03","priority":"P2","severity":"medium","title":"RCK range parameter encodes puzzle number instead of interval width","status":"STATIC_SOURCE_AND_SYNTHETIC_COMMAND_MOCK","evidence":[{"path":"rckangaroo/adapter/manifest_140.json","lines":"7-11"},{"path":"rckangaroo/adapter/rck_adapter.py","lines":"182-209,235-240"},{"path":"rckangaroo/upstream/README.md","lines":"36-50"},{"path":"rckangaroo/upstream/RCKangaroo.cpp","lines":"381-394,749-778,820-825"}],"detail":"The inclusive #140 interval has 2^139 values, but the adapter passes -range 140 with -start 2^139. Upstream range denotes log2 of the offset width: its #85 example uses 84; it subtracts start before solving and generates benchmark offsets with RndBits(gRange). Width should be 139 bits for this interval.","impact":"Search/DP sizing and exact coverage claims disagree with the declared interval. The target public key stays fixed; no GPU run or measured speed penalty is claimed.","acceptanceChecks":["Derive and cross-check solver range from upper-lower+1; this manifest must produce -range 139 and its fixed start.","Use generated lower/upper endpoint and adjacent-outside tests with correctly translated ranges; retain the upstream minimum 32-bit width by choosing synthetic fixtures of sufficient width."],"reproEvidence":"rangeTranslation"},{"id":"BA-04","priority":"P2","severity":"medium integrity","title":"RCK precomputation loader accepts a truncated header-only file","status":"REPRODUCED_ORIGINAL_CPU_PARSER","evidence":[{"path":"rckangaroo/upstream/utils.cpp","lines":"230-272, especially 246"},{"path":"rckangaroo/upstream/utils.h","lines":"64-103"},{"path":"rckangaroo/upstream/RCKangaroo.cpp","lines":"413-427"},{"path":"rckangaroo/docs/CHECKPOINTS.md","lines":"3-18"}],"detail":"After Clear sets counts to zero, missing bucket-count bytes leave zero counts: fread results are ignored and LoadFromFile returns true. The caller checks only Header[0] range, not file integrity or walk compatibility.","impact":"Truncated precomputation is reported loaded, concealing missing work. This bounded test establishes neither allocation safety nor an incorrect recovered key.","acceptanceChecks":["Require exact successful reads for every count and record, bound sizes/allocations, reject unexpected EOF/trailing data, and clear partial imports on every failure.","Bind precomputation to a validated format/version and walk/build parameters, not just range. Test all truncation boundaries and incompatible metadata.","Continue labelling tames as precomputation rather than full search resume."],"reproEvidence":"reproduction.cppObserved"},{"id":"BA-05","priority":"P3","severity":"low policy mismatch","title":"Entrant fee cap and offline receipt policy disagree","status":"REPRODUCED_SYNTHETIC_MOCK","evidence":[{"path":"private-claim/claim.py","lines":"177-190,193-229,282"},{"path":"receipt-check/audit.py","lines":"75-77,239-241"}],"detail":"The claim uses the entrant-supplied total fee cap; receipt-check hardcodes 100000 sats. No policy handoff aligns the two.","impact":"An entrant-authorized payment can fail the downstream byte-policy audit. This is not unauthorized fee diversion.","acceptanceChecks":["Agree on a single explicit fee policy before signing. Either enforce the stricter cap in claim or let the auditor receive a separately trusted entrant policy; never trust a receipt-supplied cap alone."],"reproEvidence":"feePolicy"}],"boundaryAssessment":{"FDs":{"evidence":[{"path":"candidate-check/cc_core.py","lines":"270-315"},{"path":"candidate-check/candidate_check.py","lines":"45-57"},{"path":"private-claim/claim.py","lines":"27-32,313-318"},{"path":"private-search/kangaroo/storage.py","lines":"194-248"}],"result":"The verifier consumes/closes its FD. A dup pipe reader yields zero claim bytes after successful synthetic verification; dup regular files share offset 32. Rewind restores the controlled file stream.","assessment":"Documented semantics, not a new vulnerability. Use an entrant-held private byte buffer with byte APIs, or independent opens of the unchanged private file. dup does not replay a pipe; close producer writers for EOF. No composed private relay is supplied by these APIs."},"manifestAndPayout":{"evidence":[{"path":"candidate-check/cc_core.py","lines":"26-31,83-86,114-133"},{"path":"private-search/kangaroo/manifest.py","lines":"8-18,90-114"},{"path":"private-claim/claim.py","lines":"18-22,86-116,177-190"},{"path":"private-claim/bitcoin.py","lines":"73-93"}],"result":"Offline public-key/address consistency, declared inclusive bounds and mainnet Bech32m checksum pass. Independent recipient decoders agree; scripts and hashes appear below. No live public challenge/prize check was performed.","identityLimit":"Search and candidate manifests differ; the latter omits recipient. Bind decoded identity fields plus separately pinned component hashes. Claim summaries omit manifest/build hashes.","payout":"Claim enforces one fixed-recipient output and a bounded fee. No production payout substitution was demonstrated. Separately assigned mutable-manifest/log changes are not certified."},"checkpoints":{"evidence":[{"path":"private-search/kangaroo/storage.py","lines":"158-172"},{"path":"private-search/kangaroo/engine.py","lines":"225-284"},{"path":"rckangaroo/docs/CHECKPOINTS.md","lines":"3-28"}],"result":"Valid synthetic CPU state round-trips; manifest/jump hashes and inconsistent walk equation reject. Unkeyed SHA256 detects corruption, not operator tampering. Collision records can be key-equivalent. RCK tames are not full resume; BA-04 differs from assigned CPU capacity/resume work."},"Core28_1":{"status":"STATIC_ONLY_NOT_NODE_TESTED","commit":"32efe850438ef22e2de39e562af557872a402c31","tagObjectUrl":"https://api.github.com/repos/bitcoin/bitcoin/git/tags/0e6ddeca339cef84d862bd8ce4e38f4bf83a8760","sourceUrl":"https://raw.githubusercontent.com/bitcoin/bitcoin/32efe850438ef22e2de39e562af557872a402c31/src/rpc/blockchain.cpp","sha256":"899a4b923e3897539adc75b4294d5fce676fcdd7977a363bed013fd16ee27ce0","evidence":"claim.py:132 calls getdescriptoractivity; pinned Core blockchain.cpp:2958-2994 lacks this registration and the file contains no occurrence. This is the already assigned blocker, not a new or repaired path. No Core runtime was contacted."},"confirmation":"claim.py:245-264 checks raw txid, source prevouts, fixed payout, block membership, active height and stable tip against a trusted node. No actual chain proof was obtained. Offline byte PASS explicitly leaves confirmation/unspent status NOT ESTABLISHED."},"syntheticObservations":{"checkpointValidation":{"jumpHashRejected":true,"manifestHashRejected":true,"validRoundTrip":true,"walkEquationRejected":true},"claimReceiptToAuditor":{"confirmation":"NOT ESTABLISHED","errors":["expected object fields: schema, network, synthetic, recipient, snapshot, tx, prevouts"],"verdict":"FAIL"},"fdConsumption":{"bytesAfterExplicitRewind":32,"claimBytesAfterDup":0,"productionCandidateVerified":false,"sharedFileOffsetAfterCheck":32,"syntheticVerifierPassed":true},"feePolicy":{"auditErrors":["excessive fee"],"auditVerdict":"FAIL","auditorCapSats":100000,"claimStatus":"prepared","entrantCapSats":200000,"feeSats":111500},"fullInventoryReceipt":{"confirmation":"NOT ESTABLISHED","errors":["input set differs from snapshot"],"verdict":"FAIL"},"manifestIdentity":{"candidateCheckHash":"15cad4c3c92f31e8a60e6a85b11dd6044201209e0060d48248e260a920e6f048","candidateManifestContainsRecipient":false,"claimRecipientScript":"512046bfc36cb0a801aa7d19aff5ceffc6735d461e99bebd4c6c7fa3b2fbae2c0a6f","claimSourceScript":"76a914ffbb35a7bb9bbe16c1aa2534f7ff11d59c8e3d1a88ac","privateSearchHash":"81b6d1ba0c3cb55713d7056670f67eef4573a9f84f55320c207a5f847f556050","recipientDecodersAgree":true},"narrowedReceipt":{"confirmation":"NOT ESTABLISHED","errors":[],"fee_sats":1000,"input_sum_sats":120000,"paid_sats":119000,"verdict":"PASS"},"partialSweep":{"inventoryInputs":2,"inventoryQueriedByVerify":false,"inventorySats":200000,"status":"confirmed","verifiedInputSats":120000,"verifiedInputs":1},"rangeTranslation":{"ratio":2,"solverNominalWidth":4294967296,"solverRangeBits":32,"syntheticLow":2147483648,"syntheticWidth":2147483648}},"checks":{"baseline":[{"component":"private-claim","tests":21,"result":"PASS","reportedSeconds":0.02},{"component":"receipt-check","tests":17,"result":"PASS","reportedSeconds":0.202},{"component":"candidate-check","tests":40,"result":"PASS","reportedSeconds":9.91},{"component":"private-search","tests":41,"result":"PASS","reportedSeconds":5.648},{"component":"rckangaroo fake output-path script","checks":25,"result":"PASS; exit 0"}],"qualification":"Offline generated/sentinel/mocks only. The legacy receipt fixture was fetched at the same pin before the passing rerun. These baseline passes establish neither the new negative cases nor custody, live regtest, real search or payment."},"reproduction":{"python":"Save pythonHarness as repro.py in disposable scratch; run python3 -I -B repro.py <pinned-checkout> with a short external timeout. No network/RPC; synthetic data only.","pythonHarness":"import sys,pathlib,json,os\nfrom decimal import Decimal\np=pathlib.Path(sys.argv[1]).resolve()\nfor d in ('private-claim','receipt-check','candidate-check'):sys.path.insert(0,str(p/d))\nfrom test_claim import MockNode,make_tx,SYNTHETIC_DER\nfrom bitcoin import parse_tx,vector\nfrom claim import read_fd\nimport audit,cc_core,synthetic_api\nn=MockNode();c=n.claim;full,_,_=c.snapshot();point=(n.unspents[0]['txid'],0)\nsig=vector(SYNTHETIC_DER)+vector(c.pubkey)\nn.signed=make_tx([(point[0],0,sig,0xffffffff)],[(full[point]-1000,c.output_script)])\nn.depth=2;n.calls.clear();r=c.verify(parse_tx(n.signed).txid,2000,2)\nprint(json.dumps({'inventory':sum(full.values()),'verifiedInputSats':r['inputSats'],'status':r['status'],'inventoryQueried':'scantxoutset' in n.calls,'summaryAudit':audit.audit(r,'regtest')}))\ndef doc(n,points):\n return {'schema':'receipt-check/v1','network':'regtest','synthetic':True,'recipient':n.claim.recipient,'snapshot':{'address':n.claim.source,'outpoints':[{'txid':t,'vout':i,'value_sats':v} for (t,i),v in points.items()]},'tx':{'txid':parse_tx(n.signed).txid,'raw_hex':n.signed.hex()},'prevouts':[{'txid':t,'raw_hex':n.raw[t]} for t in sorted({t for t,i in points})]}\nprint(json.dumps({'narrowed':audit.audit(doc(n,{point:full[point]}),'regtest'),'complete':audit.audit(doc(n,full),'regtest')}))\nn=MockNode();n.estimate={'feerate':Decimal('0.00500000')}\nr=n.claim.prepare((1).to_bytes(32,'big'),200000,6,None,False)\npoints={(t,i):parse_tx(bytes.fromhex(n.raw[t])).outputs[i][0] for t,i,_,_ in parse_tx(n.signed).inputs}\nprint(json.dumps({'claimStatus':r['status'],'feeSats':r['feeSats'],'receiptAudit':audit.audit(doc(n,points),'regtest')}))\nd=synthetic_api.make_challenge('SYNTHETIC-fd',21,16,31)\nt=cc_core.synthetic_target(d['label'],bytes.fromhex(d['compressed_public_key']),d['p2pkh_address'],16,31)\nrd,wr=os.pipe();other=os.dup(rd);os.write(wr,(21).to_bytes(32,'big'));os.close(wr)\nr=cc_core.check_candidate_fd(rd,t)\nprint(json.dumps({'syntheticVerified':r['candidate_verified'],'remainingClaimBytes':len(read_fd(other,32))}))\n","cpp":"Save cppHarness as tames_repro.cpp in scratch. Build with: g++ -std=c++17 -O2 -I <pinned-checkout>/rckangaroo/upstream tames_repro.cpp <pinned-checkout>/rckangaroo/upstream/utils.cpp -o tames_repro. Create synthetic files of lengths 255 and 256: first byte 140, all remaining bytes zero. Invoke ./tames_repro <file> separately for each; limit address space to 512 MiB, CPU to 5 seconds and wall time to 10 seconds. The real DB type allocates approximately 192 MiB for its fixed bucket array; no GPU is needed.","cppHarness":"#include \"utils.h\"\n#include <memory>\nint main(int argc, char** argv) {\n    if(argc != 2) return 2;\n    auto db = std::make_unique<TFastBase>();\n    bool accepted = db->LoadFromFile(argv[1]);\n    printf(\"{\\\"accepted\\\":%s,\\\"headerRange\\\":%u,\\\"records\\\":%llu}\\n\", accepted?\"true\":\"false\", (unsigned)db->Header[0], db->GetBlockCnt());\n    return 0;\n}\n","cppObserved":[{"fileBytes":255,"returncode":0,"result":{"accepted":false,"headerRange":140,"records":0},"wallSeconds":0.284815},{"fileBytes":256,"returncode":0,"result":{"accepted":true,"headerRange":140,"records":0},"wallSeconds":1.030622}],"otherRepros":"Range: patch rck_adapter.run_solver_candidate to capture its command, os.path.isfile to true and _ensure_private_dir to a scratch path; call cmd_kat with range_bits=32, dp=14 and a synthetic seed. Assert -start=2^31, -range=32 although width=2^31. No solver executes. CPU checkpoint: generate synthetic_manifest(1000,32,\"middle\",\"audit\"), Engine(seed=\"audit\",dp_bits=0,max_records=100), run 3 steps and restore snapshot; then independently change manifestHash, jumpHash, or increment tame distance without changing its point: each restore must reject."},"prerequisitesAndNextEpisode":["Entrant custody is absent; file modes cannot protect against the operator. Establish an entrant-controlled private recovery/verifier/signer before real execution.","Pin and review an explicit repair revision. Recheck the listed separate assignments; this audit certifies no unseen repair.","Run funded mature Core 28.1 regtest end to end: FD replay, full coverage, fixed payout, fee policy, evidence export and stale/reorg rejection. Mock signatures do not satisfy this.","Before private real search verify the public challenge and live prize. Only a privately verified real key and independently verified confirmed sole-recipient mainnet payment can change INCOMPLETE."],"nonExecution":{"realSearch":false,"realCandidateHandled":false,"walletOrHostCredentialsRead":false,"rpcOrBroadcast":false,"confirmedPrizePayment":false,"paidServices":false,"spendIMD":0,"laterRepairsFetched":false,"scope":"Only pinned public source and disposable generated/synthetic data were used; only the two named JSON files are deliverables."}}
