{
  "authorization_integrity": {
    "authorization": null,
    "card_id": "597e2821078a2a7b042b6238",
    "customer_delivery_count": 0,
    "generation_child_append_count": 0,
    "journal_sha256": "eb052440ef5b03c98b1b0b4391476e194a2109d06507e454d848f77861ddbfbc",
    "message_id": "148",
    "prospective_child_token": "7ecd9ed50dc28217",
    "protected_ledgers_unchanged": true,
    "provider_generation_called": false,
    "state": "published"
  },
  "candidate_and_route": {
    "callback_route": "t23p1: is dispatched by the current Telegram adapter source loaded by the restarted service",
    "repository_module_sha256": {
      "gateway.platforms.task23_portable_coach_successor": {
        "path": "/home/cube/projects/richard/hermes-agent/gateway/platforms/task23_portable_coach_successor.py",
        "sha256": "2fc972642f3919e472cc67cfb00e9613e494c18b4b119f4fe3baa4de06a263f0"
      },
      "gateway.platforms.telegram": {
        "path": "/home/cube/projects/richard/hermes-agent/gateway/platforms/telegram.py",
        "sha256": "21fb3cb9c109576190d635db0e6260ba6939c8773e6afa075de1402591d549ba"
      }
    },
    "schema_candidate_sha256": "7fda8dd3e2c36a58a12fcc3b99464825d12cdfa65addff48e9c63c4514f73ab2",
    "seal_digest": "73bbe3f26f5d6e8cf788d0fdbd88b8acce40ecec04404bcbf437b03389e81412",
    "successor_verification_receipt_sha256": "2d23df1c3ec9b446e815c297eb996870707621e53139303bd51183894c16dd3a"
  },
  "hypotheses": [
    {
      "evidence": "active/running PID 3539813, NRestarts=0, runtime state running",
      "name": "startup_crash_or_systemd_retry",
      "result": "rejected"
    },
    {
      "evidence": "active profile home matches unit, runtime telegram platform state is connected",
      "name": "wrong_profile_or_platform_disabled",
      "result": "rejected"
    },
    {
      "evidence": "current startup recorded fallback discovery, all three command-scope calls, and polling-connected; historical conflict/timeout lines predate this PID",
      "name": "Telegram_auth_network_or_getUpdates_conflict",
      "result": "rejected_for_current_PID"
    },
    {
      "evidence": "current repository source was verified, and the unchanged polling-connected signal is present in profile gateway.log rather than the systemd journal",
      "name": "import_initialization_hang_or_log_signal_changed",
      "result": "resolved_as_log_sink_mismatch"
    }
  ],
  "no_additional_restart_or_external_mutation": true,
  "prohibitions_preserved": [
    "no additional restart",
    "no card publication",
    "no provider invocation",
    "no child append",
    "no draft publication",
    "no customer delivery",
    "no Task24",
    "no activation",
    "no commit",
    "no push",
    "no release"
  ],
  "recorded_at_utc": "2026-08-14T01:11:45Z",
  "root_cause": {
    "classification": "observability_source_mismatch",
    "correct_signal_path": "/home/cube/.hermes/profiles/dualcoachtest/logs/gateway.log",
    "detail": "The failed subscription followed the systemd journal, which contains the gateway startup banner but not the application logger stream. Telegram startup events are written to the profile gateway log.",
    "prior_block_evidence_sha256": "395f5ddb0f55bdf4e57d336ef34f4cb48e5a254e80c7ad6dc277a00c025f3f0d",
    "systemd_journal_result": "No polling-connected application record was available from the selected sink."
  },
  "runtime": {
    "gateway_state": {
      "active_agents": 0,
      "argv": [
        "/home/cube/projects/richard/hermes-agent/hermes_cli/main.py",
        "gateway",
        "run"
      ],
      "boot_id": "f54bfc2b-fb52-42c6-b52d-a1ebb9ad32ae",
      "exit_reason": null,
      "gateway_state": "running",
      "home": "/home/cube/.hermes/profiles/dualcoachtest",
      "kind": "hermes-gateway",
      "pid": 3539813,
      "platforms": {
        "telegram": {
          "error_code": null,
          "error_message": null,
          "state": "connected",
          "updated_at": "2026-08-14T01:05:51.935448+00:00"
        }
      },
      "restart_requested": false,
      "start_time": 119069751,
      "updated_at": "2026-08-14T01:05:51.936893+00:00"
    },
    "gateway_state_sha256": "07db4c8095a33efaf3baed1da2e562234bbc31785ac1db9010f57c2afc60cc76",
    "manager": "systemctl --user",
    "nrestarts": "0",
    "pid": 3539813,
    "service_state": {
      "ActiveState": "active",
      "ExecMainCode": "0",
      "ExecMainStartTimestamp": "Fri 2026-08-14 10:05:47 KST",
      "ExecMainStatus": "0",
      "LoadState": "loaded",
      "MainPID": "3539813",
      "NRestarts": "0",
      "SubState": "running"
    },
    "startup_log_evidence": [
      "2026-08-14 10:05:46,854 INFO gateway.run: Received SIGTERM — initiating shutdown",
      "2026-08-14 10:05:46,854 WARNING gateway.run: Shutdown context: signal=SIGTERM under_systemd=yes parent_pid=2585 parent_name=systemd loadavg_1m=0.32 parent_cmdline='/usr/lib/systemd/systemd --user'",
      "2026-08-14 10:05:46,855 INFO gateway.run: Stopping gateway...",
      "2026-08-14 10:05:46,855 INFO gateway.run: Shutdown phase: notify_active_sessions done at +0.00s",
      "2026-08-14 10:05:46,857 INFO gateway.run: Shutdown phase: drain done at +0.00s (drain took 0.00s, timed_out=False, active_at_start=0, active_now=0)",
      "2026-08-14 10:05:47,646 INFO gateway.platforms.telegram: [Telegram] Disconnected from Telegram",
      "2026-08-14 10:05:47,646 INFO gateway.run: ✓ telegram disconnected (0.79s)",
      "2026-08-14 10:05:47,646 INFO gateway.run: Shutdown phase: all adapters disconnected at +0.79s",
      "2026-08-14 10:05:47,665 INFO gateway.run: Shutdown phase: final-cleanup tool kill done at +0.81s",
      "2026-08-14 10:05:47,665 INFO gateway.run: Shutdown phase: SessionDB close done at +0.81s",
      "2026-08-14 10:05:47,667 INFO gateway.run: Gateway stopped (total teardown 0.81s)",
      "2026-08-14 10:05:47,667 INFO gateway.run: Gateway housekeeping stopped",
      "2026-08-14 10:05:47,667 INFO gateway.run: Exiting with code 1 (signal-initiated shutdown without restart request) so systemd Restart=on-failure can revive the gateway.",
      "2026-08-14 10:05:48,611 INFO gateway.run: Starting Hermes Gateway...",
      "2026-08-14 10:05:48,612 INFO gateway.run: Session storage: /home/cube/.hermes/profiles/dualcoachtest/sessions",
      "2026-08-14 10:05:48,616 INFO gateway.run: Agent budget: max_iterations=90 (agent.max_turns from config.yaml, or HERMES_MAX_ITERATIONS from .env, or default 90)",
      "2026-08-14 10:05:48,616 INFO gateway.run: Secret redaction: ENABLED (tool output, logs, and chat responses are scrubbed before delivery)",
      "2026-08-14 10:05:48,617 INFO gateway.run: Active profile: dualcoachtest",
      "2026-08-14 10:05:48,620 INFO gateway.run: Previous gateway exited cleanly — skipping session suspension",
      "2026-08-14 10:05:48,778 INFO gateway.run: Connecting to telegram...",
      "2026-08-14 10:05:49,148 INFO gateway.platforms.telegram: [Telegram] Auto-discovered Telegram fallback IPs: 149.154.166.110",
      "2026-08-14 10:05:49,148 INFO gateway.platforms.telegram: [Telegram] Telegram fallback IPs active: 149.154.166.110",
      "2026-08-14 10:05:51,072 INFO gateway.platforms.telegram: [Telegram] set_my_commands OK for scope BotCommandScopeDefault (30 cmds)",
      "2026-08-14 10:05:51,501 INFO gateway.platforms.telegram: [Telegram] set_my_commands OK for scope BotCommandScopeAllPrivateChats (30 cmds)",
      "2026-08-14 10:05:51,932 INFO gateway.platforms.telegram: [Telegram] set_my_commands OK for scope BotCommandScopeAllGroupChats (30 cmds)",
      "2026-08-14 10:05:51,932 INFO gateway.platforms.telegram: [Telegram] Telegram menu: 30 commands registered, 22 hidden (over 30 limit). Use /commands for full list.",
      "2026-08-14 10:05:51,934 INFO gateway.platforms.telegram: [Telegram] Connected to Telegram (polling mode)",
      "2026-08-14 10:05:51,936 INFO gateway.run: ✓ telegram connected",
      "2026-08-14 10:05:51,938 INFO gateway.run: Gateway running with 1 platform(s)",
      "2026-08-14 10:05:51,939 INFO gateway.run: Channel directory built: 2 target(s)",
      "2026-08-14 10:05:52,941 INFO gateway.run: Press Ctrl+C to stop",
      "2026-08-14 10:05:52,955 INFO gateway.run: Gateway housekeeping started (interval=60s)",
      "2026-08-14 10:05:52,957 INFO gateway.run: kanban dispatcher: holding singleton dispatcher lock (/home/cube/.hermes/kanban/.dispatcher.lock)",
      "2026-08-14 10:05:57,959 INFO gateway.run: kanban dispatcher: embedded in gateway (interval=60.0s)"
    ],
    "startup_log_sha256": "7b34855597c83d550bb892c9054333f77162c5aaa4cf4fdacbd1f6dd46005ae5",
    "unit": "hermes-gateway-dualcoachtest.service"
  },
  "schema": "task23-portable-successor-gateway-monitor-correction-v1",
  "status": "READY_FOR_OWNER_CLICK_148",
  "task_id": "st_019ffd8e"
}
