Commit 0140014
audit(security): audited assail-classifications for the 3 legitimate FFI/unsafe residuals (P5) (#51)
## Summary
Closes **G18** (P5): records Axiom's inherent, reviewed FFI/`unsafe`
boundary as **audited‑legitimate residuals** in the panic‑attack
user‑classification registry — the honest alternative to blanket
suppression or a permanently‑red gate.
## What's classified (only the 3 genuine FFI/unsafe boundaries)
| File | Category | Why it's sound |
|---|---|---|
| `crypto/src/lib.rs` | UnsafeCode | The `extern "C"` cdylib surface.
Thin shim over vetted `openssl` + `pqcrypto-dilithium`; `// SAFETY:` on
every block; caller‑allocates ABI; no hand‑rolled crypto. |
| `src/verification/signing.jl` | UnsafeFFI | Julia `ccall`/`Libdl` into
that cdylib. Optional shim; runtime ABI self‑check; per‑call length
validation. |
| `src/backends/zig_ffi.jl` | UnsafeFFI | Julia `ccall`/`Libdl` into the
Zig compute backend. Availability‑checked before any dispatch;
memory‑safety logic lives Zig‑side. |
- **`audits/audit-ffi-unsafe.adoc`** — the per‑boundary rationale (the
cited audit).
- **`audits/assail-classifications.a2ml`** — the registry, which lives
**separately from the code under scan** so a newly‑added `unsafe` block
cannot self‑suppress (the suppression only holds while the audit is kept
current).
**Nothing else is suppressed.** All ProofDrift / InputBoundary /
MutationGap findings are left **visible and un‑suppressed** — they're
tracked as ordinary findings, not audited residuals.
## Verification (ground‑truthed, not self‑graded)
Re‑ran `panic-attack assail` after adding the registry:
- Exactly the **three** classified findings flip to `suppressed=true`;
the `# SPDX` header did not break the S‑expression parse.
- The other visible findings are unchanged; **0 critical** (the
`static-analysis-gate` stays green on merit, now with the FFI boundary
honestly audited rather than noisy).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01UPFC9YQ7g9gc3VnRox42Q1
---
_Generated by [Claude
Code](https://claude.ai/code/session_01UPFC9YQ7g9gc3VnRox42Q1)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent eae2272 commit 0140014
2 files changed
Lines changed: 91 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments