chore(policy): recognise Agda + echo-types as canonical loss-with-residue formalism#36
Merged
hyperpolymath merged 2 commits intomainfrom May 1, 2026
Merged
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
…idue formalism Adds Agda to Tier-1 alongside the existing Tier-1 set in three RSR_OUTLINE.adoc copies (with the ReScript -> AffineScript and Rust -> Rust(+SPARK) updates from PR #35 inlined to avoid build conflict). Adds two new rows to .claude/CLAUDE.md: - Agda (formal verification, foundational/type-theoretic) - echo-types library (canonical loss-with-residue formalism; cite from hyperpolymath/echo-types rather than reinventing) Reframes Idris2 row from 'sole option' to 'primary, ABI-style proofs' since Agda now formally complements it. Updates ai-instruction/sonnet.md hard-rules language-policy line to list AffineScript first, include Agda explicitly, ban ReScript, and reference RS/TS/JS -> AffineScript -> typed-wasm. Coordinates with: hyperpolymath/echo-types#29 (.scm -> .a2ml + Justfile fix) hyperpolymath/echo-types#30 (RSR floor scaffolding) #33 (REQUIRED-FILES doc-drift fix) #35 (ReScript -> AffineScript sweep; line-overlap with this PR; mechanical rebase at merge) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3a4c2a4 to
62e2a61
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Recognise Agda as a Tier-1 language and
hyperpolymath/echo-typesas the canonical loss-with-residue formalism in the agent-facing policy and tier docs.What changed
Tier-1 list (3 RSR_OUTLINE.adoc copies)
Adds Agda alongside the existing tier. Replaces ReScript with AffineScript and qualifies Rust as Rust(+SPARK), tracking the broader ReScript→AffineScript migration in PR #35 (this PR's diff includes those updates so the file builds without conflict; #35 may need a rebase but the resolutions are mechanical).
Files updated:
0-ai-gatekeeper-protocol/RSR_OUTLINE.adocline 1490-ai-gatekeeper-protocol/repo-guardian-fs/RSR_OUTLINE.adocline 149consent-aware-http/RSR_OUTLINE.adocline 149Agent-facing language policy (
.claude/CLAUDE.md)Adds two new rows to the allowed-languages table:
Reframes Idris2 from "Formal verification (sole option)" to "Formal verification (primary, ABI-style proofs)" since Agda now formally complements it for foundational constructions where Idris2's specific dependent-type idiom isn't the right tool.
ai-instruction/sonnet.mdThe hard-rules language-policy line now lists AffineScript first, includes Agda explicitly, bans ReScript, and references the AffineScript→typed-wasm direction:
Why
Echo-types (
hyperpolymath/echo-types) is an active, well-developed Agda formalisation that thecoord-mcpTODO file already aspires to dogfood. Until now, the standards' policy docs name only Idris2 as the ecosystem's formal-verification language, which understates Agda's role for the foundational-construction track. This PR makes the actual two-prover posture explicit.The echo-types row is added because the canonical fiber/echo construction
Echo f y := Σ (x : A) , (f x ≡ y)should not be re-derived in downstream design docs and proofs — they should cite the library. Naming it explicitly in CLAUDE.md prevents accidental reinvention.Coordinated companion PRs
hyperpolymath/echo-types#29—.scm→.a2ml6a2 file rename + Justfilemake→just. (Bringing echo-types into compliance with the canonical extension rule.)hyperpolymath/echo-types#30— RSR template floor (23 new files: githealth + RSR docs + dotfiles + 4 mandatory workflows + contractiles + stapeln). (Bringing echo-types to file-presence floor.)hyperpolymath/standards#33—.scm→.a2mldoc fix in REQUIRED-FILES.adoc + workflow-count drift fix.hyperpolymath/standards#35— ReScript → AffineScript estate-wide sweep. (Some line-overlap with this PR; mechanical rebase at merge.)🤖 Generated with Claude Code