mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-18 12:39:28 +00:00
chore(p0): retire regress, the skill router, the module audit tool and vocabulary.sc
Off every active line (PATHFINDER-2026-10-13/03-unified-proposal.md, cuts). Deleted: src/openultrasast/regress/ and the deep-mode REGRESS branch (deep now records a regress_retired degradation and equals standard; proof is the search-with-proof arm's job), the sandbox docker runner and probe that only regress used, --fail-on worth-fixing, RegressConfig, the two ledger helpers only regress called; skills.py and index.py with the hunter pool's skill routing; model/audit.py; cpg/queries/vocabulary.sc with benchmarks/push/ontology_gap.py. Docs and the scan skill describe the retirement. Net: 3,895 lines deleted, 86 added. Targeted tests: 180 passed, 28 skipped; 3,331 tests collect. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
94e96c6885
commit
f5a904b7f2
@@ -64,16 +64,14 @@ def test_without_the_semantic_extra_an_unsupported_language_is_named_not_guessed
|
||||
assert ir.reason == "language_unsupported" and ir.parse_ok is False
|
||||
|
||||
|
||||
def test_without_a_sandbox_the_regress_stage_is_skipped_by_name(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
"""A claim that could not be proved because nothing could run it is not the same as a claim that failed."""
|
||||
def test_retired_regress_stage_is_skipped_by_name(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
import json
|
||||
|
||||
from openultrasast.cli import main
|
||||
|
||||
monkeypatch.setenv("OPENULTRASAST_SANDBOX_PROBE", "0")
|
||||
(tmp_path / "app.py").write_text("import os\n\n\ndef run(cmd):\n os.system(cmd)\n")
|
||||
assert main(["scan", str(tmp_path), "--mode", "deep"]) in {0, 1}
|
||||
runs = sorted((tmp_path / ".openultrasast" / "runs").iterdir())
|
||||
manifest = json.loads((runs[-1] / "manifest.json").read_text())
|
||||
reasons = {item["reason"] for item in manifest.get("degradations", [])}
|
||||
assert "sandbox_unavailable" in reasons
|
||||
assert "regress_retired" in reasons
|
||||
|
||||
Reference in New Issue
Block a user