Health checks scan for broken-app signatures and refuse to pass on an unassertable response #417
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#417
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?
The declared health checks (
control-plane/cmd/control-plane/servicehealth.go) assert decoded semantics — good. What's missing is the negative half, learned from the mauke fleet's probe harness: their SnappyMail served "Permission denied! SnappyMail can not access the data folder" with HTTP 200 for days — unit active, container Up, fleet reporting zero failed units. A status code (and even a 200-with-body) is not a health signal. Seedocs/GOTCHAS.md#8.Acceptance criteria
noDeclaredCheck).Source: the clan-community (mauke reference fleet) lessons review,
docs/research/2026-08-10-clan-community-lessons.md(lands on main this sitting), lesson 6.Scope note: this ticket improves the checks themselves at their existing run points (provisioning / rollout / rehome). Whether monitoring re-runs them on a schedule is the separate ruling #422 — do not add a scheduler here.
Landed in
678812fonmain.The negative half now runs before every HTTP-bodied check trusts its decode, in
control-plane/cmd/control-plane/servicehealth.go:errorSignatures+scanHealthBody): permission-denied phrasings (mauke's SnappyMailPermission denied! SnappyMail can not access the data folder), stack/traceback markers, PHP fatal/parse, framework error pages, 5xx bodies served as 200. Calibrated against every healthy fixture — no bareerror/maintenance, no operator-renamable token (community name/title, Nextcloudproductname), case-insensitive. Calibration recorded in the source comment.errNotAssertedsentinel): an empty or sub-floor 200 is not-asserted, never healthy (ADR 0071 / ADR 0112noDeclaredCheckhonesty), and no longer a cryptic decode error.productnamestays green (covered by the calibration guard test)./about/healthruns the scan at floor 0: an empty healthy body is fine (status is the assertion), an error page served with a 200 still reds.Tests:
control-plane/cmd/control-plane/servicehealth_signature_test.go—scanHealthBodyoutcomes, healthy-fixture calibration guard (incl. renamed community productname), every check builder refusing a 200 error page, and the floored checks reporting not-asserted on an empty 200 (meetings exempt). Full package tests green; pre-push gate green.Scope honoured (#422 ruling): checks hardened at their existing run points — no scheduler added here. STATUS.md header marks #417 LANDED.