Skip to content

feat: add combined scanner preflight CLI - #12

Open
mattpartida wants to merge 1 commit into
mainfrom
feat/phase23-preflight
Open

mattpartida wants to merge 1 commit into
mainfrom
feat/phase23-preflight

Conversation

@mattpartida

Copy link
Copy Markdown
Owner

Summary

Phase 23 combined preflight wraps the three existing scanner CLIs (config_risk_summary.py, score_prompt_injection_exposure.py, flag_prompt_injection_signals.py) for local and CI smoke jobs.

  • JSON default with schema_version, ok, nested scanner_results, and summary
  • --format markdown and --format sarif
  • --strict fails closed on high-risk config, flagged signals, or high/critical/error exposure
  • Missing --config/--text inputs fail closed with empty stdout
  • Child scanner defaults are unchanged

Test plan

  • uv run --python 3.11 --with pytest pytest -q → 158 passed
  • ruff check / ruff format on new files
  • python3.11 -m compileall -q skills tests

Phase 23 wraps config-risk, exposure scoring, and
prompt-injection signal scanners for local and CI smoke jobs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant