From 351ffdb3b70c97eadbba1ce9eb839496b2a1f146 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 19:32:42 +0000 Subject: [PATCH 1/2] docs: name who calls the safety GenServers, and count lib/ recursively EXPLAINME said Safety.Quarantine and Safety.RateLimiter have no caller in lib/. The application starts both, the Kin watchdog watches the limiter, and the REST and GraphQL APIs list quarantines. The gap is narrower: no scan or dispatch path calls either, and the text now says that. .claude/CLAUDE.md told agents to re-measure with `ls lib/**/*.ex`, which without globstar matches only one directory level (106 files, not the tree). It now uses find, and the count is re-measured: 172. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CYR5bf5FBLS7cXQK72aVNM --- .claude/CLAUDE.md | 4 ++-- EXPLAINME.adoc | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 544f9285..b2a73b7a 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -6,14 +6,14 @@ 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`. ## Architecture ``` -Hypatia # 170 Elixir source files under lib/ (recursive tree count, 2026-11-14) +Hypatia # 172 Elixir source files under lib/ (recursive tree count, 2026-11-16) ├── Elixir pipeline # core: pattern analysis, dispatch, learning ├── Merge orchestration # 12 modules — leases, ledger, ticker (largest subsystem) ├── Kin subsystem # 6 modules — contingency, arbiter, gate, watchdog diff --git a/EXPLAINME.adoc b/EXPLAINME.adoc index d7241a9f..4a8c7693 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,10 @@ 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 the limiter, 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 From 94e2e61820dd41cc804fc013559c8a28921e0cb0 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Nov 2026 23:05:40 +0000 Subject: [PATCH 2/2] docs(status): position 2026-11-18 for the proof-scope and proof-ledger stack The checkpoint entry for this thread: what #1189, #1190 and #1191 do, their state as read on 2026-11-30 (CI green on every head, review threads resolved, two commits behind main without conflict), the merge order, the README overlap with #1185, and the follow-ups not yet started. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CYR5bf5FBLS7cXQK72aVNM --- docs/status/ROADMAP.adoc | 68 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) 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.