monitoring: a service that JUST went live reads "down" on its machine card for up to 30 s — go-active drops the cached verdict but waits for the next tick instead of re-aggregating now #1685
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1685
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?
What's true today (verified on
main@56445548)A service that has just finished installing, and passed its deploy-time health check, can still wear a red down chip — and its machine card a "▲ down" alert — for up to one monitoring tick (30 s).
Seen live: brand-reach on bens-mac-04, run
20260920T213503Z.deploy-archivesettled andservice health probe … service=archive … verdict=healthylogged at 21:56:50; ~3 s later the drive opened the Services-tab Uninstall dialog and its machine card read "▲ community archive down" with a DOWN pill beside the archive (frameartifacts/legs/uninstall-from-card-archive-dialog.png). Nothing on the box was wrong.Cause
Two health truths, converging a tick late:
healthCache.InvalidateCheck(device, service)(internal/provision/health.go:345, and:594) — #1478's fix, which stopped the stale verdict living a whole check cadence (minutes).internal/monitor) cached "down" while the service was mid-install.InvalidateCheck(monitor.go:641) only deletes the cache entry; the verdict the fleet read and the cards draw from is whatever the LAST aggregation produced, and the next one isRun's ticker —aggregationInterval = 30 * time.Second(control-plane/cmd/control-plane/main.go:94). #1478's own comment says so: "makes the next 30 s aggregation tick re-probe".So the residue of #1478 is one tick: up to 30 s of a red "down" on a service that is up.
What to build
At go-active, re-aggregate now rather than at the next tick. The door already exists:
Orchestrator.Tick(ctx)is safe to call concurrently with theRunloop (monitor.go:253-256— "the Run loop every interval and Apply's verify-the-fix re-aggregation both call it", ADR 0069), and the respond ladder already does exactly this after a fix (respond.go:307).internal/provision/provision.go:223-228, today justInvalidateCheck) with a re-aggregate-now verb — or haveInvalidateCheck's composition-root wiring follow the invalidate with an asyncTick— so go-active = invalidate + tick.health.go:594) so a removed service's chip does not linger either.Acceptance
health.goupdated to the new truth; STATUS.md in the same commitTwo-way, seam-provable — no live drive needed to close; the brand-reach dialog frame will show it for free on its next fire.
Related: #1478, ADR 0069, ADR 0161 (cadence paces steady-state watching, not verification of a change), DDR 0072.
swarm-claim host=bens-mac-04 run=29015
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1685 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope