{
 "schema": "cain42.e377r.preregistration.v1",
 "evolution": "E377-R",
 "status": "AGI: NOT ESTABLISHED \u00b7 RSI: EXPERIMENTAL",
 "written_at": "2026-11-26T17:03:22Z",
 "head_at_freeze": "a2da948dc62e104488471061d226494091092a1e",
 "title": "The Receipt Store: auditing a duplicate anchor of the same batch root",
 "anchor_endpoint": "https://cainstudio.online/api/v1/quorum/notarize",
 "question": "E374-L proved a reclaim creates no second commitment, but could not show what the quorum received. Can a receipt store record every anchor attempt (digest, batch, attempt) and its receipt, so a leader killed after storing the receipt but before writing the batch results is auditable as a duplicate submission of the same digest \u2014 with both receipts verifiable and every stored receipt retrievable by sequence?",
 "motivation": "A duplicate submission is safe only if it is the same digest. Recording the attempt makes that visible and lets an auditor fetch the proof by root or by quorum sequence.",
 "design": {
  "kind": "live crash + receipt-store study",
  "store": "jit_anchor_receipts(digest, batch_id, attempt, state, sequence, receipt); begin before the anchor, finish after; opt-in CAIN_JIT_RECEIPT_STORE=1",
  "fault": "CAIN_JIT_BATCH_FAULT=receipt kills the leader after the receipt is stored and before the queue results are written",
  "arms": {
   "crash_receipt": "leader killed after storing the receipt; a survivor reclaims and re-anchors the same digest",
   "healthy": "no fault; one attempt per digest"
  },
  "verdict_rule": "RECEIPT_STORE_DUPLICATE_AUDIT_SUPPORTED iff the crash arm shows exactly one digest with two done attempts (same digest), both receipts NOTARIZED, 8 lifts accepted under 2 roots with 8 proofs and a valid chain, every stored receipt retrievable by its sequence, and the healthy arm has 2 roots with exactly one attempt each. H7 external review BLOCKED.",
  "external": "NOT_OBTAINED"
 },
 "hypotheses": {
  "H1_duplicate_submission": "a crash after storing the receipt produces two recorded attempts for the same digest",
  "H2_duplicate_receipts_agree": "both receipts are NOTARIZED and carry the same digest (the sequence may be the same or a new one)",
  "H3_store_retrieval": "every stored receipt is retrievable by its quorum sequence and maps to its digest",
  "H4_no_second_commitment": "the crash arm accepts 8 lifts under 2 roots with 8 proofs and a valid chain",
  "H5_healthy_single_attempt": "the healthy arm has 2 roots and exactly one attempt per digest",
  "H6_receipts_offline": "every stored receipt verifies offline for its digest",
  "H7_external_review": "no external reviewer has reviewed this study (BLOCKED)"
 },
 "engine_sha256": {
  "cain/cain2027/e377r/run.py": "d4a7656ac1aec26c7df7d4e8fccb4772ca67bb731f1a9344c8cba4e264d1074d",
  "cain/jit_receipt_store.py": "789945306973767d318b1d435ddaebbb74a78dd8b6737a49776f8b63f5ab8377",
  "cain/jit_batch_queue.py": "8acdf6e012e8f6908a3a5f49034f5b5017cd0f7a510d166fa2bef5da6d3141b5",
  "cain/jit_capability.py": "3565e695e9a31cec95b1e04a6362a065292063600af9447667eb38c911ed1565",
  "cain/cain2027/e373d/worker.py": "ce594b5fca68b1dfdee10790a276674765722babe0703f3a1773b3e3eca42b2b",
  "cain/cain2027/e374l/leader.py": "a0bf9c4617d2c4725f65547eda134c37d803960f225cd5279bf97167f9d5750f"
 },
 "dependency_sha256": {
  "scripts/cain42_bft/verify_qaas_receipt.py": "609e1d41656a32eb0e873714c9975662bb070ff47ecf0dd5c810502577e9884f",
  "scripts/cain42_bft/verify_pbft_qc_bundle.py": "1d90370f3ab7270d95b4c104f2dda318ea9b21fe062c99da9b58d78da9234132"
 },
 "limits": [
  "Live study; receipts verify offline.",
  "Two OS processes plus leader harnesses on one host share one SQLite file (WAL); not a multi-host or network lease.",
  "The store records what this host sent and received; a receipt is evidence of the quorum's answer for that digest, not of the submitter's identity.",
  "A duplicate submission of the same digest may return the same or a new sequence; the study reports which and proves no second commitment.",
  "The anchor is a study anchor on cain-mr-03 (quarantined for customer anchoring).",
  "0 model calls; external reviewer NOT OBTAINED."
 ]
}