D39 = B: the security-fix lane — a security_fix ladder step (box walk required, bench optional, CVE/GHSA notice), its gates + 8 decoys, the writer (--write-ladder --security), the box venue (box_walk.py --security, drill-mirror refresh); two stale tests fixed
gates / gates (push) Successful in 58s
gates / gates (push) Successful in 58s
09 §3 decision 255, R-1239. Proven on 9202 (drill catalog) — felhom.eu audits/security-lane-2026-10-23/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
This commit is contained in:
1 parent
cde26abc02
commit
3898593594
12 files changed
+755
-36
No files matched your search
@@ -13,7 +13,7 @@ is shallow (the R-452 gap that skips every history gate there). Its twin
|
||||
|
||||
WHAT IT CHECKS, per template that carries `update_ladder:` (format and field rules: ladder.py):
|
||||
1. every line of the block is a one-line JSON entry, and every entry is well-formed
|
||||
(verdict proven|unrecorded only; a sha256 digest per `to` service; the memory watch's peak on
|
||||
(verdict proven|unrecorded|security_fix 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
|
||||
@@ -27,6 +27,9 @@ WHAT IT CHECKS, per template that carries `update_ladder:` (format and field rul
|
||||
4b. ... and its own `.felhom.yml` at `steps/<step_key(to)>.felhom.yml` (R-664), with a healthcheck
|
||||
when the template has one.
|
||||
|
||||
5. (WARN, never a refusal — `09` §3 decision 255) a template whose NEWEST step is a `security_fix` with no bench
|
||||
`evidence` prints one line, so a step that skipped the bench stays visible on every push.
|
||||
|
||||
A template WITHOUT a ladder passes here — it has never been moved since the gate existed, and its
|
||||
first move is refused by the twin unless that move brings the first entry.
|
||||
|
||||
@@ -100,6 +103,21 @@ def check_app(app_dir):
|
||||
return problems
|
||||
|
||||
|
||||
def security_warning(app, app_dir):
|
||||
"""The one WARN line of rule 5, or None: the ladder's head is a security_fix step with no bench test."""
|
||||
fy = os.path.join(app_dir, ".felhom.yml")
|
||||
if not os.path.exists(fy):
|
||||
return None
|
||||
entries, _r, _e = ladder.parse(open(fy, encoding="utf-8").read())
|
||||
if not entries:
|
||||
return None
|
||||
head = entries[-1]
|
||||
if head.get("verdict") != ladder.SECURITY_FIX or head.get("evidence"):
|
||||
return None
|
||||
to = ",".join("%s" % r for _s, r in sorted((head.get("to") or {}).items()))
|
||||
return "%s: security-fix step %s has no bench test (since %s)" % (app, to, head.get("tested_at"))
|
||||
|
||||
|
||||
def main(argv):
|
||||
root = ROOT
|
||||
if "--root" in argv:
|
||||
@@ -122,6 +140,9 @@ def main(argv):
|
||||
if "update_ladder:" in text:
|
||||
with_ladder += 1
|
||||
probs = check_app(d)
|
||||
warn = security_warning(app, d)
|
||||
if warn:
|
||||
print("WARN " + warn)
|
||||
if probs:
|
||||
convicted.append(app)
|
||||
for p in probs:
|
||||
|
||||
Reference in new issue
Block a user