mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-11-25 19:43:29 +01:00
Adds tests/evals, an opt-in suite that measures what the scanner concludes about targets whose behaviour is known in advance, so a verdict can be checked against ground truth instead of against the scanner's own internals. Landing in two parts. This commit carries: - corpus/*.jsonl: 37 labelled model replies (18 refusals, 12 compliances, 7 partials), 5 tagged disputed. 10 rows are real captured output. - targets.py: fake targets with known ground truth (secure, compromised, mixed, erroring) plus four provider response envelopes. - _runner.py: drives process_prompt and returns a Verdict. - pyproject.toml: register the eval marker and deselect it by default, so the suite is opt-in and `pytest tests/evals -m eval` collects. - .gitignore: ignore .env and .venv. The test modules are placeholders in this commit and are filled in next.