{
  "issue": 286,
  "commit": "19a9097956de0db898eaeb3a7dc4765189ade874",
  "branch": "fix/286-daemon-stderr",
  "worktree": "C:/Users/decid/Documents/projects/spt-core/.worktrees/286-churn",
  "implemented": [
    "Process-wide 60-second aggregation of healthy connection starts/closes; poison, organic retirement, poisoned close and role events remain unconditional per connection.",
    "Original first-write wall/monotonic timestamps retained on exceptional and role records.",
    "Livehost session census retains its healthy Brain across five-second polls, discards it on every query error, and names initial-query versus previous-query-error when opening.",
    "Three behavioral regression cells covering real framed socket exchanges, exceptional attribution, and livehost reuse/recovery.",
    "Scoped REQ-CONN-HEALTHY-LIFECYCLE-BOUNDED minted before implementation; explicit narrow attribution-contract supersession documented; changelog and existing RCA updated."
  ],
  "measurements": {
    "source": "%LOCALAPPDATA%/spt-core/logs/daemon.stderr.log; read-only, no restart",
    "sample": {
      "end_byte": 4163267,
      "complete_line_bytes": 1999958,
      "wall_ms_range": [
        1788997126331,
        1788998151874
      ],
      "seconds": 1025.543,
      "write_starts": 5127,
      "healthy_closes": 5092,
      "healthy_start_close_bytes": 1506780,
      "healthy_percentage": 75.3,
      "organic_retirements": 3,
      "deadline_poisons": 0,
      "family_gates": 107,
      "rendezvous_up": 108
    },
    "live_append": {
      "seconds": 307.203,
      "bytes": 79741,
      "bytes_per_second": 259.57,
      "write_starts": 104,
      "healthy_closes": 104,
      "family_gates": 30,
      "rendezvous_up": 30
    }
  },
  "cause": "Source-confirmed avoidable caller: livehost::query_live_session_endpoints constructed/dropped Brain for every five-second census; observed bare-brain pairs have corresponding cadence. This does not attribute all measured connections to livehost. run_brain already retains its coordinator carrier; role=brain covers every IPC client. Other short-lived dispatch/CLI callers are intentionally unchanged.",
  "family_gate": "Exonerated and unchanged: endpoint.rs emits once per actual bind attempt. pairhost TOTP rotation creates three real rendezvous binds per 30-second boundary for BIGNET/SPT_DEV/SPT_MANTLE; live append measured 30 gates and 30 binds. No endpoint or binder-policy edits.",
  "verification_commands": [
    "cargo test -p spt-daemon --lib conn::tests::",
    "cargo test -p spt-daemon --lib livehost::tests::session_poll_reuses_healthy_carrier_and_reopens_after_query_error",
    "cargo test -p spt-daemon --test conn_blackhole_lifecycle",
    "traceable-reqs check --json"
  ],
  "verification_status": "NOT RUN: builds, tests, linters, formatters and traceability validation deliberately deferred to Main. Only read-only production-log measurements executed. No GREEN claim. Commit hooks disabled for this commit to honor the no-validation lane.",
  "risks": [
    "Summary flushing is event-driven: first counter event after 60 seconds emits totals. Quiet pending totals are not flushed on shutdown and can be lost on process exit; documented.",
    "This bounds healthy start/close logging, not error or subscriber-role logging. Real pairing binds also continue logging individually.",
    "Persistent census retains existing unbounded Whole-carrier read semantics; no deadline or poison contract changed.",
    "Worktree retained for integration; no push, PR, production restart or other-lane mutation."
  ]
}