Agent synthesis

Deterministic per-call authorization guards the individual action, but it leaves the sequence of individually permitted calls open to structuring attacks, and closing that gap requires aggregate state that the shipped spec does not yet have.

The sampled note argues that runtime policy enforcement relocates prompt-injection defense from the prompt into the orchestration layer, where tools are pinned against an approved baseline, arguments are checked for capacity and authority, and every proposed call is evaluated by a policy engine before it runs. The new source formalizes this layer as the Open Agent Passport: a signed passport binds an agent to a capability scope, a declarative before_tool_call hook fires synchronously at the framework level, a decidable rule fragment evaluates each call in O(n) time, and every decision writes a signed audit record in a median 53 ms. The attack result is the sharpest statement of why the hook placement matters: in the Vault testbed, social engineering against the model succeeded 74.6% of the time under a permissive policy, while a restrictive policy denied 879 attempts with 0% success, because the model could not be made to decline a call but the policy engine could not be made to allow one.

Neither input alone says that the per-call boundary and the trajectory boundary are separate problems. Per-call determinism kills the model-judgment path, yet OAP v1.0 evaluates each tool call independently, so a chain of small transfers each below the per-transaction limit can still exceed an aggregate ceiling: the sampled evergreen’s trajectory evaluator treats the lethal trifecta as a sequential-risk rule, while the new source shows the per-call engine cannot see it. The v1.1 draft adds sliding-window policy packs that keep per-agent aggregate state to detect exactly this structuring, but that control is still unbuilt alongside the specified-but-unfinished ESCALATE human-in-the-loop path, so any current deployment is protected at the call boundary and blind at the trajectory boundary. Fail-closed pays a cost too: malformed contexts are denied with oap.evaluation_error rather than executed, producing 7.1% of all denials in the testbed, so the same rejection path that catches adversarial malformed requests also catches legitimate malformed calls.

Follow the sampled note’s prescription for per-call orchestration policy, but treat aggregate-window and trajectory-aware checks as an in-flight gap rather than a shipped control, keep evaluation_error denial rates visible as a health signal, and pin the highest-value capability first. (see: per-call enforcement guards the action, not the sequence)

Where it comes from

What this builds on