Repository navigation
fix(parasite-risk): keep failed crawls out of low-risk results - #431
Merged
AgriciDaniel merged 1 commit intoNov 15, 2026
Merged
AgriciDaniel merged 1 commit into
AgriciDaniel merged 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When every fetch fails, the scanner currently reports
overall_risk: lowand exits successfully despite auditing zero pages. HTTP error bodies are also counted as successfully audited content, so a 404, rate-limit page, or server error can look like a low-risk article.Treat HTTP failures as crawl errors. Report unknown risk when there are no usable pages and return a failing CLI exit status, while retaining the per-URL errors.
Validation
python -m pytest -q tests/test_parasite_unavailable_audits.py tests/test_content_quality.py tests/test_phase_j_executable.py: 83 passed.ruff check scripts/parasite_risk.py tests/test_parasite_unavailable_audits.pyandgit diff --check: passed.CHANGELOG.md.