Repository navigation
proofs(agda): strict OPTIONS everywhere, strict CLI flags, stdlib digest pin, Veblen Smoke pins - #16
Conversation
Every .agda file under verification/proofs/agda now opens with
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split
--no-sized-types --no-guardedness #-}
(76 gated modules). No --exact-split rejection arose under Agda 2.7.0.1 +
agda-stdlib v2.3, so no clause was changed and no CATCHALL was added.
Ordinal/Buchholz/Fidelity.agda is the one exception: it gets the same
pragma WITHOUT --safe. It is outside the --safe cone by design (it
declares the two open postulates carrier-height and denotation), and a
--safe pragma would make it uncheckable in any mode. It still fails the
manifest gate's --safe invocation for its original reason ("Cannot
postulate carrier-height with safe flag"), and compiles without --safe
under the remaining strict flags.
Claude-Session: https://claude.ai/code/session_01J4QvDj3HpjUjBmkva3d4HQ
One `open import ... using (...)` block per module, each with a header comment: OrdinalExp (ε₀-ε-number, ω^^-infl), VeblenPhi (φ₁-ε-number), VeblenPhiNormal (next-ε-least, which lives there, not in VeblenBinaryNormal), VeblenBinary (φ-cont), VeblenBinaryNormal (φ-mono₂, φ-infl, φ-level-fixed-≤, φ-level-fixed-≥) and VeblenBinaryMono (Γ₀-prefixed). These are target-side facts only; Buchholz order-type fidelity stays open. A misspelled pin was checked to fail (rc 42) under -W error; without -W error Agda reports a missing `using` name only as a warning. Claude-Session: https://claude.ai/code/session_01J4QvDj3HpjUjBmkva3d4HQ
STDLIB_SHA256 is set to 407286af16f2b5b8aebe577b3610ae9b40ce296ed3c03c66444b5801c2fa3012.
It is REPRODUCED, not downloaded: the archive URL answered 403 from the
session sandbox, so the digest is of `git archive --format=tar
--prefix=agda-stdlib-2.3/ v2.3 | gzip -cn` on a clone of tag v2.3
(commit 8326c7475af1fa456ca04a0203c168d5d7ff842b, git 2.43.0). The job
compares it with the real download and now prints the observed digest on
a mismatch, so a wrong pin fails loudly and is fixed from the CI log.
scripts/check-proofs.sh and the canonical-invocation step both run
agda --safe --without-K --cubical-compatible --double-check
-W error -W noUnsupportedIndexedMatch
The manifest gate still requires the quarantined Fidelity.agda to fail.
Claude-Session: https://claude.ai/code/session_01J4QvDj3HpjUjBmkva3d4HQ
|
|
🟢 clean · commit Advisory: 11 row(s), worst 🔴 high (0 critical, 9 high in grid scope) — reported, never grading the change. Unique graded findings across gating and advisory rows: 21 (21 reporter observations; 21 without sufficient identity to corroborate). Row counts remain per reporter; unique totals do not change gating.
Hypatia scan: 1 finding(s)
panic-attack assail: 19 finding(s)
pons asinorum: 9 finding(s)
echidnabot: not_applicable — template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
rhodibot (RSR compliance): 11 finding(s)
panicbot: not_applicable — panic-attack is already graded by the verdict grid's own panic-attack row, from static-analysis-gate.yml evidence; enrolling panicbot would report one scanner twice and give two rows that can disagree
sustainabot: not_applicable — reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
glambot (presentation quality): 93 finding(s)
seambot: not_applicable — template default: enrol once a seam register exists at spec/seams/seam-register.json
finishingbot (release readiness): 206 finding(s)
cipherbot: not_applicable — template default: enrol once the repository implements cryptography
accessibilitybot: not_applicable — template default: enrol once the repository serves HTML
Scope: static findings reported by each row's tool at the named commit. The table grades only findings in files this change touches, so the colour answers "does this change introduce anything?", not "what does the whole repository still carry?". Standing findings are counted in each accordion and in report.json; the baseline filter remains the place where acknowledged debt is recorded. The lane state is the worst GATING row; advisory rows are listed and counted but never set it. Purple, red, yellow and blue grade the worst GRADED finding present; orange is evidence missing, malformed or a scanner that did not run; grey is an explicit scope exclusion with its reason. No row is a security certification. report.json, badge.json and the raw findings are in the verdict-grid artifact on the linked run. |
|
The Agda job has not run on this PR, and it has never run anywhere. The The failure is not caused by this PR:
One candidate: Until the workflow starts, the local runs in the PR description are the only evidence for this PR. Generated by Claude Code |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution CodeRabbit couldn't update its existing comment. The review summary may be out of date. Check that CodeRabbit still has permission to update comments. Error details
|
## Summary
The `agda` job moves unchanged from `quality.yml` into a new workflow,
`.github/workflows/agda-proofs.yml` ("Agda Proofs"). Every Code Quality
run since 2026-11-09 has ended in `startup_failure` with no job started,
on `main` (most recently run 43942559816, the #16 merge) and on PRs. As
a result, the Agda gate, including the stdlib digest pin and the strict
flags from #16, has never produced a CI receipt.
`quality.yml` did not change between the last successful run (run 11,
2026-11-02) and the first failure (run 12, 2026-11-09). The reason is
not exposed through the run API, so **the cause is still unknown. This
PR does not fix Code Quality's startup failure; it only takes the Agda
gate out of the failing workflow.**
## Changes
- New `.github/workflows/agda-proofs.yml`:
- It has the same triggers (push to `main`/`master`, `pull_request`),
the same concurrency group pattern and top-level `permissions: contents:
read` as `quality.yml`.
- The `agda` job is byte-for-byte the job from `quality.yml`.
- `quality.yml`: the `agda` job is removed. The `lint`, `mint-gates` and
`docs` jobs are unchanged.
- `actions.lock`: there is a new entry for `agda-proofs.yml`. It uses
`actions/checkout@3d3c42e…`, which already has a `dependencies:` record,
so the lock stays transitively closed.
## RSR Quality Checklist
### Required
- [x] Tests pass: the local workflow checks below. CI is pending.
- [x] No banned language patterns.
- [x] No secrets.
- [x] SPDX header present on the new workflow.
## Testing
All checks were run locally on this branch:
| Check | Result |
|---|---|
| `bash scripts/check-lock-sync.sh` | in sync and transitively closed,
rc 0 |
| `bash scripts/check-workflow-edges.sh` | rc 0 |
| `bash scripts/check-required-contexts.sh` | rc 0 |
| `bun scripts/check-action-pinning.js` | all action refs pinned |
|
`tests/workflows/{validate_workflows,runtime_policy_fold,hypatia_ignore,check_lock_sync,workflow_edges,governance_policy}_test.sh`
| all rc 0 |
| `yq` on both workflow files and `actions.lock` | parse |
**What this PR's CI run will show:**
- **Whether Agda Proofs starts.** If it also hits `startup_failure`, the
cause is something shared by both workflows rather than `quality.yml`
alone.
- **The first real check of the stdlib digest pin.** A mismatch prints
the observed digest.
I haven't claimed anything here about CI results.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01J4QvDj3HpjUjBmkva3d4HQ)_
Co-authored-by: Claude <noreply@anthropic.com>



Summary
This is upkeep on the Agda gate. The Agda climb stays frozen (D-2026-06-21). This PR changes no definitions or theorems. Order-type fidelity of the Buchholz notation to ψ₀(Ω_ω) remains OPEN. The two
Fidelity.agdapostulates (carrier-height,denotation) are unchanged and still quarantined.Changes
Strict pragma on all 77 modules. Every
.agdafile underverification/proofs/agdanow opens with{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}. No module raised an--exact-splitrejection, so no clause was touched and noCATCHALLwas added.Ordinal/Buchholz/Fidelity.agdagets the same pragma without--safe. It is outside the--safecone by design, and a--safepragma would make it uncheckable in any mode. If you want--safethere as well, it is a one-line change, and the file still fails the gate for the same reason.Strict CLI flags.
scripts/check-proofs.sh(line 102) and the canonical-invocation step inquality.ymlnow runagda --safe --without-K --cubical-compatible --double-check -W error -W noUnsupportedIndexedMatch. The manifest gate still requires the quarantined module to fail.stdlib digest pin.
STDLIB_SHA256is now407286af16f2b5b8aebe577b3610ae9b40ce296ed3c03c66444b5801c2fa3012. How it was obtained: the archive URLhttps://github.com/agda/agda-stdlib/archive/refs/tags/v2.3.tar.gzreturned 403 from the session sandbox, so this digest is reproduced, not downloaded. It is the sha256 ofgit archive --format=tar --prefix=agda-stdlib-2.3/ v2.3 | gzip -cn, run on a clone of tag v2.3 (commit8326c7475af1fa456ca04a0203c168d5d7ff842b, git 2.43.0). The job checks the pin against the real download and now prints the observed digest on a mismatch. This PR's CI run is the first real test of the pin. If it fails at the digest step, the correct value is in the log.Smoke pins.
Ordinal/Buchholz/Smoke.agdagains oneopen import … using (…)block per module, each with a header comment:OrdinalExpε₀-ε-number,ω^^-inflVeblenPhiφ₁-ε-numberVeblenPhiNormalnext-ε-leastVeblenBinaryφ-contVeblenBinaryNormalφ-mono₂,φ-infl,φ-level-fixed-≤,φ-level-fixed-≥VeblenBinaryMonoΓ₀-prefixednext-ε-leastis exported byVeblenPhiNormal, notVeblenBinaryNormal. That is whyVeblenPhiNormalhas its own block, and whyVeblenBinaryNormalpins its own headline theorems instead.Testing
Run locally with Agda 2.7.0.1 (release tarball, sha256 matches
AGDA_SHA256) and agda-stdlib v2.3 from git tagv2.3@8326c74, withLC_ALL=C.UTF-8:bash scripts/check-proofs.sh agdaonmain, before the changeLC_ALL=C.UTF-8 bash scripts/check-proofs.sh agdaon this branchFidelity.agda"fail (quarantined, expected)"; all 77 files accounted forcd verification/proofs/agda && find . -name '*.agdai' -delete && agda --ignore-interfaces --safe --without-K --cubical-compatible --double-check -W error -W noUnsupportedIndexedMatch All.agdabash scripts/check-agda-trusted-base.shcarrier-height,denotation) inFidelity.agda, no escape pragmasFidelity still fails for its original reason:
mainCannot postulate carrier-height with safe flag, then… denotation …Cannot postulate carrier-height with safe flag, rc 42--safeWith
-W error, Agda stops at the first of the two postulates. The reason is the same, and no new flag error appears.Negative test: misspelling one pin (
Γ₀-prefixedX) fails Smoke with rc 42. Without-W error, Agda reports a missingusingname only as a warning, so the new CLI flag is what makes these pins load-bearing.CI has not run yet. Nothing here claims CI passed.
RSR Quality Checklist
Required
.agdahere.As Applicable
docs/status/PROOF-STATUS.adocstill describes the §2.1 minimum invocation. It is not updated here: the added flags only make the gate stricter, and its dated receipts are historical.Notes for review
id_ed25519_signingkey. I could not verify the signatures locally because no allowedSigners file is configured, so check GitHub's verification badge.github.com/agda/agda-stdlib/archive/...(403), even withcodeload.usrn.261609.xyzadded to the allowlist. Anonymous git clone of public repos worked. Agda upkeep sessions anywhere in the estate will need either that archive route or the git-archive reproduction used here.Generated by Claude Code