update: runHealth passes a rollout stage with no declared check #276
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#276
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?
internal/update/rollout.go:344—runHealthreturns nil whenhc.Run == nil, so a service with no declared health check counts as healthy.deployStagesetsst.Healthy = true,RolloutrecordsApplied, Healthy = true, true(line ~296), the fleet is recorded converged andOutcomeAppliedenters history. The Updates surface renders "applied, healthy" for a revision nothing verified — a direct ADR 0112 violation (no check ⇒ no activation).The correct posture already exists in this repo:
internal/provision/health.go:210treats the identical situation asHealthy = falsewith anoDeclaredCheckfault.Acceptance
clan.HealthCheck.Runis nil records the stage (and the rollout result) as not healthy, with a named no-declared-check fault — never a silent pass.Healthyis false end-to-end (stage → result → history outcome).Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).
Fixed in origin/main
9946893.runHealth(internal/update/rollout.go) returned nil for a nilclan.HealthCheck.Run, sodeployStagemarked the stage healthy,RolloutrecordedApplied, Healthy = true, true, the fleet converged andOutcomeAppliedentered history — a direct ADR 0112 violation. It now returns a sentinelerrNoDeclaredCheck;deployStagenames thenoDeclaredCheckfault ("no health check declared") on theStageResult, anddeployGatecarries it ontoRolloutResult.Fault. So the stage and the result both record not-healthy with a named fault, the rollout rolls back rather than converging on the unverified revision, and history recordsOutcomeRolledBack— mirroringprovision's posture (internal/provision/health.go).Acceptance:
controlapipassingHealth, which had encoded the bug asa nil Run passes)TestRollout_NoDeclaredCheckIsNotASilentPassasserts the fault andHealthy == falseend-to-end (stage → result → history outcome) ✓go build/go vet/go testgreen (internal/..., control-plane).invalid-policy— the #12 policy gate's label check has a 6s retry budget, records no verdict error line, and blames a policy file that is valid (the #1359 defect in the other preflight gate) #2052