diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 653545dc..68bdf1dd 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -6,7 +6,7 @@ Hypatia is the neurosymbolic CI/CD intelligence layer for the hyperpolymath ecos > **Counts in this file are load-bearing — agents act on them.** They were re-measured > against the tree on 2026-08-07. If you change the shape of the system, re-measure -> (`ls lib/**/*.ex | wc -l`, `grep -c "export fn" ffi/zig/src/main.zig`, the child list in +> (`find lib -name "*.ex" | wc -l`, `grep -c "export fn" ffi/zig/src/main.zig`, the child list in > `lib/application.ex`) rather than editing a number by eye. Known-stale claims and the > full audit live in `docs/DEBT-REGISTER.adoc`. diff --git a/EXPLAINME.adoc b/EXPLAINME.adoc index d5e3209e..e495327a 100644 --- a/EXPLAINME.adoc +++ b/EXPLAINME.adoc @@ -85,8 +85,8 @@ below 0.30) downgrades `auto_execute` to review in link:lib/fleet_dispatcher.ex[] line 267. Caveat:: -That recipe quarantine is not `Hypatia.Safety.Quarantine`, which nothing -calls (<>). The Idris2 model of the update uses natural-number +That recipe quarantine is not `Hypatia.Safety.Quarantine`, which no scan or +dispatch path calls (<>). The Idris2 model of the update uses natural-number pseudo-counts, not Elixir floats. === Machine-checked proofs @@ -249,8 +249,11 @@ for the owner, not a licence change). [CAUTION] ==== -Safety systems are built but not wired. `Safety.RateLimiter` and -`Safety.Quarantine` have no caller in `lib/`. `BatchRollback.rollback/2` is +Safety systems are built but not wired. No scan or dispatch path calls +`Safety.RateLimiter` or `Safety.Quarantine`: the application starts both, the +Kin watchdog watches both (`lib/kin/watchdog.ex`), and the REST and GraphQL +APIs only list quarantines (`lib/hypatia/web/api_router.ex`, +`lib/hypatia/web/graphql.ex`). `BatchRollback.rollback/2` is reached only through `Kin.Contingency.rollback_wave/2`, which nothing calls. `SelfDiagnostics.record_dispatch_failure/0` and `record_dispatch_success/0` have no callers, so its circuit breaker never opens. The moduledoc of diff --git a/docs/status/ROADMAP.adoc b/docs/status/ROADMAP.adoc index 50fcae01..d4548c84 100644 --- a/docs/status/ROADMAP.adoc +++ b/docs/status/ROADMAP.adoc @@ -66,3 +66,71 @@ Idle. Nothing in this thread is unpushed except this journal entry. template-derived copies (for example catachresis-colloquium/First-Post). Hypatia has no copy of this script. * Reconcile evil-weevil's PROOF-STATUS, and add the Agda CI job to eclexia. + +== Position 2026-11-18: proof-scope and proof-ledger stack + +Written on 2026-11-30 for the 2026-11-18 checkpoint. It covers one agent +thread: the proof recon and review of hypatia's ledger, proofs and the claims +made about them. + +=== What the thread did + +* hyperpolymath/hypatia#1189 (`claude/eager-wright-zwwbe2-proof-scope`) makes + the Idris2 proofs prove what the ledger claims. The Bayesian clamp is one + function with a 10% floor and a 99% cap. The parser proofs are general, + not single examples. The dispatch rows name their theorems. PageRank is + scoped to non-negativity. `clockStepBackBreaksBound` proves that the + rate-limit bound needs offers in time order, which Codex found. +* hyperpolymath/hypatia#1190 (`claude/eager-wright-zwwbe2-ledger-hardening`) + hardens `scripts/proof-ledger.sh check`. A row's evidence must be a regular + file committed at a canonical path: no symlink, gitlink, untracked file or + empty path. Names and axioms must not be blank, and proof legs follow the + same rules. The fields are read without losing empty columns. The tests + hold 67 contracts, and `quality.yml` runs `check` on every change. +* hyperpolymath/hypatia#1191 (`claude/eager-wright-zwwbe2-safety-callers`) + corrects EXPLAINME. The application starts `Safety.RateLimiter` and + `Safety.Quarantine`, and the Kin watchdog watches both, but no scan or + dispatch path calls either. It also counts `lib/` recursively. + +=== State + +Waiting on review and merge. Read on 2026-11-30: + +* Heads: #1189 at `15ddf8f`, #1190 at `57c960b`, #1191 at `4ab5ff5`. Another + session merged `main` into all three on 2026-11-27. +* CI on each head: 78 check runs, none failing. +* Codex code review: no findings on any head. Every review thread is + answered and resolved. +* Codex security review does not run, because the Codex account has no + credits. +* `main` is two commits ahead (#1237, #1242). Neither conflicts with the + stack. + +=== Open PRs and branches + +* #1189, #1190 and #1191, stacked in that order, with the branches above. +* hypatia#1185 is another session's PR. The two stacks overlap only in + `verification/README.adoc`. Whichever merges second keeps the TLA+ + bullet and the `AlertTableCorrespondence.agda` bullet, and drops the + `proofs/lean4/` line. The test that once named the renamed row now targets + `pagerank-convergence`, which exists on both sides. + +=== Owner decisions needed + +* Merge #1189, then #1190, then #1191. +* Top up the Codex credits if its security review is wanted. + +=== Next steps + +. After the merge, resolve the `verification/README.adoc` conflict with #1185 + as above, then run `scripts/proof-ledger.sh check`, `render --check`, + `claims` and `tests/proof-ledger-test.sh`. +. Follow-ups, not yet started: +** The ledger's name check also matches a name that survives only in a + comment. +** `verify-proofs.yml` runs `idris2 --check` without `--total`, although the + ledger's checker column says `--total`. +** `parseFromDeterministic` proves only `x = x`. +** One ledger test leaves a temporary file behind. +** `scripts/check-proof-status.sh` and `scripts/gen-rules-praxis.sh` split + lines on tabs. Whether an empty field can reach them is not checked.