The copy gate's credential case convicts again; the decoy suite is a gate (R-1115)
gates / gates (push) Successful in 6s
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:
1 parent
af75dc0fb5
commit
33a4b3b518
6 files changed
+56
-23
No files matched your search
@@ -1,3 +1,16 @@
|
||||
## 2026-10-17 — the copy gate's credential case convicts again; the decoy suite is a gate (R-1115)
|
||||
|
||||
- **What moved: the decoy, not the gate.** „FACT: a credential token rewritten in translation" appended a second
|
||||
`i18n:` block to gokapi; commit `326f846` (R-1102, 2026-10-16) removed gokapi's Hungarian login line, so the case ran
|
||||
against a template with no login to compare and `check-copy-i18n.py` rightly said OK. The case now REWRITES wger's
|
||||
existing English line in place (a removed premise stops the suite instead of passing), plus one new case: calibre-web's
|
||||
`admin123` reworded to `admin1234` — refused, naming the token. Both rc 1, red-proved (the old case rc 0 on today's tree).
|
||||
- **`gate-decoys`** (`test_gate_decoys.py`) is now a row of `catalog_gates.py` — the full run, not `--fast`: it takes
|
||||
~196 s (measured) and needs PyYAML. Declared in its own `COVERS`. 243 cases green.
|
||||
- `test_catalog_gates.py` was red on `main` since 2026-10-16 night (it counted 18 gates; `db-credentials` made 19 and
|
||||
nobody updated it — it runs in no gate either). Now 20, and `db-credentials` asserted fast.
|
||||
- The copy gate over the whole catalog after the fix: OK — no real template convicted.
|
||||
|
||||
## 2026-10-16 (night) — gate `db-credentials`: every database password travels with the backup (R-1106)
|
||||
|
||||
- New gate `scripts/check-db-credentials.py` (registered in `catalog_gates.py`, `--fast`, stdlib only): a database
|
||||
|
||||
@@ -51,9 +51,9 @@ deployed `app.yaml` (customer secrets) is never overwritten. Full deploy details
|
||||
papra** — it would pass on the exact defect it exists to catch. CI was rejected at the time (neither
|
||||
repo had any); it now exists and re-runs `--fast` on every push (below). R-161 was closed
|
||||
2026-10-05, accepted by the operator. **Update 2026-08-02:** `.githooks/pre-push` now runs `catalog_gates.py --fast` on every
|
||||
push, which is every gate except `image-resolvable` and `volume-persistence` (the range-reading ones,
|
||||
push, which is every gate except `image-resolvable`, `volume-persistence` and `gate-decoys` (the range-reading ones,
|
||||
engine-major among them, get the push range) — those two need network and a container
|
||||
runtime and take minutes per app, and a push that pulls images and starts containers gets bypassed
|
||||
runtime and take minutes per app (`gate-decoys`, the decoy suite itself, takes ~3 minutes; R-1115), and a push that pulls images and starts containers gets bypassed
|
||||
within a week, after which the bypass is the habit. They stay deliberate periodic runs. The hook is
|
||||
per-clone (`git config core.hooksPath .githooks`) and `git push --no-verify` bypasses it, which is
|
||||
why gate 1 alone cannot be the whole story — CI re-runs the entry point on every push and **emails
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# REPORT — gate `db-credentials` (R-1106) (2026-10-16, night)
|
||||
# REPORT — the copy gate's credential case convicts again; the decoy suite is a gate (R-1115) (2026-10-17)
|
||||
|
||||
Part of the night task „restore that works after a reinstall"; full report: felhom.eu `REPORT-night-2026-10-17.md`.
|
||||
Design: felhom.eu `architecture/07-backup-architecture.md` §7.4.
|
||||
Part 1 of burndown 3; full report: felhom.eu `REPORT-burndown-3-2026-10-17.md`.
|
||||
|
||||
- New gate `scripts/check-db-credentials.py`: every variable that feeds a database service's password must be a
|
||||
`type: secret` deploy field (only those travel in the backup unit). Mirrors the controller's
|
||||
`appbackup.DBCredentialVars`. Result today: 65 templates, 22 references in 17 apps, all `secret`.
|
||||
- Decoys `db_cred_cases` in `test_gate_decoys.py`: 1 genuine with four decoys (not judged), three facts refused.
|
||||
- No template changed. `catalog_gates.py --fast` green. The decoy suite's one failing case („a credential token
|
||||
rewritten in translation", copy-i18n) predates this change — filed in felhom.eu's register.
|
||||
- **Cause:** the DECOY moved. `326f846` (R-1102) removed gokapi's login line; the case appended an English login to a
|
||||
template that had no Hungarian one left, so the gate had nothing to compare. The gate was right.
|
||||
- **Fix:** the case rewrites wger's existing English login in place (`edit` stops the suite if the line is gone), and a
|
||||
new case rewords calibre-web's `admin123`. Both refused (rc 1, the token named). Old case on today's tree: rc 0.
|
||||
- **Seen from now on:** `gate-decoys` runs in `catalog_gates.py`'s full run (~196 s, PyYAML: not `--fast`).
|
||||
- **Also fixed:** `test_catalog_gates.py` was red since last night (gate count 18 → it is 20 now).
|
||||
- Copy gate over the whole catalog: OK. `catalog_gates.py --fast`: all OK. Decoy suite: 243 cases OK.
|
||||
@@ -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))
|
||||
|
||||
|
||||
@@ -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"])
|
||||
|
||||
@@ -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",))
|
||||
|
||||
Reference in new issue
Block a user