{
 "schema": "cain42.e167.preregistration.v1",
 "evolution": "E167",
 "status": "AGI: NOT ESTABLISHED \u00b7 RSI: EXPERIMENTAL",
 "written_at": "2026-11-24T04:44:23Z",
 "question": "Does an improver that WRITES source (model-written, strictly guarded, held-out accepted) beat one that CHOOSES from a human-designed library, on document wordings nobody tuned for, and against a frozen researcher with 2x compute?",
 "builds_on": "E166 (published, OMEGA-000000111): library selection beat 2x compute but failed on held-out wording family C (0% exact document reasoning).",
 "design": {
  "campaigns": 6,
  "sealed_tasks_per_domain_per_campaign": 16,
  "hidden_tasks_per_comparison": 288,
  "representations": [
   "A|canonical|clean",
   "B|canonical|clean",
   "A|shuffled|clean",
   "B|shuffled|noisy",
   "struct",
   "D|canonical|clean",
   "D|shuffled|noisy",
   "E|canonical|clean",
   "E|shuffled|noisy",
   "F|canonical|clean",
   "F|shuffled|noisy",
   "C|canonical|clean",
   "C|shuffled|noisy",
   "A|distributed|clean",
   "A|canonical|clean|structgen"
  ],
  "write_attempts_per_arm_per_campaign": 3,
  "repair_rounds_per_attempt": 1,
  "research_master": "e167-dev-v1",
  "sealed_master": "secret; SHA-256 committed before the run"
 },
 "budgets": {
  "standard": 16,
  "search": 32
 },
 "api": {
  "model": "claude-haiku-5-5",
  "ceiling_usd": 2.0,
  "enforcement": "E154 client: worst-case reservation in artifacts/e167/E167_API_LEDGER.jsonl before every call; refused above the ceiling",
  "cost_basis": "token counts x published list prices (not provider billing)"
 },
 "arms": {
  "P0": "frozen researcher",
  "P_search": "P0 with 2x evaluations",
  "P2_lib": "E166 meta-researcher (library selection, held-out acceptance)",
  "P3_hybrid": "model writes functions on top of P2_lib's output; 3 attempts x 1 repair; E166 held-out acceptance vs parent",
  "P3_hybrid_candidate": "best written candidate before acceptance (secondary)",
  "P3_write": "model writes functions on top of P0"
 },
 "groups": {
  "blind": [
   "D|canonical|clean",
   "D|shuffled|noisy",
   "E|canonical|clean",
   "E|shuffled|noisy",
   "F|canonical|clean",
   "F|shuffled|noisy"
  ],
  "family_F_only": [
   "F|canonical|clean",
   "F|shuffled|noisy"
  ],
  "dev_visible": [
   "A|canonical|clean",
   "B|canonical|clean",
   "A|shuffled|clean",
   "B|shuffled|noisy",
   "struct"
  ],
  "other_heldout": [
   "C|canonical|clean",
   "C|shuffled|noisy",
   "A|distributed|clean",
   "A|canonical|clean|structgen"
  ]
 },
 "mde": 0.02,
 "doc_mde": 0.05,
 "diagnosis_floor": 0.7,
 "flag_recall_floor": 0.5,
 "false_flag_max": 0.2,
 "noninferiority": {
  "margin": 0.02,
  "lower_floor": -0.05
 },
 "robustness_margin": -0.05,
 "multiplicity": {
  "family": [
   "H1",
   "H2",
   "H3",
   "H5",
   "H9"
  ],
  "method": "Holm-Bonferroni"
 },
 "hypotheses": {
  "H1": "PRIMARY: P3_hybrid - P2_lib on blind families D/E/F, superiority (MDE 0.02); if no written change is ever accepted: NOT_SUPPORTED_NO_ACCEPTED_WRITE",
  "H2": "P3_hybrid - P_search pooled over all renderings, superiority",
  "H3": "P3_write - P2_lib on blind families, superiority",
  "H4": "P3_hybrid within-task drop A->D, A->E, A->F: lower CI >= -0.05 each",
  "H5": "doc_correct P3_hybrid - P2_lib on blind families, superiority at MDE 0.05",
  "H6": "diagnosis v2 observer: micro precision and recall >= 0.70 on held-out failures",
  "H7": "P3_hybrid uncertainty: flag recall on 'missing' >= 0.50 and false flags on clean documents <= 0.20",
  "H8": "per-domain P3_hybrid - P2_lib on blind families non-inferior in all three domains",
  "H9": "family F alone (generated after the writer froze, never examined before the sealed run): P3_hybrid - P2_lib superiority",
  "H10": "fresh replication (clean archive, separate process, fresh research and sealed salts, 3 campaigns): H1 and H2 both superior",
  "H11": "governance suite passes; every written function passes the strict guard and MCPGate before running",
  "H12": "external review: NOT_COMPLETED unless an independent reviewer reports"
 },
 "stopping_rule": "fixed N: 6 campaigns + 3 fresh; no interim sealed looks; API ceiling refusal ends a write attempt (recorded), never the comparison",
 "disclosures": [
  "One smoke test of the writer on families D/E (throwaway tasks, not sealed) was observed during writer development and the writer prompt was changed afterwards; family F is generated after this freeze and reported alone (H9).",
  "Pilots on throwaway salts (research master e167-pilot) were run to debug; they used no blind family.",
  "Same team wrote the tasks, P0, the library, the evaluator and the writer harness; the model writes only the listed reading functions."
 ],
 "code_sha256": {
  "__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "analyze.py": "14f607eb91c2f9c76d1f9cc444ea57ea4f22fa634e8a056fe8f1f969adcb3670",
  "blind_families.py": "598f666bfa0cd2d2dc18cdc6f9d910d2eccd2799a9cf4834d8560173b8074a8e",
  "evidence.py": "968dd7c6259f6c78e9403824198e73775df13cf7e87c4506b39198eb90f22809",
  "experiments.py": "83f591328967c66b11532b431b0435de90f2d5cbcfd993b099b8f7dc7fd8262b",
  "verify_e167_offline.py": "9d8cbafd26958fc1b2c3390f14fd30c24c2e312137f78b017731de88aecaab17",
  "writer.py": "9627346b792300d7ed785a8701e0228c2e70c616aa5712b3555e255fd095d1fe"
 },
 "e166_code_sha256": {
  "__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "adversarial.py": "b0b65b97bc848cb7c96be3f6fbf7929c261e93fa29c3dd1a2b8f0ad64bcfd90a",
  "analyze.py": "9bdd0b68c85cb2f41a6086b0ab4cb536eda3371f527d7367dd974e64aa4750e7",
  "capability_retention.py": "c1b08c9849ecf9fc94a8b8a8d073848b2d0061942173aa64c2ed615c5bd36e29",
  "diagnosis_engine.py": "260febdfdc9afe2e48986fb60ea1962b60dd8116f30c77f751bfb72a0a27beae",
  "doc_family_c.py": "e493317110e4597722c22eacb39415290fb3b2c030165477a9554a2140d5afd6",
  "document_interface.py": "f8e581446b158994cb04717c1864925dce1fbd717aab5c2fe54479f8c9a09153",
  "evaluator.py": "c7813dbd5ce62c4e4a045e2ad96e6c5b4fbba609519469ee9654573cce4f6bc7",
  "evidence.py": "33e003798575041b8d607f619699c33886baae7def80736b61feb97715a908a9",
  "experiments.py": "b709bb06537b8a27e66c88c93543eeb8507cf8e02a9d26cf8231c63c88192089",
  "external_review_package.py": "633b5db8166304b04ef6cd9476045f9de264f2e3b0064649bf4677b80438d777",
  "governance.py": "9f91716c9d238b1337011955305f775c7bf3f1b7bb157dcea438cf0494110a6b",
  "replication.py": "8f04ab33d271b70212bebdba63535efd4fb0beff3063ace933bcdafb16ce4ef2",
  "researcher.py": "63218f26f06b1ad898f402b474a27ad3ea1befb6caab2c1c036e765444d0c020",
  "security.py": "c9f79261df6c76a7cf4214bd464e6114bcfd42964801d3851c51206fb24d4869",
  "source_intervention_engine.py": "0374e76dc76e79bada19a0f3861fe4f504f63b561a34df95cc1e7d6ec0625d3d",
  "tasks.py": "2525885689d2b89ba8f25d78ba03c780b2c236128dfcb9fe9b6f48376814fc47",
  "transfer_firewall.py": "b0a9c1b4855f2b64ebe160c3b5c214ff788015cd3ee8d71e1d38e8fffce1c1ab",
  "verify_e166_offline.py": "7600385d2c38cdab74cd8528b41049c666f5d95a7963bbf187ec7930d9fa549d"
 },
 "blind_families_sha256": {
  "D.json": "defdc469473d9535a31ef41a86f44a8cead6d5a8b422bddcc504da653b95a8df",
  "E.json": "bac2648dfdd56262ec9c0d0c7ab4d236b63ce61d940327efaa128b0f0603d76a",
  "F.json": "06cb9392f445956c775f99be32902b0d3fdc4f44d97fcd8d8042401b75970ac3",
  "generation_record.json": "3871576d95b4353141e83a33960039776c82b32fa40da8d338f6ddbb245d9331"
 },
 "writer_system_prompt_sha256": "419350085312b554707fa6e4acb50f6939e63b9ddec8ae6ec5527e4bc6ad95ef"
}