stand-up retry re-deploys over root-SSH after activation closed that door — Permission denied on a converged gateway #550
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#550
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?
Symptom
2026-08-14 cold proof drive: after a genuinely-successful gateway activation was falsely faulted (#549), Retry the stand-up re-drove the deploy and the control-plane row failed for real:
The re-deploy pushes sops secrets over
root@127.0.0.1— but the previous attempt's activation already applied the hardening that closes the root-SSH door (the #414 triad, working as designed). The retry re-uses a transport the successful activation ceremonially destroyed.Cause
FoundingStandupPrivatedocuments re-driving stand-up-private as THE retry (spec §2, "Idempotent — a re-entry resumes"), but the control-plane deploy leg is only idempotent BEFORE activation: once the hardened config is live, root-SSH secret-push cannot work again. The retry path has no awareness of the activation boundary — it neither detects the gateway is already converged (skip forward) nor switches to the post-activation transport the later rows (dashboard/brand/admin) use.Rule
A stand-up retry that reaches the control-plane row against an already-activated gateway must not attempt the pre-activation root-SSH path. Either: probe convergence first (the activated system generation / service health) and mark the row done, or route the re-deploy through the post-activation channel. "Permission denied against the door we ourselves closed" should never surface to the operator as a deploy failure.
Proof
Drive founding to a successful activation; force a fault after it (or use #549 until fixed); Retry the stand-up: the control-plane row must pass (converged-skip or new transport), and the drive must continue to dashboard/brand/admin.
Chained with #549 on the 2026-08-14 cold drive: #549 faults every fresh drive at activation, and this defect walls every retry — together they block the cold-machine proof (ADR 0110/0171, #425 ride).
Verification: Confirmed the founding stand-up retry/idempotency machinery exists (
internal/founding— standup/journey code, explicitly documented as re-driving on retry) with no activation-boundary awareness found in it; consistent with the reporter's live-drive evidence (exactPermission deniedtranscript againstroot@127.0.0.1after a real activation). Not already implemented — no convergence-skip or post-activation transport switch found for the control-plane row.Agent Brief
Category: bug
Summary: Retrying stand-up after the gateway has already activated re-attempts the pre-activation root-SSH secret push, which activation itself has deliberately locked out — the retry fails with a permission-denied error instead of recognizing the gateway is already converged.
Current behavior:
Stand-up-private's retry path re-drives the deploy from the beginning, including the control-plane row's root-SSH secret push (e.g.
sops-nixprovisioning). This is correct for retries that occur before activation. But once a prior attempt's activation has succeeded, it deliberately closes the root-SSH door as part of its hardening (the existing security triad) — so a later retry hitting the control-plane row attempts the same pre-activation transport against a door that no longer opens, and fails withPermission denied (publickey,keyboard-interactive). The retry path has no way to detect that the gateway is already converged, and no alternate transport for the rows that come after activation (the ones the later dashboard/brand/admin rows already use).Desired behavior:
When a stand-up retry reaches the control-plane row against a gateway that has already activated, it must not attempt the pre-activation root-SSH path. Instead, either: (a) probe the gateway's convergence (e.g. the activated system generation, or service health) before attempting the row, and if already converged, mark the row done and continue; or (b) route the row's re-deploy through the post-activation transport channel the later rows already use. A retry against an already-closed root-SSH door must never surface to the operator as a deploy failure — the drive continues on to the following rows (dashboard/brand/admin) either way.
Key interfaces:
Acceptance criteria:
Permission denied.Out of scope:
swarm-claim host=matou-dev-server-01 run=6551
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #550 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope