Skip to content

fix(abi): typell Idris package scaffold + 5 errors — honest proof-debt report (NOT yet verified)#22

Closed
hyperpolymath wants to merge 0 commit into
mainfrom
claude/hopeful-babbage-pn0l4o
Closed

fix(abi): typell Idris package scaffold + 5 errors — honest proof-debt report (NOT yet verified)#22
hyperpolymath wants to merge 0 commit into
mainfrom
claude/hopeful-babbage-pn0l4o

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary — honest WIP (proofs do NOT yet compile)

You asked me to scaffold + verify typell's Idris ABI. I did the scaffold and attempted verification with the idris2 I built — and the finding is that typell's ABI is template-derived code that was never compiled and does not type-check. Stated plainly rather than papered over with a "✓ PASS" comment.

Fixed here (package scaffold + 5 genuine errors)

  • Namespace normalised to Typell.ABI.* — it was inconsistent (Foreign.idr used Typell.ABI.*, the other five TYPELL.ABI.*, so Foreign's imports could never resolve). Finishes the template's "Replace TYPELL" step.
  • Layout + package: files → src/Typell/ABI/; added a real typell.ipkg (there was none).
  • Types.idr (5): cSizeOf/cAlignOf matched on (CInt _)/(CSize _) — type-level functions, not constructors (removed; their Bits32/Bits64 reductions already cover them); CPtr = Bits (ptrSize p) misused the Data.Bits interface → Bits64; added import Decidable.Equality; thisPlatform %runElab stub → = Linux.

Still broken — genuine proof-debt, NOT verified

idris2 --build still fails in module 1/6 (Types.idr):

  • DecEq for Platform needs Uninhabited (x = y) instances (or %runElab derive);
  • createHandle has an unsatisfiable So (ptr ≠ 0) obligation;
  • modules 2–6 (Layout/Soundness/InferenceSoundness/LevelMonotonicity/Foreign) not yet reached — status unknown.

PROOF-STATUS.adoc documents all of this. Making typell green is real proof work, flagged as the next step. This PR is the scaffold + an honest proof-debt report — not a verification.

🤖 Generated with Claude Code

https://claude.ai/code/session_019awZjBD1qx61tvmEuEKNpn


Generated by Claude Code

@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 61 issues detected

Severity Count
🔴 Critical 2
🟠 High 11
🟡 Medium 48

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "codeql.yml lists `language: javascript-typescript` but the repo has no source files in any CodeQL-scannable language. The analyze job will exit 'no source files' on every run. Switch the matrix to `actions` (which scans workflow files — every repo has those).",
    "type": "codeql_language_matrix_mismatch",
    "file": "codeql.yml",
    "action": "switch_codeql_matrix_to_actions",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in boj-build.yml",
    "type": "missing_timeout_minutes",
    "file": "boj-build.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in casket-pages.yml",
    "type": "missing_timeout_minutes",
    "file": "casket-pages.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in casket-pages.yml",
    "type": "missing_timeout_minutes",
    "file": "casket-pages.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in codeql.yml",
    "type": "missing_timeout_minutes",
    "file": "codeql.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dependabot-automerge.yml",
    "type": "missing_timeout_minutes",
    "file": "dependabot-automerge.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "missing_timeout_minutes",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "missing_timeout_minutes",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "missing_timeout_minutes",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "missing_timeout_minutes",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

@hyperpolymath hyperpolymath marked this pull request as ready for review June 18, 2026 13:34
@hyperpolymath hyperpolymath force-pushed the claude/hopeful-babbage-pn0l4o branch from f1ef47b to c1ff8aa Compare June 18, 2026 13:34
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