Skip to content

docs: seed docs/proof-debt.md for standards itself#213

Open
hyperpolymath wants to merge 1 commit into
mainfrom
claude/standards-proof-debt-seed
Open

docs: seed docs/proof-debt.md for standards itself#213
hyperpolymath wants to merge 1 commit into
mainfrom
claude/standards-proof-debt-seed

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Summary

  • Adds docs/proof-debt.md for standards itself — the self-referential class.
  • Enumerates the 11 undocumented Idris2 partial pragmas in a2ml/src/A2ML/Converters.idr + TypedCore.idr under §(d) DEBT.
  • The remaining 4 of 15 detected markers (lol/proofs/theories Agda postulates + lol/src/abi/ partials) are already covered by PROOF-NEEDS.md.
  • Makes scripts/check-trusted-base.sh (feat(governance): add check-trusted-base CI enforcement #211) pass on standards itself — verified locally. Without this PR, every future PR to standards would fail the new CI gate once feat(governance): add check-trusted-base CI enforcement #211 merges.

Companion

  • standards#203 — trusted-base reduction policy (the schema).
  • standards#211 — check-trusted-base.sh CI gate (which this seed unblocks).
  • standards#195 — estate proof-debt audit (the audit that started the chain).

Disposition notes

The 11 partial pragmas are NOT soundness breaks — they're Idris2 totality-checker waivers on mutually-recursive Doc/Block/Section/Inline AST descents. Maintainer can triage each into §(a) discharge via fuel-indexed rewrite, or §(b) BUDGETED with a property test covering termination.

🤖 Generated with Claude Code

Closes the self-referential loop: the trusted-base reduction policy
(#203) and check-trusted-base CI script (#211) are published here, so
standards itself must conform to its own schema.

Enumerates the 11 undocumented Idris2 `partial` pragmas in
a2ml/src/A2ML/Converters.idr and a2ml/src/A2ML/TypedCore.idr under
§(d) DEBT. The remaining 4 markers (lol/proofs/theories/
information_theory.agda postulates and lol/src/abi/ partials) are
already covered by the existing PROOF-NEEDS.md.

These partial pragmas are not soundness breaks — they're Idris2
totality-checker waivers on mutually-recursive AST descents
(Doc/Block/Section/Inline). Recommended disposition for each is
either:
  - (a) discharge by fuel-indexed rewrite, OR
  - (b) re-classify as BUDGETED with a property test covering
    termination empirically.

This file makes standards' own check-trusted-base CI gate pass
(verified locally with the gate's script). Without it, every future
PR to standards would fail CI once #211 lands.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant