Skip to content

Fix critical false-negative on failed scans and align docs/packaging - #1

Merged
mohelobeid merged 1 commit into
mainfrom
claude/prompt-scan-app-review-6ff9px
Jun 28, 2026
Merged

Fix critical false-negative on failed scans and align docs/packaging#1
mohelobeid merged 1 commit into
mainfrom
claude/prompt-scan-app-review-6ff9px

Conversation

@mohelobeid

Copy link
Copy Markdown
Owner

Code:

  • cli: a scan that cannot run (unreachable target / no payloads) now prints the error and exits 2 instead of rendering a misleading "MINIMAL RISK" clean report with exit 0.
  • analyzer/scorer: add from __future__ import annotations so the package imports on Python 3.8 (re.Pattern[str] / dict[...] annotations were 3.9+).
  • engine: count flagged payloads per-payload so failed_attacks can no longer go negative when a payload yields multiple findings.

Docs / project hygiene:

  • Standardise payload count to 36 (CLI info said 25+, README said 35+).
  • Add docs/API.md (README linked to a missing file) and drop the missing HTML-report screenshot embed.
  • Add .github/workflows/ci.yml running the suite on Python 3.8-3.12, making the documented CI pipeline real; add 3.12 classifier.
  • Add a Python .gitignore.
  • Add tests/test_cli.py covering the failed-scan exit path and info output.

Claude-Session: https://claude.ai/code/session_01JTQie52FfmeY1wwDvn8XF2

Code:
- cli: a scan that cannot run (unreachable target / no payloads) now prints
  the error and exits 2 instead of rendering a misleading "MINIMAL RISK"
  clean report with exit 0.
- analyzer/scorer: add `from __future__ import annotations` so the package
  imports on Python 3.8 (re.Pattern[str] / dict[...] annotations were 3.9+).
- engine: count flagged payloads per-payload so `failed_attacks` can no
  longer go negative when a payload yields multiple findings.

Docs / project hygiene:
- Standardise payload count to 36 (CLI info said 25+, README said 35+).
- Add docs/API.md (README linked to a missing file) and drop the missing
  HTML-report screenshot embed.
- Add .github/workflows/ci.yml running the suite on Python 3.8-3.12, making
  the documented CI pipeline real; add 3.12 classifier.
- Add a Python .gitignore.
- Add tests/test_cli.py covering the failed-scan exit path and info output.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JTQie52FfmeY1wwDvn8XF2
@mohelobeid
mohelobeid merged commit 044bafd into main Jun 28, 2026
5 checks passed
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.

2 participants