Skip to main content

Module executor

Module executor 

Source
Expand description

The governed path every binding enters (spec 3.5 §7.4, D-4, A-I7, A-I8; AWP 2.0 §7.5).

GovernedExecutor answers a capability call the same way whether it arrived over HTTP, A2A, MCP or a public agent’s conversation. In order:

  1. Visibility by tier and deprecation — a hidden or sunset capability is capability_not_found.
  2. Read-only mode and the kill switch — a non-read_only capability answers read_only.
  3. The caller’s daily call limit — rate_limit_exceeded.
  4. The input schema, the idempotency key a non_idempotent capability requires, and a live consent receipt for a consent-bound one.
  5. The idempotency record: a repeat with the same key and input returns the recorded outcome — output, error or held call — without executing; the same key with another input is idempotency_conflict.
  6. adk_core::authorize_tool_call under CapabilityPolicy, the owner’s ApprovalService, the action ledger and the audit trail: the call executes, is refused, or is held for the owner (202 with Location: /awp/v2/calls/{id}).

A held call waits in the approval store for as long as the owner takes — spec 3.3’s park on timeout — until its decision arrives; GovernedExecutor::resolve then runs it through the same path, or ends it rejected or expired.

Structs§

GovernedExecutor
The governed CapabilityExecutor of the edge (spec 3.5 §7.4).
KeySources
Where a binding found the idempotency key of a call (AWP 2.0 §7.7, C7, C8).

Constants§

EDGE_AGENT_NAME
The name the edge’s governed calls are recorded under.