reaper/lease: a rented gateway is destroyed at the broker TTL with no loud standing warning on the operator app in the hours before the cliff (#2189 follow-up) #2192
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.
Dependencies
No dependencies set.
Reference
Matou/idss#2192
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
A rented gateway carries a broker TTL lease (default 24h, ADR 0189). Its community renews the lease on every pass (the standalone
heartbeat.LeaseRenewLoop, #2189). But if the renew keeps failing — or the box is off the ledger / mis-keyed under another name — the broker's reaper destroys the box at the TTL with no loud standing condition on the operator app in the hours before the cliff. #2189 destroyed tu-ia's live community silently at 24h05m; the renewer fix stops the no-renew case, but a renew that keeps failing is still a silent cliff.The heartbeat already raises a standing condition internally on a 409 not-rented (
heartbeat.ErrLeaseNotRented→Status.LeaseOrphaned/LeaseDetail/LeaseSince, and the newLeaseRenewLoop.Status()carries the same). What is missing:LeaseOrphaned/LeaseDetaillease condition is currently log-only — no P11 Network / dashboard surface renders it. Wire it so an operator sees "this box's lease has not renewed sinceWhy
#2189's renewer wiring stops a healthy rented own-domain community from ever being reaped. It does not make a failing renew visible: the TTL is still a cliff with no warning. The reaper destroying a live community is the worst-case data loss in the fleet, and today it is silent until it has happened.
Scope
LeaseRenewLoop.Status()lease condition on the operator app (the Network / Address section is the natural home — it already projects the heartbeat'sStatus()).Related
internal/heartbeat/heartbeat.go(LeaseRenewLoop,Status.LeaseOrphaned),control-plane/cmd/control-plane/network_wiring.go(the Network read that could project it).Filed as the out-of-scope follow-up #2189's acceptance carved out.
Triage Notes
Category:
enhancement(already applied).State →
needs-design(missing-design gate).What we've established:
internal/heartbeat/heartbeat.goraises the standing condition (Status.LeaseOrphaned/LeaseDetail/LeaseSince, andLeaseRenewLoop.Status()carries it), andcontrol-plane/cmd/control-plane/network_wiring.goalready projects the heartbeat'sStatus()into the Network/Address read. So implementation is not blocked on code — it's blocked on a design contract.Why
needs-design(notready-for-agent): the issue references an operator-app UX surface (a new P11-network standing indicator) that does not exist as a wireframe, and a threshold/escalation decision that isn't recorded. The design contract an agent would build against isn't ready. Routes back togrill-ux-with-docs/wireframefor this feature (the lease-condition standing indicator on P11-network + its warning-window DDR) before implementation; once that contract lands and the backend wiring above is in place, this becomes a straightforwardready-for-agentbuild.Not a one-way door: this is additive (a warning before the existing reaper behaviour, reducing silent data loss, not widening destruction), so no
ready-for-humanresidue — it is a design-tier gap, routed by the missing-design gate.