{
 "schema": "cain42.e331r.preregistration.v1",
 "evolution": "E331-R",
 "status": "AGI: NOT ESTABLISHED \u00b7 RSI: EXPERIMENTAL",
 "written_at": "2026-11-25T23:26:39Z",
 "head_at_freeze": "26882b2a3a2464b3dbacd75f4a6c657da97f6704",
 "title": "Governed Surface Self-Repair (GSR)",
 "designation": "E331-R is a suffix designation: the E331 identifier belongs to a concurrent schedule-transfer study created while this study was being prepared. No E331 result is used or claimed.",
 "question": "The organism publishes its evidence on three homepages that must stay newest-first, seal-consistent, status-complete and equal to the signed snapshot, claim and seal records. Can the organism detect damage to that surface, repair only what it can prove from a 2-of-3 replica consensus, re-verify the repair, and refuse \u2014 never fabricate \u2014 what it cannot prove?",
 "motivation": "E323 found a real ordering defect and E327 verified the live surface; both only detected. E331-R closes the loop from detection to a re-verified, signed repair receipt, while keeping signed evidence immutable and abstaining on everything outside its allowlist.",
 "design": {
  "surface": {
   "managed_blocks": [
    "327q",
    "330",
    "327",
    "326",
    "322",
    "324",
    "323",
    "318"
   ],
   "known_extra_ids": [
    "298p",
    "265x"
   ],
   "replicas": [
    "clawx",
    "cainstudio",
    "mcpgate"
   ],
   "sources": [
    "index.html",
    "rsi-claims.json",
    "<low>-snapshot.json",
    "<low>.html"
   ],
   "frozen_tree_hash": "0416ebbce06a2ad3591c765ab880eed9f3af9c2a4e576380e689a9c990064a93"
  },
  "classes": {
   "repairable": [
    "block_status_removed",
    "block_seal_changed",
    "block_duplicate",
    "block_order_swap",
    "block_above_mark",
    "snapshot_status_changed",
    "snapshot_seal_changed",
    "snapshot_missing",
    "claim_missing",
    "claim_status_changed",
    "combined_order_and_status"
   ],
   "refusals": [
    "page_missing_all_sites",
    "unknown_evidence_block",
    "evidence_tampered",
    "injection_all_sites",
    "schema_unknown"
   ],
   "benign": [
    "clean",
    "clean_again",
    "clean_legacy_block",
    "clean_all_sites"
   ]
  },
  "arms": [
   "detect_only",
   "naive",
   "governed",
   "governed_2x"
  ],
  "worlds_per_class_per_salt": 4,
  "salts": 2,
  "rows": 160,
  "repair_oracle": "2-of-3 replica consensus for the damaged artifact; canonical ordering by the highest seal number",
  "refusal_rule": "signed evidence, unknown blocks, injection, unknown schema, and a page missing from every replica are never repaired",
  "verdict_rule": "SURFACE_SELF_REPAIR_SUPPORTED iff H1-H7 hold on both salts: 160/160 detection, 100% repair of allowlisted rows with 0 false repairs, 0 regressions and 0 out-of-allowlist changes, 0 signed-evidence changes with 100% correct refusals, 100% idempotent and deterministic, the naive arm is demonstrably unsafe, and replication matches. H8 external review is BLOCKED.",
  "external": "NOT_OBTAINED"
 },
 "hypotheses": {
  "H1_detection": "every injected defect row is detected and every clean row is clean; 0 benign repairs",
  "H2_repair": "100% of allowlisted rows repaired with 0 false repairs",
  "H3_no_regression": "0 new defects and 0 changes outside the homepage/snapshot/claims allowlist",
  "H4_evidence_untouched": "0 signed-evidence changes; every non-repairable row refused with 0 changes",
  "H5_idempotent_deterministic": "second pass is a no-op; two independent repairs of the same damage are identical",
  "H6_naive_is_unsafe": "the ungoverned arm produces regressions, evidence changes or fabricated repairs",
  "H7_replication": "the replication salt repeats the row/class structure and H1-H6",
  "H8_external_review": "external review is BLOCKED"
 },
 "engine_sha256": {
  "cain/cain2027/e331r/surface.py": "0bc8d4563de98cc676bda06bb79e40dcf72647090aef5ceeb25f96f91e946146",
  "cain/cain2027/e331r/inject.py": "b2f7a4e4730ba2787bc512d5e3591474945af05fcfb88984e0bb9327929b1166",
  "cain/cain2027/e331r/run.py": "c0fee74c00c8abbb545641e43c693b2133a1d2ae84e62b4d5116144d5a1282a1"
 },
 "salt_commitment_sha256": {
  "primary": "e9792eece3e8c1d65134d1d62d3ddc0022c9ba1ae964d92b2fbc9f98ba50c04e",
  "replication": "6e87ac2e5960d5f0b076ace7c9d2ba6ebd35e587002c0f48beb598f98180daef"
 },
 "limits": [
  "private staging copy of the frozen public surface; the live sites are not mutated by the run",
  "16 injected defect classes and 4 clean scenarios; 4 worlds per class per salt; 2 salts; 160 rows",
  "designed, deterministic defect injectors, not an optimal adversary",
  "2-of-3 consensus over three replicas on one host; not three independent systems",
  "signed evidence is immutable in this design: tamper, unknown blocks, injection, unknown schema and a page missing from every replica are refused",
  "the bundle verifier recomputes the hypotheses from the raw rows; engine source withheld (IP rule)",
  "external reviewer NOT OBTAINED; same team wrote detector, injectors, repairer and verifier",
  "no third-party audit; 0 model calls; $0 API spend; not general intelligence"
 ],
 "engine_amendments": [
  {
   "deviation": "D1",
   "at": "2026-11-25T23:31:35Z",
   "file": "cain/cain2027/e331r/run.py",
   "from": "56e9585a75d6f91a10e0eaf57f1faba7039efda7d9c57819dd5e4a40a5faea2c",
   "to": "c0fee74c00c8abbb545641e43c693b2133a1d2ae84e62b4d5116144d5a1282a1",
   "reason": "reporting-only wiring fix discovered by the first launch, which crashed before writing any row; zero rows evaluated; design, salts, thresholds and the frozen surface are unchanged"
  }
 ]
}