gates: refuse a health probe the app does not answer (R-618)
gates / gates (push) Failing after 2s

check-probe-matches-compose.py, a --fast gate so it bites in the hook and in CI.

The oracle was already in every template: the probed service's own compose healthcheck dials the
app on 127.0.0.1. The gate compares the .felhom.yml probe against it, statically.

Port mismatch REFUSES for every check type. Path mismatch REFUSES only where the probe can fail on
it (type api WITH expect) and WARNS otherwise, because probeHTTP calls any response healthy
otherwise - measured, not assumed. Six WARNs on the current catalog, each named in the CHANGELOG;
paperless-ngx is the loud one: no container matches the stack name, so no probe ever runs.

Four red-proofs and five decoys, suite now 51 cases. --root lets the suite judge its own clone.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
adminandClaude Opus 5 committed 2026-09-22 10:51:34 +02:00
1 parent 793c4fba00
commit 6c690a1947
4 files changed
+400

No files matched your search

+9
View File
@@ -16,6 +16,9 @@ Gates, in order (all must pass; **non-zero exit on any failure**):
2. image-resolvable network — every pinned tag still EXISTS upstream
3. volume-persistence RUNTIME — the folder a template preserves is the folder the app writes to
5. catalog-since static, needs GIT HISTORY — an image: move bumps that app's catalog_since (R-452)
7. probe-matches-compose static, instant, whole repo — the .felhom.yml health probe dials the
port/path the app's own compose healthcheck dials (R-618). Runs in the
hook: a wrong probe stops a WORKING app at the end of a successful update.
4. engine-major static, needs GIT HISTORY — no database engine pin crosses a MAJOR version
(operator ruling 2026-09-13; expires when Slice 4 / R-448 ships). Runs in the
pre-push hook, which has the full clone; on a SHALLOW clone (CI fetches at
@@ -84,6 +87,12 @@ GATES = [
# scope for the LANGUAGE checks only — the Hungarian freeze always runs on all 53, because a
# scoped push that quietly edits a neighbour's copy is precisely what a freeze is for.
("copy-i18n", "check-copy-i18n.py", True, True, False),
# R-618 (2026-09-22): the `.felhom.yml` probe must dial the port — and, where the probe can
# actually fail on it, the path — that the SAME service's compose healthcheck dials on
# loopback. Static, instant, no git history, no network. It is `--fast` deliberately: the
# defect it catches does not merely mis-colour a badge, it makes a SUCCESSFUL update stop a
# working app (the `verifying` phase waits on this probe), so it must bite at push time.
("probe-matches-compose", "check-probe-matches-compose.py", True, True, False),
]
VERDICT = {0: "OK", 1: "FAILED", 2: "INCONCLUSIVE"}