Repository navigation
ci: refresh standards reusable pins to current HEAD (d7c2271) - #5
Merged
Merged
Conversation
8 tasks done
hyperpolymath
added a commit
that referenced
this pull request
Nov 9, 2026
#79) ## Summary This is the first time this repository's proofs have been run under real toolchains. Until now every MANIFEST said "not ground-truthed". Toolchains used on 2026-11-09: - Idris2 0.7.0, built from the `v0.7.0` tag on Chez Scheme 9.5.8 - Agda 2.6.3 with standard-library 1.7.3 - Coq 8.18.0 - Lean was **not run**: its installer was refused in the session. This is recorded in the ledger. The run surfaced one real ABI defect, one soundness hole in the proof gate, and several places where the docs had drifted from `standards` `PROOF-POLICY.adoc`. ## Changes - **ABI width defect (R-9).** `Result` crosses the seam as Zig `enum(c_int)`, a 32-bit C `int`. The binding read it as Idris `Int`, which is 64-bit, and the upper half of the return register is unspecified for an `int` return. `resultCode`/`fromCode` and `prim__process` now use `Int32`. - **New lemma `resultCodeInjective`.** It proves no two constructors share a code. It is derived from `fromCodeResultCode`, so it needs no reasoning about primitive integers. Both lemmas typecheck, and a duplicated code is rejected. - **Cross-language check.** Aspect 3 now compares the Zig enum and the Idris2 table value by value, not just symbol names. It was watched to fail on a changed value on each side. - **Proof gate hole #5.** `idris2 --check` exits 0 on a module with an unsolved hole (`= ?todo`). Gated Idris2 modules must now also answer `No holes` at the REPL. A planted hole now fails the gate. - **Agda invocation.** The Agda gate runs the PROOF-POLICY §2.1 invocation, `--safe --without-K --cubical-compatible`. A planted `postulate` fails. - **Gate coverage.** The MANIFEST now gates the repo's own `src/interface/Abi` modules. "Stale entry" now means the file does not exist, not merely "outside `verification/proofs`". - **MANIFESTs ground-truthed.** - The own Abi modules pass. - Template copies that pass: Idris2 `Foreign` and `Types` (synced from the template), Agda and Coq. - Template Idris2 `Layout`, `Platform`, `Pointers` and `Compliance` are **quarantined** with their compiler errors. The template's own MANIFEST quarantines the same four. - **`docs/status/PROOF-STATUS.adoc` rewritten** as a real proof-status file. - The README-EXPLAINME §5 ledger: 2 `proven`, 2 `tested-only`, 1 `argued`, 10 `open`, of 15 rows. - Receipts with tool versions. - PWG rows for the theory obligations, all `ungraded`. - The template placeholders, kept out of the ledger. - `EXPLAINME.adoc` carries the derived ledger, and the README's "layout proofs" claim is corrected. - **Policy alignment** in the ultraplan, roadmap, handover and proofs README: - Creusot with Pearlite and Verus for Rust (owner ruling 2026-11-07). D-1's arm is unchanged. - The canonical Agda invocation. - Proof Witness Grades. ## Evidence - `scripts/check-proofs.sh idris2`, `agda` and `coq` all PASS. - Each planted failure fails as it should: a duplicated code, a hole, a stale MANIFEST entry, an unlisted proof, a `postulate`, and a Zig or Idris2 code mismatch. - `tests/aspect_tests.sh`, migration tests, root-shape, no-md, A2ML, K9, `scan-dangerous` and deed lint all pass. `shellcheck` is clean on the changed scripts. ## Not covered - **Nothing runs the proofs in CI yet.** Each receipt holds for this commit only. PROOF-POLICY §6 wants the toolchain from a Guix manifest or the repo's container, or else a recorded deviation. That choice is left to the owner. - **Lean was not run here.** ## RSR Quality Checklist ### Required - [x] Tests pass (aspect, migration, proof gates) - [x] Linter is clean (shellcheck on changed scripts) - [x] No banned language patterns - [x] No banned functions (`believe_me`, `assert_total`, `postulate`, holes now gated) - [x] SPDX license headers present on all new/modified source files - [x] No secrets, credentials, or `.env` files included ### As Applicable - [x] Documentation updated for user-facing changes - [x] ABI/FFI changes validated (`src/interface/Abi/` and `src/interface/ffi/` consistent, value by value) --- _Generated by [Claude Code](https://claude.ai/code/session_01J4QvDfmD7HiQBt2GX3aYUv)_ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added a proof that ABI result codes map uniquely to result values, with code widths aligned to the C interface. * **Bug Fixes** * Strengthened proof checks to detect unsolved Idris2 holes and apply stricter Agda verification settings. * Added a check comparing Zig and Idris2 result-code tables. * **Documentation** * Added a proof ledger recording verification status, evidence, limitations and open obligations. Updated project status and handover notes to reflect verified results and toolchain guidance. * Clarified ABI proof coverage and noted that generated C headers are not yet available. * **Validation** * Added checks for repository status, required governance files and disallowed `.a2ml` files. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refresh hyperpolymath/standards reusable pins to current main HEAD
d7c22711e830e1f383846472f6e9b99debdb201e(carries the actions/cache repair, GITHUB_TOKEN wiring, --exit-zero, and the SD022 scanner compile fix). Mechanical pin refresh; propagation of hyperpolymath/hypatia#464.Generated by Claude Code