Skip to content

docs(proofs): ledger corrections from the 2026-11-09 statement audit - #20

Merged
hyperpolymath merged 2 commits into
mainfrom
docs/proof-claims-audit-2026-11-09
Nov 9, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
docs/proof-claims-audit-2026-11-09

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

A statement-level review (2026-11-09) compared the ledger with the Agda. This PR changes comments, ledger and doc text only. No proof term changes.

Changes

  • Vocabulary: DESIGNED is a local label, read here as OPEN. PROOF-POLICY §5's closed set is PROVEN / PROVEN-WITH-AXIOMS / TESTED / ASSUMED / OPEN.
  • Canonical invocation: the gate lacks --cubical-compatible, so it is not the §2.1 profile. All.agda passes under that profile locally; changing the gate is a follow-up. Every theorem is ungraded under §8.
  • L-2: Loss matches echo-types clause for clause, not textually. The fixities differ and this repo uses a local min.
  • C-2: ⊕ is shown to be an upper bound. The least-upper-bound half of "join" is not stated, though it is derivable.
  • Fixtures: four rejection fixtures use refl on open terms. A refused refl there shows only that an equation is not definitional; the closed refutations carry the separation. S-1, S-2 and S-4 are kernel-checked closed refutations that the TESTED label under-states.
  • README: notes that IsDioid omits absorbing zero. Core.agda already discloses this.
  • Separation.agda header: S-3 is two refls, not refl plus an inequality.
  • docs/status/PROOF-NEEDS.adoc: the RSR template's ABI/TP rows don't apply to this repo. The file now points to the ledger and lists the open needs.

RSR Quality Checklist

Required

  • Tests pass: scripts/check-agda.sh (core proofs, unit tests, 8 rejections) and tests/workflows/governance_policy_test.sh
  • Code is formatted (comment changes only)
  • Linter is clean
  • No banned language patterns
  • No unsafe blocks without // SAFETY: comments (none)
  • No banned functions
  • SPDX license headers present on all new/modified source files
  • No secrets, credentials, or .env files included

As Applicable

  • Repo deed (status) / (maturity) updated: not changed
  • Documentation updated for user-facing changes

Testing

On Agda 2.6.3, with 2.7.0.1 checked earlier today:

  • bash scripts/check-agda.sh prints PASS: core proofs, unit tests and all 8 expected rejections.
  • agda --safe --without-K --cubical-compatible --no-libraries --ignore-interfaces -i src src/ResourceAlgebra/All.agda exits 0.
  • bash tests/workflows/governance_policy_test.sh passes.

Generated by Claude Code

Comments, ledger and doc text only; no proof term changes.

- Vocabulary: DESIGNED is a local label (read as OPEN); PROOF-POLICY
  §5's closed set is PROVEN / PROVEN-WITH-AXIOMS / TESTED / ASSUMED / OPEN.
- The gate invocation lacks --cubical-compatible, so it is not the
  PROOF-POLICY §2.1 profile (All.agda passes under it locally; the gate
  change is open). Every theorem is `ungraded` under §8.
- L-2: Loss matches echo-types clause for clause, not textually (fixities
  differ; local min).
- C-2: ⊕ is shown to be an upper bound; the least-upper-bound half of
  "join" is not stated.
- Four rejection fixtures use refl on open terms, which shows only that
  an equation is not definitional; the closed refutations carry the
  separation. S-1/S-2/S-4 are closed kernel-checked refutations that the
  TESTED label under-states.
- README notes that IsDioid omits absorbing zero (disclosed in Core).
- Separation header: S-3 is two refls, not refl plus an inequality.
- docs/status/PROOF-NEEDS.adoc replaces the RSR template (ABI/TP rows that
  do not apply) with a pointer to the ledger and the open needs.

Checked: scripts/check-agda.sh passes (core proofs, unit tests, 8
rejections); All.agda compiles under
`--safe --without-K --cubical-compatible`;
tests/workflows/governance_policy_test.sh passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MF5GeeBBDF6sUzr6pZTjWV
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copy link
Copy Markdown
Owner Author

Canon lockstep is red, but not because of this PR.

The canon-lockstep job in dogfood-gate.yml fetches canon.lock from metadatastician/standards main and compares it with the pin in resource-algebra_chora.deed. The two no longer match:

standards canon.lock (main, today) resource-algebra_chora.deed
version 2.1.5 2.1.3
criteria-sha256 6a5aa885… 6a5aa885… (matches)
gates-sha256 5c510bba… 2f31f46d…

This PR changes only PROOF-STATUS.adoc, README.adoc, the Separation header and PROOF-NEEDS. It does not touch the deed or any workflow. The failure comes from the canon moving upstream and will fail on any head until the deed is repinned.

No fix is ported. The fix is to repin the deed to 2.1.5, and that pin asserts that the repo meets the new gate table. That is the estate repin (T2) the owner is handling, not a change to slip into a docs-only PR.


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T15:47:24.045897Z
We couldn’t complete this review. Comment @codex review to try again.
fdb4588 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@hyperpolymath
hyperpolymath merged commit 101b712 into main Nov 9, 2026
1 check passed
@hyperpolymath
hyperpolymath deleted the docs/proof-claims-audit-2026-11-09 branch November 9, 2026 23:21
@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

Copy link
Copy Markdown

hyperpolymath added a commit that referenced this pull request Nov 10, 2026
## Summary

Stacked on #20 (the claims audit). Merge
that first; this PR then shows only `9eb65d7`.

This closes two items from the 2026-11-09 audit:
- The gate did not run the PROOF-POLICY §2.1 profile.
- C-2 did not state the least-upper-bound half of "⊕ is the join".

It also unblocks choreographic-types. That repo imports these modules,
and `--cubical-compatible` is coinfective, so it cannot declare the flag
until they do.

## Changes

- Every module in `src/` and `tests/` declares `--safe --without-K
--cubical-compatible --exact-split --no-sized-types --no-guardedness`,
and `resource-algebra.agda-lib` carries the same flags. No proof needed
changing.
- `scripts/check-agda.sh` runs `--safe --without-K --cubical-compatible`
with `--double-check -W error -W noUnsupportedIndexedMatch`. CI's `Agda
proofs` job runs this script on the pinned 2.6.4.3, so CI enforces the
set.
- `Core.⊕-least : a ≼ c → b ≼ c → (a ⊕ b) ≼ c`, from `⊕-mono` and
idempotence.
- `docs/status/PROOF-STATUS.adoc`: the audit note on the gate and the
C-2 row are marked resolved.

## RSR Quality Checklist

### Required

- [x] Tests pass: `scripts/check-agda.sh` passes locally on Agda 2.6.3
and 2.7.0.1 (core proofs, unit tests, all 8 expected rejections at their
own declaration). CI on 2.6.4.3 is the real check.
- [ ] Code is formatted: not applicable (no formatter for Agda here)
- [x] Linter is clean
- [x] No banned language patterns
- [x] No `unsafe` blocks without `// SAFETY:` comments (none)
- [x] No banned functions
- [x] SPDX license headers present on all modified files (unchanged)
- [x] No secrets, credentials, or `.env` files included

### As Applicable

- [x] Documentation updated (`docs/status/PROOF-STATUS.adoc`)

Note: seven `.agdai` interface files under `src/ResourceAlgebra/` are
tracked in git. Local checks regenerate them; this PR leaves them
unchanged.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01MF5GeeBBDF6sUzr6pZTjWV)_

---------

Signed-off-by: Jonathan D.A. Jewell <[email protected]>
Co-authored-by: Claude <[email protected]>
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.

3 participants