Reserve worker spend durably before governed dispatch
Some checks failed
Governed runtime contract / contract (push) Has been cancelled

Assistant: codex
Assistant-Model: gpt-5.6-luna
Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
tegwick 2026-09-09 17:58:27 +02:00
parent 4ffb8acb19
commit 38b25fbc26
14 changed files with 1378 additions and 9 deletions

View file

@ -137,6 +137,10 @@ class OpsRunConfig:
repo_map: dict[str, str] = field(default_factory=dict)
repo_roots: tuple[str, ...] = DEFAULT_REPO_ROOTS
timeout: float = 30.0
execution_project: str = "rein-aharness"
require_spend_admission: bool = False
spend_policy_path: str | None = None
spend_ledger_path: str | None = None
@classmethod
def from_env(cls) -> "OpsRunConfig":
@ -173,6 +177,10 @@ class OpsRunConfig:
lease_seconds=lease,
repo_map=repo_map,
repo_roots=roots or DEFAULT_REPO_ROOTS,
execution_project=os.environ.get("AGENT_HARNESS_EXECUTION_PROJECT", "rein-aharness"),
require_spend_admission=bool(os.environ.get("AGENT_HARNESS_REQUIRE_SPEND_ADMISSION", "")),
spend_policy_path=os.environ.get("AGENT_HARNESS_SPEND_POLICY"),
spend_ledger_path=os.environ.get("AGENT_HARNESS_SPEND_LEDGER"),
)