Same-tag security fixes as tested steps (09 decision 52, R-740): re-test entries, their gates, the monthly command
gates / gates (push) Successful in 2s

- A RE-TEST entry: from == to, digest = the registry's new digest, digest_from = the tested one, box_evidence.
  ladder.check_entry refuses one with no new digest, no digest_from or no box proof; check-test-record rule 2b
  ties digest_from to the previous entry's digest; check-test-record-move now judges re-tests too (they change
  .felhom.yml only — the gate looked at compose moves alone) and refuses a digest the registry no longer serves.
  Decoys: 8 cases in test_gate_decoys.py, seen red with the rules switched off.
- upgrade-test.py --retest <app> [svc]: FROM the ladder head's tested digest TO the registry's current one, the
  full method; --write-ladder writes a re-test entry (plain refs + digest_from), refusing without the box venue or
  when the registry moved again. Writer tests, red-proofed.
- scripts/retest-floating.py — ONE command: --dry-run lists, --engines-only is the ruled start; bench, box
  (retest_box.py on 9202 via the drill catalog), writer, gates, one commit per app. box_walk.py moves the box
  client into the catalog. Run today: nothing to re-test on the database/redis lines.
- End to end on 9202 (drill): docmost at the OLD redis digest, the re-test, "run tonight's chain now" -> the leg
  pressed it, the new digest runs, read back, badge current.
- Also: upgrade-test.py BENCH_ENV_OVERRIDES (R-739, wanderer's DB address on the bench, recorded per verdict);
  test_gate_decoys.py read kimai's tag and date from the clone (red on main since kimai moved).

Evidence: felhom.eu/documentation/audits/night-rulings-2026-09-30/A/

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-09-30 23:06:09 +02:00
1 parent 45d84827ad
commit 6a3ead9ebe
10 files changed
+1226 -21

No files matched your search

+16
View File
@@ -16,6 +16,8 @@ WHAT IT CHECKS, per template that carries `update_ladder:` (format and field rul
(verdict proven|unrecorded only; a sha256 digest per `to` service; the memory watch's peak on
any entry not backfilled; marks.memory_tight agrees with the peak);
2. the ladder is CONTINUOUS — each entry's `from` is the previous entry's `to`;
2b. a RE-TEST (`from` == `to`, `09` §3 decision 52) starts FROM the previous entry's digest
(`digest_from`), and is never the first entry;
3. the NEWEST entry's `to` is EXACTLY the compose's current image per service. This is the fact
that makes the rule hold without history: a compose moved without a new entry no longer
matches its ladder's head, whoever pushed it and however.
@@ -55,6 +57,20 @@ def check_app(app_dir):
for i in range(1, len(entries)):
if entries[i].get("from") != entries[i - 1].get("to"):
problems.append("entry %d's `from` is not entry %d's `to` — the ladder has a gap" % (i + 1, i))
# rule 2b (decision 52): a RE-TEST (from == to) was tested FROM the previous entry's digest — never from some
# other build of the tag — and is never the first entry (there is nothing to re-test).
for i, e in enumerate(entries):
if e.get("from") != e.get("to") or not isinstance(e.get("digest_from"), dict):
continue
if i == 0:
problems.append("entry 1 is a re-test (from == to) — a re-test needs an earlier entry to re-test")
continue
prev = entries[i - 1].get("digest") or {}
bad = sorted(s for s, d in e["digest_from"].items() if prev.get(s) != d)
if bad:
problems.append("entry %d is a re-test FROM %s, but entry %d tested %s — a re-test starts from the "
"previous entry's digest" % (i + 1, {s: e["digest_from"][s][:19] for s in bad}, i,
{s: str(prev.get(s))[:19] for s in bad}))
for i, e in enumerate(entries[:-1]):
to = e.get("to")
if not isinstance(to, dict) or not to: