{
  "stage": "completed",
  "calls": [
    {
      "action": "start",
      "requested_ns": 1054357524358940,
      "http": 202,
      "returned_ns": 1054357532134431,
      "state": "starting"
    },
    {
      "action": "stop",
      "requested_ns": 1054361724172126
    }
  ],
  "observations": [
    {
      "monotonic_ns": 1054357386973309,
      "state": "stopped",
      "generation": 0,
      "cleanup_pending": false,
      "metadata_path": {
        "state": "NOT_CONNECTED"
      },
      "last_cleanup": null,
      "runtime_observation": [],
      "roles": {},
      "publisher": {
        "enabled": true,
        "metrics": {
          "sent": 1,
          "sent_status": 1,
          "queued": 0,
          "queuedBytes": 0,
          "channels": 1
        }
      },
      "last_error": null,
      "cleanup_error": null
    },
    {
      "monotonic_ns": 1054357537345847,
      "state": "starting",
      "generation": 1,
      "cleanup_pending": false,
      "metadata_path": {
        "state": "NOT_CONNECTED"
      },
      "last_cleanup": null,
      "runtime_observation": [],
      "roles": {},
      "publisher": {
        "enabled": true,
        "metrics": {
          "sent": 1,
          "sent_status": 1,
          "queued": 0,
          "queuedBytes": 0,
          "channels": 1
        }
      },
      "last_error": null,
      "cleanup_error": null
    },
    {
      "monotonic_ns": 1054358131358195,
      "state": "starting",
      "generation": 1,
      "cleanup_pending": false,
      "metadata_path": {
        "state": "NOT_CONNECTED"
      },
      "last_cleanup": null,
      "runtime_observation": [],
      "roles": {
        "det": {
          "state": "init",
          "initialized": false,
          "source_stage": null,
          "stage_counts": {}
        }
      },
      "publisher": {
        "enabled": true,
        "metrics": {
          "sent": 1,
          "sent_status": 1,
          "queued": 0,
          "queuedBytes": 0,
          "channels": 1
        }
      },
      "last_error": null,
      "cleanup_error": null
    }
  ],
  "runtime_windows": 1,
  "active_after": "da0e48a1cbf19eee0089578ea76d5d0503a1d5dd76e3c125c01c99a10017b0f2",
  "env_after": "d17274d87cf015618485a429d9cebf83e25b5a4fc5d0c6acff4ffcfbd9991cf2",
  "compose": [
    "docker",
    "compose",
    "--env-file",
    "/workspace/contextra-runtime-config/runtime.env",
    "-f",
    "/workspace/contextra-analytics-runtime-lifecycle-refactor/docker-compose.yml",
    "-f",
    "/workspace/contextra-runtime-config/metadata-active/compose.yaml",
    "-f",
    "/tmp/codex/ltb1021/2026-09-12_contextra-rtp-loader_r01/diagnostic-compose.yaml"
  ],
  "analytics_reflected": true,
  "readiness": "PASS",
  "overlay_after": "1cd77022da1269011bc2110f8a64a4f40f220ca873c1dbf4a1cc244b5cfe5ce5",
  "error": "TimeoutError",
  "error_code": "BOUNDED_STEP_FAILED",
  "stop_error": "RemoteDisconnected",
  "failed_state": {
    "Status": "running",
    "Running": true,
    "Paused": false,
    "Restarting": false,
    "OOMKilled": false,
    "Dead": false,
    "Pid": 1483738,
    "ExitCode": 0,
    "Error": "",
    "StartedAt": "2026-09-12T08:27:04.53638163Z",
    "FinishedAt": "0001-01-01T00:00:00Z",
    "Health": {
      "Status": "healthy",
      "FailingStreak": 0,
      "Log": [
        {
          "Start": "2026-09-12T17:27:10.469919564+09:00",
          "End": "2026-09-12T17:27:10.723439766+09:00",
          "ExitCode": 1,
          "Output": "Traceback (most recent call last):\n  File \"/usr/lib/python3.12/urllib/request.py\", line 1344, in do_open\n    h.request(req.get_method(), req.selector, req.data, headers,\n  File \"/usr/lib/python3.12/http/client.py\", line 1356, in request\n    self._send_request(method, url, body, headers, encode_chunked)\n  File \"/usr/lib/python3.12/http/client.py\", line 1402, in _send_request\n    self.endheaders(body, encode_chunked=encode_chunked)\n  File \"/usr/lib/python3.12/http/client.py\", line 1351, in endheaders\n    self._send_output(message_body, encode_chunked=encode_chunked)\n  File \"/usr/lib/python3.12/http/client.py\", line 1111, in _send_output\n    self.send(msg)\n  File \"/usr/lib/python3.12/http/client.py\", line 1055, in send\n    self.connect()\n  File \"/usr/lib/python3.12/http/client.py\", line 1021, in connect\n    self.sock = self._create_connection(\n                ^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.12/socket.py\", line 852, in create_connection\n    raise exceptions[0]\n  File \"/usr/lib/python3.12/socket.py\", line 837, in create_connection\n    sock.connect(sa)\nConnectionRefusedError: [Errno 111] Connection refused\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/usr/lib/python3.12/urllib/request.py\", line 215, in urlopen\n    return opener.open(url, data, timeout)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.12/urllib/request.py\", line 515, in open\n    response = self._open(req, data)\n               ^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.12/urllib/request.py\", line 532, in _open\n    result = self._call_chain(self.handle_open, protocol, protocol +\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.12/urllib/request.py\", line 492, in _call_chain\n    result = func(*args)\n             ^^^^^^^^^^^\n  File \"/usr/lib/python3.12/urllib/request.py\", line 1373, in http_open\n    return self.do_open(http.client.HTTPConnection, req)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.12/urllib/request.py\", line 1347, in do_open\n    raise URLError(err)\nurllib.error.URLError: <urlopen error [Errno 111] Connection refused>\n"
        },
        {
          "Start": "2026-09-12T17:27:15.72498593+09:00",
          "End": "2026-09-12T17:27:16.003275873+09:00",
          "ExitCode": 0,
          "Output": ""
        }
      ]
    }
  },
  "rollback": "applied",
  "log_bytes": 12661,
  "log_error": null,
  "final": {
    "analytics": "healthy",
    "stream": "stopped",
    "image": "sha256:17cce2b945b7c2b9fdd55fc4e18e98cd4caaec4cbdc11106b13d3d1dc4f49e38",
    "success": false,
    "metadata_auth_preserved": true,
    "model_non_targets_unchanged": true,
    "restart_restored": true,
    "display_score": 0.25,
    "capture_off": true,
    "test_anchor": "restored previous environment"
  }
}