Skip to content

Commit f32603d

Browse files
hyperpolymathclaude
andcommitted
Remove template-only ABI files that falsely implied formal verification
Template Idris2 ABI files (Types.idr, Layout.idr, Foreign.idr) contained only RSR template scaffolding with unresolved placeholders and no domain-specific proofs. Removed to prevent false impression of formal verification coverage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8e3e00e commit f32603d

5 files changed

Lines changed: 78 additions & 626 deletions

File tree

PROOF-NEEDS.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Proof Requirements
2+
3+
## Current state
4+
- `src/abi/Types.idr` — Gating types
5+
- `src/abi/Layout.idr` — Memory layout
6+
- `src/abi/Foreign.idr` — FFI declarations
7+
- No dangerous patterns in ABI layer
8+
- Claims: SLM acts as "inhibitory antagonist" for LLM policy enforcement (GO/NO-GO gating)
9+
10+
## What needs proving
11+
- **Policy completeness**: Prove that the NO-GO gate blocks ALL policy-violating outputs (no bypass path exists)
12+
- **Gate monotonicity**: Prove that once a NO-GO decision is made, it cannot be overridden by subsequent processing stages
13+
- **False positive boundedness**: Prove that the gating function's false-positive rate is bounded (does not degenerate to blocking everything)
14+
- **Policy composition soundness**: Prove that combining multiple policy rules preserves individual rule guarantees (no rule cancellation)
15+
- **Deterministic rule evaluation**: Prove the Rust policy oracle produces identical results for identical inputs (no hidden state)
16+
17+
## Recommended prover
18+
- **Idris2** — Dependent types can express the policy lattice and monotonicity properties
19+
- **Lean4** — Good for the algebraic properties of policy composition if modeled as a semilattice
20+
21+
## Priority
22+
- **HIGH** — Conative gating is a security/safety mechanism for LLM outputs. If the gate can be bypassed, the entire safety claim collapses. Policy completeness and gate monotonicity are critical.
23+
24+
## Template ABI Cleanup (2026-03-29)
25+
26+
Template ABI removed -- was creating false impression of formal verification.
27+
The removed files (Types.idr, Layout.idr, Foreign.idr) contained only RSR template
28+
scaffolding with unresolved {{PROJECT}}/{{AUTHOR}} placeholders and no domain-specific proofs.

TEST-NEEDS.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Test & Benchmark Requirements
2+
3+
## Current State
4+
- Unit tests: 0 pass / 0 fail (cargo test runs but finds 0 tests)
5+
- Integration tests: 1 Zig integration test (template)
6+
- E2E tests: NONE
7+
- Benchmarks: NONE
8+
- panic-attack scan: NEVER RUN
9+
10+
## What's Missing
11+
### Point-to-Point (P2P)
12+
- src/main.rs — no tests
13+
- src/contract/src/lib.rs — no tests
14+
- src/oracle/src/lib.rs — no tests
15+
- src/slm/src/lib.rs — no tests
16+
- 2 Elixir source files — no tests
17+
- 3 Idris2 ABI files — no verification tests
18+
- 3 Zig FFI files — only template test
19+
20+
### End-to-End (E2E)
21+
- Contract evaluation workflow
22+
- Oracle query/response cycle
23+
- SLM (presumably Small Language Model) interaction
24+
- Gating decision pipeline (input -> evaluate -> gate/pass)
25+
26+
### Aspect Tests
27+
- [ ] Security (gating bypass, oracle manipulation, contract exploitation)
28+
- [ ] Performance (gating decision latency)
29+
- [ ] Concurrency (concurrent gate evaluations)
30+
- [ ] Error handling (oracle unavailability, malformed contracts)
31+
- [ ] Accessibility (N/A)
32+
33+
### Build & Execution
34+
- [x] cargo build — compiles (with 0 tests)
35+
- [x] cargo test — passes (0 tests found)
36+
- [ ] Binary runs and exits cleanly — not verified
37+
- [ ] CLI --help works — not verified
38+
- [ ] Self-diagnostic — none
39+
40+
### Benchmarks Needed
41+
- Gating decision latency
42+
- Contract evaluation throughput
43+
- Oracle round-trip time
44+
45+
### Self-Tests
46+
- [ ] panic-attack assail on own repo
47+
- [ ] Built-in doctor/check command (if applicable)
48+
49+
## Priority
50+
- **HIGH** — 5 Rust source files + 2 Elixir + Zig/Idris2 with ZERO tests. Cargo test finds literally nothing. This is a complete test vacuum for a component that makes security-relevant gating decisions.

src/abi/Foreign.idr

Lines changed: 0 additions & 217 deletions
This file was deleted.

0 commit comments

Comments
 (0)