The copy gate's credential case convicts again; the decoy suite is a gate (R-1115)
gates / gates (push) Successful in 6s

The decoy moved, not the gate: 326f846 (R-1102) removed gokapi's login line, and the case appended an English
login to a template with no Hungarian one left. It now rewrites wger's existing line in place, plus a new case
(calibre-web admin123 -> admin1234); both refused. gate-decoys joins catalog_gates.py's full run (~196 s, not
--fast). test_catalog_gates.py was red since last night (count 18 -> 20).

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-10-17 08:46:17 +02:00
1 parent af75dc0fb5
commit 33a4b3b518
6 files changed
+56 -23

No files matched your search

+9 -1
View File
@@ -33,6 +33,8 @@ Gates, in order (all must pass; **non-zero exit on any failure**):
runs (R-1007): an Immich bump without a re-proven repair is refused, not silently skipped
14. guide-version static, instant, ADVISORY — a user guide's checked_version is not the image tag the app
runs: a WARN naming both versions, and exit 0 always (it never fails a push)
15. gate-decoys the decoy suite (test_gate_decoys.py) — each gate above still convicts its decoys
(R-1115). ~3 minutes, needs PyYAML: the full run only, never --fast
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
@@ -149,6 +151,11 @@ GATES = [
# R-1097 (2026-10-16): a household-data path an image keeps in its own anonymous VOLUME (RomM's /romm/assets) is
# mounted by the template, or no app backup takes it. Measured registry; static, stdlib only: the hook and CI.
("image-volumes", "check-image-volumes.py", False, True, False),
# R-1115 (2026-10-17): the gates' OWN decoy suite — every gate above is red-proved against its decoys here. It
# was not in this table, so a case that stopped convicting (a template edit removed its premise) failed for a
# night with nobody looking. Static (a local clone, a stub docker), but ~3 minutes and it needs PyYAML, so NOT
# --fast: the full run only, like the two slow gates.
("gate-decoys", "test_gate_decoys.py", False, False, False),
]
# 3 (R-605): the gate's HARNESS refused to run — its canary failed or it had nothing to judge — so NO app was
@@ -214,7 +221,8 @@ def main(argv):
" cross-major engine move is caught at push time, not here." % ", ".join(needs_history))
if skipped:
print(" --fast SKIPPED: %s — they need network and a container runtime and take minutes\n"
" per app, so they are NEVER in a hook. They remain deliberate periodic runs: start\n"
" per app (gate-decoys: ~3 minutes on its own), so they are NEVER in a hook. They\n"
" remain deliberate periodic runs: start\n"
" of a catalog campaign, before a publish train, or when a template's volumes:/image\n"
" changes. Run them with no --fast, on a scratch host." % ", ".join(skipped))
+7 -2
View File
@@ -70,7 +70,11 @@ class CatalogGatesFastTest(unittest.TestCase):
# 16 since 2026-10-15: guide-version — advisory (exit 0 always), fast, no history: the hook AND CI.
# 17 since 2026-10-16: login-kind (controller 0.320.0) — fast, no history: the hook AND CI.
# 18 since 2026-10-16: image-volumes (R-1097) — fast, no history: the hook AND CI.
self.assertEqual(len(mod.GATES), 18)
# 19 since 2026-10-16 night: db-credentials (R-1106) — STALE AGAIN until 2026-10-17 (that night did not
# update this count; found by burndown 3, because this file is in no gate run either).
# 20 since 2026-10-17: gate-decoys (R-1115) — the decoy suite itself; ~3 min, so the full run only.
self.assertEqual(len(mod.GATES), 20)
self.assertIn("db-credentials", [g[0] for g in mod.GATES if g[3] and not g[4]])
self.assertIn("login-kind", [g[0] for g in mod.GATES if g[3] and not g[4]])
self.assertIn("image-volumes", [g[0] for g in mod.GATES if g[3] and not g[4]])
self.assertIn("guide-version", [g[0] for g in mod.GATES if g[3] and not g[4]])
@@ -78,7 +82,8 @@ class CatalogGatesFastTest(unittest.TestCase):
self.assertIn("data-key", [g[0] for g in mod.GATES if g[3] and not g[4]])
self.assertIn("mem-limit-sum", [g[0] for g in mod.GATES if g[3] and not g[4]])
self.assertIn("onboarding", [g[0] for g in mod.GATES if g[3] and not g[4]])
self.assertEqual([g[0] for g in mod.GATES if not g[3]], ["image-resolvable", "volume-persistence"])
self.assertEqual([g[0] for g in mod.GATES if not g[3]],
["image-resolvable", "volume-persistence", "gate-decoys"])
self.assertIn("test-record", [g[0] for g in mod.GATES if g[3] and not g[4]]) # runs in CI too
# the gates that need git history are the ones the CI half cannot run (R-452's shallow gap)
self.assertEqual([g[0] for g in mod.GATES if g[4]], ["engine-major", "catalog-since", "test-record-move"])
+16 -9
View File
@@ -68,6 +68,7 @@ COVERS = {
"image-volumes": "the data path mounted only in a COMMENT, on ANOTHER service (romm-db), at the PARENT (/romm) or a CHILD (/romm/assets/x), or only as a top-level volume never mounted - each refused; a steps/ file without it refused; vs the facts: a named volume or a bind AT the path passes, an image not in the registry is not judged, no templates/ is rc 3 (R-1097)",
"login-kind": "login_kind written only in a COMMENT, only inside the English i18n: block, or under ANOTHER mapping (resources:) - none is the field, each passes; vs the facts: an unknown value (`magic`), a wrong case (`EMAIL`), the key twice, and no templates/ at all (rc 3, never a pass); the three known values pass (controller 0.320.0)",
"copy-i18n": "Hungarian edited in a COMMENT/README/display_name (label, not copy) vs a real frozen string changed; an English block that is not English, is not matched to a Hungarian twin, or rewrites a credential (R-560). A retrieval promise REGISTERED in ALLOWLIST_EN passes only for its own app+path+sentence with a real reason; an entry for another app, a rewritten sentence, a stale entry or a two-word reason convicts (R-594). Also the DEGRADED mode CI actually runs — PyYAML shadowed out, freeze only (R-595). THE USER GUIDE (2026-10-15): a download-source name only in a COMMENT or in docs_url passes; vs the facts - guide strings not frozen, checked_version in the English block, an empty steps list, an FAQ entry with no answer, an unquoted version, an English guide with no Hungarian one, more English sections than Hungarian, a different step count, and a source name in either language",
"gate-decoys": "this suite, run as a gate of the full run (R-1115): every case above is a decoy of its own gate, and ONE case that stops convicting turns the whole run red - measured 2026-10-17, when the credential-token case had lost its premise (gokapi's login line removed by 326f846) the suite printed FAIL and exited 1; the copy-i18n credential cases now edit an EXISTING line, so a removed premise stops the suite (`edit` raises) instead of passing",
}
fails = []
@@ -1645,16 +1646,22 @@ i18n:
[(PB, en_with(*PROMISE)),
(AL, allow(("privatebin", "app_info.use_cases[4]", "can still be restored", "it's fine")))],
expect_rc=1, must_contain=("no reason worth the name", "retrieval promise the Hungarian does not make"))
# A credential is a LOGIN, not prose: gokapi's default_creds carries admin / adminadmin.
GK = "templates/gokapi/.felhom.yml"
# A credential is a LOGIN, not prose: wger's default_creds carries admin / adminadmin.
# The case REWRITES the existing English line in place (R-1115, 2026-10-17). It used to APPEND a
# second `i18n:` block to gokapi; commit 326f846 (R-1102) removed gokapi's Hungarian login line, so
# the case kept running against a template with no login to compare and the gate rightly said OK.
# An in-place replace cannot rot that way: when the line is gone, `edit` stops the suite.
WG = "templates/wger/.felhom.yml"
case_copy("FACT: a credential token rewritten in translation", clone,
[(GK, lambda t: t.rstrip("\n") + """
i18n:
en:
app_info:
default_creds: "Sign in: administrator / hunter2"
""")],
expect_rc=1, must_contain=("credential token",))
[(WG, lambda t: t.replace(" default_creds: 'admin / adminadmin'",
" default_creds: 'Sign in: administrator / hunter2'"))],
expect_rc=1, must_contain=("credential token 'admin'", "wger"))
# The value itself reworded (a digit token, CRED_TOKEN), with the account word kept.
CW = "templates/calibre-web/.felhom.yml"
case_copy("FACT: a credential value reworded in translation (one digit added)", clone,
[(CW, lambda t: t.replace(" default_creds: 'admin / admin123'",
" default_creds: 'admin / admin1234'"))],
expect_rc=1, must_contain=("credential token 'admin123'", "calibre-web"))
case_copy("FACT: an i18n block for a language the controller does not render", clone,
[(PB, lambda t: t.rstrip("\n") + "\ni18n:\n de:\n description: \"Verschluesselte Notizen\"\n")],
expect_rc=1, must_contain=("renders en only",))