mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-18 12:39:28 +00:00
feat(pre-push-safety-net): render the experimental evaluation explanation (M1b 10.10)
The M1b exit run established the comparison but could not show a developer-readable consequence or repair direction, because both belong to an evaluated capability declaration and the installed registry is deliberately empty. The experimental evaluation output now renders, for each change-attributed finding, its family, exact location, witness, change attribution, provenance, engine method and operation, together with a consequence and repair direction produced from a supplied declaration through the same grounded-template path the admitted case uses. No prose is invented: when no declaration matches, or a template is not grounded in the operation and context, or the declaration does not cover the operation symbol, the explanation is absent and the reason is stated. Declarations reach this rendering only. The runner never passes them to admission, so nothing in that file can enable a capability or emit an alert however it is written, and a control asserts that even a declaration claiming PASS admits nothing. The flag requires explicit base/head replay and the recorded-veto flag. The evaluation instrument generates its own unreviewed declaration bound to the run's analysis semantics, asserting that it is neither enabled nor PASS, so the demonstration cannot drift into a qualified claim. 1,377 tests passed, nine skipped. Rollout stays NO-GO. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
This commit is contained in:
co-authored by
Claude Opus 5
parent
57d6ddcbba
commit
cec1c4a428
@@ -202,9 +202,12 @@ def _experimental_line(experimental: Mapping[str, object]) -> str:
|
||||
vetoes = sum(len(f.get("vetoes", [])) for f in findings if isinstance(f, dict)) if isinstance(findings, list) else 0
|
||||
base = experimental.get("base_only_findings")
|
||||
quiet = len(base) if isinstance(base, list) else 0
|
||||
evaluation = experimental.get("evaluation")
|
||||
explained = len(evaluation) if isinstance(evaluation, list) else 0
|
||||
return (
|
||||
f"recorded-veto evaluation retained {count} raw finding(s) with {vetoes} recorded veto(es) and "
|
||||
f"{quiet} base-only finding(s) in the detailed result; recorded, not applied; not an alert."
|
||||
f"recorded-veto evaluation retained {count} raw finding(s) with {vetoes} recorded veto(es), "
|
||||
f"{quiet} base-only finding(s) and {explained} change-attributed evaluation finding(s) in the detailed "
|
||||
f"result; recorded, not applied; not an alert."
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user