Summary
Add a test that runs a mini pipeline and checks the JSONL audit log matches expected events.
Why
Ensures scanners + policies integrate correctly, prevents regressions.
Acceptance criteria
- New test in
tests/test_audit.py.
- Uses
DummyRetriever + mixed docs (secret, PII, injection).
- Asserts that deny/allow/rerank appear in audit file.
Difficulty: medium
Summary
Add a test that runs a mini pipeline and checks the JSONL audit log matches expected events.
Why
Ensures scanners + policies integrate correctly, prevents regressions.
Acceptance criteria
tests/test_audit.py.DummyRetriever+ mixed docs (secret, PII, injection).Difficulty: medium