Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
11 changes: 7 additions & 4 deletions EXPLAINME.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<<known-gaps>>). The Idris2 model of the update uses natural-number
That recipe quarantine is not `Hypatia.Safety.Quarantine`, which no scan or
dispatch path calls (<<known-gaps>>). The Idris2 model of the update uses natural-number
pseudo-counts, not Elixir floats.

=== Machine-checked proofs
Expand Down Expand Up @@ -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
Expand Down
68 changes: 68 additions & 0 deletions docs/status/ROADMAP.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading