engine-adapters: compose-heartbeat-stream — agents' reports feed monitoring's latest-heartbeat store #174
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Engine-adapters child spec: #161 (ADRs 0102–0107; scoped on wayfinder #160 — Ben ruled live: per-family clan-lab smokes gate each family, the arc closes on a real-hardware end-to-end, tickets arm the swarm). Everything else agent-decided, post-hoc review pending.
What to build
The heartbeat stream (ADR 0107): the agents' FleetReporting.Report path feeds an in-memory latest-value store serving monitor's Latest — runtime signal, re-filled within a report cycle after a restart; expected-pattern tunings are already durable via store-runtime-ledgers.
Acceptance criteria
Blocked by
Task manifest
enrollpackage + in-memory fakeDone in
08e274e(onorigin/main).Built the engine-adapters heartbeat stream's input leg (ADR 0107): the production
monitor.HeartbeatStream— an in-memory latest-value store implementing both the enroll seam'sFleetReporting.Report(write, from the agents) and monitoring'sHeartbeats.Latest(read, for the aggregation loop). Concurrency-safe, latest-wins, arrival stamped from the control plane's clock — the real counterpart ofFakeHeartbeats.AC1 (agents reporting →
Latestserves each node) and AC2 (restart → empty store → no false silence-raise during warm-up, warm again after a report cycle) are covered by seam tests over the wired stream:internal/monitor/stream_test.godrives the real store through the aggregation loop: Report feeds Latest; a restart starts empty so every node reads never-reported (Latestok=false), which the silence classifier holds as pre-history (DDR 0071 / #80) — no phantom raise — and a genuinely-silent warm node still raises (the suppression is pre-history, not blanket).internal/enroll/heartbeat_stream_test.go(externalenroll_test) proves the write leg honoursFleetReporting(latest-wins, idempotent, independent per node).Heartbeat state is runtime signal, not rebuild-surviving truth (ADR 0103 §1); pattern tunings stay durable via store-runtime-ledgers.
Not wired into
main.go— per ADR 0107 themonitor.Newswap + aggregation-loop start is the fan-in slicecompose-aggregation-loop(#181), which depends on this input leg (the loop starts only when the composition root is whole). This slice ships the store component + its seam tests, unwired-not-faked.Verified:
go build ./...,go vet,go test ./...(incl.-raceon the new tests) all green.