feat(detection-core): migrate benchmark readiness and admission consumers

This commit is contained in:
Marius Ciepluch
2026-11-03 18:37:44 +01:00
parent e98d264f62
commit 11059c4cd4
41 changed files with 3223 additions and 862 deletions
+2 -4
View File
@@ -22,6 +22,7 @@ from typing import TYPE_CHECKING, Any, TypeVar
if TYPE_CHECKING:
from openultrasast.hunt.prover import ProverResult
from benchmarks.valid.artifact_contract import write_benchmark_artifact
from benchmarks.valid.readiness_contract import require_stage_authorized
from benchmarks.valid.run_manifests import AnalyzerBundle
from openultrasast.core.readiness import AnalysisIdentity, ReadinessResult, ReadinessStage
@@ -115,10 +116,7 @@ def run_development(
seconds=seconds,
)
records.append(record)
(out_dir / f"{record.change_id}.json").write_text(
json.dumps(asdict(record), indent=2, sort_keys=True) + "\n",
encoding="utf-8",
)
write_benchmark_artifact(out_dir / f"{record.change_id}.json", "development-observation", asdict(record))
return tuple(records)