Commit e045c20
## Summary
Closes #177 (post-#104 panic-attack re-sweep — 6 new legitimate-FFI High
findings need audit + classification).
Extends `reports/audits/audit-ffi-boundary.md` with three new sections
and adds 6 matching entries to
`reports/audits/assail-classifications.a2ml`.
### `audits/audit-ffi-boundary.md`
- **§9 — `src/rust/coprocessor/flint.rs`** (UnsafeCode × 17): FLINT C
bigint library FFI (feature-gated `--features flint`). Documents the 4
unsafe-block patterns (RAII init/clear, string round-trip via
`fmpz_set_str`/`get_str` + `flint_free`, `fmpz_poly` arithmetic, integer
root/binomial), the `#[repr(C)]` layout invariants for `FmpzPolyStruct`,
and the blocking-thread-only ownership model.
- **§10 — Zig FFI bridges**:
- §10.1 `src/zig/ffi/axiom_spark_bridge.zig` (Ada/SPARK → Zig shim →
Rust `extern "C"` in `spark_axiom.rs`, §2)
- §10.2 `src/zig_ffi/chapel_bridge.zig` (Chapel C API → Zig `@cImport` →
Rust safe-call layer in `proof_search.rs`, §3)
- Documents the `@cImport` intent + enum-from-int bounds check +
owned-string-copy invariants.
- **§11 — `ffi/zig/src/` overlay** (UnsafeCode × 3): three identical
`echidna_<subsystem>_last_error()` functions in `boj.zig`,
`overlay.zig`, `typell.zig` that `@ptrCast` a module-static `error_buf
[N]u8` to `[*:0]const u8`. Documents the static-lifetime +
nul-terminator + null-fast-path + read-only contract invariants.
### `reports/audits/assail-classifications.a2ml`
Adds 6 classification entries cross-referencing §§9-11:
| File | Category | Audit ref |
|---|---|---|
| `src/rust/coprocessor/flint.rs` | UnsafeCode | §9 |
| `src/zig/ffi/axiom_spark_bridge.zig` | UnsafeFFI | §10.1 |
| `src/zig_ffi/chapel_bridge.zig` | UnsafeFFI | §10.2 |
| `ffi/zig/src/boj.zig` | UnsafeCode | §11 |
| `ffi/zig/src/overlay.zig` | UnsafeCode | §11 |
| `ffi/zig/src/typell.zig` | UnsafeCode | §11 |
Brings the total classification count from 16 → 22, covering all 6 new
High-tier FFI findings reported by `panic-attack` v2.5.0 on 2026-06-01.
## Out-of-scope observation (meander)
The panic-attack registry loader (`load_user_classifications` in
`panic-attack/src/assail/mod.rs:220`) reads from
`<project>/audits/assail-classifications.a2ml` or
`<project>/.panic-attack-classifications.a2ml`, but this repo keeps the
registry at `reports/audits/`. This means the registry entries (both
pre-existing and these new ones) do not currently flip findings to
`suppressed = true` in panic-attack output — the kanren
structural-suppression pass is what suppresses today. Out-of-scope for
this PR; can be addressed by either a one-line symlink (`audits →
reports/audits`) or moving the file. Filing separately if desired.
## Test plan
- [x] `audits/audit-ffi-boundary.md` §§9-11 follow the established §1-§8
format (header + boundary description + invariants list + classification
verdict).
- [x] All 6 new classification entries are syntactically consistent with
the existing 16 (s-expr form, `(file …)` + `(category …)` + `(audit …)`
+ `(rationale …)`).
- [x] GPG-signed commit (key `4A03639C…`).
- [ ] Auto-merge SQUASH armed post-CI.
🤖 Discovered + audited during the post-#104 panic-attack estate sweep
(2026-06-01). See
[hyperpolymath/panic-attack#32](hyperpolymath/panic-attack#32)
for campaign tracker.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 872041c commit e045c20
2 files changed
Lines changed: 216 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
130 | 175 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
0 commit comments