Skip to content

Commit f2143c5

Browse files
committed
feat(assay/assimilate/aggregate): proof-integration subcommands
Three a-themed subcommands wiring panic-attack into the PROOF-PROGRAMME loop (survey -> swap -> fold-in-proofs): - assay (src/assay/mod.rs): survey a target for code with a formally proven drop-in equivalent in a proven / proven-servers library; operationalises the "Proven cross-fit" table in PROOF-PROGRAMME.md. Built-in catalogue: SafePath, SafeUrl. - assimilate (src/assay/mod.rs): perform a swap -- stage the proven module, back up the original (*.orig), and record provenance (source BLAKE3 hash + proof backing + pending call-site rewires) under .assimilated/. Call-site rewiring is reported, never auto-edited. - aggregate (src/aggregate/mod.rs): fold external prover output (Agda/Idris2/Coq/Lean/Isabelle/TSTP/Alethe/DRAT) into a report. Each artifact is BLAKE3-hashed for non-repudiation, classified (comment-stripped so prose markers do not false-trigger), and reconciled against findings (backed/corroborated/contradicted), with every verdict conditioned on the named checker's trust. Wired into lib.rs + main.rs (3 Commands variants + dispatch + helpers). 17 unit tests; full lib suite (395) green; zero new warnings. Idris2 0.8.0 installed; PA1/PA2/Stripping/Types proofs re-verified (typecheck). https://claude.ai/code/session_01K2TJLeQSyz4tpydZ18aRcb
1 parent 2dc1393 commit f2143c5

5 files changed

Lines changed: 2038 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,43 @@
22

33
## [Unreleased]
44

5+
### Added — `assay` / `assimilate` / `aggregate` proof-integration subcommands
6+
7+
Three new a-themed subcommands that wire panic-attack into the
8+
PROOF-PROGRAMME loop (survey → swap → fold-in-proofs):
9+
10+
- **`panic-attack assay [TARGET] [--proven DIR]…`** (`src/assay/mod.rs`):
11+
surveys a target for code that has a formally proven drop-in equivalent
12+
in a `proven` / `proven-servers` library and reports each candidate with
13+
the proof artifact that backs it — operationalising the "Proven cross-fit"
14+
table in `PROOF-PROGRAMME.md` mechanically instead of by hand. Built-in
15+
catalogue: `SafePath` (canonicalize/unwrap pattern) and `SafeUrl`
16+
(`VERISIMDB_URL`). On this repo: `safe-path` **Offered** (port present in
17+
`src/safe_path.rs`, call sites still to rewire), `safe-url`
18+
**NoReplacementSource** (not yet ported).
19+
- **`panic-attack assimilate [TARGET] --candidate ID [--proven DIR] [--from FILE] [--all] [--dry-run]`**:
20+
performs a swap — stages the proven module into the tree, backs up the
21+
original (`*.orig`), and writes a provenance record (source BLAKE3 hash +
22+
proof backing + pending call-site rewires) under `.assimilated/`. Module
23+
swaps are automatic; call-site rewiring is reported, never auto-edited
24+
(mechanically editing arbitrary call sites is not a reviewable operation).
25+
- **`panic-attack aggregate --proof PATH… [--label PATH=NAME] [--covers PATH=SPEC] [--report BASE]`**
26+
(`src/aggregate/mod.rs`): folds external prover output (Agda / Idris2 /
27+
Coq·Rocq / Lean / Isabelle / TSTP / Alethe / DRAT·LRAT) into a report. Each
28+
artifact is **BLAKE3-hashed for non-repudiation**, given a friendly name,
29+
classified (Closed / Holes / Refuted / Indeterminate — comment-stripped so
30+
prose mentioning `postulate` / `Admitted` does not false-trigger), and
31+
reconciled against findings (**Backed / Corroborated / Contradicted**).
32+
Every verdict is explicitly conditioned on the named checker's trust; the
33+
recorded hash lets the tool show exactly which bytes it was handed if the
34+
assessment is later challenged. `@name "…"` / `@covers [claim:]kind:value`
35+
annotations travel inside the artifact; CLI `--label` / `--covers` override.
36+
37+
Proof foundation re-verified from first principles under a fresh **Idris2
38+
0.8.0** install: `Types`, `Stripping` (Layer 1.0), `PatternCompleteness`
39+
(PA1) and `ClassificationSoundness` (PA2) all typecheck. 17 new unit tests;
40+
full library suite (395 tests) green; zero new compiler warnings.
41+
542
## [2.5.5] — 2026-06-02
643

744
Release of the v2.5.5 cohort that landed across 11 PRs in panic-attack + wiki + gitbot-fleet on 2026-06-02 PM. Tagged 2026-06-02 PM-evening.

0 commit comments

Comments
 (0)