Skip to content

Commit cd85288

Browse files
hyperpolymatharena-agentcoderabbitai[bot]
authored
Reconcile Echo identity evidence and record Agda checks (#359)
## Summary - Preserve EI-2's closed-negative outcome and reconcile identity, adjacency and roadmap claims; narrow the epistemic correspondence to the actual integration test. - Explicitly apply the estate's standard Agda invocation profile to CI and local recipes, add static wiring checks, and separately retain the full-Cubical island. - Record local cold-check and mutation-test evidence, source manifests, cross-repository witness audit, and owner follow-up prompts. ## Validation - Local Agda 2.7.0.1-cf6e2d9 / stdlib v2.3 cold checks: all six standard-profile entrypoints and the separate Cubical island exited successfully; 957 UnsupportedIndexedMatch warning occurrences (81 distinct locations). Full logs and provenance are in docs/receipts and PROOF-STATUS.adoc. - The pinned epistemic integration test passed locally against both its pinned Echo source and this checkout, with 37 warnings each; this does not expand the test's claims or replace its CI receipt. - Local mutants in experimental Grade and the narrowing exhibit were rejected; the main aggregate remained green with the experimental mutant. Static invocation, kernel, foundation, aggregate wiring and git diff checks passed. ## Remaining limitations - Results were obtained from a dirty working tree and are not clean-commit CI receipts. Agda is not the latest upstream stable; CI's compiler remains unpinned, indexed-match warnings require triage, and the full-Cubical profile awaits separate review. - Rust/Creusot installation was blocked by network access. The separate named experimental CI check, estate witness receipts and further proof reconstruction remain open. No blanket proof grade or cross-language equivalence is claimed. --------- Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent b0982c4 commit cd85288

33 files changed

Lines changed: 769 additions & 201 deletions

‎.github/workflows/agda.yml‎

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ jobs:
4545
- name: Kernel funext-free certificate + classification guard
4646
run: sh scripts/kernel-guard.sh
4747

48+
- name: Check experimental aggregate covers its direct modules
49+
run: bash scripts/check-experimental-aggregate.sh
50+
51+
- name: Check Agda invocation profiles (static)
52+
run: python3 scripts/check-agda-invocations.py
53+
4854
- name: Install Agda and standard library
4955
run: |
5056
sudo apt-get update
@@ -73,6 +79,7 @@ jobs:
7379
run: |
7480
STDLIB_DIR="$HOME/agda-stdlib"
7581
git clone --depth 1 --branch v2.3 https://github.com/agda/agda-stdlib.git "$STDLIB_DIR"
82+
test "$(git -C "$STDLIB_DIR" rev-parse HEAD)" = 8326c7475af1fa456ca04a0203c168d5d7ff842b
7683
echo "stdlib_dir=$STDLIB_DIR" >> "$GITHUB_OUTPUT"
7784
7885
- name: Fetch absolute-zero library (PINNED)
@@ -138,24 +145,24 @@ jobs:
138145
agdai-${{ runner.os }}-stdlib2.3-
139146
140147
- name: Typecheck full suite
141-
run: agda -i proofs/agda proofs/agda/All.agda
148+
run: agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/All.agda
142149

143150
- name: Smoke-check headline theorems
144-
run: agda -i proofs/agda proofs/agda/Smoke.agda
151+
run: agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/Smoke.agda
145152

146153
- name: Typecheck characteristic lane (Gate #2 audit modules)
147-
run: agda -i proofs/agda proofs/agda/characteristic/All.agda
154+
run: agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/characteristic/All.agda
148155

149156
- name: Typecheck examples lane (Gate #3 canonical examples)
150-
run: agda -i proofs/agda proofs/agda/examples/All.agda
157+
run: agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/examples/All.agda
151158

152159
# Cubical lane: the (epi, mono) truncation discharge. A --cubical
153160
# --safe island (zero postulates) that CONSTRUCTS ∥_∥ as a HIT —
154161
# it cannot be imported by the --safe --without-K All.agda, so it
155162
# is typechecked directly here. Its --without-K-profile shadow is
156163
# EchoImageFactorizationPropPostulated (proof-debt (a)/(c)).
157164
- name: Typecheck cubical lane (epi/mono truncation discharge)
158-
run: agda -i proofs/agda proofs/agda/EchoImageFactorizationPropCubical.agda
165+
run: agda --safe --cubical -i proofs/agda proofs/agda/EchoImageFactorizationPropCubical.agda
159166

160167
# Experimental lane: the echo-additive grade tree, typechecked through
161168
# its own aggregate root (--safe --without-K from the pragmas);
@@ -165,7 +172,11 @@ jobs:
165172
# that vendor Grade.agda (choreographic-types) learn here, not
166173
# in their own CI, when an edit breaks it.
167174
- name: Typecheck experimental echo-additive lane (standalone, not in the closure)
168-
run: agda -i proofs/agda proofs/agda/experimental/echo-additive/All.agda
175+
run: agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/experimental/echo-additive/All.agda
176+
177+
# A separate entrypoint, not evidence about the shipped closure.
178+
- name: Typecheck bit-narrowing exhibit
179+
run: agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/NarrowingSmoke.agda
169180

170181
cold-check:
171182
# Belt-and-braces: NO interface cache, --ignore-interfaces cold
@@ -195,9 +206,11 @@ jobs:
195206
run: |
196207
STDLIB_DIR="$HOME/agda-stdlib"
197208
git clone --depth 1 --branch v2.3 https://github.com/agda/agda-stdlib.git "$STDLIB_DIR"
209+
test "$(git -C "$STDLIB_DIR" rev-parse HEAD)" = 8326c7475af1fa456ca04a0203c168d5d7ff842b
198210
ABSZ_DIR="$HOME/absolute-zero"
199211
git clone https://github.com/hyperpolymath/absolute-zero.git "$ABSZ_DIR"
200212
git -C "$ABSZ_DIR" checkout --quiet "$ABSZ_REF"
213+
test "$(git -C "$ABSZ_DIR" rev-parse HEAD)" = "$ABSZ_REF"
201214
mkdir -p "$HOME/.agda"
202215
printf 'name: standard-library\ninclude: %s/src\n' "$STDLIB_DIR" > "$RUNNER_TEMP/sl.agda-lib"
203216
printf 'name: absolute-zero\ninclude: %s/proofs/agda\n' "$ABSZ_DIR" > "$RUNNER_TEMP/az.agda-lib"
@@ -206,9 +219,10 @@ jobs:
206219
207220
- name: Cold typecheck (--ignore-interfaces, no cache)
208221
run: |
209-
agda --ignore-interfaces -i proofs/agda proofs/agda/All.agda
210-
agda --ignore-interfaces -i proofs/agda proofs/agda/Smoke.agda
211-
agda --ignore-interfaces -i proofs/agda proofs/agda/characteristic/All.agda
212-
agda --ignore-interfaces -i proofs/agda proofs/agda/examples/All.agda
213-
agda --ignore-interfaces -i proofs/agda proofs/agda/EchoImageFactorizationPropCubical.agda
214-
agda --ignore-interfaces -i proofs/agda proofs/agda/experimental/echo-additive/All.agda
222+
agda --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/All.agda
223+
agda --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/Smoke.agda
224+
agda --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/characteristic/All.agda
225+
agda --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/examples/All.agda
226+
agda --ignore-interfaces --safe --cubical -i proofs/agda proofs/agda/EchoImageFactorizationPropCubical.agda
227+
agda --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/experimental/echo-additive/All.agda
228+
agda --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/NarrowingSmoke.agda

‎AFFIRMATION.adoc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ we name them as three.
237237
* *The retracted "graded comonad" reading stands retracted* (R-2026-05-18):
238238
echo-types is a loss-graded _reindexing modality_ (thin-poset action); the
239239
experimental `echo-additive/` tree is not wired into the shipped closure.
240+
The current Agda workflow invokes its separate aggregate as a step in
241+
both jobs, not as an independently named job; see `PROOF-STATUS.adoc`
242+
for the coverage and verification limits.
240243

241244
[#reproduce]
242245
== Reproduce it yourself

‎CLAUDE.md‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->
22
<!-- SPDX-FileCopyrightText: 2025-2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk> -->
3+
# Proof policy
4+
5+
The normative estate policy is
6+
https://github.com/hyperpolymath/standards/blob/main/3-practice/PROOF-POLICY.adoc.
7+
Its default Agda theory profile is `--safe --without-K --cubical-compatible`;
8+
full Cubical proofs require a separate reviewed profile. Record toolchain,
9+
assumptions, results and exact source revisions; historical checks do not
10+
prove the new profile. Mathesis grades are theorem- and receipt-specific.
11+
312
# Ecosystem context
413

514
This repo (echo-types) is one node in the hyperpolymath / PanLL ecosystem.
615
Adjacent projects, in one line each, for session bootstrapping:
716

817
- echo-types — constructive Agda formalization of fiber-based structured
918
loss ("echo types"); `Echo f y := Σ (x : A) , (f x ≡ y)`. Gated
10-
identity-claim development; `--safe --without-K` throughout. The
11-
ordinal-notation / Buchholz lane moved out on 2026-10-20 (see below).
19+
identity-claim development; ordinary proof roots use `--safe --without-K
20+
--cubical-compatible`. The full-cubical island is a separate profile;
21+
the postulated shadow remains quarantined. The ordinal-notation /
22+
Buchholz lane moved out on 2026-10-20 (see below).
1223
https://github.com/hyperpolymath/echo-types
1324
- PanLL — three-pane cognitive-relief HTI; Ambient/Symbolic/Neural/World panes.
1425
https://github.com/hyperpolymath/panll

‎Justfile‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
# Build all echo type modules
66
build-echo:
77
@echo "Building echo type modules..."
8-
agda -i proofs/agda proofs/agda/All.agda
8+
agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/All.agda
99
@echo "✅ All echo modules built successfully"
1010

1111
# Build stability tests
1212
build-tests:
1313
@echo "Building stability tests..."
14-
agda -i proofs/agda proofs/agda/Echo/Bridges/EchoStabilityTests.agda
14+
agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/EchoStabilityTests.agda
1515
@echo "✅ Stability tests built successfully"
1616

1717
# Run comprehensive build
@@ -25,31 +25,31 @@ build-all:
2525

2626
test-core:
2727
@echo "Testing core echo type properties..."
28-
agda -i proofs/agda proofs/agda/Echo/Core.agda
28+
agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/Echo.agda
2929
@echo "✅ Core tests passed"
3030

3131
# Test CNO bridge
3232
test-cno:
3333
@echo "Testing CNO bridge..."
34-
agda -i proofs/agda proofs/agda/Echo/Bridges/EchoCNOBridge.agda
34+
agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/EchoCNOBridge.agda
3535
@echo "✅ CNO bridge tests passed"
3636

3737
# Test thermodynamic bridge
3838
test-thermo:
3939
@echo "Testing thermodynamic bridge..."
40-
agda -i proofs/agda proofs/agda/Echo/Bridges/EchoThermodynamics.agda
40+
agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/EchoThermodynamics.agda
4141
@echo "✅ Thermodynamic tests passed"
4242

4343
# Test categorical bridge
4444
test-cat:
4545
@echo "Testing categorical bridge..."
46-
agda -i proofs/agda proofs/agda/Echo/Bridges/EchoCategorical.agda
46+
agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/EchoCategorical.agda
4747
@echo "✅ Categorical tests passed"
4848

4949
# Test stability suite
5050
test-stability:
5151
@echo "Testing stability suite..."
52-
agda -i proofs/agda proofs/agda/Echo/Bridges/EchoStabilityTests.agda
52+
agda --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/EchoStabilityTests.agda
5353
@echo "✅ Stability tests passed"
5454

5555
# Run all tests

0 commit comments

Comments
 (0)