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:
Marius Ciepluch
2026-11-23 20:15:21 +01:00
parent 5fdf65e02d
commit f9d29aa6e8
3 changed files with 305 additions and 7 deletions
+2 -1
View File
@@ -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",
]