{
  "executedAt": "2026-10-11T02:43:13.680188+00:00",
  "environment": {
    "python": "3.12.14",
    "pythonExecutable": "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
    "sqlite": "3.53.1",
    "platform": "macOS-15.5-arm64-arm-64bit"
  },
  "bundle": {
    "path": "public/lab/deep-dive/agent-core-deep-dive-v1.zip",
    "sha256": "476593a1753528d46959282e9be8acc2d630780a5d27985986a4b97dced495f9",
    "manifest": {
      "format": "agent-core-deep-dive/v1",
      "minimumPython": "3.9",
      "scope": "Authored requests, identities, source text/rankings, temporal events, trials/reference labels/judge verdicts. Actual local Python/SQLite execution and arithmetic. No live model, external provider, human calibration, measured production cost/latency, distributed restore or learning-effectiveness study.",
      "files": {
        "tool_contract_deep_dive.py": "9c5797ca23685e2e9afffeda40e00faf47b48cc2c4dd3a4547933352700a8aee",
        "approval_deep_dive.py": "db0150cd1dd5a4539aa5bed98ab7b159a64c3661967762877bbe9bad94985994",
        "rag_evidence_deep_dive.py": "87754a61db5640e456b778dc2fabc3618af131ec563512ac4ab466f2b20f6d68",
        "evaluation_deep_dive.py": "2c8b45a5691de9e4b2b267251d5b5c75a13e8c62a58415da47a93a40c575a82b",
        "memory_write_deep_dive.py": "10a6de8f1bb97ed2cf7a010b1b28198a63eb71356c4d23970f64518facfa9cf0",
        "test_deep_dive.py": "eca0fa858dd2d9610b800717fd0c425e8362f82d336dc01eb261f544febfa51d",
        "README.md": "392256fa9f92b726f2e1a7127b6986759e2d865c2b8d060b4c249e70c73a9024",
        "README.zh.md": "3e66e271b30f2fef233268ae797e31610c7d2701baa78cbbaba129a979208ab5"
      }
    }
  },
  "cleanDirectory": true,
  "experiments": [
    {
      "filename": "tool_contract_deep_dive.py",
      "sourceSha256": "9c5797ca23685e2e9afffeda40e00faf47b48cc2c4dd3a4547933352700a8aee",
      "result": {
        "boundary": "One local SQLite authority; a remote side effect needs its own idempotency and reconciliation protocol.",
        "events": [
          {
            "case": "foreign_order",
            "result": {
              "gate": "authorization",
              "status": "denied"
            },
            "shape_valid": true
          },
          {
            "case": "model_tenant",
            "result": {
              "gate": "shape_fields",
              "status": "denied"
            }
          },
          {
            "case": "bool_amount",
            "result": {
              "gate": "shape_integer",
              "status": "denied"
            }
          },
          {
            "case": "too_large",
            "result": {
              "gate": "business_parameters",
              "status": "denied"
            }
          },
          {
            "case": "invalid_version",
            "result": {
              "gate": "business_parameters",
              "status": "denied"
            }
          },
          {
            "case": "valid",
            "result": {
              "receipt": {
                "amount_minor": 300,
                "currency": "USD",
                "operation_id": "refund-1",
                "resource_version": 2
              },
              "status": "committed"
            }
          },
          {
            "case": "retry",
            "result": {
              "receipt": {
                "amount_minor": 300,
                "currency": "USD",
                "operation_id": "refund-1",
                "resource_version": 2
              },
              "status": "replayed"
            }
          },
          {
            "case": "changed_retry",
            "result": {
              "gate": "idempotency_conflict",
              "status": "denied"
            }
          },
          {
            "case": "new_operation_old_version",
            "result": {
              "gate": "resource_version",
              "status": "denied"
            }
          }
        ],
        "final": {
          "effect_count": 1,
          "remaining_minor": 700
        },
        "origin": "authored_requests_local_sqlite"
      },
      "run": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "tool_contract_deep_dive.py"
        ],
        "exitCode": 0,
        "stdout": "{\n  \"boundary\": \"One local SQLite authority; a remote side effect needs its own idempotency and reconciliation protocol.\",\n  \"events\": [\n    {\n      \"case\": \"foreign_order\",\n      \"result\": {\n        \"gate\": \"authorization\",\n        \"status\": \"denied\"\n      },\n      \"shape_valid\": true\n    },\n    {\n      \"case\": \"model_tenant\",\n      \"result\": {\n        \"gate\": \"shape_fields\",\n        \"status\": \"denied\"\n      }\n    },\n    {\n      \"case\": \"bool_amount\",\n      \"result\": {\n        \"gate\": \"shape_integer\",\n        \"status\": \"denied\"\n      }\n    },\n    {\n      \"case\": \"too_large\",\n      \"result\": {\n        \"gate\": \"business_parameters\",\n        \"status\": \"denied\"\n      }\n    },\n    {\n      \"case\": \"invalid_version\",\n      \"result\": {\n        \"gate\": \"business_parameters\",\n        \"status\": \"denied\"\n      }\n    },\n    {\n      \"case\": \"valid\",\n      \"result\": {\n        \"receipt\": {\n          \"amount_minor\": 300,\n          \"currency\": \"USD\",\n          \"operation_id\": \"refund-1\",\n          \"resource_version\": 2\n        },\n        \"status\": \"committed\"\n      }\n    },\n    {\n      \"case\": \"retry\",\n      \"result\": {\n        \"receipt\": {\n          \"amount_minor\": 300,\n          \"currency\": \"USD\",\n          \"operation_id\": \"refund-1\",\n          \"resource_version\": 2\n        },\n        \"status\": \"replayed\"\n      }\n    },\n    {\n      \"case\": \"changed_retry\",\n      \"result\": {\n        \"gate\": \"idempotency_conflict\",\n        \"status\": \"denied\"\n      }\n    },\n    {\n      \"case\": \"new_operation_old_version\",\n      \"result\": {\n        \"gate\": \"resource_version\",\n        \"status\": \"denied\"\n      }\n    }\n  ],\n  \"final\": {\n    \"effect_count\": 1,\n    \"remaining_minor\": 700\n  },\n  \"origin\": \"authored_requests_local_sqlite\"\n}\n",
        "stderr": "",
        "elapsedSeconds": 0.037316
      }
    },
    {
      "filename": "approval_deep_dive.py",
      "sourceSha256": "db0150cd1dd5a4539aa5bed98ab7b159a64c3661967762877bbe9bad94985994",
      "result": {
        "boundary": "Permission check and effect share one authority. Independent remote authorization needs an execution-side capability/version check.",
        "origin": "authored_approval_schedule_local_sqlite",
        "scenarios": [
          {
            "case": "changed_amount",
            "result": {
              "reason": "proposal_changed",
              "status": "denied"
            },
            "state": {
              "effect_count": 0,
              "remaining_minor": 1000
            }
          },
          {
            "case": "revoked_after_approval",
            "result": {
              "reason": "permission_revoked",
              "status": "denied"
            },
            "state": {
              "effect_count": 0,
              "remaining_minor": 1000
            }
          },
          {
            "case": "expired",
            "result": {
              "reason": "approval_expired",
              "status": "denied"
            },
            "state": {
              "effect_count": 0,
              "remaining_minor": 1000
            }
          },
          {
            "case": "resource_changed",
            "result": {
              "reason": "resource_changed",
              "status": "denied"
            },
            "state": {
              "effect_count": 0,
              "remaining_minor": 1000
            }
          },
          {
            "case": "first_dispatch",
            "result": {
              "receipt": {
                "amount_minor": 300,
                "operation_id": "refund-1",
                "resource_version": 2
              },
              "status": "committed"
            }
          },
          {
            "case": "duplicate_dispatch",
            "result": {
              "receipt": {
                "amount_minor": 300,
                "operation_id": "refund-1",
                "resource_version": 2
              },
              "status": "replayed"
            },
            "state": {
              "effect_count": 1,
              "remaining_minor": 700
            }
          }
        ]
      },
      "run": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "approval_deep_dive.py"
        ],
        "exitCode": 0,
        "stdout": "{\n  \"boundary\": \"Permission check and effect share one authority. Independent remote authorization needs an execution-side capability/version check.\",\n  \"origin\": \"authored_approval_schedule_local_sqlite\",\n  \"scenarios\": [\n    {\n      \"case\": \"changed_amount\",\n      \"result\": {\n        \"reason\": \"proposal_changed\",\n        \"status\": \"denied\"\n      },\n      \"state\": {\n        \"effect_count\": 0,\n        \"remaining_minor\": 1000\n      }\n    },\n    {\n      \"case\": \"revoked_after_approval\",\n      \"result\": {\n        \"reason\": \"permission_revoked\",\n        \"status\": \"denied\"\n      },\n      \"state\": {\n        \"effect_count\": 0,\n        \"remaining_minor\": 1000\n      }\n    },\n    {\n      \"case\": \"expired\",\n      \"result\": {\n        \"reason\": \"approval_expired\",\n        \"status\": \"denied\"\n      },\n      \"state\": {\n        \"effect_count\": 0,\n        \"remaining_minor\": 1000\n      }\n    },\n    {\n      \"case\": \"resource_changed\",\n      \"result\": {\n        \"reason\": \"resource_changed\",\n        \"status\": \"denied\"\n      },\n      \"state\": {\n        \"effect_count\": 0,\n        \"remaining_minor\": 1000\n      }\n    },\n    {\n      \"case\": \"first_dispatch\",\n      \"result\": {\n        \"receipt\": {\n          \"amount_minor\": 300,\n          \"operation_id\": \"refund-1\",\n          \"resource_version\": 2\n        },\n        \"status\": \"committed\"\n      }\n    },\n    {\n      \"case\": \"duplicate_dispatch\",\n      \"result\": {\n        \"receipt\": {\n          \"amount_minor\": 300,\n          \"operation_id\": \"refund-1\",\n          \"resource_version\": 2\n        },\n        \"status\": \"replayed\"\n      },\n      \"state\": {\n        \"effect_count\": 1,\n        \"remaining_minor\": 700\n      }\n    }\n  ]\n}\n",
        "stderr": "",
        "elapsedSeconds": 0.023331
      }
    },
    {
      "filename": "rag_evidence_deep_dive.py",
      "sourceSha256": "87754a61db5640e456b778dc2fabc3618af131ec563512ac4ab466f2b20f6d68",
      "result": {
        "boundary": "No embedding inference, model generation, arbitrary prose entailment, or live ACL update is tested.",
        "budget_failure": {
          "trace": {
            "assembled_ids": [],
            "assembly_status": "budget_exceeded",
            "at": 150,
            "budget_chars": 100,
            "context": [],
            "eligible_ids": [
              "returns-v2-base",
              "returns-v2-exception"
            ],
            "expanded_ids": [
              "returns-v2-base",
              "returns-v2-exception"
            ],
            "fused_ids": [
              "returns-v2-base",
              "returns-v2-exception"
            ],
            "query": "opened battery return at 20 days",
            "rankings": [
              [
                "returns-v2-base",
                "returns-v2-exception"
              ],
              [
                "returns-v2-base",
                "returns-v2-exception"
              ]
            ],
            "required_chars": 163,
            "selected_ids": [
              "returns-v2-base"
            ],
            "tenant": "tenant-a"
          },
          "verdict": {
            "accepted": false,
            "reason": "no_assembled_evidence"
          }
        },
        "failure": {
          "candidate": {
            "claims": [
              {
                "citations": [
                  "returns-v2-base"
                ],
                "field": "eligible",
                "value": true
              }
            ]
          },
          "trace": {
            "assembled_ids": [
              "returns-v2-base"
            ],
            "assembly_status": "assembled",
            "at": 150,
            "budget_chars": 300,
            "context": [
              {
                "id": "returns-v2-base",
                "text": "Current policy: unused products may be returned within 30 days. Product exceptions apply.",
                "version": 2
              }
            ],
            "eligible_ids": [
              "returns-v2-base",
              "returns-v2-exception"
            ],
            "expanded_ids": [
              "returns-v2-base"
            ],
            "fused_ids": [
              "returns-v2-base",
              "returns-v2-exception"
            ],
            "query": "opened battery return at 20 days",
            "rankings": [
              [
                "returns-v2-base",
                "returns-v2-exception"
              ],
              [
                "returns-v2-base",
                "returns-v2-exception"
              ]
            ],
            "required_chars": 89,
            "selected_ids": [
              "returns-v2-base"
            ],
            "tenant": "tenant-a"
          },
          "verdict": {
            "accepted": false,
            "reason": "missing_required_evidence"
          }
        },
        "origin": "authored_rankings_claims_local_rules",
        "permission_failure": {
          "trace": {
            "assembled_ids": [],
            "assembly_status": "no_evidence",
            "at": 150,
            "budget_chars": 300,
            "context": [],
            "eligible_ids": [],
            "expanded_ids": [],
            "fused_ids": [],
            "query": "opened battery return at 20 days",
            "rankings": [
              [],
              []
            ],
            "required_chars": 0,
            "selected_ids": [],
            "tenant": "tenant-a"
          },
          "verdict": {
            "accepted": false,
            "reason": "no_assembled_evidence"
          }
        },
        "present_citation_wrong_claim": {
          "accepted": false,
          "reason": "claim_contradicted"
        },
        "repair": {
          "candidate": {
            "claims": [
              {
                "citations": [
                  "returns-v2-base",
                  "returns-v2-exception"
                ],
                "field": "eligible",
                "value": false
              }
            ]
          },
          "trace": {
            "assembled_ids": [
              "returns-v2-base",
              "returns-v2-exception"
            ],
            "assembly_status": "assembled",
            "at": 150,
            "budget_chars": 300,
            "context": [
              {
                "id": "returns-v2-base",
                "text": "Current policy: unused products may be returned within 30 days. Product exceptions apply.",
                "version": 2
              },
              {
                "id": "returns-v2-exception",
                "text": "Opened batteries cannot be returned unless defective, even within 30 days.",
                "version": 2
              }
            ],
            "eligible_ids": [
              "returns-v2-base",
              "returns-v2-exception"
            ],
            "expanded_ids": [
              "returns-v2-base",
              "returns-v2-exception"
            ],
            "fused_ids": [
              "returns-v2-base",
              "returns-v2-exception"
            ],
            "query": "opened battery return at 20 days",
            "rankings": [
              [
                "returns-v2-base",
                "returns-v2-exception"
              ],
              [
                "returns-v2-base",
                "returns-v2-exception"
              ]
            ],
            "required_chars": 163,
            "selected_ids": [
              "returns-v2-base"
            ],
            "tenant": "tenant-a"
          },
          "verdict": {
            "accepted": true,
            "reason": "bounded_rules_supported",
            "semantic_prose": "not_scored"
          }
        }
      },
      "run": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "rag_evidence_deep_dive.py"
        ],
        "exitCode": 0,
        "stdout": "{\n  \"boundary\": \"No embedding inference, model generation, arbitrary prose entailment, or live ACL update is tested.\",\n  \"budget_failure\": {\n    \"trace\": {\n      \"assembled_ids\": [],\n      \"assembly_status\": \"budget_exceeded\",\n      \"at\": 150,\n      \"budget_chars\": 100,\n      \"context\": [],\n      \"eligible_ids\": [\n        \"returns-v2-base\",\n        \"returns-v2-exception\"\n      ],\n      \"expanded_ids\": [\n        \"returns-v2-base\",\n        \"returns-v2-exception\"\n      ],\n      \"fused_ids\": [\n        \"returns-v2-base\",\n        \"returns-v2-exception\"\n      ],\n      \"query\": \"opened battery return at 20 days\",\n      \"rankings\": [\n        [\n          \"returns-v2-base\",\n          \"returns-v2-exception\"\n        ],\n        [\n          \"returns-v2-base\",\n          \"returns-v2-exception\"\n        ]\n      ],\n      \"required_chars\": 163,\n      \"selected_ids\": [\n        \"returns-v2-base\"\n      ],\n      \"tenant\": \"tenant-a\"\n    },\n    \"verdict\": {\n      \"accepted\": false,\n      \"reason\": \"no_assembled_evidence\"\n    }\n  },\n  \"failure\": {\n    \"candidate\": {\n      \"claims\": [\n        {\n          \"citations\": [\n            \"returns-v2-base\"\n          ],\n          \"field\": \"eligible\",\n          \"value\": true\n        }\n      ]\n    },\n    \"trace\": {\n      \"assembled_ids\": [\n        \"returns-v2-base\"\n      ],\n      \"assembly_status\": \"assembled\",\n      \"at\": 150,\n      \"budget_chars\": 300,\n      \"context\": [\n        {\n          \"id\": \"returns-v2-base\",\n          \"text\": \"Current policy: unused products may be returned within 30 days. Product exceptions apply.\",\n          \"version\": 2\n        }\n      ],\n      \"eligible_ids\": [\n        \"returns-v2-base\",\n        \"returns-v2-exception\"\n      ],\n      \"expanded_ids\": [\n        \"returns-v2-base\"\n      ],\n      \"fused_ids\": [\n        \"returns-v2-base\",\n        \"returns-v2-exception\"\n      ],\n      \"query\": \"opened battery return at 20 days\",\n      \"rankings\": [\n        [\n          \"returns-v2-base\",\n          \"returns-v2-exception\"\n        ],\n        [\n          \"returns-v2-base\",\n          \"returns-v2-exception\"\n        ]\n      ],\n      \"required_chars\": 89,\n      \"selected_ids\": [\n        \"returns-v2-base\"\n      ],\n      \"tenant\": \"tenant-a\"\n    },\n    \"verdict\": {\n      \"accepted\": false,\n      \"reason\": \"missing_required_evidence\"\n    }\n  },\n  \"origin\": \"authored_rankings_claims_local_rules\",\n  \"permission_failure\": {\n    \"trace\": {\n      \"assembled_ids\": [],\n      \"assembly_status\": \"no_evidence\",\n      \"at\": 150,\n      \"budget_chars\": 300,\n      \"context\": [],\n      \"eligible_ids\": [],\n      \"expanded_ids\": [],\n      \"fused_ids\": [],\n      \"query\": \"opened battery return at 20 days\",\n      \"rankings\": [\n        [],\n        []\n      ],\n      \"required_chars\": 0,\n      \"selected_ids\": [],\n      \"tenant\": \"tenant-a\"\n    },\n    \"verdict\": {\n      \"accepted\": false,\n      \"reason\": \"no_assembled_evidence\"\n    }\n  },\n  \"present_citation_wrong_claim\": {\n    \"accepted\": false,\n    \"reason\": \"claim_contradicted\"\n  },\n  \"repair\": {\n    \"candidate\": {\n      \"claims\": [\n        {\n          \"citations\": [\n            \"returns-v2-base\",\n            \"returns-v2-exception\"\n          ],\n          \"field\": \"eligible\",\n          \"value\": false\n        }\n      ]\n    },\n    \"trace\": {\n      \"assembled_ids\": [\n        \"returns-v2-base\",\n        \"returns-v2-exception\"\n      ],\n      \"assembly_status\": \"assembled\",\n      \"at\": 150,\n      \"budget_chars\": 300,\n      \"context\": [\n        {\n          \"id\": \"returns-v2-base\",\n          \"text\": \"Current policy: unused products may be returned within 30 days. Product exceptions apply.\",\n          \"version\": 2\n        },\n        {\n          \"id\": \"returns-v2-exception\",\n          \"text\": \"Opened batteries cannot be returned unless defective, even within 30 days.\",\n          \"version\": 2\n        }\n      ],\n      \"eligible_ids\": [\n        \"returns-v2-base\",\n        \"returns-v2-exception\"\n      ],\n      \"expanded_ids\": [\n        \"returns-v2-base\",\n        \"returns-v2-exception\"\n      ],\n      \"fused_ids\": [\n        \"returns-v2-base\",\n        \"returns-v2-exception\"\n      ],\n      \"query\": \"opened battery return at 20 days\",\n      \"rankings\": [\n        [\n          \"returns-v2-base\",\n          \"returns-v2-exception\"\n        ],\n        [\n          \"returns-v2-base\",\n          \"returns-v2-exception\"\n        ]\n      ],\n      \"required_chars\": 163,\n      \"selected_ids\": [\n        \"returns-v2-base\"\n      ],\n      \"tenant\": \"tenant-a\"\n    },\n    \"verdict\": {\n      \"accepted\": true,\n      \"reason\": \"bounded_rules_supported\",\n      \"semantic_prose\": \"not_scored\"\n    }\n  }\n}\n",
        "stderr": "",
        "elapsedSeconds": 0.026478
      }
    },
    {
      "filename": "evaluation_deep_dive.py",
      "sourceSha256": "2c8b45a5691de9e4b2b267251d5b5c75a13e8c62a58415da47a93a40c575a82b",
      "result": {
        "boundary": "No measured model accuracy, latency, monetary cost, human agreement or deployment reliability.",
        "calibration": {
          "agreement": 0.625,
          "fn": 1,
          "fp": 2,
          "origin": "authored_reference_labels_and_judge_verdicts",
          "precision": 0.6,
          "recall": 0.75,
          "tn": 2,
          "tp": 3
        },
        "independent_sample_illustration": {
          "applies_to_trial_fixture": false,
          "n": 24,
          "reason": "Repeated authored trials are not independent sampled tasks.",
          "successes": 16,
          "wilson_95": [
            0.467063,
            0.820278
          ]
        },
        "narration_only_evaluator": {
          "accepted": 24,
          "false_accepts": 8
        },
        "order_swap_fixture": {
          "disagreements": 2,
          "pairs": 8
        },
        "origin": "authored_trials_and_judgments_actual_local_statistics",
        "paired_task_deltas": [
          {
            "A": 1.0,
            "B": 1.0,
            "delta": 0.0,
            "task_id": "happy"
          },
          {
            "A": 1.0,
            "B": 1.0,
            "delta": 0.0,
            "task_id": "alternative_path"
          },
          {
            "A": 0.6666666666666666,
            "B": 0.6666666666666666,
            "delta": 0.0,
            "task_id": "timeout"
          },
          {
            "A": 0.0,
            "B": 1.0,
            "delta": 1.0,
            "task_id": "permission"
          },
          {
            "A": 0.6666666666666666,
            "B": 0.6666666666666666,
            "delta": 0.0,
            "task_id": "duplicate"
          },
          {
            "A": 0.6666666666666666,
            "B": 0.6666666666666666,
            "delta": 0.0,
            "task_id": "citation"
          },
          {
            "A": 0.3333333333333333,
            "B": 0.6666666666666666,
            "delta": 0.3333333333333333,
            "task_id": "cancel"
          },
          {
            "A": 1.0,
            "B": 1.0,
            "delta": 0.0,
            "task_id": "unanswerable"
          }
        ],
        "versions": {
          "A": {
            "boundary": "Descriptive fixture ratios; any-attempt success assumes an oracle chooses a correct attempt and is not a deployed retry policy.",
            "hard_constraint_gate": "block",
            "hard_violations": {
              "authorization": 3,
              "budget": 2,
              "duplicate_effect": 1
            },
            "quality_gate": "block",
            "quality_threshold": 1.0,
            "release_gate": "block",
            "task_results": [
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": true,
                "passed": 3,
                "task_id": "happy"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": true,
                "passed": 3,
                "task_id": "alternative_path"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": false,
                "passed": 2,
                "task_id": "timeout"
              },
              {
                "any_attempt_passed": false,
                "attempts": 3,
                "every_attempt_passed": false,
                "passed": 0,
                "task_id": "permission"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": false,
                "passed": 2,
                "task_id": "duplicate"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": false,
                "passed": 2,
                "task_id": "citation"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": false,
                "passed": 1,
                "task_id": "cancel"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": true,
                "passed": 3,
                "task_id": "unanswerable"
              }
            ],
            "tasks_with_all_success": {
              "denominator": 8,
              "numerator": 3
            },
            "tasks_with_any_success": {
              "denominator": 8,
              "numerator": 7
            },
            "trial_success": {
              "denominator": 24,
              "numerator": 16
            }
          },
          "B": {
            "boundary": "Descriptive fixture ratios; any-attempt success assumes an oracle chooses a correct attempt and is not a deployed retry policy.",
            "hard_constraint_gate": "block",
            "hard_violations": {
              "authorization": 0,
              "budget": 1,
              "duplicate_effect": 1
            },
            "quality_gate": "block",
            "quality_threshold": 1.0,
            "release_gate": "block",
            "task_results": [
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": true,
                "passed": 3,
                "task_id": "happy"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": true,
                "passed": 3,
                "task_id": "alternative_path"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": false,
                "passed": 2,
                "task_id": "timeout"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": true,
                "passed": 3,
                "task_id": "permission"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": false,
                "passed": 2,
                "task_id": "duplicate"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": false,
                "passed": 2,
                "task_id": "citation"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": false,
                "passed": 2,
                "task_id": "cancel"
              },
              {
                "any_attempt_passed": true,
                "attempts": 3,
                "every_attempt_passed": true,
                "passed": 3,
                "task_id": "unanswerable"
              }
            ],
            "tasks_with_all_success": {
              "denominator": 8,
              "numerator": 4
            },
            "tasks_with_any_success": {
              "denominator": 8,
              "numerator": 8
            },
            "trial_success": {
              "denominator": 24,
              "numerator": 20
            }
          }
        },
        "zero_failure_illustration": {
          "assumption": "Independent representative Bernoulli trials, stationary failure probability; not established by these fixtures.",
          "n": 30,
          "one_sided_95_failure_upper": 0.095034
        }
      },
      "run": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "evaluation_deep_dive.py"
        ],
        "exitCode": 0,
        "stdout": "{\n  \"boundary\": \"No measured model accuracy, latency, monetary cost, human agreement or deployment reliability.\",\n  \"calibration\": {\n    \"agreement\": 0.625,\n    \"fn\": 1,\n    \"fp\": 2,\n    \"origin\": \"authored_reference_labels_and_judge_verdicts\",\n    \"precision\": 0.6,\n    \"recall\": 0.75,\n    \"tn\": 2,\n    \"tp\": 3\n  },\n  \"independent_sample_illustration\": {\n    \"applies_to_trial_fixture\": false,\n    \"n\": 24,\n    \"reason\": \"Repeated authored trials are not independent sampled tasks.\",\n    \"successes\": 16,\n    \"wilson_95\": [\n      0.467063,\n      0.820278\n    ]\n  },\n  \"narration_only_evaluator\": {\n    \"accepted\": 24,\n    \"false_accepts\": 8\n  },\n  \"order_swap_fixture\": {\n    \"disagreements\": 2,\n    \"pairs\": 8\n  },\n  \"origin\": \"authored_trials_and_judgments_actual_local_statistics\",\n  \"paired_task_deltas\": [\n    {\n      \"A\": 1.0,\n      \"B\": 1.0,\n      \"delta\": 0.0,\n      \"task_id\": \"happy\"\n    },\n    {\n      \"A\": 1.0,\n      \"B\": 1.0,\n      \"delta\": 0.0,\n      \"task_id\": \"alternative_path\"\n    },\n    {\n      \"A\": 0.6666666666666666,\n      \"B\": 0.6666666666666666,\n      \"delta\": 0.0,\n      \"task_id\": \"timeout\"\n    },\n    {\n      \"A\": 0.0,\n      \"B\": 1.0,\n      \"delta\": 1.0,\n      \"task_id\": \"permission\"\n    },\n    {\n      \"A\": 0.6666666666666666,\n      \"B\": 0.6666666666666666,\n      \"delta\": 0.0,\n      \"task_id\": \"duplicate\"\n    },\n    {\n      \"A\": 0.6666666666666666,\n      \"B\": 0.6666666666666666,\n      \"delta\": 0.0,\n      \"task_id\": \"citation\"\n    },\n    {\n      \"A\": 0.3333333333333333,\n      \"B\": 0.6666666666666666,\n      \"delta\": 0.3333333333333333,\n      \"task_id\": \"cancel\"\n    },\n    {\n      \"A\": 1.0,\n      \"B\": 1.0,\n      \"delta\": 0.0,\n      \"task_id\": \"unanswerable\"\n    }\n  ],\n  \"versions\": {\n    \"A\": {\n      \"boundary\": \"Descriptive fixture ratios; any-attempt success assumes an oracle chooses a correct attempt and is not a deployed retry policy.\",\n      \"hard_constraint_gate\": \"block\",\n      \"hard_violations\": {\n        \"authorization\": 3,\n        \"budget\": 2,\n        \"duplicate_effect\": 1\n      },\n      \"quality_gate\": \"block\",\n      \"quality_threshold\": 1.0,\n      \"release_gate\": \"block\",\n      \"task_results\": [\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": true,\n          \"passed\": 3,\n          \"task_id\": \"happy\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": true,\n          \"passed\": 3,\n          \"task_id\": \"alternative_path\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": false,\n          \"passed\": 2,\n          \"task_id\": \"timeout\"\n        },\n        {\n          \"any_attempt_passed\": false,\n          \"attempts\": 3,\n          \"every_attempt_passed\": false,\n          \"passed\": 0,\n          \"task_id\": \"permission\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": false,\n          \"passed\": 2,\n          \"task_id\": \"duplicate\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": false,\n          \"passed\": 2,\n          \"task_id\": \"citation\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": false,\n          \"passed\": 1,\n          \"task_id\": \"cancel\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": true,\n          \"passed\": 3,\n          \"task_id\": \"unanswerable\"\n        }\n      ],\n      \"tasks_with_all_success\": {\n        \"denominator\": 8,\n        \"numerator\": 3\n      },\n      \"tasks_with_any_success\": {\n        \"denominator\": 8,\n        \"numerator\": 7\n      },\n      \"trial_success\": {\n        \"denominator\": 24,\n        \"numerator\": 16\n      }\n    },\n    \"B\": {\n      \"boundary\": \"Descriptive fixture ratios; any-attempt success assumes an oracle chooses a correct attempt and is not a deployed retry policy.\",\n      \"hard_constraint_gate\": \"block\",\n      \"hard_violations\": {\n        \"authorization\": 0,\n        \"budget\": 1,\n        \"duplicate_effect\": 1\n      },\n      \"quality_gate\": \"block\",\n      \"quality_threshold\": 1.0,\n      \"release_gate\": \"block\",\n      \"task_results\": [\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": true,\n          \"passed\": 3,\n          \"task_id\": \"happy\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": true,\n          \"passed\": 3,\n          \"task_id\": \"alternative_path\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": false,\n          \"passed\": 2,\n          \"task_id\": \"timeout\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": true,\n          \"passed\": 3,\n          \"task_id\": \"permission\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": false,\n          \"passed\": 2,\n          \"task_id\": \"duplicate\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": false,\n          \"passed\": 2,\n          \"task_id\": \"citation\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": false,\n          \"passed\": 2,\n          \"task_id\": \"cancel\"\n        },\n        {\n          \"any_attempt_passed\": true,\n          \"attempts\": 3,\n          \"every_attempt_passed\": true,\n          \"passed\": 3,\n          \"task_id\": \"unanswerable\"\n        }\n      ],\n      \"tasks_with_all_success\": {\n        \"denominator\": 8,\n        \"numerator\": 4\n      },\n      \"tasks_with_any_success\": {\n        \"denominator\": 8,\n        \"numerator\": 8\n      },\n      \"trial_success\": {\n        \"denominator\": 24,\n        \"numerator\": 20\n      }\n    }\n  },\n  \"zero_failure_illustration\": {\n    \"assumption\": \"Independent representative Bernoulli trials, stationary failure probability; not established by these fixtures.\",\n    \"n\": 30,\n    \"one_sided_95_failure_upper\": 0.095034\n  }\n}\n",
        "stderr": "",
        "elapsedSeconds": 0.019594
      }
    },
    {
      "filename": "memory_write_deep_dive.py",
      "sourceSha256": "10a6de8f1bb97ed2cf7a010b1b28198a63eb71356c4d23970f64518facfa9cf0",
      "result": {
        "boundary": "No extraction accuracy, vector-index purge, cache purge or physical backup erasure is tested.",
        "correction": {
          "revision": 2,
          "source_id": "event-20",
          "status": "stored"
        },
        "explicit_reconsent": {
          "revision": 4,
          "source_id": "event-41",
          "status": "stored"
        },
        "fresh_without_reconsent": {
          "reason": "revoked_requires_reconsent",
          "status": "rejected"
        },
        "initial": {
          "revision": 1,
          "source_id": "event-10",
          "status": "stored"
        },
        "old_async_completion": {
          "current_revision": 2,
          "reason": "stale_revision",
          "status": "rejected"
        },
        "old_source_rebased_after_revocation": {
          "reason": "stale_source_event",
          "status": "rejected"
        },
        "origin": "authored_source_events_local_sqlite",
        "quote": {
          "reason": "admission_policy",
          "status": "rejected"
        },
        "read_after_revocation": null,
        "read_at_150": {
          "revision": 1,
          "source_id": "event-10",
          "stored_at": 110,
          "valid_from": 100,
          "valid_to": 200,
          "value": "vegetarian"
        },
        "read_at_250": {
          "revision": 2,
          "source_id": "event-20",
          "stored_at": 210,
          "valid_from": 200,
          "valid_to": 1000,
          "value": "vegan"
        },
        "read_at_450": {
          "revision": 4,
          "source_id": "event-41",
          "stored_at": 420,
          "valid_from": 400,
          "valid_to": 1000,
          "value": "vegetarian"
        },
        "revocation": {
          "payload_rows": 0,
          "revision": 3,
          "status": "revoked"
        }
      },
      "run": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "memory_write_deep_dive.py"
        ],
        "exitCode": 0,
        "stdout": "{\n  \"boundary\": \"No extraction accuracy, vector-index purge, cache purge or physical backup erasure is tested.\",\n  \"correction\": {\n    \"revision\": 2,\n    \"source_id\": \"event-20\",\n    \"status\": \"stored\"\n  },\n  \"explicit_reconsent\": {\n    \"revision\": 4,\n    \"source_id\": \"event-41\",\n    \"status\": \"stored\"\n  },\n  \"fresh_without_reconsent\": {\n    \"reason\": \"revoked_requires_reconsent\",\n    \"status\": \"rejected\"\n  },\n  \"initial\": {\n    \"revision\": 1,\n    \"source_id\": \"event-10\",\n    \"status\": \"stored\"\n  },\n  \"old_async_completion\": {\n    \"current_revision\": 2,\n    \"reason\": \"stale_revision\",\n    \"status\": \"rejected\"\n  },\n  \"old_source_rebased_after_revocation\": {\n    \"reason\": \"stale_source_event\",\n    \"status\": \"rejected\"\n  },\n  \"origin\": \"authored_source_events_local_sqlite\",\n  \"quote\": {\n    \"reason\": \"admission_policy\",\n    \"status\": \"rejected\"\n  },\n  \"read_after_revocation\": null,\n  \"read_at_150\": {\n    \"revision\": 1,\n    \"source_id\": \"event-10\",\n    \"stored_at\": 110,\n    \"valid_from\": 100,\n    \"valid_to\": 200,\n    \"value\": \"vegetarian\"\n  },\n  \"read_at_250\": {\n    \"revision\": 2,\n    \"source_id\": \"event-20\",\n    \"stored_at\": 210,\n    \"valid_from\": 200,\n    \"valid_to\": 1000,\n    \"value\": \"vegan\"\n  },\n  \"read_at_450\": {\n    \"revision\": 4,\n    \"source_id\": \"event-41\",\n    \"stored_at\": 420,\n    \"valid_from\": 400,\n    \"valid_to\": 1000,\n    \"value\": \"vegetarian\"\n  },\n  \"revocation\": {\n    \"payload_rows\": 0,\n    \"revision\": 3,\n    \"status\": \"revoked\"\n  }\n}\n",
        "stderr": "",
        "elapsedSeconds": 0.029496
      }
    }
  ],
  "readerCommandBlocks": [
    {
      "id": "tool-contracts",
      "source": "python3 -B tool_contract_deep_dive.py > tool_contract_deep_dive.results.json\npython3 -B -m unittest discover -v\n",
      "result": {
        "command": [
          "/bin/sh",
          "-eu",
          "-c",
          "python3 -B tool_contract_deep_dive.py > tool_contract_deep_dive.results.json\npython3 -B -m unittest discover -v\n"
        ],
        "exitCode": 0,
        "stdout": "",
        "stderr": "test_approval_and_dispatch_inside_callers_except_persist (test_deep_dive.ApprovalTests) ... ok\ntest_approver_regrant_does_not_reactivate_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_approver_revocation_blocks_pending_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_bool_and_extra_approved_flag_are_rejected (test_deep_dive.ApprovalTests) ... ok\ntest_changed_amount_needs_new_approval (test_deep_dive.ApprovalTests) ... ok\ntest_changed_resource_is_not_covered_by_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_approval_and_execution_share_operation (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_workers_commit_one_effect (test_deep_dive.ApprovalTests) ... ok\ntest_effect_failure_rolls_back_balance_and_done_state (test_deep_dive.ApprovalTests) ... ok\ntest_expiry_is_exclusive_and_only_receipt_replay_remains (test_deep_dive.ApprovalTests) ... ok\ntest_genuinely_changed_intent_requires_new_review (test_deep_dive.ApprovalTests) ... ok\ntest_key_order_has_no_semantic_change (test_deep_dive.ApprovalTests) ... ok\ntest_legacy_approval_without_reviewer_epoch_cannot_create_an_effect (test_deep_dive.ApprovalTests) ... ok\ntest_operation_id_cannot_be_repurposed (test_deep_dive.ApprovalTests) ... ok\ntest_permission_revocation_is_checked_at_execution (test_deep_dive.ApprovalTests) ... ok\ntest_regrant_changes_epoch_and_requires_review (test_deep_dive.ApprovalTests) ... ok\ntest_reviewer_identity_cannot_replace_completed_approval (test_deep_dive.ApprovalTests) ... ok\ntest_revoking_after_commit_does_not_undo_business_history (test_deep_dive.ApprovalTests) ... ok\ntest_two_reviewers_cannot_both_claim_first_approval (test_deep_dive.ApprovalTests) ... ok\ntest_unapproved_proposal_cannot_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_actual_counts_and_task_denominators (test_deep_dive.EvaluationTests) ... ok\ntest_alternative_trajectory_is_accepted_by_outcome (test_deep_dive.EvaluationTests) ... ok\ntest_average_improvement_cannot_cancel_hard_violations (test_deep_dive.EvaluationTests) ... ok\ntest_calibration_false_positive_and_false_negative_are_separate (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_success_cannot_inflate_a_paired_task_delta (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_trial_and_unpaired_comparison_are_rejected (test_deep_dive.EvaluationTests) ... ok\ntest_narration_judge_false_accepts_are_counted (test_deep_dive.EvaluationTests) ... ok\ntest_quality_threshold_is_explicit_and_does_not_waive_hard_constraints (test_deep_dive.EvaluationTests) ... ok\ntest_safe_but_useless_results_fail_the_separate_quality_gate (test_deep_dive.EvaluationTests) ... ok\ntest_uncertainty_formula_does_not_claim_fixture_independence (test_deep_dive.EvaluationTests) ... ok\ntest_async_old_write_cannot_overwrite_new_correction (test_deep_dive.MemoryTests) ... ok\ntest_failed_correction_preserves_old_interval_and_revision (test_deep_dive.MemoryTests) ... ok\ntest_fresh_event_needs_explicit_reconsent_after_revocation (test_deep_dive.MemoryTests) ... ok\ntest_future_validity_is_not_ingestion_time (test_deep_dive.MemoryTests) ... ok\ntest_invalid_interval_or_boolean_time_cannot_be_stored (test_deep_dive.MemoryTests) ... ok\ntest_memory_writes_inside_callers_except_match_their_statuses (test_deep_dive.MemoryTests) ... ok\ntest_old_source_cannot_be_revived_by_rebasing_or_consent_flag (test_deep_dive.MemoryTests) ... ok\ntest_purpose_filter_does_not_reuse_fact_elsewhere (test_deep_dive.MemoryTests) ... ok\ntest_quotes_inferences_and_temporary_instructions_fail_admission (test_deep_dive.MemoryTests) ... ok\ntest_reopen_does_not_drop_revocation_control (test_deep_dive.MemoryTests) ... ok\ntest_retroactive_correction_is_routed_to_review (test_deep_dive.MemoryTests) ... ok\ntest_revocation_preserves_tombstone_and_removes_payload (test_deep_dive.MemoryTests) ... ok\ntest_scope_is_bound_to_authenticated_subject (test_deep_dive.MemoryTests) ... ok\ntest_truthy_values_cannot_claim_reusability_or_reconsent (test_deep_dive.MemoryTests) ... ok\ntest_answerable_bundle_includes_exception (test_deep_dive.RagTests) ... ok\ntest_budget_does_not_silently_strip_a_condition (test_deep_dive.RagTests) ... ok\ntest_duplicate_rank_entries_cannot_boost_rrf (test_deep_dive.RagTests) ... ok\ntest_empty_permission_set_does_not_fall_back (test_deep_dive.RagTests) ... ok\ntest_lost_exception_is_visible_at_assembly_boundary (test_deep_dive.RagTests) ... ok\ntest_permission_time_filter_precedes_ranking_and_expansion (test_deep_dive.RagTests) ... ok\ntest_present_citations_do_not_establish_truth (test_deep_dive.RagTests) ... ok\ntest_stale_foreign_or_fabricated_citations_are_rejected (test_deep_dive.RagTests) ... ok\ntest_unknown_claim_cannot_be_supported_by_relevance (test_deep_dive.RagTests) ... ok\ntest_valid_time_end_is_exclusive (test_deep_dive.RagTests) ... ok\ntest_authorization_precedes_receipt_replay (test_deep_dive.ToolContractTests) ... ok\ntest_bool_float_and_unit_guess_are_rejected (test_deep_dive.ToolContractTests) ... ok\ntest_insufficient_remaining_does_not_write_receipt (test_deep_dive.ToolContractTests) ... ok\ntest_model_cannot_add_tenant_or_approval (test_deep_dive.ToolContractTests) ... ok\ntest_new_operation_requires_current_state (test_deep_dive.ToolContractTests) ... ok\ntest_receipt_failure_rolls_back_the_prior_balance_update (test_deep_dive.ToolContractTests) ... ok\ntest_recovery_inside_callers_except_commits_the_reported_effect (test_deep_dive.ToolContractTests) ... ok\ntest_reopen_after_commit_reconciles_before_new_write (test_deep_dive.ToolContractTests) ... ok\ntest_retry_identity_is_bound_to_payload_and_actor (test_deep_dive.ToolContractTests) ... ok\ntest_two_connections_share_one_business_effect (test_deep_dive.ToolContractTests) ... ok\ntest_well_formed_foreign_id_is_not_authority (test_deep_dive.ToolContractTests) ... ok\n\n----------------------------------------------------------------------\nRan 65 tests in 0.046s\n\nOK\n",
        "elapsedSeconds": 0.170648
      },
      "savedOutputSha256": "75d13c46fef284719a2b80959fd3c23290ef9f1bcd72fd0986fcf52f4c1c844e"
    },
    {
      "id": "agent-security-approval",
      "source": "python3 -B approval_deep_dive.py > approval_deep_dive.results.json\npython3 -B -m unittest discover -v\n",
      "result": {
        "command": [
          "/bin/sh",
          "-eu",
          "-c",
          "python3 -B approval_deep_dive.py > approval_deep_dive.results.json\npython3 -B -m unittest discover -v\n"
        ],
        "exitCode": 0,
        "stdout": "",
        "stderr": "test_approval_and_dispatch_inside_callers_except_persist (test_deep_dive.ApprovalTests) ... ok\ntest_approver_regrant_does_not_reactivate_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_approver_revocation_blocks_pending_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_bool_and_extra_approved_flag_are_rejected (test_deep_dive.ApprovalTests) ... ok\ntest_changed_amount_needs_new_approval (test_deep_dive.ApprovalTests) ... ok\ntest_changed_resource_is_not_covered_by_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_approval_and_execution_share_operation (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_workers_commit_one_effect (test_deep_dive.ApprovalTests) ... ok\ntest_effect_failure_rolls_back_balance_and_done_state (test_deep_dive.ApprovalTests) ... ok\ntest_expiry_is_exclusive_and_only_receipt_replay_remains (test_deep_dive.ApprovalTests) ... ok\ntest_genuinely_changed_intent_requires_new_review (test_deep_dive.ApprovalTests) ... ok\ntest_key_order_has_no_semantic_change (test_deep_dive.ApprovalTests) ... ok\ntest_legacy_approval_without_reviewer_epoch_cannot_create_an_effect (test_deep_dive.ApprovalTests) ... ok\ntest_operation_id_cannot_be_repurposed (test_deep_dive.ApprovalTests) ... ok\ntest_permission_revocation_is_checked_at_execution (test_deep_dive.ApprovalTests) ... ok\ntest_regrant_changes_epoch_and_requires_review (test_deep_dive.ApprovalTests) ... ok\ntest_reviewer_identity_cannot_replace_completed_approval (test_deep_dive.ApprovalTests) ... ok\ntest_revoking_after_commit_does_not_undo_business_history (test_deep_dive.ApprovalTests) ... ok\ntest_two_reviewers_cannot_both_claim_first_approval (test_deep_dive.ApprovalTests) ... ok\ntest_unapproved_proposal_cannot_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_actual_counts_and_task_denominators (test_deep_dive.EvaluationTests) ... ok\ntest_alternative_trajectory_is_accepted_by_outcome (test_deep_dive.EvaluationTests) ... ok\ntest_average_improvement_cannot_cancel_hard_violations (test_deep_dive.EvaluationTests) ... ok\ntest_calibration_false_positive_and_false_negative_are_separate (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_success_cannot_inflate_a_paired_task_delta (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_trial_and_unpaired_comparison_are_rejected (test_deep_dive.EvaluationTests) ... ok\ntest_narration_judge_false_accepts_are_counted (test_deep_dive.EvaluationTests) ... ok\ntest_quality_threshold_is_explicit_and_does_not_waive_hard_constraints (test_deep_dive.EvaluationTests) ... ok\ntest_safe_but_useless_results_fail_the_separate_quality_gate (test_deep_dive.EvaluationTests) ... ok\ntest_uncertainty_formula_does_not_claim_fixture_independence (test_deep_dive.EvaluationTests) ... ok\ntest_async_old_write_cannot_overwrite_new_correction (test_deep_dive.MemoryTests) ... ok\ntest_failed_correction_preserves_old_interval_and_revision (test_deep_dive.MemoryTests) ... ok\ntest_fresh_event_needs_explicit_reconsent_after_revocation (test_deep_dive.MemoryTests) ... ok\ntest_future_validity_is_not_ingestion_time (test_deep_dive.MemoryTests) ... ok\ntest_invalid_interval_or_boolean_time_cannot_be_stored (test_deep_dive.MemoryTests) ... ok\ntest_memory_writes_inside_callers_except_match_their_statuses (test_deep_dive.MemoryTests) ... ok\ntest_old_source_cannot_be_revived_by_rebasing_or_consent_flag (test_deep_dive.MemoryTests) ... ok\ntest_purpose_filter_does_not_reuse_fact_elsewhere (test_deep_dive.MemoryTests) ... ok\ntest_quotes_inferences_and_temporary_instructions_fail_admission (test_deep_dive.MemoryTests) ... ok\ntest_reopen_does_not_drop_revocation_control (test_deep_dive.MemoryTests) ... ok\ntest_retroactive_correction_is_routed_to_review (test_deep_dive.MemoryTests) ... ok\ntest_revocation_preserves_tombstone_and_removes_payload (test_deep_dive.MemoryTests) ... ok\ntest_scope_is_bound_to_authenticated_subject (test_deep_dive.MemoryTests) ... ok\ntest_truthy_values_cannot_claim_reusability_or_reconsent (test_deep_dive.MemoryTests) ... ok\ntest_answerable_bundle_includes_exception (test_deep_dive.RagTests) ... ok\ntest_budget_does_not_silently_strip_a_condition (test_deep_dive.RagTests) ... ok\ntest_duplicate_rank_entries_cannot_boost_rrf (test_deep_dive.RagTests) ... ok\ntest_empty_permission_set_does_not_fall_back (test_deep_dive.RagTests) ... ok\ntest_lost_exception_is_visible_at_assembly_boundary (test_deep_dive.RagTests) ... ok\ntest_permission_time_filter_precedes_ranking_and_expansion (test_deep_dive.RagTests) ... ok\ntest_present_citations_do_not_establish_truth (test_deep_dive.RagTests) ... ok\ntest_stale_foreign_or_fabricated_citations_are_rejected (test_deep_dive.RagTests) ... ok\ntest_unknown_claim_cannot_be_supported_by_relevance (test_deep_dive.RagTests) ... ok\ntest_valid_time_end_is_exclusive (test_deep_dive.RagTests) ... ok\ntest_authorization_precedes_receipt_replay (test_deep_dive.ToolContractTests) ... ok\ntest_bool_float_and_unit_guess_are_rejected (test_deep_dive.ToolContractTests) ... ok\ntest_insufficient_remaining_does_not_write_receipt (test_deep_dive.ToolContractTests) ... ok\ntest_model_cannot_add_tenant_or_approval (test_deep_dive.ToolContractTests) ... ok\ntest_new_operation_requires_current_state (test_deep_dive.ToolContractTests) ... ok\ntest_receipt_failure_rolls_back_the_prior_balance_update (test_deep_dive.ToolContractTests) ... ok\ntest_recovery_inside_callers_except_commits_the_reported_effect (test_deep_dive.ToolContractTests) ... ok\ntest_reopen_after_commit_reconciles_before_new_write (test_deep_dive.ToolContractTests) ... ok\ntest_retry_identity_is_bound_to_payload_and_actor (test_deep_dive.ToolContractTests) ... ok\ntest_two_connections_share_one_business_effect (test_deep_dive.ToolContractTests) ... ok\ntest_well_formed_foreign_id_is_not_authority (test_deep_dive.ToolContractTests) ... ok\n\n----------------------------------------------------------------------\nRan 65 tests in 0.042s\n\nOK\n",
        "elapsedSeconds": 0.140997
      },
      "savedOutputSha256": "50892343e259147edfb5e9a3e6d6cdce47173d6eeab03bc49b2aa9f15c873732"
    },
    {
      "id": "rag-evidence",
      "source": "python3 -B rag_evidence_deep_dive.py > rag_evidence_deep_dive.results.json\npython3 -B -m unittest discover -v\n",
      "result": {
        "command": [
          "/bin/sh",
          "-eu",
          "-c",
          "python3 -B rag_evidence_deep_dive.py > rag_evidence_deep_dive.results.json\npython3 -B -m unittest discover -v\n"
        ],
        "exitCode": 0,
        "stdout": "",
        "stderr": "test_approval_and_dispatch_inside_callers_except_persist (test_deep_dive.ApprovalTests) ... ok\ntest_approver_regrant_does_not_reactivate_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_approver_revocation_blocks_pending_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_bool_and_extra_approved_flag_are_rejected (test_deep_dive.ApprovalTests) ... ok\ntest_changed_amount_needs_new_approval (test_deep_dive.ApprovalTests) ... ok\ntest_changed_resource_is_not_covered_by_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_approval_and_execution_share_operation (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_workers_commit_one_effect (test_deep_dive.ApprovalTests) ... ok\ntest_effect_failure_rolls_back_balance_and_done_state (test_deep_dive.ApprovalTests) ... ok\ntest_expiry_is_exclusive_and_only_receipt_replay_remains (test_deep_dive.ApprovalTests) ... ok\ntest_genuinely_changed_intent_requires_new_review (test_deep_dive.ApprovalTests) ... ok\ntest_key_order_has_no_semantic_change (test_deep_dive.ApprovalTests) ... ok\ntest_legacy_approval_without_reviewer_epoch_cannot_create_an_effect (test_deep_dive.ApprovalTests) ... ok\ntest_operation_id_cannot_be_repurposed (test_deep_dive.ApprovalTests) ... ok\ntest_permission_revocation_is_checked_at_execution (test_deep_dive.ApprovalTests) ... ok\ntest_regrant_changes_epoch_and_requires_review (test_deep_dive.ApprovalTests) ... ok\ntest_reviewer_identity_cannot_replace_completed_approval (test_deep_dive.ApprovalTests) ... ok\ntest_revoking_after_commit_does_not_undo_business_history (test_deep_dive.ApprovalTests) ... ok\ntest_two_reviewers_cannot_both_claim_first_approval (test_deep_dive.ApprovalTests) ... ok\ntest_unapproved_proposal_cannot_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_actual_counts_and_task_denominators (test_deep_dive.EvaluationTests) ... ok\ntest_alternative_trajectory_is_accepted_by_outcome (test_deep_dive.EvaluationTests) ... ok\ntest_average_improvement_cannot_cancel_hard_violations (test_deep_dive.EvaluationTests) ... ok\ntest_calibration_false_positive_and_false_negative_are_separate (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_success_cannot_inflate_a_paired_task_delta (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_trial_and_unpaired_comparison_are_rejected (test_deep_dive.EvaluationTests) ... ok\ntest_narration_judge_false_accepts_are_counted (test_deep_dive.EvaluationTests) ... ok\ntest_quality_threshold_is_explicit_and_does_not_waive_hard_constraints (test_deep_dive.EvaluationTests) ... ok\ntest_safe_but_useless_results_fail_the_separate_quality_gate (test_deep_dive.EvaluationTests) ... ok\ntest_uncertainty_formula_does_not_claim_fixture_independence (test_deep_dive.EvaluationTests) ... ok\ntest_async_old_write_cannot_overwrite_new_correction (test_deep_dive.MemoryTests) ... ok\ntest_failed_correction_preserves_old_interval_and_revision (test_deep_dive.MemoryTests) ... ok\ntest_fresh_event_needs_explicit_reconsent_after_revocation (test_deep_dive.MemoryTests) ... ok\ntest_future_validity_is_not_ingestion_time (test_deep_dive.MemoryTests) ... ok\ntest_invalid_interval_or_boolean_time_cannot_be_stored (test_deep_dive.MemoryTests) ... ok\ntest_memory_writes_inside_callers_except_match_their_statuses (test_deep_dive.MemoryTests) ... ok\ntest_old_source_cannot_be_revived_by_rebasing_or_consent_flag (test_deep_dive.MemoryTests) ... ok\ntest_purpose_filter_does_not_reuse_fact_elsewhere (test_deep_dive.MemoryTests) ... ok\ntest_quotes_inferences_and_temporary_instructions_fail_admission (test_deep_dive.MemoryTests) ... ok\ntest_reopen_does_not_drop_revocation_control (test_deep_dive.MemoryTests) ... ok\ntest_retroactive_correction_is_routed_to_review (test_deep_dive.MemoryTests) ... ok\ntest_revocation_preserves_tombstone_and_removes_payload (test_deep_dive.MemoryTests) ... ok\ntest_scope_is_bound_to_authenticated_subject (test_deep_dive.MemoryTests) ... ok\ntest_truthy_values_cannot_claim_reusability_or_reconsent (test_deep_dive.MemoryTests) ... ok\ntest_answerable_bundle_includes_exception (test_deep_dive.RagTests) ... ok\ntest_budget_does_not_silently_strip_a_condition (test_deep_dive.RagTests) ... ok\ntest_duplicate_rank_entries_cannot_boost_rrf (test_deep_dive.RagTests) ... ok\ntest_empty_permission_set_does_not_fall_back (test_deep_dive.RagTests) ... ok\ntest_lost_exception_is_visible_at_assembly_boundary (test_deep_dive.RagTests) ... ok\ntest_permission_time_filter_precedes_ranking_and_expansion (test_deep_dive.RagTests) ... ok\ntest_present_citations_do_not_establish_truth (test_deep_dive.RagTests) ... ok\ntest_stale_foreign_or_fabricated_citations_are_rejected (test_deep_dive.RagTests) ... ok\ntest_unknown_claim_cannot_be_supported_by_relevance (test_deep_dive.RagTests) ... ok\ntest_valid_time_end_is_exclusive (test_deep_dive.RagTests) ... ok\ntest_authorization_precedes_receipt_replay (test_deep_dive.ToolContractTests) ... ok\ntest_bool_float_and_unit_guess_are_rejected (test_deep_dive.ToolContractTests) ... ok\ntest_insufficient_remaining_does_not_write_receipt (test_deep_dive.ToolContractTests) ... ok\ntest_model_cannot_add_tenant_or_approval (test_deep_dive.ToolContractTests) ... ok\ntest_new_operation_requires_current_state (test_deep_dive.ToolContractTests) ... ok\ntest_receipt_failure_rolls_back_the_prior_balance_update (test_deep_dive.ToolContractTests) ... ok\ntest_recovery_inside_callers_except_commits_the_reported_effect (test_deep_dive.ToolContractTests) ... ok\ntest_reopen_after_commit_reconciles_before_new_write (test_deep_dive.ToolContractTests) ... ok\ntest_retry_identity_is_bound_to_payload_and_actor (test_deep_dive.ToolContractTests) ... ok\ntest_two_connections_share_one_business_effect (test_deep_dive.ToolContractTests) ... ok\ntest_well_formed_foreign_id_is_not_authority (test_deep_dive.ToolContractTests) ... ok\n\n----------------------------------------------------------------------\nRan 65 tests in 0.049s\n\nOK\n",
        "elapsedSeconds": 0.147877
      },
      "savedOutputSha256": "56e76b31e94e6e32391826feafe099d660f27b7c5b9e0fd77b295e52681fe12b"
    },
    {
      "id": "evaluation-design",
      "source": "python3 -B evaluation_deep_dive.py > evaluation_deep_dive.results.json\npython3 -B -m unittest discover -v\n",
      "result": {
        "command": [
          "/bin/sh",
          "-eu",
          "-c",
          "python3 -B evaluation_deep_dive.py > evaluation_deep_dive.results.json\npython3 -B -m unittest discover -v\n"
        ],
        "exitCode": 0,
        "stdout": "",
        "stderr": "test_approval_and_dispatch_inside_callers_except_persist (test_deep_dive.ApprovalTests) ... ok\ntest_approver_regrant_does_not_reactivate_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_approver_revocation_blocks_pending_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_bool_and_extra_approved_flag_are_rejected (test_deep_dive.ApprovalTests) ... ok\ntest_changed_amount_needs_new_approval (test_deep_dive.ApprovalTests) ... ok\ntest_changed_resource_is_not_covered_by_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_approval_and_execution_share_operation (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_workers_commit_one_effect (test_deep_dive.ApprovalTests) ... ok\ntest_effect_failure_rolls_back_balance_and_done_state (test_deep_dive.ApprovalTests) ... ok\ntest_expiry_is_exclusive_and_only_receipt_replay_remains (test_deep_dive.ApprovalTests) ... ok\ntest_genuinely_changed_intent_requires_new_review (test_deep_dive.ApprovalTests) ... ok\ntest_key_order_has_no_semantic_change (test_deep_dive.ApprovalTests) ... ok\ntest_legacy_approval_without_reviewer_epoch_cannot_create_an_effect (test_deep_dive.ApprovalTests) ... ok\ntest_operation_id_cannot_be_repurposed (test_deep_dive.ApprovalTests) ... ok\ntest_permission_revocation_is_checked_at_execution (test_deep_dive.ApprovalTests) ... ok\ntest_regrant_changes_epoch_and_requires_review (test_deep_dive.ApprovalTests) ... ok\ntest_reviewer_identity_cannot_replace_completed_approval (test_deep_dive.ApprovalTests) ... ok\ntest_revoking_after_commit_does_not_undo_business_history (test_deep_dive.ApprovalTests) ... ok\ntest_two_reviewers_cannot_both_claim_first_approval (test_deep_dive.ApprovalTests) ... ok\ntest_unapproved_proposal_cannot_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_actual_counts_and_task_denominators (test_deep_dive.EvaluationTests) ... ok\ntest_alternative_trajectory_is_accepted_by_outcome (test_deep_dive.EvaluationTests) ... ok\ntest_average_improvement_cannot_cancel_hard_violations (test_deep_dive.EvaluationTests) ... ok\ntest_calibration_false_positive_and_false_negative_are_separate (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_success_cannot_inflate_a_paired_task_delta (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_trial_and_unpaired_comparison_are_rejected (test_deep_dive.EvaluationTests) ... ok\ntest_narration_judge_false_accepts_are_counted (test_deep_dive.EvaluationTests) ... ok\ntest_quality_threshold_is_explicit_and_does_not_waive_hard_constraints (test_deep_dive.EvaluationTests) ... ok\ntest_safe_but_useless_results_fail_the_separate_quality_gate (test_deep_dive.EvaluationTests) ... ok\ntest_uncertainty_formula_does_not_claim_fixture_independence (test_deep_dive.EvaluationTests) ... ok\ntest_async_old_write_cannot_overwrite_new_correction (test_deep_dive.MemoryTests) ... ok\ntest_failed_correction_preserves_old_interval_and_revision (test_deep_dive.MemoryTests) ... ok\ntest_fresh_event_needs_explicit_reconsent_after_revocation (test_deep_dive.MemoryTests) ... ok\ntest_future_validity_is_not_ingestion_time (test_deep_dive.MemoryTests) ... ok\ntest_invalid_interval_or_boolean_time_cannot_be_stored (test_deep_dive.MemoryTests) ... ok\ntest_memory_writes_inside_callers_except_match_their_statuses (test_deep_dive.MemoryTests) ... ok\ntest_old_source_cannot_be_revived_by_rebasing_or_consent_flag (test_deep_dive.MemoryTests) ... ok\ntest_purpose_filter_does_not_reuse_fact_elsewhere (test_deep_dive.MemoryTests) ... ok\ntest_quotes_inferences_and_temporary_instructions_fail_admission (test_deep_dive.MemoryTests) ... ok\ntest_reopen_does_not_drop_revocation_control (test_deep_dive.MemoryTests) ... ok\ntest_retroactive_correction_is_routed_to_review (test_deep_dive.MemoryTests) ... ok\ntest_revocation_preserves_tombstone_and_removes_payload (test_deep_dive.MemoryTests) ... ok\ntest_scope_is_bound_to_authenticated_subject (test_deep_dive.MemoryTests) ... ok\ntest_truthy_values_cannot_claim_reusability_or_reconsent (test_deep_dive.MemoryTests) ... ok\ntest_answerable_bundle_includes_exception (test_deep_dive.RagTests) ... ok\ntest_budget_does_not_silently_strip_a_condition (test_deep_dive.RagTests) ... ok\ntest_duplicate_rank_entries_cannot_boost_rrf (test_deep_dive.RagTests) ... ok\ntest_empty_permission_set_does_not_fall_back (test_deep_dive.RagTests) ... ok\ntest_lost_exception_is_visible_at_assembly_boundary (test_deep_dive.RagTests) ... ok\ntest_permission_time_filter_precedes_ranking_and_expansion (test_deep_dive.RagTests) ... ok\ntest_present_citations_do_not_establish_truth (test_deep_dive.RagTests) ... ok\ntest_stale_foreign_or_fabricated_citations_are_rejected (test_deep_dive.RagTests) ... ok\ntest_unknown_claim_cannot_be_supported_by_relevance (test_deep_dive.RagTests) ... ok\ntest_valid_time_end_is_exclusive (test_deep_dive.RagTests) ... ok\ntest_authorization_precedes_receipt_replay (test_deep_dive.ToolContractTests) ... ok\ntest_bool_float_and_unit_guess_are_rejected (test_deep_dive.ToolContractTests) ... ok\ntest_insufficient_remaining_does_not_write_receipt (test_deep_dive.ToolContractTests) ... ok\ntest_model_cannot_add_tenant_or_approval (test_deep_dive.ToolContractTests) ... ok\ntest_new_operation_requires_current_state (test_deep_dive.ToolContractTests) ... ok\ntest_receipt_failure_rolls_back_the_prior_balance_update (test_deep_dive.ToolContractTests) ... ok\ntest_recovery_inside_callers_except_commits_the_reported_effect (test_deep_dive.ToolContractTests) ... ok\ntest_reopen_after_commit_reconciles_before_new_write (test_deep_dive.ToolContractTests) ... ok\ntest_retry_identity_is_bound_to_payload_and_actor (test_deep_dive.ToolContractTests) ... ok\ntest_two_connections_share_one_business_effect (test_deep_dive.ToolContractTests) ... ok\ntest_well_formed_foreign_id_is_not_authority (test_deep_dive.ToolContractTests) ... ok\n\n----------------------------------------------------------------------\nRan 65 tests in 0.046s\n\nOK\n",
        "elapsedSeconds": 0.138073
      },
      "savedOutputSha256": "0b8c6d738f32b7095e312b34b6c398494e335ff4b6c4595cc3108a87f3cf3412"
    },
    {
      "id": "memory-write-policy",
      "source": "python3 -B memory_write_deep_dive.py > memory_write_deep_dive.results.json\npython3 -B -m unittest discover -v\n",
      "result": {
        "command": [
          "/bin/sh",
          "-eu",
          "-c",
          "python3 -B memory_write_deep_dive.py > memory_write_deep_dive.results.json\npython3 -B -m unittest discover -v\n"
        ],
        "exitCode": 0,
        "stdout": "",
        "stderr": "test_approval_and_dispatch_inside_callers_except_persist (test_deep_dive.ApprovalTests) ... ok\ntest_approver_regrant_does_not_reactivate_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_approver_revocation_blocks_pending_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_bool_and_extra_approved_flag_are_rejected (test_deep_dive.ApprovalTests) ... ok\ntest_changed_amount_needs_new_approval (test_deep_dive.ApprovalTests) ... ok\ntest_changed_resource_is_not_covered_by_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_approval_and_execution_share_operation (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_workers_commit_one_effect (test_deep_dive.ApprovalTests) ... ok\ntest_effect_failure_rolls_back_balance_and_done_state (test_deep_dive.ApprovalTests) ... ok\ntest_expiry_is_exclusive_and_only_receipt_replay_remains (test_deep_dive.ApprovalTests) ... ok\ntest_genuinely_changed_intent_requires_new_review (test_deep_dive.ApprovalTests) ... ok\ntest_key_order_has_no_semantic_change (test_deep_dive.ApprovalTests) ... ok\ntest_legacy_approval_without_reviewer_epoch_cannot_create_an_effect (test_deep_dive.ApprovalTests) ... ok\ntest_operation_id_cannot_be_repurposed (test_deep_dive.ApprovalTests) ... ok\ntest_permission_revocation_is_checked_at_execution (test_deep_dive.ApprovalTests) ... ok\ntest_regrant_changes_epoch_and_requires_review (test_deep_dive.ApprovalTests) ... ok\ntest_reviewer_identity_cannot_replace_completed_approval (test_deep_dive.ApprovalTests) ... ok\ntest_revoking_after_commit_does_not_undo_business_history (test_deep_dive.ApprovalTests) ... ok\ntest_two_reviewers_cannot_both_claim_first_approval (test_deep_dive.ApprovalTests) ... ok\ntest_unapproved_proposal_cannot_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_actual_counts_and_task_denominators (test_deep_dive.EvaluationTests) ... ok\ntest_alternative_trajectory_is_accepted_by_outcome (test_deep_dive.EvaluationTests) ... ok\ntest_average_improvement_cannot_cancel_hard_violations (test_deep_dive.EvaluationTests) ... ok\ntest_calibration_false_positive_and_false_negative_are_separate (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_success_cannot_inflate_a_paired_task_delta (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_trial_and_unpaired_comparison_are_rejected (test_deep_dive.EvaluationTests) ... ok\ntest_narration_judge_false_accepts_are_counted (test_deep_dive.EvaluationTests) ... ok\ntest_quality_threshold_is_explicit_and_does_not_waive_hard_constraints (test_deep_dive.EvaluationTests) ... ok\ntest_safe_but_useless_results_fail_the_separate_quality_gate (test_deep_dive.EvaluationTests) ... ok\ntest_uncertainty_formula_does_not_claim_fixture_independence (test_deep_dive.EvaluationTests) ... ok\ntest_async_old_write_cannot_overwrite_new_correction (test_deep_dive.MemoryTests) ... ok\ntest_failed_correction_preserves_old_interval_and_revision (test_deep_dive.MemoryTests) ... ok\ntest_fresh_event_needs_explicit_reconsent_after_revocation (test_deep_dive.MemoryTests) ... ok\ntest_future_validity_is_not_ingestion_time (test_deep_dive.MemoryTests) ... ok\ntest_invalid_interval_or_boolean_time_cannot_be_stored (test_deep_dive.MemoryTests) ... ok\ntest_memory_writes_inside_callers_except_match_their_statuses (test_deep_dive.MemoryTests) ... ok\ntest_old_source_cannot_be_revived_by_rebasing_or_consent_flag (test_deep_dive.MemoryTests) ... ok\ntest_purpose_filter_does_not_reuse_fact_elsewhere (test_deep_dive.MemoryTests) ... ok\ntest_quotes_inferences_and_temporary_instructions_fail_admission (test_deep_dive.MemoryTests) ... ok\ntest_reopen_does_not_drop_revocation_control (test_deep_dive.MemoryTests) ... ok\ntest_retroactive_correction_is_routed_to_review (test_deep_dive.MemoryTests) ... ok\ntest_revocation_preserves_tombstone_and_removes_payload (test_deep_dive.MemoryTests) ... ok\ntest_scope_is_bound_to_authenticated_subject (test_deep_dive.MemoryTests) ... ok\ntest_truthy_values_cannot_claim_reusability_or_reconsent (test_deep_dive.MemoryTests) ... ok\ntest_answerable_bundle_includes_exception (test_deep_dive.RagTests) ... ok\ntest_budget_does_not_silently_strip_a_condition (test_deep_dive.RagTests) ... ok\ntest_duplicate_rank_entries_cannot_boost_rrf (test_deep_dive.RagTests) ... ok\ntest_empty_permission_set_does_not_fall_back (test_deep_dive.RagTests) ... ok\ntest_lost_exception_is_visible_at_assembly_boundary (test_deep_dive.RagTests) ... ok\ntest_permission_time_filter_precedes_ranking_and_expansion (test_deep_dive.RagTests) ... ok\ntest_present_citations_do_not_establish_truth (test_deep_dive.RagTests) ... ok\ntest_stale_foreign_or_fabricated_citations_are_rejected (test_deep_dive.RagTests) ... ok\ntest_unknown_claim_cannot_be_supported_by_relevance (test_deep_dive.RagTests) ... ok\ntest_valid_time_end_is_exclusive (test_deep_dive.RagTests) ... ok\ntest_authorization_precedes_receipt_replay (test_deep_dive.ToolContractTests) ... ok\ntest_bool_float_and_unit_guess_are_rejected (test_deep_dive.ToolContractTests) ... ok\ntest_insufficient_remaining_does_not_write_receipt (test_deep_dive.ToolContractTests) ... ok\ntest_model_cannot_add_tenant_or_approval (test_deep_dive.ToolContractTests) ... ok\ntest_new_operation_requires_current_state (test_deep_dive.ToolContractTests) ... ok\ntest_receipt_failure_rolls_back_the_prior_balance_update (test_deep_dive.ToolContractTests) ... ok\ntest_recovery_inside_callers_except_commits_the_reported_effect (test_deep_dive.ToolContractTests) ... ok\ntest_reopen_after_commit_reconciles_before_new_write (test_deep_dive.ToolContractTests) ... ok\ntest_retry_identity_is_bound_to_payload_and_actor (test_deep_dive.ToolContractTests) ... ok\ntest_two_connections_share_one_business_effect (test_deep_dive.ToolContractTests) ... ok\ntest_well_formed_foreign_id_is_not_authority (test_deep_dive.ToolContractTests) ... ok\n\n----------------------------------------------------------------------\nRan 65 tests in 0.047s\n\nOK\n",
        "elapsedSeconds": 0.150821
      },
      "savedOutputSha256": "bb9070423f446dddd2720f42bfe27beab33478b9831a55591ba25c91f405d1d0"
    },
    {
      "id": "README",
      "source": "python3 -B tool_contract_deep_dive.py > tool_contract_deep_dive.results.json\npython3 -B approval_deep_dive.py > approval_deep_dive.results.json\npython3 -B rag_evidence_deep_dive.py > rag_evidence_deep_dive.results.json\npython3 -B evaluation_deep_dive.py > evaluation_deep_dive.results.json\npython3 -B memory_write_deep_dive.py > memory_write_deep_dive.results.json\npython3 -B -m unittest discover -v\n",
      "result": {
        "command": [
          "/bin/sh",
          "-eu",
          "-c",
          "python3 -B tool_contract_deep_dive.py > tool_contract_deep_dive.results.json\npython3 -B approval_deep_dive.py > approval_deep_dive.results.json\npython3 -B rag_evidence_deep_dive.py > rag_evidence_deep_dive.results.json\npython3 -B evaluation_deep_dive.py > evaluation_deep_dive.results.json\npython3 -B memory_write_deep_dive.py > memory_write_deep_dive.results.json\npython3 -B -m unittest discover -v\n"
        ],
        "exitCode": 0,
        "stdout": "",
        "stderr": "test_approval_and_dispatch_inside_callers_except_persist (test_deep_dive.ApprovalTests) ... ok\ntest_approver_regrant_does_not_reactivate_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_approver_revocation_blocks_pending_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_bool_and_extra_approved_flag_are_rejected (test_deep_dive.ApprovalTests) ... ok\ntest_changed_amount_needs_new_approval (test_deep_dive.ApprovalTests) ... ok\ntest_changed_resource_is_not_covered_by_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_approval_and_execution_share_operation (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_workers_commit_one_effect (test_deep_dive.ApprovalTests) ... ok\ntest_effect_failure_rolls_back_balance_and_done_state (test_deep_dive.ApprovalTests) ... ok\ntest_expiry_is_exclusive_and_only_receipt_replay_remains (test_deep_dive.ApprovalTests) ... ok\ntest_genuinely_changed_intent_requires_new_review (test_deep_dive.ApprovalTests) ... ok\ntest_key_order_has_no_semantic_change (test_deep_dive.ApprovalTests) ... ok\ntest_legacy_approval_without_reviewer_epoch_cannot_create_an_effect (test_deep_dive.ApprovalTests) ... ok\ntest_operation_id_cannot_be_repurposed (test_deep_dive.ApprovalTests) ... ok\ntest_permission_revocation_is_checked_at_execution (test_deep_dive.ApprovalTests) ... ok\ntest_regrant_changes_epoch_and_requires_review (test_deep_dive.ApprovalTests) ... ok\ntest_reviewer_identity_cannot_replace_completed_approval (test_deep_dive.ApprovalTests) ... ok\ntest_revoking_after_commit_does_not_undo_business_history (test_deep_dive.ApprovalTests) ... ok\ntest_two_reviewers_cannot_both_claim_first_approval (test_deep_dive.ApprovalTests) ... ok\ntest_unapproved_proposal_cannot_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_actual_counts_and_task_denominators (test_deep_dive.EvaluationTests) ... ok\ntest_alternative_trajectory_is_accepted_by_outcome (test_deep_dive.EvaluationTests) ... ok\ntest_average_improvement_cannot_cancel_hard_violations (test_deep_dive.EvaluationTests) ... ok\ntest_calibration_false_positive_and_false_negative_are_separate (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_success_cannot_inflate_a_paired_task_delta (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_trial_and_unpaired_comparison_are_rejected (test_deep_dive.EvaluationTests) ... ok\ntest_narration_judge_false_accepts_are_counted (test_deep_dive.EvaluationTests) ... ok\ntest_quality_threshold_is_explicit_and_does_not_waive_hard_constraints (test_deep_dive.EvaluationTests) ... ok\ntest_safe_but_useless_results_fail_the_separate_quality_gate (test_deep_dive.EvaluationTests) ... ok\ntest_uncertainty_formula_does_not_claim_fixture_independence (test_deep_dive.EvaluationTests) ... ok\ntest_async_old_write_cannot_overwrite_new_correction (test_deep_dive.MemoryTests) ... ok\ntest_failed_correction_preserves_old_interval_and_revision (test_deep_dive.MemoryTests) ... ok\ntest_fresh_event_needs_explicit_reconsent_after_revocation (test_deep_dive.MemoryTests) ... ok\ntest_future_validity_is_not_ingestion_time (test_deep_dive.MemoryTests) ... ok\ntest_invalid_interval_or_boolean_time_cannot_be_stored (test_deep_dive.MemoryTests) ... ok\ntest_memory_writes_inside_callers_except_match_their_statuses (test_deep_dive.MemoryTests) ... ok\ntest_old_source_cannot_be_revived_by_rebasing_or_consent_flag (test_deep_dive.MemoryTests) ... ok\ntest_purpose_filter_does_not_reuse_fact_elsewhere (test_deep_dive.MemoryTests) ... ok\ntest_quotes_inferences_and_temporary_instructions_fail_admission (test_deep_dive.MemoryTests) ... ok\ntest_reopen_does_not_drop_revocation_control (test_deep_dive.MemoryTests) ... ok\ntest_retroactive_correction_is_routed_to_review (test_deep_dive.MemoryTests) ... ok\ntest_revocation_preserves_tombstone_and_removes_payload (test_deep_dive.MemoryTests) ... ok\ntest_scope_is_bound_to_authenticated_subject (test_deep_dive.MemoryTests) ... ok\ntest_truthy_values_cannot_claim_reusability_or_reconsent (test_deep_dive.MemoryTests) ... ok\ntest_answerable_bundle_includes_exception (test_deep_dive.RagTests) ... ok\ntest_budget_does_not_silently_strip_a_condition (test_deep_dive.RagTests) ... ok\ntest_duplicate_rank_entries_cannot_boost_rrf (test_deep_dive.RagTests) ... ok\ntest_empty_permission_set_does_not_fall_back (test_deep_dive.RagTests) ... ok\ntest_lost_exception_is_visible_at_assembly_boundary (test_deep_dive.RagTests) ... ok\ntest_permission_time_filter_precedes_ranking_and_expansion (test_deep_dive.RagTests) ... ok\ntest_present_citations_do_not_establish_truth (test_deep_dive.RagTests) ... ok\ntest_stale_foreign_or_fabricated_citations_are_rejected (test_deep_dive.RagTests) ... ok\ntest_unknown_claim_cannot_be_supported_by_relevance (test_deep_dive.RagTests) ... ok\ntest_valid_time_end_is_exclusive (test_deep_dive.RagTests) ... ok\ntest_authorization_precedes_receipt_replay (test_deep_dive.ToolContractTests) ... ok\ntest_bool_float_and_unit_guess_are_rejected (test_deep_dive.ToolContractTests) ... ok\ntest_insufficient_remaining_does_not_write_receipt (test_deep_dive.ToolContractTests) ... ok\ntest_model_cannot_add_tenant_or_approval (test_deep_dive.ToolContractTests) ... ok\ntest_new_operation_requires_current_state (test_deep_dive.ToolContractTests) ... ok\ntest_receipt_failure_rolls_back_the_prior_balance_update (test_deep_dive.ToolContractTests) ... ok\ntest_recovery_inside_callers_except_commits_the_reported_effect (test_deep_dive.ToolContractTests) ... ok\ntest_reopen_after_commit_reconciles_before_new_write (test_deep_dive.ToolContractTests) ... ok\ntest_retry_identity_is_bound_to_payload_and_actor (test_deep_dive.ToolContractTests) ... ok\ntest_two_connections_share_one_business_effect (test_deep_dive.ToolContractTests) ... ok\ntest_well_formed_foreign_id_is_not_authority (test_deep_dive.ToolContractTests) ... ok\n\n----------------------------------------------------------------------\nRan 65 tests in 0.045s\n\nOK\n",
        "elapsedSeconds": 0.2762
      }
    },
    {
      "id": "README",
      "source": "python3 -B -m unittest -v test_deep_dive.ToolContractTests\npython3 -B -m unittest -v test_deep_dive.ApprovalTests\npython3 -B -m unittest -v test_deep_dive.RagTests\npython3 -B -m unittest -v test_deep_dive.EvaluationTests\npython3 -B -m unittest -v test_deep_dive.MemoryTests\n",
      "result": {
        "command": [
          "/bin/sh",
          "-eu",
          "-c",
          "python3 -B -m unittest -v test_deep_dive.ToolContractTests\npython3 -B -m unittest -v test_deep_dive.ApprovalTests\npython3 -B -m unittest -v test_deep_dive.RagTests\npython3 -B -m unittest -v test_deep_dive.EvaluationTests\npython3 -B -m unittest -v test_deep_dive.MemoryTests\n"
        ],
        "exitCode": 0,
        "stdout": "",
        "stderr": "test_authorization_precedes_receipt_replay (test_deep_dive.ToolContractTests) ... ok\ntest_bool_float_and_unit_guess_are_rejected (test_deep_dive.ToolContractTests) ... ok\ntest_insufficient_remaining_does_not_write_receipt (test_deep_dive.ToolContractTests) ... ok\ntest_model_cannot_add_tenant_or_approval (test_deep_dive.ToolContractTests) ... ok\ntest_new_operation_requires_current_state (test_deep_dive.ToolContractTests) ... ok\ntest_receipt_failure_rolls_back_the_prior_balance_update (test_deep_dive.ToolContractTests) ... ok\ntest_recovery_inside_callers_except_commits_the_reported_effect (test_deep_dive.ToolContractTests) ... ok\ntest_reopen_after_commit_reconciles_before_new_write (test_deep_dive.ToolContractTests) ... ok\ntest_retry_identity_is_bound_to_payload_and_actor (test_deep_dive.ToolContractTests) ... ok\ntest_two_connections_share_one_business_effect (test_deep_dive.ToolContractTests) ... ok\ntest_well_formed_foreign_id_is_not_authority (test_deep_dive.ToolContractTests) ... ok\n\n----------------------------------------------------------------------\nRan 11 tests in 0.011s\n\nOK\ntest_approval_and_dispatch_inside_callers_except_persist (test_deep_dive.ApprovalTests) ... ok\ntest_approver_regrant_does_not_reactivate_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_approver_revocation_blocks_pending_dispatch (test_deep_dive.ApprovalTests) ... ok\ntest_bool_and_extra_approved_flag_are_rejected (test_deep_dive.ApprovalTests) ... ok\ntest_changed_amount_needs_new_approval (test_deep_dive.ApprovalTests) ... ok\ntest_changed_resource_is_not_covered_by_old_review (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_approval_and_execution_share_operation (test_deep_dive.ApprovalTests) ... ok\ntest_duplicate_workers_commit_one_effect (test_deep_dive.ApprovalTests) ... ok\ntest_effect_failure_rolls_back_balance_and_done_state (test_deep_dive.ApprovalTests) ... ok\ntest_expiry_is_exclusive_and_only_receipt_replay_remains (test_deep_dive.ApprovalTests) ... ok\ntest_genuinely_changed_intent_requires_new_review (test_deep_dive.ApprovalTests) ... ok\ntest_key_order_has_no_semantic_change (test_deep_dive.ApprovalTests) ... ok\ntest_legacy_approval_without_reviewer_epoch_cannot_create_an_effect (test_deep_dive.ApprovalTests) ... ok\ntest_operation_id_cannot_be_repurposed (test_deep_dive.ApprovalTests) ... ok\ntest_permission_revocation_is_checked_at_execution (test_deep_dive.ApprovalTests) ... ok\ntest_regrant_changes_epoch_and_requires_review (test_deep_dive.ApprovalTests) ... ok\ntest_reviewer_identity_cannot_replace_completed_approval (test_deep_dive.ApprovalTests) ... ok\ntest_revoking_after_commit_does_not_undo_business_history (test_deep_dive.ApprovalTests) ... ok\ntest_two_reviewers_cannot_both_claim_first_approval (test_deep_dive.ApprovalTests) ... ok\ntest_unapproved_proposal_cannot_dispatch (test_deep_dive.ApprovalTests) ... ok\n\n----------------------------------------------------------------------\nRan 20 tests in 0.031s\n\nOK\ntest_answerable_bundle_includes_exception (test_deep_dive.RagTests) ... ok\ntest_budget_does_not_silently_strip_a_condition (test_deep_dive.RagTests) ... ok\ntest_duplicate_rank_entries_cannot_boost_rrf (test_deep_dive.RagTests) ... ok\ntest_empty_permission_set_does_not_fall_back (test_deep_dive.RagTests) ... ok\ntest_lost_exception_is_visible_at_assembly_boundary (test_deep_dive.RagTests) ... ok\ntest_permission_time_filter_precedes_ranking_and_expansion (test_deep_dive.RagTests) ... ok\ntest_present_citations_do_not_establish_truth (test_deep_dive.RagTests) ... ok\ntest_stale_foreign_or_fabricated_citations_are_rejected (test_deep_dive.RagTests) ... ok\ntest_unknown_claim_cannot_be_supported_by_relevance (test_deep_dive.RagTests) ... ok\ntest_valid_time_end_is_exclusive (test_deep_dive.RagTests) ... ok\n\n----------------------------------------------------------------------\nRan 10 tests in 0.000s\n\nOK\ntest_actual_counts_and_task_denominators (test_deep_dive.EvaluationTests) ... ok\ntest_alternative_trajectory_is_accepted_by_outcome (test_deep_dive.EvaluationTests) ... ok\ntest_average_improvement_cannot_cancel_hard_violations (test_deep_dive.EvaluationTests) ... ok\ntest_calibration_false_positive_and_false_negative_are_separate (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_success_cannot_inflate_a_paired_task_delta (test_deep_dive.EvaluationTests) ... ok\ntest_duplicate_trial_and_unpaired_comparison_are_rejected (test_deep_dive.EvaluationTests) ... ok\ntest_narration_judge_false_accepts_are_counted (test_deep_dive.EvaluationTests) ... ok\ntest_quality_threshold_is_explicit_and_does_not_waive_hard_constraints (test_deep_dive.EvaluationTests) ... ok\ntest_safe_but_useless_results_fail_the_separate_quality_gate (test_deep_dive.EvaluationTests) ... ok\ntest_uncertainty_formula_does_not_claim_fixture_independence (test_deep_dive.EvaluationTests) ... ok\n\n----------------------------------------------------------------------\nRan 10 tests in 0.001s\n\nOK\ntest_async_old_write_cannot_overwrite_new_correction (test_deep_dive.MemoryTests) ... ok\ntest_failed_correction_preserves_old_interval_and_revision (test_deep_dive.MemoryTests) ... ok\ntest_fresh_event_needs_explicit_reconsent_after_revocation (test_deep_dive.MemoryTests) ... ok\ntest_future_validity_is_not_ingestion_time (test_deep_dive.MemoryTests) ... ok\ntest_invalid_interval_or_boolean_time_cannot_be_stored (test_deep_dive.MemoryTests) ... ok\ntest_memory_writes_inside_callers_except_match_their_statuses (test_deep_dive.MemoryTests) ... ok\ntest_old_source_cannot_be_revived_by_rebasing_or_consent_flag (test_deep_dive.MemoryTests) ... ok\ntest_purpose_filter_does_not_reuse_fact_elsewhere (test_deep_dive.MemoryTests) ... ok\ntest_quotes_inferences_and_temporary_instructions_fail_admission (test_deep_dive.MemoryTests) ... ok\ntest_reopen_does_not_drop_revocation_control (test_deep_dive.MemoryTests) ... ok\ntest_retroactive_correction_is_routed_to_review (test_deep_dive.MemoryTests) ... ok\ntest_revocation_preserves_tombstone_and_removes_payload (test_deep_dive.MemoryTests) ... ok\ntest_scope_is_bound_to_authenticated_subject (test_deep_dive.MemoryTests) ... ok\ntest_truthy_values_cannot_claim_reusability_or_reconsent (test_deep_dive.MemoryTests) ... ok\n\n----------------------------------------------------------------------\nRan 14 tests in 0.008s\n\nOK\n",
        "elapsedSeconds": 0.372601
      }
    }
  ],
  "courseAndQuestionSnippets": [
    {
      "kind": "knowledge",
      "id": "tool-contracts",
      "block": "implementation/body",
      "sourceSha256": "5ae9dc69e5a391571fb5135cca22c9ad1ae11c790429a115c5ea1caf8f95a605",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from tool_contract_deep_dive import Executor, Context, request\ne = Executor()\nctx = Context('tenant-a', 'user-a')\nfirst = e.execute(ctx, request())\nretry = e.execute(ctx, request())\nassert first['status'] == 'committed'\nassert retry['receipt'] == first['receipt']\nassert e.state() == {'remaining_minor': 700, 'effect_count': 1}\nprint(retry['status'], e.state()['effect_count'])\ne.close()\n"
        ],
        "exitCode": 0,
        "stdout": "replayed 1\n",
        "stderr": "",
        "elapsedSeconds": 0.029041
      }
    },
    {
      "kind": "knowledge",
      "id": "tool-contracts",
      "block": "debugging/body",
      "sourceSha256": "90d3cdc05e0449674d58b04bd4971b29e73bcbabeec4c40374fcf343f84375fd",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from tool_contract_deep_dive import Executor, Context, request, validate_shape\ne = Executor()\nctx = Context('tenant-a', 'user-a')\nbad = request(order_id='order-b')\nassert validate_shape(bad) is None\nassert e.execute(ctx, bad)['gate'] == 'authorization'\nassert e.state()['effect_count'] == 0\nassert e.execute(ctx, request())['status'] == 'committed'\nassert e.execute(ctx, request(amount_minor=301))['gate'] == 'idempotency_conflict'\nassert e.execute(ctx, request())['status'] == 'replayed'\nprint(e.state()['remaining_minor'], e.state()['effect_count'])\ne.close()\n"
        ],
        "exitCode": 0,
        "stdout": "700 1\n",
        "stderr": "",
        "elapsedSeconds": 0.028661
      }
    },
    {
      "kind": "knowledge",
      "id": "agent-security-approval",
      "block": "implementation/body",
      "sourceSha256": "150ae4a9db37b612b240c4e2e0ca7bc2440f27887d1083a749287b1720238465",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from approval_deep_dive import ApprovalService, ARGS\ns = ApprovalService()\nchecksum = s.prepare('tenant-a', 'user-a', 'refund-1', ARGS)\ns.approve('tenant-a', 'refund-1', 'reviewer-a', checksum)\nassert s.state()['effect_count'] == 0\nprint(s.db.execute(\"SELECT envelope FROM proposals WHERE operation_id='refund-1'\").fetchone()[0])\nfirst = s.execute('tenant-a', 'user-a', 'refund-1', ARGS)\nagain = s.execute('tenant-a', 'user-a', 'refund-1', ARGS)\nassert first['status'] == 'committed'\nassert again['receipt'] == first['receipt']\nassert s.state() == {'effect_count': 1, 'remaining_minor': 700}\nprint(again['status'], s.state()['effect_count'])\ns.close()\n"
        ],
        "exitCode": 0,
        "stdout": "{\"actor\": \"user-a\", \"args\": {\"amount_minor\": 300, \"currency\": \"USD\", \"expected_version\": 1, \"order_id\": \"order-a\"}, \"domain\": \"refund-approved/v2\", \"operation_id\": \"refund-1\", \"permission_epoch\": 1, \"tenant\": \"tenant-a\"}\nreplayed 1\n",
        "stderr": "",
        "elapsedSeconds": 0.022833
      }
    },
    {
      "kind": "knowledge",
      "id": "agent-security-approval",
      "block": "debugging/body",
      "sourceSha256": "9571d72234b15288e7b428112d971c3e814f0f35b8db2d5251c090a5eadf6e29",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from approval_deep_dive import approved_service, ARGS\ns = approved_service()\nbad = s.execute('tenant-a', 'user-a', 'refund-1', dict(ARGS, amount_minor=800))\nassert bad['reason'] == 'proposal_changed'\nassert s.state()['effect_count'] == 0\nfixed = s.execute('tenant-a', 'user-a', 'refund-1', ARGS)\nassert fixed['status'] == 'committed'\nassert s.execute('tenant-a', 'user-a', 'refund-1', ARGS)['status'] == 'replayed'\nprint(bad['reason'], s.state()['effect_count'])\ns.close()\n"
        ],
        "exitCode": 0,
        "stdout": "proposal_changed 1\n",
        "stderr": "",
        "elapsedSeconds": 0.022855
      }
    },
    {
      "kind": "knowledge",
      "id": "rag-evidence",
      "block": "implementation/body",
      "sourceSha256": "d24c8012f504a9f663f5806837e8115007b6913d74fabd6f7b402194d168b4d4",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from rag_evidence_deep_dive import assemble, candidate, verify_claims\ntrace = assemble()\nassert set(trace['assembled_ids']) == {'returns-v2-base', 'returns-v2-exception'}\nassert verify_claims(candidate(), trace)['accepted']\nassert verify_claims(candidate(True), trace)['reason'] == 'claim_contradicted'\nprint(trace['required_chars'], trace['assembly_status'])\n"
        ],
        "exitCode": 0,
        "stdout": "163 assembled\n",
        "stderr": "",
        "elapsedSeconds": 0.027065
      }
    },
    {
      "kind": "knowledge",
      "id": "rag-evidence",
      "block": "debugging/body",
      "sourceSha256": "b3d2f2fc972e5e80ae9f98d10dcf8bded0532a4aa0388373943545aefcf923a8",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from rag_evidence_deep_dive import assemble, candidate, verify_claims\nbad = assemble(include_exception=False)\nassert 'returns-v2-exception' in bad['fused_ids']\nassert 'returns-v2-exception' not in bad['assembled_ids']\nassert verify_claims(candidate(True, ['returns-v2-base']), bad)['reason'] == 'missing_required_evidence'\nfixed = assemble()\nassert verify_claims(candidate(), fixed)['accepted']\nprint(verify_claims(candidate(True), fixed)['reason'])\n"
        ],
        "exitCode": 0,
        "stdout": "claim_contradicted\n",
        "stderr": "",
        "elapsedSeconds": 0.026669
      }
    },
    {
      "kind": "knowledge",
      "id": "evaluation-design",
      "block": "implementation/body",
      "sourceSha256": "d4069f3b639aa05d6d1b49bb9e47ce9e646f7486dbad5d8402e4fc6b9193b9de",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from evaluation_deep_dive import fixtures, summary, demo\na = summary(fixtures('A'))\nb = summary(fixtures('B'))\nassert a['trial_success'] == {'numerator': 16, 'denominator': 24}\nassert a['tasks_with_all_success'] == {'numerator': 3, 'denominator': 8}\nassert b['trial_success'] == {'numerator': 20, 'denominator': 24}\nassert b['release_gate'] == 'block'\nassert demo()['calibration']['fp'] == 2\nprint(a['trial_success']['numerator'], b['trial_success']['numerator'], b['release_gate'])\n"
        ],
        "exitCode": 0,
        "stdout": "16 20 block\n",
        "stderr": "",
        "elapsedSeconds": 0.02096
      }
    },
    {
      "kind": "knowledge",
      "id": "evaluation-design",
      "block": "debugging/body",
      "sourceSha256": "0ce792d0cd86b513c8d9fe58b15314fbb243f3444d7c6784d262ae2977e2cfee",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from evaluation_deep_dive import fixtures, grade, summary\nrows = fixtures('A')\nfalse_accepts = [r['task_id'] for r in rows if r['narration_score'] >= 0.8 and not grade(r)['pass']]\nassert len(false_accepts) == 8\nassert false_accepts.count('permission') == 3\nassert summary(rows)['release_gate'] == 'block'\nassert summary(fixtures('B'))['hard_violations']['duplicate_effect'] == 1\nprint(len(false_accepts), summary(rows)['trial_success']['numerator'])\n"
        ],
        "exitCode": 0,
        "stdout": "8 16\n",
        "stderr": "",
        "elapsedSeconds": 0.01997
      }
    },
    {
      "kind": "knowledge",
      "id": "evaluation-design",
      "block": "debugging/body",
      "sourceSha256": "18d81f2e22546eba3523ef72b5c0a7cd1a6045f25b439bdaa5a78102f460fc88",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from evaluation_deep_dive import fixtures, summary\nrows = fixtures('A')\nfor row in rows:\n    row.update(business_ok=False, authorized=True, effect_count=0, budget_units=0)\ns = summary(rows)\nassert s['trial_success'] == {'numerator': 0, 'denominator': 24}\nassert s['hard_constraint_gate'] == 'allow'\nassert s['quality_gate'] == 'block'\nassert s['release_gate'] == 'block'\nprint(s['hard_constraint_gate'], s['quality_gate'], s['release_gate'])\n"
        ],
        "exitCode": 0,
        "stdout": "allow block block\n",
        "stderr": "",
        "elapsedSeconds": 0.019733
      }
    },
    {
      "kind": "knowledge",
      "id": "memory-write-policy",
      "block": "implementation/body",
      "sourceSha256": "04dde42a1b78aaee6edc38c0cb056ff3905469ee3de98b502751c1fca191f5e8",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from memory_write_deep_dive import Memory, Candidate\nm = Memory()\nassert m.admit(Candidate())['revision'] == 1\nnew = Candidate(value='vegan', source_id='event-20', source_seq=20, base_revision=1, valid_from=200, stored_at=150)\nassert m.admit(new)['revision'] == 2\nassert m.read(199)['value'] == 'vegetarian'\nassert m.read(200)['value'] == 'vegan'\nprint(m.read(199)['value'], m.read(200)['value'])\nm.close()\n"
        ],
        "exitCode": 0,
        "stdout": "vegetarian vegan\n",
        "stderr": "",
        "elapsedSeconds": 0.028287
      }
    },
    {
      "kind": "knowledge",
      "id": "memory-write-policy",
      "block": "debugging/body",
      "sourceSha256": "82f43fe25d8449ffd466dce2997d8fe7e5083cbc33c3380781a3a11fdf25343c",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from dataclasses import replace\nfrom memory_write_deep_dive import Memory, Candidate\nm = Memory()\nm.admit(Candidate())\nold = Candidate(source_id='event-11', source_seq=11, base_revision=1, stored_at=900)\nm.admit(Candidate(value='vegan', source_id='event-20', source_seq=20, base_revision=1, valid_from=200))\nassert m.admit(old)['reason'] == 'stale_revision'\nassert m.admit(replace(old, base_revision=2))['reason'] == 'stale_source_event'\nassert m.read(250)['value'] == 'vegan'\nm.revoke(30)\nassert m.read(250) is None\nassert m.admit(replace(old, base_revision=3, reconsent=True))['reason'] == 'stale_source_event'\nprint(m.control(), m.db.execute('SELECT COUNT(*) FROM facts').fetchone()[0])\nm.close()\n"
        ],
        "exitCode": 0,
        "stdout": "(3, 30, 1) 0\n",
        "stderr": "",
        "elapsedSeconds": 0.0299
      }
    },
    {
      "kind": "question",
      "id": "tool-schema-validation",
      "block": "code",
      "sourceSha256": "888ecff632e321e2f846a6f2d2c9283373350122c4f9e40d210f79184951d657",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from tool_contract_deep_dive import Executor, Context, request, validate_shape\ne = Executor()\nctx = Context('tenant-a', 'user-a')\nassert validate_shape(request(order_id='order-b')) is None\nassert e.execute(ctx, request(order_id='order-b'))['gate'] == 'authorization'\nassert e.execute(ctx, request())['status'] == 'committed'\nassert e.execute(ctx, request())['status'] == 'replayed'\nprint(e.state()['remaining_minor'], e.state()['effect_count'])\ne.close()\n"
        ],
        "exitCode": 0,
        "stdout": "700 1\n",
        "stderr": "",
        "elapsedSeconds": 0.028666
      }
    },
    {
      "kind": "question",
      "id": "tool-contract-evolution",
      "block": "code",
      "sourceSha256": "f94bce39f9c86f9afaa085aedcd8db5b61577e5ba7f766308c6a8a3c4f2cdcab",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from tool_contract_deep_dive import Executor, Context, request\ne = Executor()\nctx = Context('tenant-a', 'user-a')\nassert e.execute(ctx, request(schema_version=1))['gate'] == 'contract_version'\nassert e.execute(ctx, request())['status'] == 'committed'\nassert e.execute(ctx, request(amount_minor=301))['gate'] == 'idempotency_conflict'\nprint(e.state()['effect_count'])\ne.close()\n"
        ],
        "exitCode": 0,
        "stdout": "1\n",
        "stderr": "",
        "elapsedSeconds": 0.029693
      }
    },
    {
      "kind": "question",
      "id": "agent-security-approval",
      "block": "code",
      "sourceSha256": "52c0e5ee741a9fbf5b85db542ac9846d356725fc87fbe03cad21a846ea58a52e",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from approval_deep_dive import approved_service, ARGS\ns = approved_service()\nassert s.execute('tenant-a','user-a','refund-1',dict(ARGS,amount_minor=800))['reason'] == 'proposal_changed'\nassert s.state()['effect_count'] == 0\nassert s.execute('tenant-a','user-a','refund-1',ARGS)['status'] == 'committed'\nassert s.execute('tenant-a','user-a','refund-1',ARGS)['status'] == 'replayed'\nr=approved_service()\nr.revoke('tenant-a','reviewer-a',role='approve')\nr.db.execute(\"UPDATE permissions SET enabled=1 WHERE tenant='tenant-a' AND actor='reviewer-a' AND role='approve'\")\nassert r.execute('tenant-a','user-a','refund-1',ARGS)['reason']=='approver_permission_epoch_changed'\nassert r.state()['effect_count']==0\nr.close()\nprint(s.state()['effect_count'],s.state()['remaining_minor'])\ns.close()\n"
        ],
        "exitCode": 0,
        "stdout": "1 700\n",
        "stderr": "",
        "elapsedSeconds": 0.023073
      }
    },
    {
      "kind": "question",
      "id": "rag-retrieval-diagnosis",
      "block": "code",
      "sourceSha256": "4abdb64e26b3ac3e1f5dc050f2456e851c3ffbc6711888dc1bee3b6a606d8466",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from rag_evidence_deep_dive import assemble, candidate, verify_claims\nbad = assemble(include_exception=False)\nassert 'returns-v2-exception' in bad['fused_ids']\nassert verify_claims(candidate(True,['returns-v2-base']),bad)['reason'] == 'missing_required_evidence'\nfixed = assemble()\nassert verify_claims(candidate(),fixed)['accepted']\nprint(fixed['required_chars'],verify_claims(candidate(True),fixed)['reason'])\n"
        ],
        "exitCode": 0,
        "stdout": "163 claim_contradicted\n",
        "stderr": "",
        "elapsedSeconds": 0.027165
      }
    },
    {
      "kind": "question",
      "id": "rag-unanswerable-citations",
      "block": "code",
      "sourceSha256": "bc7836e9568a2a1d3c2648a3170d5258dff05bd48e546de4a1dc3a109b6f68fa",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from rag_evidence_deep_dive import assemble,candidate,verify_claims\nt=assemble()\nassert verify_claims(candidate(),t)['accepted']\nassert verify_claims(candidate(True),t)['reason']=='claim_contradicted'\nunsupported={'claims':[{'field':'refund_already_sent','value':True,'citations':['returns-v2-base']}]}\nprint(verify_claims(unsupported,t)['reason'])\n"
        ],
        "exitCode": 0,
        "stdout": "unsupported_claim_field\n",
        "stderr": "",
        "elapsedSeconds": 0.026566
      }
    },
    {
      "kind": "question",
      "id": "agent-evaluation-contract",
      "block": "code",
      "sourceSha256": "11581549987594be18cb368d6f4b6cd94c7e06f4c4cb8e0dffa78352658d2bda",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from evaluation_deep_dive import fixtures,summary,demo\na=summary(fixtures('A'));b=summary(fixtures('B'))\nassert a['trial_success']['numerator']==16\nassert b['trial_success']['numerator']==20\nassert b['release_gate']=='block'\nfailed=summary([dict(r,business_ok=False,authorized=True,effect_count=0,budget_units=0) for r in fixtures('A')])\nassert failed['hard_constraint_gate']=='allow'\nassert failed['quality_gate']=='block'\nassert failed['release_gate']=='block'\nprint(demo()['narration_only_evaluator']['false_accepts'],b['release_gate'])\n"
        ],
        "exitCode": 0,
        "stdout": "8 block\n",
        "stderr": "",
        "elapsedSeconds": 0.020481
      }
    },
    {
      "kind": "question",
      "id": "llm-judge-calibration",
      "block": "code",
      "sourceSha256": "d6220bc08bcee219fe05c1ffb18632fa6451022482dc5f1874f8bdfe6df3480f",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from evaluation_deep_dive import demo\nc=demo()['calibration']\nassert (c['tp'],c['tn'],c['fp'],c['fn'])==(3,2,2,1)\nprint(c['agreement'],c['precision'],c['recall'])\n"
        ],
        "exitCode": 0,
        "stdout": "0.625 0.6 0.75\n",
        "stderr": "",
        "elapsedSeconds": 0.020049
      }
    },
    {
      "kind": "question",
      "id": "agent-repeatability-metrics",
      "block": "code",
      "sourceSha256": "fa861a16ffff8c947a0aba2efb95faf9ba2ee6d5cd846f0151f09df14e604d6f",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from evaluation_deep_dive import demo,fixtures,paired_task_deltas\nd=demo()\nassert d['versions']['A']['tasks_with_any_success']['numerator']==7\nassert d['versions']['A']['tasks_with_all_success']['numerator']==3\nassert not d['independent_sample_illustration']['applies_to_trial_fixture']\nduplicated=fixtures('B')\nduplicated.append(dict(duplicated[6]))\ntry:\n    paired_task_deltas(fixtures('A'),duplicated)\nexcept ValueError as error:\n    assert str(error)=='duplicate_trial_identity'\nelse:\n    raise AssertionError('A duplicate identity distorted the paired comparison')\nprint(d['zero_failure_illustration']['one_sided_95_failure_upper'])\n"
        ],
        "exitCode": 0,
        "stdout": "0.095034\n",
        "stderr": "",
        "elapsedSeconds": 0.0205
      }
    },
    {
      "kind": "question",
      "id": "memory-write-policy",
      "block": "code",
      "sourceSha256": "593b12fc923fc3700ba2d1f60dfbd7abc7f52b43f9d4655eb7f3ed89fa3d3166",
      "result": {
        "command": [
          "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
          "-B",
          "-c",
          "from dataclasses import replace\nfrom memory_write_deep_dive import Memory,Candidate\nm=Memory()\nassert m.admit(Candidate(reconsent='False'))['reason']=='candidate_shape'\nm.admit(Candidate())\nm.admit(Candidate(value='vegan',source_id='event-20',source_seq=20,base_revision=1,valid_from=200))\nold=Candidate(source_id='event-11',source_seq=11,base_revision=1,stored_at=900)\nassert m.admit(old)['reason']=='stale_revision'\nassert m.admit(replace(old,base_revision=2))['reason']=='stale_source_event'\nm.revoke(30)\nassert m.read(250) is None\nprint(m.control(),m.db.execute('SELECT COUNT(*) FROM facts').fetchone()[0])\nm.close()\n"
        ],
        "exitCode": 0,
        "stdout": "(3, 30, 1) 0\n",
        "stderr": "",
        "elapsedSeconds": 0.033296
      }
    }
  ],
  "tests": {
    "command": [
      "/Users/ghz/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3",
      "-B",
      "-m",
      "unittest",
      "discover",
      "-v"
    ],
    "exitCode": 0,
    "stdout": "",
    "stderr": "test_approval_and_dispatch_inside_callers_except_persist (test_deep_dive.ApprovalTests.test_approval_and_dispatch_inside_callers_except_persist) ... ok\ntest_approver_regrant_does_not_reactivate_old_review (test_deep_dive.ApprovalTests.test_approver_regrant_does_not_reactivate_old_review) ... ok\ntest_approver_revocation_blocks_pending_dispatch (test_deep_dive.ApprovalTests.test_approver_revocation_blocks_pending_dispatch) ... ok\ntest_bool_and_extra_approved_flag_are_rejected (test_deep_dive.ApprovalTests.test_bool_and_extra_approved_flag_are_rejected) ... ok\ntest_changed_amount_needs_new_approval (test_deep_dive.ApprovalTests.test_changed_amount_needs_new_approval) ... ok\ntest_changed_resource_is_not_covered_by_old_review (test_deep_dive.ApprovalTests.test_changed_resource_is_not_covered_by_old_review) ... ok\ntest_duplicate_approval_and_execution_share_operation (test_deep_dive.ApprovalTests.test_duplicate_approval_and_execution_share_operation) ... ok\ntest_duplicate_workers_commit_one_effect (test_deep_dive.ApprovalTests.test_duplicate_workers_commit_one_effect) ... ok\ntest_effect_failure_rolls_back_balance_and_done_state (test_deep_dive.ApprovalTests.test_effect_failure_rolls_back_balance_and_done_state) ... ok\ntest_expiry_is_exclusive_and_only_receipt_replay_remains (test_deep_dive.ApprovalTests.test_expiry_is_exclusive_and_only_receipt_replay_remains) ... ok\ntest_genuinely_changed_intent_requires_new_review (test_deep_dive.ApprovalTests.test_genuinely_changed_intent_requires_new_review) ... ok\ntest_key_order_has_no_semantic_change (test_deep_dive.ApprovalTests.test_key_order_has_no_semantic_change) ... ok\ntest_legacy_approval_without_reviewer_epoch_cannot_create_an_effect (test_deep_dive.ApprovalTests.test_legacy_approval_without_reviewer_epoch_cannot_create_an_effect) ... ok\ntest_operation_id_cannot_be_repurposed (test_deep_dive.ApprovalTests.test_operation_id_cannot_be_repurposed) ... ok\ntest_permission_revocation_is_checked_at_execution (test_deep_dive.ApprovalTests.test_permission_revocation_is_checked_at_execution) ... ok\ntest_regrant_changes_epoch_and_requires_review (test_deep_dive.ApprovalTests.test_regrant_changes_epoch_and_requires_review) ... ok\ntest_reviewer_identity_cannot_replace_completed_approval (test_deep_dive.ApprovalTests.test_reviewer_identity_cannot_replace_completed_approval) ... ok\ntest_revoking_after_commit_does_not_undo_business_history (test_deep_dive.ApprovalTests.test_revoking_after_commit_does_not_undo_business_history) ... ok\ntest_two_reviewers_cannot_both_claim_first_approval (test_deep_dive.ApprovalTests.test_two_reviewers_cannot_both_claim_first_approval) ... ok\ntest_unapproved_proposal_cannot_dispatch (test_deep_dive.ApprovalTests.test_unapproved_proposal_cannot_dispatch) ... ok\ntest_actual_counts_and_task_denominators (test_deep_dive.EvaluationTests.test_actual_counts_and_task_denominators) ... ok\ntest_alternative_trajectory_is_accepted_by_outcome (test_deep_dive.EvaluationTests.test_alternative_trajectory_is_accepted_by_outcome) ... ok\ntest_average_improvement_cannot_cancel_hard_violations (test_deep_dive.EvaluationTests.test_average_improvement_cannot_cancel_hard_violations) ... ok\ntest_calibration_false_positive_and_false_negative_are_separate (test_deep_dive.EvaluationTests.test_calibration_false_positive_and_false_negative_are_separate) ... ok\ntest_duplicate_success_cannot_inflate_a_paired_task_delta (test_deep_dive.EvaluationTests.test_duplicate_success_cannot_inflate_a_paired_task_delta) ... ok\ntest_duplicate_trial_and_unpaired_comparison_are_rejected (test_deep_dive.EvaluationTests.test_duplicate_trial_and_unpaired_comparison_are_rejected) ... ok\ntest_narration_judge_false_accepts_are_counted (test_deep_dive.EvaluationTests.test_narration_judge_false_accepts_are_counted) ... ok\ntest_quality_threshold_is_explicit_and_does_not_waive_hard_constraints (test_deep_dive.EvaluationTests.test_quality_threshold_is_explicit_and_does_not_waive_hard_constraints) ... ok\ntest_safe_but_useless_results_fail_the_separate_quality_gate (test_deep_dive.EvaluationTests.test_safe_but_useless_results_fail_the_separate_quality_gate) ... ok\ntest_uncertainty_formula_does_not_claim_fixture_independence (test_deep_dive.EvaluationTests.test_uncertainty_formula_does_not_claim_fixture_independence) ... ok\ntest_async_old_write_cannot_overwrite_new_correction (test_deep_dive.MemoryTests.test_async_old_write_cannot_overwrite_new_correction) ... ok\ntest_failed_correction_preserves_old_interval_and_revision (test_deep_dive.MemoryTests.test_failed_correction_preserves_old_interval_and_revision) ... ok\ntest_fresh_event_needs_explicit_reconsent_after_revocation (test_deep_dive.MemoryTests.test_fresh_event_needs_explicit_reconsent_after_revocation) ... ok\ntest_future_validity_is_not_ingestion_time (test_deep_dive.MemoryTests.test_future_validity_is_not_ingestion_time) ... ok\ntest_invalid_interval_or_boolean_time_cannot_be_stored (test_deep_dive.MemoryTests.test_invalid_interval_or_boolean_time_cannot_be_stored) ... ok\ntest_memory_writes_inside_callers_except_match_their_statuses (test_deep_dive.MemoryTests.test_memory_writes_inside_callers_except_match_their_statuses) ... ok\ntest_old_source_cannot_be_revived_by_rebasing_or_consent_flag (test_deep_dive.MemoryTests.test_old_source_cannot_be_revived_by_rebasing_or_consent_flag) ... ok\ntest_purpose_filter_does_not_reuse_fact_elsewhere (test_deep_dive.MemoryTests.test_purpose_filter_does_not_reuse_fact_elsewhere) ... ok\ntest_quotes_inferences_and_temporary_instructions_fail_admission (test_deep_dive.MemoryTests.test_quotes_inferences_and_temporary_instructions_fail_admission) ... ok\ntest_reopen_does_not_drop_revocation_control (test_deep_dive.MemoryTests.test_reopen_does_not_drop_revocation_control) ... ok\ntest_retroactive_correction_is_routed_to_review (test_deep_dive.MemoryTests.test_retroactive_correction_is_routed_to_review) ... ok\ntest_revocation_preserves_tombstone_and_removes_payload (test_deep_dive.MemoryTests.test_revocation_preserves_tombstone_and_removes_payload) ... ok\ntest_scope_is_bound_to_authenticated_subject (test_deep_dive.MemoryTests.test_scope_is_bound_to_authenticated_subject) ... ok\ntest_truthy_values_cannot_claim_reusability_or_reconsent (test_deep_dive.MemoryTests.test_truthy_values_cannot_claim_reusability_or_reconsent) ... ok\ntest_answerable_bundle_includes_exception (test_deep_dive.RagTests.test_answerable_bundle_includes_exception) ... ok\ntest_budget_does_not_silently_strip_a_condition (test_deep_dive.RagTests.test_budget_does_not_silently_strip_a_condition) ... ok\ntest_duplicate_rank_entries_cannot_boost_rrf (test_deep_dive.RagTests.test_duplicate_rank_entries_cannot_boost_rrf) ... ok\ntest_empty_permission_set_does_not_fall_back (test_deep_dive.RagTests.test_empty_permission_set_does_not_fall_back) ... ok\ntest_lost_exception_is_visible_at_assembly_boundary (test_deep_dive.RagTests.test_lost_exception_is_visible_at_assembly_boundary) ... ok\ntest_permission_time_filter_precedes_ranking_and_expansion (test_deep_dive.RagTests.test_permission_time_filter_precedes_ranking_and_expansion) ... ok\ntest_present_citations_do_not_establish_truth (test_deep_dive.RagTests.test_present_citations_do_not_establish_truth) ... ok\ntest_stale_foreign_or_fabricated_citations_are_rejected (test_deep_dive.RagTests.test_stale_foreign_or_fabricated_citations_are_rejected) ... ok\ntest_unknown_claim_cannot_be_supported_by_relevance (test_deep_dive.RagTests.test_unknown_claim_cannot_be_supported_by_relevance) ... ok\ntest_valid_time_end_is_exclusive (test_deep_dive.RagTests.test_valid_time_end_is_exclusive) ... ok\ntest_authorization_precedes_receipt_replay (test_deep_dive.ToolContractTests.test_authorization_precedes_receipt_replay) ... ok\ntest_bool_float_and_unit_guess_are_rejected (test_deep_dive.ToolContractTests.test_bool_float_and_unit_guess_are_rejected) ... ok\ntest_insufficient_remaining_does_not_write_receipt (test_deep_dive.ToolContractTests.test_insufficient_remaining_does_not_write_receipt) ... ok\ntest_model_cannot_add_tenant_or_approval (test_deep_dive.ToolContractTests.test_model_cannot_add_tenant_or_approval) ... ok\ntest_new_operation_requires_current_state (test_deep_dive.ToolContractTests.test_new_operation_requires_current_state) ... ok\ntest_receipt_failure_rolls_back_the_prior_balance_update (test_deep_dive.ToolContractTests.test_receipt_failure_rolls_back_the_prior_balance_update) ... ok\ntest_recovery_inside_callers_except_commits_the_reported_effect (test_deep_dive.ToolContractTests.test_recovery_inside_callers_except_commits_the_reported_effect) ... ok\ntest_reopen_after_commit_reconciles_before_new_write (test_deep_dive.ToolContractTests.test_reopen_after_commit_reconciles_before_new_write) ... ok\ntest_retry_identity_is_bound_to_payload_and_actor (test_deep_dive.ToolContractTests.test_retry_identity_is_bound_to_payload_and_actor) ... ok\ntest_two_connections_share_one_business_effect (test_deep_dive.ToolContractTests.test_two_connections_share_one_business_effect) ... ok\ntest_well_formed_foreign_id_is_not_authority (test_deep_dive.ToolContractTests.test_well_formed_foreign_id_is_not_authority) ... ok\n\n----------------------------------------------------------------------\nRan 65 tests in 0.039s\n\nOK\n",
    "elapsedSeconds": 0.113192,
    "passedTests": 65
  },
  "networkRequests": 0,
  "scope": "Authored requests, identities, source text/rankings, temporal events, trials/reference labels/judge verdicts. Actual local Python/SQLite execution and arithmetic. No live model, external provider, human calibration, measured production cost/latency, distributed restore or learning-effectiveness study.",
  "limitations": [
    "No process kill mid-COMMIT, storage corruption, external provider or distributed atomicity test.",
    "RAG ranks and candidate claims are authored; verifier only covers the stated v2 fields and not prose.",
    "Evaluation statistics describe authored fixtures; no live model/human rate or independent population sample.",
    "Memory reopens current local state; no old snapshot restore, cache/vector/export purge or physical erasure.",
    "Local timings measure the verification process only and are not production latency/cost."
  ]
}
