Skip to content

Fix test: default reachability multiplier expectation was not updated - #128

Open
msarg44 wants to merge 1 commit into
Agent-Field:mainfrom
msarg44:fix/scoring-test-default-reachability
Open

Fix test: default reachability multiplier expectation was not updated#128
msarg44 wants to merge 1 commit into
Agent-Field:mainfrom
msarg44:fix/scoring-test-default-reachability

Conversation

@msarg44

@msarg44 msarg44 commented Aug 12, 2026

Copy link
Copy Markdown

The scoring code in src/sec_af/scoring.py was changed to default to externally_reachable (1.0×) when no reachability tags are present (see comment in _reachability_multiplier). The previous default of requires_auth (0.5×) was deemed too penalizing.

The test test_compute_exploitability_score_defaults_reachability_when_missing was not updated to reflect this change. The expected score should be 2.1 (3.0 × 0.7 × 1.0 × 1.0) instead of 1.05 (3.0 × 0.7 × 0.5 × 1.0).

This fix updates the assertion to match the current scoring logic.

…quires_auth to externally_reachable

The scoring code was updated to default to 'externally_reachable' (1.0)
when no reachability tags are present. The previous default of
'requires_auth' (0.5) was deemed too penalizing, but the test expectation
was not updated accordingly.

3.0 (LOW severity) × 0.7 (SANITIZATION_BYPASSABLE) × 1.0 (default) × 1.0 = 2.1
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


zocomputer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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