mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-11-25 19:43:29 +01:00
#368 and #369 merged a minute apart. #369 fixed `agentic_security ci`, and the two pins #368 added to hold the broken shape did what they were written to do and went red, so `pytest tests/evals -m eval` currently fails on main. Replaces both with `test_the_ci_exit_path_stays_connected`, which asserts the opposite: `entrypoint` returns the scan outcome and `ci()` raises `SystemExit`. Verified non-vacuous by reverting either half, which turns it red. Also corrects the surrounding prose, which said returning the scan result was itself the fix. Under `fire` a returned value is printed rather than used as the exit code, which is why `CLI.scan` ends in `raise SystemExit`. The guard checks for the raise, not just the return.