mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-20 13:39:27 +00:00
chore: remove retired specs and dead code, state the 2026-10-13 focus
fossil-mcp dead-code over src found 72 candidates; 69 are referenced by tests, __all__ or other modules, 3 are not and are removed (cli._first_source, pairs._scorable, provider.openrouter._extract_message_content). Eight spec directories that steering already called retired or superseded leave the tree (history keeps them, commits named in overview.md): harnessx-removal, harnessx-self-improving-rulesets, openrouter-sast-harness, learning-harness, constrained-detector, three-stage-scan, real-world-vfc-slice, unseen-repo-evaluation. overview.md gets a current-state section: the valid benchmark numbers, what they say, and the four active lines in order. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
3b8327ee51
commit
e979fb0d95
@@ -1168,11 +1168,6 @@ def _mechanisms(case: PairCase) -> tuple[str, ...]:
|
||||
# --- metrics ---------------------------------------------------------------
|
||||
|
||||
|
||||
def _scorable(outcomes: Sequence[PairOutcome]) -> tuple[PairOutcome, ...]:
|
||||
"""Rows that could be scored. An unscorable row leaves every rate rather than counting as a miss (Req 4.1)."""
|
||||
return tuple(item for item in outcomes if item.unscorable is None)
|
||||
|
||||
|
||||
def _metrics(outcomes: Sequence[PairOutcome]) -> PairCorpusMetrics:
|
||||
pairs = len(outcomes)
|
||||
detected = sum(1 for item in outcomes if item.detected_vuln)
|
||||
|
||||
Reference in New Issue
Block a user