{
  "schema": "nutricoach-v150-v9-live-attempt-failure-v1",
  "recorded_at": "2026-08-28T11:41:07+09:00",
  "status": "FAILED_BEFORE_LEDGER_OR_LIVE_MUTATION",
  "attempt": 1,
  "automatic_retry_allowed": false,
  "authorization": {
    "package_digest": "f64ffbde677fa0f7413a7e5f0bafbcd9f442e61508b092ed56cb1f099ef2e92b",
    "received_exact_match": true,
    "operationally_spent": true,
    "reusable": false
  },
  "seal": {
    "package_sha256": "8efea3ed40990b2892680ed6ac4c25eb97f81d44cb9428b887a07e1870edc4de",
    "manifest_sha256": "5ea633ca3d3b2b0e5f4d0e8d0c94d3133ca739bf196ab91d4732dca26cdf47a4",
    "closure_digest": "sha256:a96bc1b1704ec9be23de78c6f5f496c3957ad0dac1eed948bd350641d09c8e1a"
  },
  "failure": {
    "exit_code": 1,
    "stage": "preflight_service_state",
    "exception": "subprocess.CalledProcessError",
    "command": [
      "systemctl",
      "--user",
      "show",
      "hermes-gateway-dualcoachtest.service",
      "--property=ActiveState",
      "--property=SubState",
      "--property=MainPID",
      "--property=ExecMainStartTimestampMonotonic"
    ],
    "root_cause": "Bubblewrap --clearenv omitted XDG_RUNTIME_DIR, so systemctl --user could not reach the existing user bus.",
    "diagnostic_red": "Failed to connect to user scope bus via local transport: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined",
    "diagnostic_green": "The same isolated read-only probe passes with only XDG_RUNTIME_DIR=/run/user/<uid>; DBUS_SESSION_BUS_ADDRESS remains unset."
  },
  "live_after": {
    "service": {
      "ActiveState": "active",
      "SubState": "running",
      "MainPID": "571685",
      "ExecMainStartTimestampMonotonic": "2234547821498"
    },
    "critical_sha256": {
      "config": "e9ee8f1c3a4913bcde64f4832dcbec6620173ca0de39ffd1a32c4b0c55c6a162",
      "registry": "bd61ed95f80737ba8013db262fd0242a600e540f43f6627f5b9708a599660b29",
      "unit": "90fbab66354811448427286b87f0305955a25df8f08a202a15b5ac3541700af7",
      "dropin": "33bc59bdaf6a4261abc7ce43ae7faf452f724353ee24f6a54b2a92ed5b1ca0d8"
    },
    "successor_runtime_absent": true,
    "global_approval_ledger_absent": true,
    "execution_root_absent": true,
    "package_authorization_consumed_file_absent": true,
    "live_mutations": 0,
    "network_events": 0,
    "provider_events": 0,
    "telegram_events": 0,
    "customer_events": 0
  },
  "successor_fix": {
    "name": "V10 user-bus environment",
    "change": "Set only XDG_RUNTIME_DIR=/run/user/<uid> inside the existing network-isolated sandbox.",
    "regression": "RED then GREEN",
    "pytest": "70 passed",
    "ruff": "PASS_35_FILES",
    "basedpyright": "PASS_0_0_0",
    "ty": "PASS",
    "no_excuse": "PASS_35_FILES"
  }
}
