- LOC: ~162,000
- Languages: Rust, ReScript, Ada, Nickel, Idris2, Zig
- Existing ABI proofs:
src/abi/*.idr(template-level only, per sub-project) - Dangerous patterns: ~20+
Obj.magiccalls ingui/lib/rescript-tea/andtools/hud/frontend/src/Tea.res
gui/lib/rescript-tea/— DOM event casting, JSON coercion, XHR response type discrimination all useObj.magicfor type erasuretools/hud/frontend/src/Tea.res— event listener attachment usesObj.magicfor listener coercion- These are inherited from the rescript-tea library; type-safe wrappers or phantom-typed bindings should replace them
bitfuckit/src/bitbucket_api.adb— API interaction code with no SPARK annotations- Ada code handling Bitbucket API should have pre/post conditions on authentication flows
- Template/boilerplate ABI only — needs real domain-specific proofs for avatar generation invariants
- Idris2 for ABI layer (already in place, needs deepening)
- SPARK for Ada subsystems (natural fit for existing Ada code)
MEDIUM — Large monorepo; Obj.magic is a systemic concern but mostly in vendored library code. Ada SPARK annotations would add real safety value.
Template ABI removed -- was creating false impression of formal verification. The removed files (Types.idr, Layout.idr, Foreign.idr) contained only RSR template scaffolding with unresolved {{PROJECT}}/{{AUTHOR}} placeholders and no domain-specific proofs.