You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ROADMAP v2.5.5 Phase 2 — turns the foundation modules (test_context,
comment_marker, ffi_kind, jit_context) into actual FP reduction.
What this PR does:
- Adds `apply_v255_context_suppression(&mut report)` in
src/assail/mod.rs, called automatically from `apply_suppression`
AFTER the kanren-based rule pass.
- Per-finding logic:
1. Marker-based suppression — if a `panic-attack: accepted` marker
is on the same or preceding line, flip suppressed = true.
2. PanicPath in TestOnly/Doc — auto-suppress via test_context
classification.
3. UnsafeFFI in BuildSystem/TestMock — auto-suppress via
FfiKind::is_audit_accepted_by_default().
- Sets WeakPoint.test_context for EVERY finding (even non-suppressible
ones) so downstream audit consumers can render classification.
- Per-file content cache to avoid repeated disk reads.
What this PR does NOT do (future slices):
- JitContext wire-up — the analyzer's inline Cranelift check at
src/assail/analyzer.rs:1117..1129 still works correctly; consolidating
with classify_rust() is a code-cleanup follow-up, not an FP reducer.
- Marker support in /* ... */ block comments — line comments cover the
common case.
- Dedicated WeakPointCategory for "comment-only review" — the four
v2.5.5 ROADMAP items (3 of 4 by my count) are deferred per the
semantic-mismatch analysis in PR #107.
main.rs side:
- Added `mod comment_marker; mod ffi_kind; mod jit_context;
mod test_context;` so the binary crate can see them too (consistent
with how the bin already declares mod assail / mod types alongside
the lib's pub mod).
Verification:
- 359 lib tests pass (353 baseline + 6 new v255_context_suppression
tests covering test-file PanicPath suppression, prod-file pass-through,
build.zig UnsafeFFI suppression, bindings/ pass-through, filesystem
marker scanning, already-suppressed not-recounted).
0 commit comments