Bind the metered owner route to worker leases and sandbox lifecycle
Some checks failed
Governed runtime contract / contract (push) Failing after 23s

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
tegwick 2026-09-09 22:24:37 +02:00
parent c30806b968
commit 3e4c976090
13 changed files with 502 additions and 9 deletions

View file

@ -141,6 +141,8 @@ class OpsRunConfig:
require_spend_admission: bool = False
spend_policy_path: str | None = None
spend_ledger_path: str | None = None
require_request_admission: bool = False
messages_owner: Any = field(default=None, repr=False)
@classmethod
def from_env(cls) -> "OpsRunConfig":
@ -181,6 +183,7 @@ class OpsRunConfig:
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"),
require_request_admission=bool(os.environ.get("AGENT_HARNESS_REQUIRE_REQUEST_ADMISSION", "")),
)