{
 "schema": "cain42.e368b.preregistration.v1",
 "evolution": "E368-B",
 "status": "AGI: NOT ESTABLISHED \u00b7 RSI: EXPERIMENTAL",
 "written_at": "2026-11-26T15:05:17Z",
 "head_at_freeze": "e7a6ed4e4f74f6f7ce90af567401a6f497796186",
 "title": "The Synchronous Batch Anchor: a lift is accepted only after its batch is notarized",
 "anchor_endpoint": "https://cainstudio.online/api/v1/quorum/notarize",
 "question": "E357-A anchors every lift with one live consensus round; E362-B batched a finished ledger after the fact. Can the issuer itself batch synchronously: a lift joins a batch, blocks until the batch Merkle root is notarized, and is committed only then, with an inclusion proof, while an unreachable anchor writes nothing?",
 "motivation": "A post-hoc batch is an audit record. A synchronous batch gate is an authorization gate at batch cost: the anchor happens before the row exists, and every accepted lift carries a proof that binds it to the anchored root.",
 "design": {
  "kind": "live batch-gate study",
  "gate": "CAIN_JIT_BATCH_ANCHOR=1 with CAIN_JIT_BATCH_SIZE and CAIN_JIT_BATCH_TIMEOUT",
  "anchor_retry": "3 attempts, 1.5 s linear backoff, only HTTP 429/5xx and timeouts; definitive refusals fail closed immediately",
  "arm_spacing_s": 4,
  "commitment": "sha256 of canonical {statement_hash, principal, epoch, not_after, approvers, reason, ticket, policy_hash}",
  "merkle": "leaf=sha256('leaf|'+commitment); node=sha256('node|'+l+r); odd promote",
  "arms": {
   "batch4": "8 lifts, batch 4, timeout 5 s, live anchor",
   "early": "3 lifts, batch 8, timeout 0.8 s, live anchor",
   "down": "4 lifts, batch 4, unreachable anchor",
   "optout": "2 lifts, batch off, live per-entry anchor"
  },
  "verdict_rule": "SYNCHRONOUS_BATCH_ANCHOR_SUPPORTED iff 8 accepted lifts use exactly 2 live anchors and the chain verifies; all 11 batch inclusion proofs recompute and all 5 receipts verify offline; every accepted lift has a sequence and anchor_finished_at <= accepted_at; the unreachable anchor refuses 4 lifts with ANCHOR_FAILED and writes 0 rows; the 3-lift early flush uses 1 anchor; the opt-out control uses 2 per-entry anchors. H7 external review BLOCKED.",
  "external": "NOT_OBTAINED"
 },
 "hypotheses": {
  "H1_batch_coverage": "8 lifts accepted with 2 live anchors (4x fewer) and a valid ledger chain",
  "H2_proofs_and_receipts": "all batch inclusion proofs verify and every anchor receipt verifies offline",
  "H3_synchronous_order": "no lift is accepted before its batch anchor returned",
  "H4_anchor_down_fails_closed": "an unreachable anchor refuses every lift in the batch and writes no row",
  "H5_early_flush": "a partial batch flushes on timeout and is anchored once",
  "H6_optout_per_entry": "with batching off the per-entry gate still anchors every lift",
  "H7_external_review": "no external reviewer has reviewed this study (BLOCKED)"
 },
 "engine_sha256": {
  "cain/cain2027/e368b/run.py": "9dc03485f09215cb2363c9836fae253feeae859f7bc3b28c1ff6d97cc7947d20",
  "cain/jit_capability.py": "3fc080cace7bf5bf66718e2761fd0a59ebbbc2258eb63632a43b0b76491601ad"
 },
 "dependency_sha256": {
  "scripts/cain42_bft/verify_qaas_receipt.py": "609e1d41656a32eb0e873714c9975662bb070ff47ecf0dd5c810502577e9884f",
  "scripts/cain42_bft/verify_pbft_qc_bundle.py": "1d90370f3ab7270d95b4c104f2dda318ea9b21fe062c99da9b58d78da9234132"
 },
 "limits": [
  "Live study; receipts and proofs verify offline.",
  "Single process, one host: the barrier and commit lock are in-process.",
  "The anchor is a study anchor on cain-mr-03 (quarantined for customer anchoring).",
  "The commitment is computed before the chain insert; chain and proof are checked separately.",
  "A partial batch is flushed on timeout (measured).",
  "0 model calls; external reviewer NOT OBTAINED."
 ],
 "signature_note": "self-generated Ed25519 (integrity, not identity)"
}