{
  "schema": "task26-gateway-readiness-repair-receipt-v1",
  "recorded_at": "2026-08-15T04:16:37.539557Z",
  "task_id": "st_01a00394",
  "status": "PASS_EXISTING_INVITE_GATEWAY_CONNECTED",
  "profile": "/home/cube/.hermes/profiles/dualcoachtest",
  "diagnosis": {
    "hypotheses": [
      {
        "id": "type_simple_readiness_race",
        "statement": "systemd Type=simple reports active/running after exec, before Python initializes the gateway and writes gateway_state.json",
        "verdict": "CONFIRMED"
      },
      {
        "id": "stale_runtime_status",
        "statement": "the stopped/disconnected gateway_state.json was an old 2026-08-14 record rather than the outcome of the 2026-08-15 launch",
        "verdict": "CONFIRMED"
      },
      {
        "id": "startup_or_telegram_failure",
        "statement": "gateway startup or Telegram connection genuinely failed before the readiness probe completed",
        "verdict": "REJECTED"
      },
      {
        "id": "runtime_source_binding_mismatch",
        "statement": "the systemd runtime imported a different bootstrap or Telegram implementation from the inspected source",
        "verdict": "REJECTED"
      }
    ],
    "root_cause": "The prior probe read the persisted status immediately after Type=simple became active, then its cleanup sent SIGTERM. The same-second Started/Stopping/Stopped journal records and ExecMainStatus=15 therefore recorded probe cleanup, not a completed gateway startup."
  },
  "supported_observation_path": {
    "single_gateway_start_invocation": true,
    "observer": "pre-trigger inotify subscription to gateway_state.json plus journalctl --follow for hermes-gateway-dualcoachtest.service",
    "observer_script_sha256": "39de7a3b42ba9db2b9e33db7bb32cb0474ee516039e744ff709fe63126401fe2",
    "observer_result": {"kind": "CONNECTED", "pid": 4091167},
    "bounded_wait_seconds": 90
  },
  "source_and_runtime": {
    "canonical_api": "RoomBootstrapStore.prepare_rehearsal_customer_invite",
    "source_bootstrap_sha256": "145515d5e110dcebb94fcaa554bcee29544b3a75dcfe058fae944ea3b70042b2",
    "runtime_bootstrap_sha256": "145515d5e110dcebb94fcaa554bcee29544b3a75dcfe058fae944ea3b70042b2",
    "source_telegram_sha256": "b41060dea28eb3bbb83217068f5218d5df2c879dba00e73c9ca4e577a6049dad",
    "runtime_telegram_sha256": "b41060dea28eb3bbb83217068f5218d5df2c879dba00e73c9ca4e577a6049dad",
    "gateway_unit_sha256": "0b46e887fc12c45f12814f4ef025c10101ed36e5df0ac35f70abb1862c0c1db2"
  },
  "existing_invite": {
    "prepare_invocations_this_repair": 0,
    "session_id": "cb_rmDnfrqA6gkmjoQEdwxu0g",
    "state": "PREPARED",
    "generation": 1,
    "created_at": "2026-08-15T04:08:15.578677+00:00",
    "expires_at": "2026-08-15T04:38:15.578677+00:00",
    "start_token_sha256": "a495ddcafdea4379d55ac8af91e0b2f3713c50751734e7d435c46fced15520d2",
    "customer_link": "REDACTED",
    "canonical_ledger_sha256": "a215254bef5d9ee9433762756713695ca999c9068a927c4d61cd8a6e682978c6"
  },
  "postcondition": {
    "gateway_unit": "active/running MainPID=4091167",
    "gateway_state": "running",
    "telegram_state": "connected",
    "prepared_session_count": 1,
    "registry_customer_count": 0,
    "owner_review_count": 0,
    "activation_count": 0,
    "publication_count": 0,
    "delivery_count": 0
  },
  "prohibitions_observed": {
    "new_invite": false,
    "customer_activation": false,
    "owner_review": false,
    "delivery": false,
    "provider_request": false,
    "telegram_send_or_click": false,
    "commit_push_release": false,
    "source_edit": false
  }
}
