{
  "candidate": {
    "checkpoint_sha256": "6acc31bdf597dfb51151fb4c2cd76cb7da2ceb33579a8cd840490fbbfdbbd4be",
    "core_digest": "a03f84f7db67afe0ace8d31541dd373852af052fbb1a23a8e70dd96c6263f5ef",
    "freeze_receipt_sha256": "07873d35557e5fc797786f6095bf7fe6bd957a0d200f034179fb129c9e0384ed",
    "full_digest": "653cc2f0b47873e95f985ea3eb32b8f2c044d6de64cd9e8fe37ebcec67c7a723",
    "manifest_sha256": "23b72148af7412b292555107c6b29616d9436c437871787763667c9fb62fca26",
    "predecessor_full_digest": "3b42723d0e8256351defdf31958f9ade795f80a7be456529740949c87875d527",
    "repository_status_entry_count": 1294,
    "repository_status_sha256": "ca1ce2705c0c406f30461e5f05e8d09468dee33348960c3650b6b98758895478",
    "wheel_sha256": "af4a9d0a1ffffb6eb7551c1d6dc2b32853ca6d024332a4f8f5702bbf992f141b"
  },
  "cleanup_and_non_touch": {
    "archive_actions": 0,
    "candidate_files_touched": 0,
    "evidence_receipts_written": 1,
    "full_gate20_runs": 0,
    "git_actions": 0,
    "network_actions": 0,
    "preexisting_caches_touched": 0,
    "product_edits": 0,
    "profile_actions": 0,
    "provider_actions": 0,
    "receipt_creation": "O_CREAT|O_EXCL mode 0600",
    "runtime_actions": 0,
    "service_actions": 0,
    "telegram_actions": 0,
    "temporary_files_created": 0,
    "test_edits": 0
  },
  "closure": {
    "deterministic_tests": {
      "adaptive_nutrition_fixed_sleep_or_poll_calls": 0,
      "bounded_waits": true,
      "gate19_orchestration_fixed_sleeps_or_polling": false,
      "historical_fixed_sleep_poll_findings_closed": true,
      "note": "The two status tests spawning a child that sleeps 60 seconds use the sleep only as child-liveness behavior and terminate/wait in finally; they do not wait for elapsed time to trigger the assertion.",
      "observed_exact_signal_primitives": [
        "asyncio.Event",
        "threading.Event",
        "Barrier"
      ],
      "status": "PASS"
    },
    "exact_pid_delta": {
      "after_sha256": "8641bae4540dcadec0f80a3d97b1a1013ab36f3cb1b4920027d70cae1d1d308c",
      "before_sha256": "7a04d81facfd29360a096c1233d2afd015e1933c223adcbf7946c087ca9c5115",
      "changed_closure_entry_count": 1,
      "exact_source_delta_sha256": "f3820c5f2dc5ec7170b53966bb3f84e71865f69252711128c98de92658a71355",
      "path": "gateway/status.py",
      "semantic_delta": "stale cleanup now additionally requires a validated primary PID record; unvalidated authority files remain fail-closed",
      "status": "PASS",
      "test_status_sha256": "1976b3530484b105704fdf2bcf1c6302ec7416fcec33f675e515177ef7447c5d",
      "test_status_unchanged": true
    },
    "gates": {
      "gate18": {
        "candidate_tree_drift": false,
        "receipt_sha256": "589223e0d391346939dccbb79351b3d408a07351bb9218c4496e28b851814e5a",
        "source_tests": 19,
        "status": "PASS",
        "wheel_tests": 19
      },
      "gate19": {
        "archive_assertions_passed": 2,
        "candidate_tree_drift": false,
        "failed": 0,
        "matrix_sha256": "ec319ee060d942722c3bdd93b616cbe79186cd35302f78051591761227699dc6",
        "pytest_nodes_passed": 118,
        "receipt_sha256": "00bdaf0186437e9b93ca9fe2badd3f6a4db5fd8c4cf5b69c66135bb7245fd688",
        "status": "PASS",
        "warnings": 0
      },
      "gate20": {
        "candidate_pre_post_equal": true,
        "failed": 0,
        "passed": 8138,
        "receipt_sha256": "643970f32ef2f1e841ff2a43b28270e8ec539033026f832303955209f392d541",
        "rerun": false,
        "skipped": 59,
        "source_pre_post_equal": true,
        "status": "PASS",
        "stdout_sha256": "2af76701c9685b4f05e59d3f43212077d0e73d6d1fe05f924e9100a363083196",
        "warnings": 256
      }
    },
    "prior_quality_failures": {
      "gateway_gate_red": "CLOSED by one canonical Gate20 run: 8138 passed, 59 skipped, zero failures",
      "identity_and_wheel": "CLOSED by immutable freeze, verifier evidence, 2374-entry closure, reproducible retained wheel, and zero source-wheel mismatch",
      "invalidated_5e6f_review_sha256": "5dc650507ceed203dbf883fa89dc21914953917a6c09fe63a08d90183029086b",
      "original_oracle_sha256": "ff22c36391e05085feaaa3b029aacf3fc58efa64504c24e5754667881eecce0f",
      "post_seal_source_drift": "CLOSED by new successor seal and zero pre/post drift",
      "privacy_identity": "CLOSED in predecessor closure; successor exact delta is gateway/status.py only and introduces no identity material",
      "regeneration_atomicity": "CLOSED by retained deterministic event/barrier tests and green full Gate20 baseline",
      "repair_receipt_hash_typo": "SUPERSEDED by independently pinned successor manifest, wheel, Gate18 parity, and Gate19/Gate20 pre/post verification",
      "sealed_controller_defect": "CLOSED by repaired controller/test pins and Gate18/Gate19/Gate20 execution",
      "strict_quality_evidence": "CLOSED for candidate-caused scope by Ruff zero diagnostics and ty zero diagnostics on changed/repaired closure; inherited test/formatter debt disclosed above",
      "timing_dependent_tests": "CLOSED by zero forbidden timing calls in the previously cited adaptive-nutrition file and exact-signal synchronization"
    },
    "repaired_controller": {
      "controller_nodes_in_gate19": 11,
      "launch_without_durable_owner_review_regression": "PASS in Gate19 matrix",
      "source_sha256": "b303634599c17e2f35339f964b2277c1a236f42c0ad5f3e4be18d3f38e556e13",
      "source_wheel_equal": true,
      "status": "PASS",
      "test_sha256": "95300eb8243d88af01d0e1167390ab1c30d900fed34bad44f44f2e1aca65bcdf"
    },
    "source_and_wheel": {
      "executable_closure_entries": 2374,
      "source_backed_comparisons": 854,
      "source_closure_mismatches": 0,
      "source_status_sha256": "8641bae4540dcadec0f80a3d97b1a1013ab36f3cb1b4920027d70cae1d1d308c",
      "source_wheel_mismatches": 0,
      "status": "PASS",
      "wheel_member_count": 860,
      "wheel_reproducible_rounds": 2,
      "wheel_status_sha256": "8641bae4540dcadec0f80a3d97b1a1013ab36f3cb1b4920027d70cae1d1d308c"
    }
  },
  "drift": {
    "candidate_tree": "NONE evidenced by Gates18-20 pre/post checks",
    "receipt_is_outside_candidate_closure": true,
    "review_generated_candidate_or_source_drift": false,
    "source_closure": "NONE (0 mismatches)",
    "wheel_parity": "NONE (0 mismatches)"
  },
  "findings": [
    {
      "blocking": false,
      "code": "PREEXISTING_FORMATTER_BASELINE",
      "evidence": {
        "candidate_caused_formatter_regression": false,
        "exact_successor_delta": "gateway/status.py only; two comment lines plus `and primary_record is not None` on an already formatter-stable condition",
        "predecessor_gateway_status_format_exit": 1,
        "successor_gateway_status_format_exit": 1,
        "successor_scoped_unformatted_files": [
          "gateway/status.py",
          "tests/gateway/test_status.py",
          "gateway/platforms/dualcoach_tasks21_25_controller.py",
          "tests/gateway/test_dualcoach_tasks21_25_controller.py"
        ]
      },
      "severity": "low",
      "summary": "Scoped Ruff formatter checks are red, but this is inherited baseline debt rather than successor-caused drift."
    },
    {
      "blocking": false,
      "code": "PREEXISTING_REPO_WIDE_TY_DEBT",
      "evidence": {
        "candidate_caused_ty_diagnostics": 0,
        "changed_gateway_status_diagnostics": 0,
        "changed_gateway_status_ty_exit": 0,
        "combined_four_file_diagnostics": 25,
        "combined_four_file_ty_exit": 1,
        "controller_and_test_diagnostics": 0,
        "controller_and_test_ty_exit": 0,
        "diagnostics_location": "tests/gateway/test_status.py only",
        "test_status_changed_from_predecessor": false
      },
      "severity": "low",
      "summary": "The unchanged broad status test has 25 ty diagnostics; the changed source and repaired controller closure have zero diagnostics."
    }
  ],
  "recorded_at_utc": "2026-08-15T06:56:58.900502+00:00",
  "release_scope": "CODE_QUALITY_LANE_PASS_ONLY; candidate remains not independently release-authorized by this receipt",
  "schema": "task26-code-quality-final-immutable-successor-v1",
  "targeted_read_only_diagnostics": [
    {
      "command": "ruff 0.15.10 check gateway/status.py tests/gateway/test_status.py gateway/platforms/dualcoach_tasks21_25_controller.py tests/gateway/test_dualcoach_tasks21_25_controller.py",
      "exit_code": 0,
      "output": "All checks passed!",
      "output_sha256": "f0d0b1081d9d3ebb26c4c93543053ecdc0a58998f22c071dc4ddb26021b57645"
    },
    {
      "command": "ty 0.0.21 check gateway/status.py gateway/platforms/dualcoach_tasks21_25_controller.py tests/gateway/test_dualcoach_tasks21_25_controller.py",
      "diagnostics": 0,
      "exit_code": 0,
      "output_sha256": "f0d0b1081d9d3ebb26c4c93543053ecdc0a58998f22c071dc4ddb26021b57645"
    },
    {
      "command": "ty 0.0.21 check four scoped source/test files",
      "diagnostic_file": "unchanged tests/gateway/test_status.py",
      "diagnostics": 25,
      "exit_code": 1,
      "output_sha256": "1c0c165996c9a0b91a6733444019b06c432927775df0cc17fb1620d846ae9ffe"
    },
    {
      "classification": "pre-existing formatter baseline; predecessor and successor both red",
      "command": "ruff 0.15.10 format --check scoped files and predecessor/successor gateway/status.py from retained wheels via stdin",
      "exit_code": 1
    },
    {
      "command": "in-memory compare predecessor/successor executable-closure.json",
      "result": "2374 vs 2374 entries; exactly one changed entry: gateway/status.py"
    },
    {
      "command": "in-memory unified diff of predecessor/successor gateway/status.py retained wheel members",
      "result": "one hunk; two comment lines and one conjunct"
    },
    {
      "command": "rg forbidden timing calls in tests/gateway/test_adaptive_nutrition.py",
      "result": "zero matches"
    },
    {
      "command": "Gate20",
      "result": "NOT RERUN; existing exact-candidate canonical receipt inspected as required"
    }
  ],
  "task": 26,
  "task_id": "st_01a00433",
  "verdict": "PASS"
}
