observability: fleet-recent-events — devices' RecentEvents(window) — joins, deploys, and the never-empty rule's row one #826
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#826
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
Feature spec: #796 — control-panel observability child spec: activity feed (P12) (DDR 0206).
Design ticket #763; slice-map fan-in #770; wayfinder map #7.
Slice
fleet-recent-eventsofdocs/slices/observability.yaml; covers spec #796 stories 54–61 (devices face), 14–17 (never-empty half).What to build
The devices face: the enroll ledger's joins, removals and role changes; provisioning's
deploy started / completed / failed and per-service health-check failures; and founding's
recorded stand-up milestones — the never-empty rule's row one.
A device approval renders as "mātai joined the fleet" — subject: the device — never as who
approved it. That is the subject fence producing a sensible sentence rather than a hole, and no
row, detail or drill-in carries the approving operator anywhere.
Loud limit from the spec (#796 open gate G5, veto-open, non-blocking).
founding.StandupEventcarries a step, a stage and a message and NO timestamp, and the stand-up state is the operator
app's, not the control plane's. The proposed default — which this manifest is written against — is
the additive, revertible change: stamp the stand-up events and carry the four milestones on the
handover unit founding already hands into the fleet at seeding (ADR 0043's state handover), provable
by founding's existing seeding tests. This is the only write-path touch in the whole feature.
Either answer keeps the never-empty rule: a founding milestone whose time the control plane does
not hold does not render at all — the feed states fewer, true rows rather than a fabricated
one (ADR 0100) — and a community that can render this surface at all has a recorded gateway.
A G5 veto retires only the milestone half of this slice; the enroll and provisioning halves stand.
Acceptance criteria
RecentEvents(window)is called, then it derives joins, removals and role changes, plus deploy started / completed / failed and per-service health-check failures — and no new table, file, stream or collector is created.Blocked by
observability:activity-ops-event-contractdevice-add:approve-enroll-land(#60 — done, satisfied)provisioning:provision-active-and-partial(#73 — done, satisfied)founding:resumability-and-logging(#67 — done, satisfied)Task manifest
Emitted by
/to-ticketsoverdocs/slices/observability.yamlin an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.swarm-claim host=elitebook-distributed-server-03 run=10073
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Building the devices face I found the record reality behind the three named sources, and three revertible calls needed making. All are two-way doors (revertible by a later commit, provable by the seam tests shipped here, none on the one-way-door list).
1. Removals and role changes derive nothing today (story 56). The enroll ledger keeps no removal or role-change record —
Statusis monotonic (redeemed→pending→approved→enrolled + declined/expired), nothing ever deletes an enrolled node, andRoleis set once from the code and never mutated. A projection can only reshape records that exist; materialising them is a new store, explicitlyout_of_scope. So the devices face derives joins (from the grant) and, per ADR 0100, emits fewer true rows rather than fabricated removal/role-change rows. Why two-way: the face gains those rows the moment the ledger records them; proven by:enroll/recentevents_test.go.2. The two founding milestones the control plane genuinely holds are the enrolment grant and the deploy record (clauses 3/4). Founding records no time for "community founded", "control plane seeded" or "portal live" (
State.Foundedis a bool;DeployStatusand the seed step carry no time; the seed milestone is recorded after the ledger handover, so it never rides it). The one genuine pre-handover time is the gateway deploy completion — stamped additively (G5 default) and carried on the existing ADR 0043 handover unit (enroll.State). Combined with the enrolment grant'sNodeCert.NotBefore(the join), that is exactly clause 3's two held milestones; the un-held three do not render (clause 4, ADR 0100). Why two-way: the stamp is an additive field + a default-time.Nowclock, revertible wholesale; proven by: founding's existing seeding tests stay green andTestStory24reads the milestones off the captured handover.3. Provisioning holds no deploy time, so its rows carry the honest-zero time (clause 2).
provisionkeeps only a latest-winsactiveOutcome per device — no timestamp, no history — andfleetstate.Readerexposes no device activation time. Adding a timestamped deploy record isout_of_scope("no new table/file/stream/collector") and the feature's only write-path touch is the founding stamp. So provisioning'sRecentEventsprojects its standing per-service health-check failures with provisioning's own words/tokens/log-ref/subject and the honest-zeroAt(ADR 0100 — no fabricated time): they surface in an all-time read and a bounded window naturally excludes them until provisioning records a deploy time. Filing a follow-up for that write-path record. Why two-way: purely additive projection, deleted or re-timed by a later commit; proven by:provision/recentevents_test.go.Continuing the task under these rulings.
close-report for #826 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope