Repository navigation
fix: return scan-error status for partial URL timeouts - #60
Merged
tayfuryldz merged 1 commit intoOct 2, 2026
Merged
Conversation
tayfuryldz
approved these changes
Oct 2, 2026
tayfuryldz
left a comment
Owner
There was a problem hiding this comment.
I checked this against current main and ran the full maintainer gates locally: pytest, Ruff, and mypy are clean. The diff stays within the issue scope and I did not find a blocking regression.
tayfuryldz
enabled auto-merge (squash)
October 2, 2026 16:56
tayfuryldz
force-pushed
the
ymax27/fix-partial-timeout-exit
branch
5 times, most recently
from
October 2, 2026 17:10
5695a7a to
c30f171
Compare
A per-URL budget expiry is an incomplete scan, so it now exits 2 and keeps precedence over verified findings. Co-authored-by: Cursor <cursoragent@cursor.com>
tayfuryldz
force-pushed
the
ymax27/fix-partial-timeout-exit
branch
from
October 2, 2026 17:11
c30f171 to
6499c37
Compare
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
_result_exit_code()now treatspartial_timeout > 0as an incomplete scan and returns exit code 2.error/partial_errorbehavior is unchanged.docs/CI.mdstates that a per-URL budget expiry is exit code 2.Scope
Fixes #35.
The change stays at the result/exit-code boundary. A partial timeout is not turned into a finding, and evidence gates are unchanged.
Validation
Commands run on this branch:
Observed result: 4 passed.
The integration case uses a localhost handler and a shortened
UrlBudgetso the public CLI path reportspartial_timeoutwithout waiting for the fixed 9 second budget. The slow handler can log aBrokenPipeErrorwhen the client times out; the test still asserts statuspartial_timeoutand exit code 2.ruffandmypyare not installed in this environment, so those gates were not run.Checklist
Made with Cursor