mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-17 03:59:28 +00:00
chore(p0): drop never-enabled hunter tools, test-only functions and receiver delivery
Off every active line (PATHFINDER-2026-10-13/03-unified-proposal.md, cuts). Deleted: the four hunter tools no caller enables (read_definition, entry_points, flows, obligations) with their schemas and dispatch, the dead mapping branch of find_refs; 20 functions whose only caller was one test (mapping task records, compute_ranking_metrics, build_quick_hunter_prompt, validate_evidence_transition, should_fuse, harness processors, rank_targets_with_model, model/report slice rendering, taxonomy hierarchical/related, config_value.verdict, taint.verdict, roles.load_roles, features.language_of and build_for_scan, folds.leave_one_*, features.recorded_case, search BatchExecutor and the three __main__ shims, delivery.put_input); the receiver delivery mode of the plane. push_inputs.py moved to benchmarks/push. memory.purge stays: the live-S3 test cleanup uses it. Net: 2,730 lines deleted, 207 added. 473 targeted tests passed; 3,282 tests collect. breadth.toml records the removals. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
f5a904b7f2
commit
f63703a604
@@ -7,7 +7,7 @@ from __future__ import annotations
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
from openultrasast.learn.features import Vocabulary, build_for_scan, function_of, model_sinks_part, roles_part
|
||||
from openultrasast.learn.features import Vocabulary, function_of, model_sinks_part, roles_part
|
||||
from openultrasast.learn.roles import (
|
||||
RoleSet,
|
||||
base_roles,
|
||||
@@ -168,22 +168,6 @@ def test_a_language_without_declarations_is_none_not_failed() -> None:
|
||||
assert source_part(["def g():", " pass"], "python", "missing").state == "failed"
|
||||
|
||||
|
||||
def test_build_for_scan_records_the_roles_instrument(tmp_path: Path) -> None:
|
||||
from openultrasast.findings import quick_scan_findings
|
||||
from openultrasast.preprocess import preprocess_repository
|
||||
from openultrasast.rank import rank_targets
|
||||
|
||||
_write(tmp_path, "app/one.py", "import os\n\n\ndef inner(value):\n os.system(value)\n")
|
||||
_, targets = preprocess_repository(tmp_path)
|
||||
assert targets and (tmp_path / targets[0].path).stat().st_size > 0, "the fixture was read"
|
||||
findings = quick_scan_findings(tmp_path, targets, rank_targets(targets))
|
||||
records = build_for_scan(tmp_path, findings, None)
|
||||
assert records and records[0]["instruments"]["roles"]["state"] == "ran"
|
||||
assert records[0]["x"]["roles.sink_confidence"] == 1.0
|
||||
off = build_for_scan(tmp_path, findings, None, roles=False)
|
||||
assert off[0]["instruments"]["roles"]["state"] == "none" and off[0]["x"]["roles.sink_confidence"] is None
|
||||
|
||||
|
||||
# --- model roles: the plane task under a scripted client ----------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user