member suspend can half-converge: DisableCredentials abandons the fan-out on the first failing service, and the retry is a silent no-op #881
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#881
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?
The hazard
Orchestrator.endAccess(internal/member/suspend.go:184) runs ADR 0074's threeaccess-ending moves in order, and move 3 fans out over the catalogue's reconciler ports:
One failing service abandons every port after it in registration order. Files may be
converged while chat and code are untouched — or the reverse, depending on which port
happens to sit where in the slice. The member is disabled on some services and live on
others, and which others is an artefact of wiring order, not of anything the operator
did or can see.
What makes it more than a partial write: the retry is a silent no-op
Suspendsaves the ledger toStatusSuspendedbefore callingendAccess(
suspend.go:161-165), and audit-logs only after it returns nil. So a mid-fan-outfailure leaves:
StatusSuspended— savedo.Audit(...)is never reachedThe operator retries — the honest reaction to an error — and hits the idempotence guard at
the top of the switch:
The retry returns success without re-running a single move. The un-converged services
stay un-converged permanently, and the operator now has a green answer telling them the
member is paused. A suspended member keeps a working git-over-HTTPS token or a live
Mattermost desktop session indefinitely — which is the exact bypass ADR 0074's move 3
exists to close, since the REST and desktop clients never pass the front-door browser gate.
Unsuspend→Suspendis the only path that re-runs the moves, and nothing tells theoperator that is what they need to do.
Removal has already ruled on this — move 3 just doesn't obey it
internal/member/removal.go:14-23states the doctrine in the codebase's own words:Removal's fate verbs behave exactly that way. Removal's access moves do not: it
calls the same
endAccesswholesale (removal.go:359), so a removal carries the identicalhalf-converged tail, and then proceeds to move data on the strength of an access-ending
step that only partly happened — inverting ADR 0075's "access ends before any data moves".
So this is not a new decision. It is applying a rule the repo already made in one half of
offboarding to the other half.
Proposed shape
DisableCredentialsattempts every deployedport and returns an aggregate naming each service that failed — never abandoning the
ports behind a failure. Same for
EnableCredentials(the reversal has the identicalshape and the identical bug).
tell "paused, converged" from "paused, three services still live" and a retry re-runs
only what is outstanding rather than returning nil. Removal's per-service fate plan is
the precedent to copy.
explaining it. An access change that half-happened is precisely the event an audit log
exists for.
the failed service named, its verb retryable.
Point 1 alone removes the wiring-order lottery and is worth landing on its own if 2–4 want
a design pass first.
Why now, and why it is not urgent
Found while closing #875 (the reconciler-port audit behind the phase-2 regression chain).
It is currently unreachable on the rehearsal ladder — #875's deployed-set gate means
an un-deployed service no longer manufactures a port to fail on, and the drives deploy only
files, so the fan-out has exactly one port to walk. That is also why no drive will ever find
it: it needs a community with two or more deployed services where one is genuinely
unhealthy at suspend time, which is a real production shape and not a rehearsal one.
Filing rather than fixing under the chain, per Ben's call.
Acceptance
service, and reports which failed.
a silent success.
EnableCredentials(unsuspend) carries the same guarantees.endAccess.swarm-claim host=elitebook-distributed-server-03 run=12393
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #881 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope