{
 "schema": "cain42.e378q.preregistration.v1",
 "evolution": "E378-Q",
 "status": "AGI: NOT ESTABLISHED \u00b7 RSI: EXPERIMENTAL",
 "written_at": "2026-11-26T17:16:19Z",
 "head_at_freeze": "d32a80e9f4039cce953cc2915780baebf823224c",
 "title": "The Quorum-Side Digest Index: a replay returns the first receipt",
 "question": "E377-R showed a replayed digest received a new sequence. Can the QaaS service deduplicate by (tenant, digest, configuration) and return the first receipt and sequence, while a different tenant or digest orders normally, and the old behaviour returns when the index is disabled?",
 "motivation": "A duplicate submission is safe only if it is the same commitment; a service-side digest index makes the replay a lookup and keeps one sequence per digest per tenant.",
 "design": {
  "kind": "in-process quorum study (four real PBFT engines)",
  "wrapper": "Quorum-QaaS notarize_indexed: lookup (tenant, digest, configuration_hash) before ordering; store after a verified receipt",
  "scope": "per tenant and per cluster configuration; index errors fail open to ordering, never to a wrong answer",
  "arms": {
   "replay": "same tenant and digest, two different request_ids",
   "distinct": "same tenant, a different digest",
   "tenant": "a different tenant, the same digest",
   "control": "index disabled, same tenant and digest, two calls"
  },
  "verdict_rule": "QUORUM_DIGEST_INDEX_SUPPORTED iff the replay returns the same sequence, the second answer is marked idempotent_replay with digest_index=hit and the receipts are identical; the distinct digest and the different tenant receive new sequences; the control (index disabled) receives two sequences; every receipt verifies offline. H7 external review BLOCKED.",
  "external": "NOT_OBTAINED"
 },
 "hypotheses": {
  "H1_replay_same_sequence": "a replayed (tenant,digest,configuration) returns the first sequence",
  "H2_replay_marked": "the replayed answer is marked idempotent_replay and digest_index=hit",
  "H3_tenant_scope": "a different tenant with the same digest receives a new sequence",
  "H4_distinct_digest_new_sequence": "a different digest receives a new sequence",
  "H5_control_without_index": "with the index disabled the old two-sequence behaviour returns",
  "H6_receipts_verify_offline": "every returned receipt verifies with the standalone verifier",
  "H7_external_review": "no external reviewer has reviewed this study (BLOCKED)"
 },
 "engine_sha256": {
  "cain/cain2027/e378q/run.py": "5117a7a5d30a3c19e942581f01ea93cd050e5760d264d253b0ff17d2d7a444b1",
  "platform-gateway/routers/quorum_qaas.py": "2d6df195ec7eb8a7c91f0eef3766443d45ac01eb99bf6df601c598a7a3a6fdb5",
  "platform-gateway/qaas_digest_index.py": "43467dd7bb5bd81701acf2c439a25962870752476a2fa858daaf77c97cfadd7a",
  "scripts/cain42_bft/message_fabric.py": "f6fc721958f6fbb9ce5fdab90a9c1b6153ded8ca124316c2dafaa20b5101922e",
  "platform-gateway/cain_pbft_engine_33.py": "4d033ff5e2d8daffe8d6f9555b80a5158e988e2f438109f2f87edca23342acdd"
 },
 "dependency_sha256": {
  "scripts/cain42_bft/verify_qaas_receipt.py": "609e1d41656a32eb0e873714c9975662bb070ff47ecf0dd5c810502577e9884f",
  "scripts/cain42_bft/verify_pbft_qc_bundle.py": "1d90370f3ab7270d95b4c104f2dda318ea9b21fe062c99da9b58d78da9234132"
 },
 "limits": [
  "In-process quorum: four real PBFT engines over the in-process fabric, not the live WAN cluster.",
  "The returned receipt keeps the first request's request_id.",
  "The index is a service-side cache; a lost index falls back to ordering (a new sequence), never to a wrong answer.",
  "The production route is wired to the wrapper but the public gateway is not restarted in this study.",
  "Tenant ids are pseudonymised in the receipt; the index is keyed by the internal tenant id and is never exposed.",
  "0 model calls; external reviewer NOT OBTAINED."
 ]
}