Skip to content

ci: refresh standards reusable pins to current HEAD (d7c2271) - #5

Merged
hyperpolymath merged 3 commits into
mainfrom
ci/repin-standards-reusables-d7c2271
Jun 27, 2026
Merged

hyperpolymath merged 3 commits into
mainfrom
ci/repin-standards-reusables-d7c2271

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

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

@hyperpolymath
hyperpolymath merged commit 85e13cd into main Jun 27, 2026
@hyperpolymath
hyperpolymath deleted the ci/repin-standards-reusables-d7c2271 branch August 18, 2026 12:29
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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant