myxce/.kiro/specs/controller-status
Rongsong Shen ab5dd91537
feat(controller-status): source per-controller connection status in ctrlstatus_fill (task 8.2)
Populates CtrlPeer.status (added in task 8.1) inside ctrlstatus_fill's
peer-building loop: self always reports ok; a primary responder sources
every other peer from the live replication connection registry
(replicator_t.standbys[], host+port matched, reusing
repl_active_standby_count's ep!=NULL && !in_catch_up predicate) --
dead/catching-up/ok; a non-primary responder reports unknown for every
non-self peer. A self-identity mismatch (pre-existing misconfiguration)
logs one WARN and falls through to the normal non-self sourcing rather
than forcing any peer to ok. Read-only: a bounded lock-protected scan,
no state mutation.

TDD: 3 new tests (primary-sourced-from-registry, standby-unknown-except-
self, self-mismatch-falls-through) plus an extended no-mutation
assertion; RED->GREEN independently reproduced by the reviewer.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RLSNJhNoULvVcUhXEFafQC
2026-09-16 15:18:15 +00:00
..
design.md docs(controller-status): correct stale lock-acquisition claim in Req 13 design 2026-09-16 10:42:47 +00:00
requirements.md docs(controller-status): add Requirement 13 delta (per-controller connection status) 2026-09-16 10:40:08 +00:00
research.md docs(controller-status): add Requirement 13 delta (per-controller connection status) 2026-09-16 10:40:08 +00:00
spec.json docs(controller-status): add Requirement 13 delta (per-controller connection status) 2026-09-16 10:40:08 +00:00
tasks.md feat(controller-status): source per-controller connection status in ctrlstatus_fill (task 8.2) 2026-09-16 15:18:15 +00:00