{
  "schema_version": "runtime-freshness-preflight-smoke-v1",
  "source": "runtime-core-testing",
  "status": "passed",
  "generated_at": "2026-05-20T08:12:55.899Z",
  "checks": [
    {
      "name": "freshness_preflight_runs_before_test_child",
      "status": "passed",
      "detail": "preflight status=reloaded_fresh reload_attempted=true"
    },
    {
      "name": "stale_daemon_model_detects_restart_required",
      "status": "passed",
      "detail": "stale model reasons=runtime_source_hash_changed,runtime_build_hash_changed,runtime_generation_changed"
    },
    {
      "name": "typed_supervisor_reload_path_available",
      "status": "passed",
      "detail": "runtime_api_build_reload is the typed supervisor action used by the preflight."
    }
  ],
  "preflight": {
    "schema_version": "runtime-freshness-test-preflight-v1",
    "source": "runtime-core-testing",
    "status": "reloaded_fresh",
    "started_at": "2026-05-20T08:12:31.199Z",
    "completed_at": "2026-05-20T08:12:55.810Z",
    "test_name": "runtime-freshness-preflight-smoke",
    "reload_attempted": true,
    "request_id": "6af5608c",
    "supervisor_result": {
      "schema_version": "runtime-supervisor-result-v1",
      "request_id": "6af5608c",
      "action": "runtime_api_build_reload",
      "target": "freshness-gated-test:runtime-freshness-preflight-smoke",
      "status": "success",
      "exit_code": 0,
      "message": "action completed",
      "log_path": "/workspace/.tmp/runtime-supervisor/6af5608c.log",
      "started_at": "2026-05-20T08:12:32.021Z",
      "completed_at": "2026-05-20T08:12:53.501Z",
      "duration_ms": 21480,
      "trusted_runtime": "runtime-core-supervisor"
    },
    "before": {
      "schema_version": "runtime-daemon-freshness-v1",
      "source": "runtime-core",
      "status": "restart_required",
      "generation": "1779121808508-3987-0b87791a99cb",
      "version": "0.1.0",
      "pid": 3987,
      "started_at": "2026-05-18T16:30:08.508Z",
      "source_hash_at_start": "dac93bf110e8a5e7f9c90bbf432dae7daf82ff366047e10b891bc658f2a72851",
      "source_hash_current": "7bc5143b3bcc6b44d09935775e04bc2736ffd85af43937b12361bb8cea63766d",
      "build_hash_at_start": "0b87791a99cb2d3f97c3a03f64e3202bf4cec71914c163b12dea92ee17ca458c",
      "build_hash_current": "09fe7703311e14530197a7278cd6dc14ece2f34fe9e76a85113bf6a3e13931bb",
      "build_manifest_generation": "1779121408004-60852-dac93bf110e8",
      "immutable_generation_dir": "/workspace/ai/runtime/.runtime-generations/1779121408004-60852-dac93bf110e8",
      "build_state_status": "ready",
      "active_build_detected": false,
      "restart_required": true,
      "reasons": [
        "runtime_source_hash_changed",
        "runtime_build_hash_changed",
        "runtime_build_manifest_hash_mismatch",
        "runtime_generation_changed"
      ]
    },
    "after": {
      "schema_version": "runtime-daemon-freshness-v1",
      "source": "runtime-core",
      "status": "fresh",
      "generation": "1779264760322-95254-09fe7703311e",
      "version": "0.1.0",
      "pid": 95254,
      "started_at": "2026-05-20T08:12:40.322Z",
      "source_hash_at_start": "7bc5143b3bcc6b44d09935775e04bc2736ffd85af43937b12361bb8cea63766d",
      "source_hash_current": "7bc5143b3bcc6b44d09935775e04bc2736ffd85af43937b12361bb8cea63766d",
      "build_hash_at_start": "09fe7703311e14530197a7278cd6dc14ece2f34fe9e76a85113bf6a3e13931bb",
      "build_hash_current": "09fe7703311e14530197a7278cd6dc14ece2f34fe9e76a85113bf6a3e13931bb",
      "build_manifest_generation": "1779264755608-94087-7bc5143b3bcc",
      "immutable_generation_dir": "/workspace/ai/runtime/.runtime-generations/1779264755608-94087-7bc5143b3bcc",
      "build_state_status": "ready",
      "active_build_detected": false,
      "restart_required": false,
      "reasons": []
    },
    "reasons": [],
    "message": "Typed Runtime supervisor build/reload completed and daemon freshness was verified.",
    "next_action": "Run the freshness-gated test.",
    "mutates_authority_state": false
  },
  "stale_model": {
    "schema_version": "runtime-daemon-freshness-v1",
    "source": "runtime-core",
    "status": "restart_required",
    "generation": "1779121808508-3987-0b87791a99cb",
    "version": "0.1.0",
    "pid": 3987,
    "started_at": "2026-05-18T16:30:08.508Z",
    "source_hash_at_start": "stale-source-hash-for-preflight-smoke",
    "source_hash_current": "7bc5143b3bcc6b44d09935775e04bc2736ffd85af43937b12361bb8cea63766d",
    "build_hash_at_start": "0b87791a99cb2d3f97c3a03f64e3202bf4cec71914c163b12dea92ee17ca458c",
    "build_hash_current": "09fe7703311e14530197a7278cd6dc14ece2f34fe9e76a85113bf6a3e13931bb",
    "build_manifest_generation": "1779121408004-60852-dac93bf110e8",
    "immutable_generation_dir": "/workspace/ai/runtime/.runtime-generations/1779121408004-60852-dac93bf110e8",
    "build_state_status": "ready",
    "active_build_detected": false,
    "restart_required": true,
    "reasons": [
      "runtime_source_hash_changed",
      "runtime_build_hash_changed",
      "runtime_generation_changed"
    ]
  },
  "report_path": "ai/reports/report-000288-runtime-freshness-preflight-smoke.json",
  "mutates_authority_state": false
}
