agent: heartbeat-ingest — fleet reporting feeds the production heartbeat stream over HTTP #208
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#208
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
Monitoring spec #18. Gap audit 2026-07-30 (post #191–#195 sweep of the composition roots and both app shells). Filed per the #191–#195 precedent: a close-out blocker of #183 found while preparing the run, confirmed by Ben.
What's true today
What to build
The fleet-reporting ingest route — device-authenticated, fed by the enrolled agent's reporting face on its cycle — writing into the already-composed production stream. The agent reports over HTTP; the aggregation loop sees each node's Latest refresh within a cycle and a restart re-fills within one (ADR 0107's posture, already built downstream).
Acceptance criteria
Task manifest
Blocked by
Blocks
#183 — leg B·6 (the pulled plug must be noticed).
Done in
841c393(onorigin/main).The composed heartbeat stream (#174) finally has its inlet: the enroll seam's second face (
enroll.FleetReporting) over HTTP.enrollwire.RegisterFleetReportingmountsPOST /api/v1/fleet/reportover the production sink;enrollwire.ReportClientis the enrolled agent's real reporting client. A not-enrolled refusal rides the typed taxonomy end to end (enroll.ErrNotEnrolled↔ 403not_enrolled) so the agent tells an authentication refusal from a transport fault (ADR 0100). A landed beat is 204.monitor.NewAuthenticatedStreamgates each beat against the enrolled-node set (the one enroll ledger'sNodeStatus) before writing into the in-memory stream the aggregation loop reads (ADR 0107 — heartbeats are runtime signal, never durable truth; ADR 0070 — the control plane stamps arrival, the device clock is never trusted). A stranger can never fabricate a fleet's presence.controlapi.WithFleetReporting(NewAuthenticatedStream(enrollLedger, beats))in the whole composition; at rest it is the honest refusal (restingEnroll.Report— nothing is enrolled to keep the fleet aware).ReportClient(retires theunbuiltFleetstub, the slice this was waiting for).Acceptance:
Evidence:
internal/enrollwire/fleet_reporting_integration_test.godrives report → silence over the wire with the REAL aggregation reading the same stream;internal/monitor/authenticated_stream_test.gounit-tests the authentication. STATUS.md updated (header + milestone log).Note: no Go toolchain in the Sandcastle sandbox (#198) — Go verified by careful review against gofmt (tabs/alignment) and the seam contracts; the seam CI runs the real build.
mem_mb: nullwith nochipbecause no per-service monitoring slice exists #1433