provision: health-gate-honesty — a service with no declared check never activates on nothing #217
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#217
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?
Parent
Provisioning spec #17. Contract-gap sweep 2026-07-30 (provisioning / brand / URL walkthrough), filed on Ben's request.
What's true today
runCheck(internal/provision/health.go) treats a service that declares no health check as a vacuous pass: the service goesactive,Healthy()reads true for it, andPortalLinks.ServiceUppublishes it — on nothing. The code's own caveat says "every v1 catalogue port ships one (ADR 0062)", but onlyfilesactually registers a check (#204); the other catalogue services would today activate unverified.What to build
The no-check outcome goes honest. A service with no registered check must not read as a real health pass: no portal publication, no
Healthy() == true, and a named state on the deploy surface. Whether that means withholding activation entirely (fail-loud, ADR 0100) or a first-class "active — unverified" state is a ruling; ask before building.fileswith its real check is unchanged; the resting composition is unchanged.Acceptance criteria
Healthy()stays false,ServiceUpis never called, and the state is named on the surfacefileswith its registered check (#204), When the deploy completes, Then behaviour is unchanged — a real pass activates, a real failure lands P4-S5xTask manifest
Blocks
Nothing directly — but every future catalogue-port ticket lands against whichever ruling this ticket fixes.
Ruled by Ben, 2026-07-30 — withhold activation. A service with no declared check does not go active: the deploy lands it in the named-fault resting state (P4-S5x family, summary "no health check declared"),
Healthy()stays false,ServiceUpis never called. Retry re-reads the registry so a later-registered check can pass it without redeploying. Recorded as ADR 0112 (docs/adr/0112-design-no-declared-check-no-activation.md). Theneeds_human_decisionis resolved — build against the ADR.Done — landed on
mainasa070812. Built against Ben's ruling (ADR 0112: withhold activation).The fix:
runCheck's no-check branch (internal/provision/health.go) no longer setsHealthy = true. A service whose port declares no check now lands the named fault"no health check declared",Healthy()stays false,ServiceUpis never called, and the device rests in the existing named-fault state (P4-S5x). Retry re-reads the registry, so a later-registered catalogue-port check (ADR 0062) passes the service without a redeploy.AC coverage:
internal/provision/health_test.goTestDeploy_AServiceWithNoDeclaredCheckDoesNotActivateOnNothing— state =active — a service failed,Healthy()false, portal published only the really-passed service, Retry offered; a late-registered check + Retry then activates it.files#204 unchanged): the #204 seam (provision_brand_health_test.go) is green — a real pass activates, a maintenance probe withholds; and its composition seam is extended with a no-check service (chat) withholding in the whole composition.Also corrected the stale cross-references that cited "provisioning's vacuous pass": monitor's
reRunCheckcomment (behaviour unchanged, ADR 0071), and the controlapi P4 API seam (now runs real passing checks rather than leaning on the vacuous pass). Note: ADR 0112 was landed by the rulings commit2f9b93c(identical ruling) — the rebase took that authoritative copy.No Go toolchain in the sandbox (#198); verified by close review over the whole affected set (the provision deploy/health path + its two composition seams).
preflight-red(the #20 probe has no retry), and the empty verdict error block sends the healer chasing a guard that never broke #1359preflight-red(the #20 probe has no retry), and the empty verdict error block sends the healer chasing a guard that never broke #1359preflight-red(the #20 probe has no retry), and the empty verdict error block sends the healer chasing a guard that never broke #1359invalid-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