Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/zig-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ jobs:
tar -xJf "$RUNNER_TEMP/zig.tar.xz" -C "$RUNNER_TEMP"
echo "$RUNNER_TEMP/zig-x86_64-linux-${ZIG_VERSION}" >> "$GITHUB_PATH"

# PROOF-POLICY §6 deviation (state: open): Idris2 is built from its
# pinned release commit here, not installed through build/guix.scm or the
# container. Neither is available on the CI runner. The commit is asserted
# below. Record: docs/status/PROOF-STATUS.adoc, "Toolchain deviations".
- name: Build Idris2 from the pinned release commit
run: |
set -euo pipefail
Expand Down Expand Up @@ -104,3 +108,61 @@ jobs:
idris2 --build src/interface/E2e/abi-e2e.ipkg
LD_LIBRARY_PATH=zig-out/lib src/interface/E2e/build/exec/abi-e2e \
tests/testdata/crosscheck.traces tests/testdata/crosscheck-root.anchor

# Chain-of-trust theory (PROOF-POLICY §1-§2, §8): the Agda source and its Rocq
# and Lean re-proofs, with one receipt per leg on every commit.
#
# PROOF-POLICY §6 deviation (state: open): Agda and Rocq come from Ubuntu's
# apt archive and Lean from its GitHub release tarball, not from
# build/guix.scm or the container, which the runner lacks. Each install
# asserts the exact version, and Lean's tarball its sha256, before use.
# Record: docs/status/PROOF-STATUS.adoc, "Toolchain deviations".
theory-proofs:
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
contents: read
env:
AGDA_DEB: "2.6.3-1build1"
COQ_DEB: "8.18.0+dfsg-1build2"
LEAN_VERSION: "4.15.0"
LEAN_SHA256: "af71a2569a9f68337de2434829b3008cd8e32c436e9cb6bd8c84a2c2ba3585c9"
steps:
- uses: actions/checkout@v7.0.1

- name: Install Agda and Rocq (version-asserted)
run: |
set -euo pipefail
sudo apt-get update -q
sudo apt-get install -y -q "agda-bin=${AGDA_DEB}" "coq=${COQ_DEB}"
test "$(dpkg-query -W -f='${Version}' agda-bin)" = "$AGDA_DEB"
test "$(dpkg-query -W -f='${Version}' coq)" = "$COQ_DEB"
sha256sum "$(command -v agda)" "$(command -v coqc)"

- name: Install Lean (checksum-verified)
run: |
set -euo pipefail
curl --proto '=https' --tlsv1.2 -fsSL -o "$RUNNER_TEMP/lean.tar.zst" \
"https://github.com/leanprover/lean4/releases/download/v${LEAN_VERSION}/lean-${LEAN_VERSION}-linux.tar.zst"
echo "${LEAN_SHA256} $RUNNER_TEMP/lean.tar.zst" | sha256sum -c -
tar --zstd -xf "$RUNNER_TEMP/lean.tar.zst" -C "$RUNNER_TEMP"
echo "$RUNNER_TEMP/lean-${LEAN_VERSION}-linux/bin" >> "$GITHUB_PATH"

- name: Check every proof MANIFEST (Agda, Rocq, Lean)
run: |
set -euo pipefail
scripts/check-proofs.sh agda
scripts/check-proofs.sh coq
scripts/check-proofs.sh lean4

- name: Chain-of-trust receipts (one per leg, this commit)
run: |
set -euo pipefail
scripts/theory-receipts.sh "$RUNNER_TEMP/theory-receipts.jsonl"
{
echo "### Chain-of-trust receipts"
echo
echo '```'
cat "$RUNNER_TEMP/theory-receipts.jsonl"
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
1 change: 1 addition & 0 deletions .machine_readable/root-allow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ LICENSE
LICENSES/ # REUSE licence texts, dual-licence model (code MPL-2.0 / docs CC-BY-SA-4.0)
CHANGELOG.adoc # AsciiDoc is the estate-standard documentation format
CITATION.cff # citation metadata; GitHub reads it from the root of the default branch only
EXPLAINME.adoc # claims-to-evidence map and proof ledger; the estate README/EXPLAINME standard (standards docs/README-EXPLAINME-STANDARD.adoc) places it at the repository root only
zig-dnssec_chora.deed # the repo deed: universal AI entry point; family-7 allocation manifest + ply tree folded in (standards#837 pilot). Filename carries the repo slug (deed dispatch <stem>_chora.deed), so repo-init renames it at mint
CLAUDE.md # generated arrival pack; the generator, pre-commit and Claude Code all read it from the ROOT (do not hand-edit; edit the repo deed)
?GEMINI.md # pointer to CLAUDE.md for repos without AGENTS.md yet
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,31 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning].
the interface (`src/interface/Abi/`) whose result type cannot carry an
answer for a bogus or indeterminate verdict; tests keep the three in step,
and an Idris2 end-to-end test (`just abi-e2e`) runs in CI.
* Chain-of-trust soundness as theory (PROOF-POLICY §1): for any signature check, a
validator walking signed keys down from a trust anchor returns `secure` or
`insecure` only for a fully verified chain, and `bogus` for anything else. Agda is
the source of truth (`verification/proofs/agda/ChainOfTrust.agda`, `--safe
--without-K --cubical-compatible`). Rocq and Lean re-prove it, and the statement
correspondence is in `verification/proofs/CORRESPONDENCE.adoc`: PWG-2ii, no axioms
in any leg. `scripts/theory-receipts.sh` and the `theory-proofs` CI job write one
receipt per leg on each commit.
* Proof ledger (`EXPLAINME.adoc#proof-ledger`) and a proof-status file
(`docs/status/PROOF-STATUS.adoc`) with grades, receipts, boundary assumptions and
toolchain deviations. They replace the template's status files, which still read
"0% proven" and listed template obligations.
* Idris2 ABI model: decoding is exact. No byte decodes to a code other than its own,
proved by evaluation over all 256 values (status codes: 0..255). The safe wrapper
refuses a library of another ABI version, and a reported text length that does not
fit its buffer.

==== Fixed

* The deed's `(canon …)` pin moves from 2.1.3 to canon 2.1.5 (gates sha256
`5c510bba…`). Canon lockstep had been red since `standards` released 2.1.4
on 2026-11-05. The new gate table only widens accepted layouts; criteria
are unchanged. The template adopts the same pin in
hyperpolymath/rsr-template-repo#306.

* Integer overflow in name decoding at the 255-octet boundary (found by
fuzzing).
* DNAME answers were rejected because the synthesised CNAME was examined
Expand Down
Loading
Loading