From cfdb98c95033d491a880fd51f7d0e3cddafa96f3 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 14 Nov 2026 16:13:09 +0000 Subject: [PATCH] docs(claude-md): add the hand-authored proof guidance below the generated region MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `estate-rules` fails on the rehearsal at `bash tests/workflows/governance_policy_test.sh` with `AssertionError: missing section: ## Proofs — which prover for which obligation`. That test (synced from rsr-template-repo by the template upgrade in #12) requires CLAUDE.md to carry this hand-authored section below the generated arrival-pack region, pointing at the canon proof policy and at verification/proofs/README.adoc. The upgrade synced the test but not the CLAUDE.md section. This repo already has verification/proofs/README.adoc with every section the test reads. Append the section verbatim from rsr-template-repo main (d183b32). CLAUDE.md allows hand-authored notes above or below the generated region; the generated region (lines 17-82) is byte-identical (checked by hash), and the section sits after ARRIVAL-PACK:END, as the test requires. Verified: governance_policy_test.sh fails on main with the assertion above and passes (exit 0) with this change. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_0136P7ZpPGXDRaKVgNQUecwy --- CLAUDE.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index e64f889a..1eb6a8b9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -124,3 +124,34 @@ hand; that migration is done per repo (ADR-008 phase P3). In deed files use **ENFORCEMENT:** these rulings are recorded on `standards#787`. Some are ruled but not yet gated: check the gate on `standards` main before relying on it. + +## Proofs — which prover for which obligation + +Normative source: `3-practice/PROOF-POLICY.adoc` in `hyperpolymath/standards`. +Read it there; `verification/proofs/README.adoc` maps it onto this repo. + +| Code or obligation | Verifier | +|---|---| +| Rust code | **Creusot** with **Pearlite** contracts, and **Verus**, by default and on the code (§1.2). Kani for `unsafe`/FFI seams and Aeneas for Rust that implements an Agda theorem run alongside, never instead | +| Ada code | **SPARK** | +| APIs, ABIs, engineering properties | **Idris2** | +| Theory | **Agda**, rechecked in **Rocq** and **Lean** (no Mathlib) | + +Always name Creusot, Pearlite and Verus in Rust verification plans and in +`docs/status/PROOF-STATUS.adoc`. Pearlite is Creusot's specification +language, not a third verifier. Plan scopes for both verifiers, and record +any that is unsupported, inapplicable or not yet run, with its reason; never +present an unexecuted check as a pass. Using both does not make two +independent witnesses (policy §1.2). + +Third-party code (crates such as Bevy, libraries, forks) is **not** converted +or re-proved. State what a proof relies on as an `ASSUMED` boundary +specification, and when choosing between dependencies that fit equally well, +prefer one that carries its own verification. A preference, not a gate. + +Proof grades are policy §8, *Proof Witness Grades*: `PWG-3` < `PWG-2i` < +`PWG-2ii` < `PWG-1`, where `PWG-1` is strongest. A grade is derived from +receipts, never asserted. A "verified" or "machine-checked" claim needs +current receipts. Report a census with its denominator, never a +percentage. Always write the `PWG-` prefix: CRG, TRG, ARG and FRG letters, +and ECHIDNA's `TrustLevel`, are different schemes.