From 957b052923899a681e35a0ce5946ff4a6939a054 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sun, 15 Nov 2026 09:38:02 +0000 Subject: [PATCH] chore(arrival-pack): take the template's generated Proofs guidance (rsr-template-repo#413) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The template now generates the '## Proofs' block inside the arrival-pack region (rsr-template-repo#413), with the PROOF-POLICY §1.1 and §8.1 wording from rsr-template-repo#400. This carries the engine here and regenerates CLAUDE.md; the hand-authored copy below the region is removed so the block appears once. governance_policy_test.sh is the template's, which asserts the block is inside the region. Regenerating also brings the template's newer estate-common wording and identity line. scripts/deed-field.sh is left as it is. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_0136P7Zoc4g7WLgAwdMTnzPM --- .../arrival-pack/arrival-pack.ncl | 62 +++++++++++- CLAUDE.md | 96 ++++++++++--------- tests/workflows/governance_policy_test.sh | 23 +++-- 3 files changed, 126 insertions(+), 55 deletions(-) diff --git a/.machine_readable/arrival-pack/arrival-pack.ncl b/.machine_readable/arrival-pack/arrival-pack.ncl index d9fa035..50a21b3 100644 --- a/.machine_readable/arrival-pack/arrival-pack.ncl +++ b/.machine_readable/arrival-pack/arrival-pack.ncl @@ -20,6 +20,11 @@ let data = import "claude-md-data.json" in # owner's voice. Until then the estate-common block is explicitly DRAFT. let manifesto_pin = "DRAFT-unratified" in +let anchor_override = + if std.array.length data.anchor_forbidden == 0 then "" + else "\n- **Anchor override** (ANCHOR) — This repo's anchor forbids: %{std.string.join ", " data.anchor_forbidden}. The anchor overrides the estate policy above." +in + let provenance = "DEED@%{data.h_deed} ANCHOR@%{data.h_anchor}" in @@ -57,7 +62,7 @@ The descriptive family (working name *descriptiles*) describes what-is; the **co | File | Answers | |---|---| -| `%{data.deed}` | **CHORA**, the repo deed. Its `(identity)` `(clade)` `(lineage)` clauses say what this repo IS (registers into `gv-clade-index`); `(meta)` the architecture axes; `(agentic)` *may I act now?*; `(ecosystem)` where it sits and what it is not; `(status)` and `(maturity)` where it is now. Read fields with `scripts/deed-field.sh`. | +| `%{data.deed}` | **CHORA**, the repo deed. Its header `:repo-uuid` is the repo's one id, and `(identity)` and `(lineage)` say what this repo IS; a `(clade)` clause, when present, records the repo's clade placements: identity facts about where it sits, never its id and never an edict. chora-registry (formerly `gv-clade-index`) is authoritative for them; this repo's validation checks only that a declared clade is one of the 12 shelves; `(meta)` the architecture axes; `(agentic)` *may I act now?*; `(ecosystem)` where it sits and what it is not; `(status)` and `(maturity)` where it is now. Read fields with `scripts/deed-field.sh`. | | `(anchor)` | *Semantic authority + golden path* — what downstream may extend-not-redefine; if a recognised-drift / re-anchor marker is present, it **supersedes** accumulated context — read it first. | | `(neurosym)` | *Meaning* of operations — proof obligations. | | `(playbook)` | *How* permitted actions run. | @@ -66,7 +71,15 @@ The descriptive family (working name *descriptiles*) describes what-is; the **co | k9 | *Validation*. Kennel (data) / Yard (pure eval) / Hunt (guarded exec). | ## Canon pointers -- `hyperpolymath/standards` — the canon source. · `hyperpolymath/gv-clade-index` — the estate map (identity registry). · `hyperpolymath/manifesto` — this doctrine. +Estate data-format route: **kyq** handles exactly **TOML, Dhall, KYAML, +I-JSON/JCS**. Preserve TOML/Dhall; migrate YAML/YML to KYAML and JSON variants +through kyq using **hyperpolymath/ijson-jcs**, the actual estate implementation +repository. **kyX** owns wider projection. DEED/K9/coordination keep their own +grammars. Canon: `metadatastician/standards/3-practice/DATA-FORMAT-ROUTING.adoc`. +Planned support is not operational evidence: retain explicit transitional +checks until a pinned kyq executable passes positive and negative tests. + +- `hyperpolymath/standards` — the canon source. · `hyperpolymath/gv-clade-index` (being renamed chora-registry) — the estate registry of repo identities and classification schemes. · `hyperpolymath/manifesto` — this doctrine. - **Before you invent, rename, or consolidate anything: STOP and check the map + IS-NOT.** ## Estate language policy (overridable per-repo via AGENTIC) @@ -77,16 +90,55 @@ Use plain JavaScript when this tooling is needed. TypeScript and ReScript migrat ## Asking the owner Put every question that needs the owner's decision through the selector (the AskUserQuestion tool), not as prose at the end of a report. Batch up to four per call, offer concrete options with the recommended one first, and say what each option would cause. +## 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. Where a proof relies on a dependency the prover does not check, +state the reliance as an `ASSUMED` boundary specification. Where the +dependency's whole import cone compiles under the prover's safe mode with zero +postulates, it is *checked, not assumed*: record the cone (root module, flags, +postulate count of zero, library name, version and pin) instead of an +`ASSUMED` row (policy §1.1). A cone with a postulate, or compiled outside safe +mode, is not checked. When choosing between dependencies that fit equally +well, prefer one that carries its own verification. A preference, not a gate. + +Proof Witness Grades are policy §8. They apply to *theory* theorems only: Agda +source, rechecked in Rocq and Lean (§8.1). Engineering proofs (Creusot, Verus, +SPARK, Idris2) are not graded on this ladder; they use the §5 tokens only. For +a theory theorem, `PWG-3` < `PWG-2i` < `PWG-2ii` < `PWG-1`, where `PWG-1` is +strongest. A theorem that does not reach `PWG-3` is `ungraded`, with no +qualifier. 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. + --- -# This repo: `%{data.canonical_name}` · clade `%{data.prefixed_name}` +# This repo: `%{data.canonical_name}` -- **Identity** — uuid `%{data.uuid}`; clade `%{data.clade_primary}` (secondary `%{data.clade_secondary}`); born %{data.born}; forge `%{data.forge_gh}`. +- **Identity** — chora id `%{data.uuid}`; clade: %{data.clade_aid}; born %{data.born}; forge `%{data.forge_gh}`. - **IS** — %{data.purpose} - **IS-NOT** — %{data.isnot} - **Where it sits** — pipeline position **%{data.pipeline_pos}**; chain `%{data.chain}`; coordination = `%{data.coordination}`. - **Constraints here** (AGENTIC) — fail-closed; evidence-per-step; no-silent-skip; rerun-after-fix; release-claim-requires-hard-pass. Never: banned langs (above), secrets, state files in repo root, AGPL. Details: the deed's `(bot-directives (methodology) (coverage) (debt))` clauses. -- **Golden path** (ANCHOR) — `%{data.golden_smoke}` → %{data.golden_crit}. +- **Golden path** (ANCHOR) — `%{data.golden_smoke}` → %{data.golden_crit}.%{anchor_override} - **State** — phase %{data.phase}; maturity %{data.maturity}. Milestones and next actions: `docs/status/ROADMAP.adoc`. diff --git a/CLAUDE.md b/CLAUDE.md index 8b4cc7c..4aedd42 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -39,7 +39,7 @@ The descriptive family (working name *descriptiles*) describes what-is; the **co | File | Answers | |---|---| -| `atoma_chora.deed` | **CHORA**, the repo deed. Its `(identity)` `(clade)` `(lineage)` clauses say what this repo IS (registers into `gv-clade-index`); `(meta)` the architecture axes; `(agentic)` *may I act now?*; `(ecosystem)` where it sits and what it is not; `(status)` and `(maturity)` where it is now. Read fields with `scripts/deed-field.sh`. | +| `atoma_chora.deed` | **CHORA**, the repo deed. Its header `:repo-uuid` is the repo's one id, and `(identity)` and `(lineage)` say what this repo IS; a `(clade)` clause, when present, records the repo's clade placements: identity facts about where it sits, never its id and never an edict. chora-registry (formerly `gv-clade-index`) is authoritative for them; this repo's validation checks only that a declared clade is one of the 12 shelves; `(meta)` the architecture axes; `(agentic)` *may I act now?*; `(ecosystem)` where it sits and what it is not; `(status)` and `(maturity)` where it is now. Read fields with `scripts/deed-field.sh`. | | `(anchor)` | *Semantic authority + golden path* — what downstream may extend-not-redefine; if a recognised-drift / re-anchor marker is present, it **supersedes** accumulated context — read it first. | | `(neurosym)` | *Meaning* of operations — proof obligations. | | `(playbook)` | *How* permitted actions run. | @@ -48,7 +48,15 @@ The descriptive family (working name *descriptiles*) describes what-is; the **co | k9 | *Validation*. Kennel (data) / Yard (pure eval) / Hunt (guarded exec). | ## Canon pointers -- `hyperpolymath/standards` — the canon source. · `hyperpolymath/gv-clade-index` — the estate map (identity registry). · `hyperpolymath/manifesto` — this doctrine. +Estate data-format route: **kyq** handles exactly **TOML, Dhall, KYAML, +I-JSON/JCS**. Preserve TOML/Dhall; migrate YAML/YML to KYAML and JSON variants +through kyq using **hyperpolymath/ijson-jcs**, the actual estate implementation +repository. **kyX** owns wider projection. DEED/K9/coordination keep their own +grammars. Canon: `metadatastician/standards/3-practice/DATA-FORMAT-ROUTING.adoc`. +Planned support is not operational evidence: retain explicit transitional +checks until a pinned kyq executable passes positive and negative tests. + +- `hyperpolymath/standards` — the canon source. · `hyperpolymath/gv-clade-index` (being renamed chora-registry) — the estate registry of repo identities and classification schemes. · `hyperpolymath/manifesto` — this doctrine. - **Before you invent, rename, or consolidate anything: STOP and check the map + IS-NOT.** ## Estate language policy (overridable per-repo via AGENTIC) @@ -59,16 +67,56 @@ Use plain JavaScript when this tooling is needed. TypeScript and ReScript migrat ## Asking the owner Put every question that needs the owner's decision through the selector (the AskUserQuestion tool), not as prose at the end of a report. Batch up to four per call, offer concrete options with the recommended one first, and say what each option would cause. +## 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. Where a proof relies on a dependency the prover does not check, +state the reliance as an `ASSUMED` boundary specification. Where the +dependency's whole import cone compiles under the prover's safe mode with zero +postulates, it is *checked, not assumed*: record the cone (root module, flags, +postulate count of zero, library name, version and pin) instead of an +`ASSUMED` row (policy §1.1). A cone with a postulate, or compiled outside safe +mode, is not checked. When choosing between dependencies that fit equally +well, prefer one that carries its own verification. A preference, not a gate. + +Proof Witness Grades are policy §8. They apply to *theory* theorems only: Agda +source, rechecked in Rocq and Lean (§8.1). Engineering proofs (Creusot, Verus, +SPARK, Idris2) are not graded on this ladder; they use the §5 tokens only. For +a theory theorem, `PWG-3` < `PWG-2i` < `PWG-2ii` < `PWG-1`, where `PWG-1` is +strongest. A theorem that does not reach `PWG-3` is `ungraded`, with no +qualifier. 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. + --- -# This repo: `atoma` · clade `fv-atoma` +# This repo: `atoma` -- **Identity** — uuid `#u8"gv-clade-index:github.com/hyperpolymath/atoma"`; clade `fv` (secondary ``); born 2026-10-22; forge `hyperpolymath/atoma`. +- **Identity** — chora id `#u8"gv-clade-index:github.com/hyperpolymath/atoma"`; clade: fv (placement); born 2026-10-22; forge `hyperpolymath/atoma`. - **IS** — Experimental source-bound obligations and finite-model proof replay for an explicitly closed Zig subset. Source/compiler refinement remains unproved. - **IS-NOT** — a general Zig soundness certificate · a production verifier · a repository template · an ECHIDNA replacement - **Where it sits** — pipeline position **language-verification**; chain `Zig source and contracts -> Atoma finite-model proof -> ECHIDNA/Coq replay (experimental); full kernel chain planned`; coordination = `echidna`. - **Constraints here** (AGENTIC) — fail-closed; evidence-per-step; no-silent-skip; rerun-after-fix; release-claim-requires-hard-pass. Never: banned langs (above), secrets, state files in repo root, AGPL. Details: the deed's `(bot-directives (methodology) (coverage) (debt))` clauses. - **Golden path** (ANCHOR) — `just test && just quality` → Core tests pass; Quality gates pass; No unresolved critical security findings. +- **Anchor override** (ANCHOR) — This repo's anchor forbids: Node.js, npm. The anchor overrides the estate policy above. - **State** — phase active; maturity experimental. Milestones and next actions: `docs/status/ROADMAP.adoc`. @@ -116,43 +164,3 @@ 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. Where a proof relies on a dependency the prover does not check, -state the reliance as an `ASSUMED` boundary specification. Where the -dependency's whole import cone compiles under the prover's safe mode with zero -postulates, it is *checked, not assumed*: record the cone (root module, flags, -postulate count of zero, library name, version and pin) instead of an -`ASSUMED` row (policy §1.1). A cone with a postulate, or compiled outside safe -mode, is not checked. When choosing between dependencies that fit equally -well, prefer one that carries its own verification. A preference, not a gate. - -Proof Witness Grades are policy §8. They apply to *theory* theorems only: Agda -source, rechecked in Rocq and Lean (§8.1). Engineering proofs (Creusot, Verus, -SPARK, Idris2) are not graded on this ladder; they use the §5 tokens only. For -a theory theorem, `PWG-3` < `PWG-2i` < `PWG-2ii` < `PWG-1`, where `PWG-1` is -strongest. A theorem that does not reach `PWG-3` is `ungraded`, with no -qualifier. 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. diff --git a/tests/workflows/governance_policy_test.sh b/tests/workflows/governance_policy_test.sh index 14a58a9..486518d 100644 --- a/tests/workflows/governance_policy_test.sh +++ b/tests/workflows/governance_policy_test.sh @@ -122,12 +122,23 @@ for (const [name, text] of [["arrival guidance", arrival], ["proof guide", guide `${name} must identify the policy's authoritative repository`); } assert.match(arrival, /`verification\/proofs\/README\.adoc`/); -assert.notEqual(claude.indexOf("