Deploy reports success when eval preflight skipped every node — operator sees S5x health-check copy instead of the deploy failure #429
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.
Blocks
Reference
Matou/idss#429
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?
Defect (live repro, Tairea Anau manual drive 2026-08-11)
The docs-editing phantom placement (filed separately) made the gateway fail the eval preflight. What the operator then saw was P4-S5x “active — a service failed” with the no-coverage copy (“The failed service is not counted anywhere…”) — as if the deploy had held and only a health check failed. In truth nothing was deployed at all: no nix build, no switch, the node still runs the pre-deploy closure.
Cause — two layers
Deploy.Run(internal/clan/adapter.go:121) excludes a non-evaluating node intores.Skippedand — in non-Strictmode — returns(res, nil)when no other failures occurred. A deploy where every scoped node was skipped is a successful no-op by its return values.applyRevision(internal/provision/deploy.go:282) checks only the error. It never looks atDeployResult.Reconciled/Skipped, so the services step marks done andhealthGateruns against an unchanged node — every check fails honestly, and the failure surfaces on the wrong screen with the wrong story and a useless Retry (RetryService re-runs only the check, never the deploy).This violates the fail-loud posture (ADR 0100): the eval error — which names the root cause precisely — was classified, carried in
res.Skipped[].Detail, and then dropped.Fix
applyRevisionmust treat a requested node that did not reconcile as a deploy failure carrying the skip's classified kind/detail (config_eval/missing_var) — either by passingStrict: truefor provisioning's single-node deploys or by checkingReconciledcovers the requested nodes. The operator lands on the deploy-failed surface naming the eval error, not on S5x.Acceptance
DeployFailure(stepdeploy-services, kindconfig_eval), with the eval excerpt in the step log — never as S5x.Fixed in
9ba7074(on origin/main).applyRevision(internal/provision/deploy.go) now reads the*DeployResultinstead of only the error: a requested node absent fromReconciledis treated as a deploy failure, and its preflightSkippedentry is lifted back into a classified*clan.Failure(kindconfig_eval/missing_var, the eval excerpt inDetail). A single-node deploy whose node fails eval preflight now surfaces on the deploy-failed surface — stepdeploy-services, classified — naming the eval error, never S5x; the health gate never runs against the unchanged node.TestDeploy_AnEvalPreflightSkipIsADeployFailureNotSilentSuccessininternal/provision/deploy_test.goassertsrun.Failureclassified config_eval with the excerpt,run.Outcome == nil, deploy step failed, health step never started.internal/clan/adapter_test.goandclan_test.go(reconciled + skipped both populated).FakeConfig.BadNodes.fail-loud, ADR 0100. STATUS.md updated. Sibling #428 (the phantom placement that triggered the eval failure) remains separate.