Skip to content

docs(PROOF-NEEDS): honestly enumerate silent-overclaim debt - #23

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/proof-needs-honest-overclaim
May 18, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
fix/proof-needs-honest-overclaim

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Why

proven is the estate trust root; PROOF-NEEDS.md must not overclaim. The origin/main edition asserted "the most complete Idris2 proof infrastructure in the ecosystem" and "~30 modules lack proof files" and never used the word overclaim.

Audit

Adversarial sample of 32 single-file non-security Safe* modules across the alphabet (excluding the 12 the sibling security audit handled + SafeCommand/SafeDateTime):

Outcome Count
Genuinely proven (inline discharged theorem) 1 (SafeOrdering)
Witness-only / doc-claim OVERCLAIM ~13
Claim-free (honest) ~18

Estate-wide: 76 / 133 single-file modules ship a Prevents: / formally verified / guaranteed / cannot crash doc claim with no companion Proofs.idr and (per sample) no inline discharged theorem. Same silent-overclaim class the sibling security audit found in SafeMCP/SafeOAuth/SafeWebAuthn/etc.

Worst offender: SafeDigest.idr:5 claims "formally verified ... constant-time comparison to prevent timing attacks" while constantTimeReflexive/Symmetric/verifyTransitive are explicitly @ Assumed: (undischarged postulates). Then SafeArchive (Zip Slip / symlink / zip-bomb "prevents"), SafeCBOR (COSE/WebAuthn "Prevents:"), SafeConsensus, SafeLRU.

Change

Docs-only - rewrites PROOF-NEEDS.md with honest definitions, true counts, the OWED overclaim list with verbatim file:line claims, and the stub list (SafeCommand/SafeDateTime). No source touched.

Refs metadatastician/standards#124

🤖 Generated with Claude Code

The ledger overclaimed: prior edition asserted the most complete Idris2
proof infrastructure and ~30 modules lack proof files. Adversarial
re-audit of the single-file non-security Safe* population (32-module
alphabet-spanning sample) found only 1/32 genuinely proven, ~13/32
witness-only OVERCLAIM (ship Prevents/formally-verified/guarantee doc
claims with zero discharged theorem), ~18/32 honestly claim-free.
Estate-wide: 76/133 single-file modules carry such a doc claim; ~70 are
silent overclaims. Worst offender SafeDigest claims formally verified
constant-time comparison while its theorems are explicitly @ Assumed.

Rewrites PROOF-NEEDS.md with honest definitions, true counts, the OWED
overclaim enumeration with verbatim file:line claims, and the stub list.
Docs-only.

Refs metadatastician/standards#124

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 30b5e02 into main May 18, 2026
12 of 16 checks passed
@hyperpolymath
hyperpolymath deleted the fix/proof-needs-honest-overclaim branch May 18, 2026 19:23
hyperpolymath added a commit that referenced this pull request May 18, 2026
…ded proofs (#22)

origin/main advanced via #23 (honest PROOF-NEEDS rewrite) and #21
(SafeCommand proofs) after this branch was cut. Resolution keeps the
honest #23 ledger as the canonical base and integrates the #22
'Security-critical decidable proofs landed (2026-05-18)' section
(SafeSSH/SafeCert/SafePromptInjection). Drops the superseded dishonest
preamble. SafeCommand/Proofs.idr taken from #21 (clean auto-merge).

Refs metadatastician/standards#124

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 291 issues detected

Severity Count
🔴 Critical 176
🟠 High 18
🟡 Medium 97

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Issue in quality.yml",
    "type": "missing_workflow",
    "file": "quality.yml",
    "action": "create",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in security-policy.yml",
    "type": "missing_workflow",
    "file": "security-policy.yml",
    "action": "create",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Action hyperpolymath/standards/.github/workflows/governance-reusable.yml@main needs attention",
    "type": "unpinned_action",
    "file": "governance.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Python file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/proven/proven/bindings/python/benchmarks/test_benchmarks.py",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "Python file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/proven/proven/bindings/python/proven/safe_email.py",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "Python file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/proven/proven/bindings/python/proven/safe_retry.py",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "Python file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/proven/proven/bindings/python/proven/safe_math.py",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "Python file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/proven/proven/bindings/python/proven/safe_uuid.py",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "Python file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/proven/proven/bindings/python/proven/safe_header.py",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "Python file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/proven/proven/bindings/python/proven/safe_content_type.py",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

hyperpolymath added a commit that referenced this pull request May 19, 2026
**Refs** metadatastician/standards#132 and metadatastician/standards#124.
**NOT Closes** — ~70 single-file SafeDigest-class overclaims remain.

Draft / human-gated. Build is the only oracle: `idris2 0.8.0 --check` →
**exit 0** (Core / SafeHex / SafeDigest / SafeDigest.Proofs).

### What
SafeDigest's module header claims *"formally verified digest parsing"*,
yet its four in-module theorems are body-less de-facto axioms. New
`src/Proven/SafeDigest/Proofs.idr`:

```idris
parseAlgorithmRoundtrip : (alg : HashAlgorithm) -> parseAlgorithm (show alg) = Just alg
parseAlgorithmRoundtrip SHA256 = Refl
parseAlgorithmRoundtrip SHA384 = Refl
parseAlgorithmRoundtrip SHA512 = Refl
parseAlgorithmRoundtrip Blake3 = Refl
```

Both `show` and `parseAlgorithm` are closed clause-matching over the
4-constructor enum, so each case reduces by iota and `Refl` is
definitional — no FFI / `prim__` opacity. Wired into `proven.ipkg`.

This is the minimum viable discharge that makes the module's "formally
verified" header not actively false. SafeDigest is re-exported via the
estate trust root (`Proven`), so it closes the single most visible
overclaim. The broader ~70 single-file overclaim layer (per PR #23
honest ledger) is separate, tracked work.

### Note
Header uses `[email protected]` to match all 330 existing `src/`
files and the mirrored `SafeSRI/Proofs.idr`. Repo `CLAUDE.md` prescribes
`[email protected]`, but the proof-debt audit flagged that as
the outlier vs the actual codebase convention — surfacing rather than
silently following.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 (1M context) <[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.

1 participant