honest-error: the agent logs a post-approval VM landing failure as "install command did not reach Pending" (it did reach Pending) #1201
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#1201
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?
Split from #1200 (found while fixing the enroll-trust mint gap; not the fault fixed there).
Symptom
When a VM-mode join's post-approval landing fails (e.g.
GuestMeshJoin), theagent installpath logs the failure as:(
agent/cmd/agent/main.go,runInstall's top-levellog.Error("install command did not reach Pending", "err", err)).Why it's wrong
This is untrue for a landing failure: the request reached Pending, the operator approved it, and the landing failed after approval. Conflating "never reached Pending" with "failed during landing" misdirects diagnosis — drive
20260903T204213Z(#1200) redded atapprovewith this exact misleading line inartifacts/join-transcript.txt, and the true cause was an ssh auth refusal three phases later.Suggested shape
The install path spans redeem → consent → Pending → await-decision → land. The top-level error line should name the phase honestly (ADR 0100 — fail loud with the true cause), rather than a single "did not reach Pending" sentence that only fits the pre-Pending failures. Reachable two-way (a log-string / small phase-tagging change, revertible + unit-provable).
Advances #1153.
Agent Brief
Category: bug
Summary: The
agent installpath logs every failure with the fixed line "install command did not reach Pending", even when the request did reach Pending and failed later during post-approval landing — misdirecting diagnosis (ADR 0100: fail loud with the true cause).Current behavior:
runInstall(in the agent command) has one top-level error line —log.Error("install command did not reach Pending", ...)— emitted for any failure returned by the install flow. The install flow spans multiple phases: redeem → consent → reach-Pending → await operator decision → land (e.g.GuestMeshJoin). When a post-approval landing step fails — the request reached Pending, the operator approved, and landing failed afterwards — the log still claims it "did not reach Pending". Drive20260903T204213Z(#1200) redded atapproveshowing this line in the join transcript while the true cause was an ssh auth refusal three phases later.Desired behavior:
The top-level failure line names the phase that actually failed, honestly. A failure before Pending still reads as "did not reach Pending" (or equivalent); a failure after the request reached Pending — during await-decision or landing — reads as a phase-tagged sentence carrying the real underlying error, not "did not reach Pending". The wrapped
erris preserved in all cases.Key interfaces:
runInstalland whatever it calls to drive redeem → consent → Pending → decision → land). The flow needs enough phase awareness that the top-level error handler can attribute the failure to the phase it occurred in — e.g. threading a phase tag/error type through, or classifying the returned error — rather than emitting one hardcoded pre-Pending sentence.Acceptance criteria:
GuestMeshJoinfailure) logs a message naming that later phase, and does not claim the request "did not reach Pending".Out of scope:
GuestMeshJoinerror text). This ticket is only the top-level phase attribution in the install path.Advances #1153. Ruled
ready-for-agent(no ADR-0174 residue): this is a log-string / phase-tagging change, revertible by a later commit and provable by a unit test — a two-way door with no one-way-door surface (no credentials, no security widening, no trust accept, no data destruction, no hardware). Verified the target line exists in the agent command'srunInstall.swarm-claim host=matou-dev-server-01 run=17388
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=17388
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=17388
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17398
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17398
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17402
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17425
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17425
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17425
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17436
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17436
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17443
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17443
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=17444
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=17473
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=17487
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1201 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
432ffed1bcis not reachable from origin/main (not landed)envelope
close-report for #1201 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope