mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 18:28:19 +00:00
fix(valid-detection-benchmark): bind a production spend stage for the adapter path
Add bind_case_adapter_spend_stage and export it from the run module: the stage derives the preparation from the adapter request and commits the shared spend through commit_preparation_spend_and_release, so a receipt minted on this path satisfies the core's shared-spend validation. The legacy release is refused on the same path (contrast test). The bound stage refuses a stage product that differs from the execution the request was validated for, before any custody read or write.
This commit is contained in:
@@ -17,7 +17,7 @@ from dataclasses import dataclass
|
||||
from enum import StrEnum
|
||||
from typing import TypeVar, cast
|
||||
|
||||
from benchmarks.valid.admission_case_adapter import bind_case_adapter_replay_stage
|
||||
from benchmarks.valid.admission_case_adapter import bind_case_adapter_replay_stage, bind_case_adapter_spend_stage
|
||||
from benchmarks.valid.admission_case_graph import AdmissionCaseAdapterRequestV1
|
||||
from benchmarks.valid.admission_execution import (
|
||||
AdmissionExecutionError,
|
||||
@@ -747,6 +747,7 @@ __all__ = [
|
||||
"benchmark_run_command",
|
||||
"benchmark_status_command",
|
||||
"bind_case_adapter_replay_stage",
|
||||
"bind_case_adapter_spend_stage",
|
||||
"bound_operator_context",
|
||||
"validated_operator_configuration",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user