All Insights

    AI Era · 6 min

    The Contract Runs on Every Call

    Runtime policy engines for agents arrived this month. They enforce whatever you wrote down — and nothing you didn't. Every Tool Contract row should compile into a rule outside the agent, and every verdict should leave a receipt. A judge can add a no. It cannot add a yes.

    Written for: Product leaders whose agents call tools, connectors, and MCP servers in production

    The contract is not the control

    A Tool Contract says what an agent may touch. On its own it is a document. The agent never reads it, and a model can be talked out of any rule placed in its instructions — by a persuasive user, or by a document that tells it to do something nobody asked for. The contract becomes a control only when something outside the agent checks every call against it before the call runs.

    Why now

    In the same week of November, Microsoft and Google both shipped runtime policy services for enterprise agents: a check that sits between the model's proposed tool call and its execution, returns allow, deny, or a modified call, and logs why. Banking supervisors are converging on the same idea, asking that an agent act only for an approved intent within a defined delegation of authority. The enforcement layer now exists. What most teams lack is the thing it enforces.

    The rule

    Every row in the Tool Contract compiles into at least one rule at an enforcement point outside the agent. If a row cannot be enforced, it is not a grant; it is a hope.

    A judge can add a no. It cannot add a yes.

    From row to rule

    Tool Contract columnRuntime ruleEvaluated byOn failureReceipt records
    Allowed verbsAllow-list of tool + verb; everything else is deniedDeterministic ruleDenyRow ID, policy version, verb
    Data classData of this class may leave only to approved destinationsClassifier + deterministic ruleDeny or redactData class, destination, policy version
    Ceiling ≤ tierAt T1/T2, the call needs a human approval for this specific actionDeterministic ruleHold for a humanApprover, action, timestamp
    Caps (amount, count, scope)Hard limits on value, volume, and targets per call and per dayDeterministic ruleDenyCap, attempted value, policy version
    Intent matchThe call must serve what the user actually asked forLLM judge (may deny, never grant)Deny; escalate to a humanVerdict, judge rationale, policy version
    OwnerThe row owner owns the policy and its version history——Policy owner on every receipt
    Kill pathOne switch at the enforcement point disables the tool for this agentDeterministic ruleDeny all calls to the toolWho pulled it, when, why

    Rules for authority, judges for judgment

    Use deterministic rules for anything that grants authority: verbs, ceilings, caps, destinations, the kill path. Use classifiers and LLM judges to catch what rules cannot express, such as a call that technically fits the contract but not what the user asked for. Judges are probabilistic, so they may only narrow. Run them in dry-run first, measure their false denials against the eval set, and fail closed at T2 and above.

    Keep the receipt

    Each verdict should name the contract row and the policy version that decided it. That turns an incident review from reconstruction into lookup, and it makes re-attestation honest: loosening a policy widens what the agent may touch, so it is a new ship. Tightening it is a hotfix.

    What to tell the board

    "Every tool our agents can call is in a written contract. Every contract row is enforced outside the agent before the call runs. Every decision leaves a receipt that names the rule and its version."

    Copy-paste

    Runtime Enforcement block

    ### Runtime Enforcement
    Every Tool Contract row compiles into a rule at an enforcement point outside the agent.
    
    | Tool / connector | Enforcement point | Rule type (deterministic / classifier / judge) | On failure (deny / hold / redact) | Mode (dry-run → enforce date) | Receipt store |
    | --- | --- | --- | --- | --- | --- |
    |  |  |  |  |  |  |
    |  |  |  |  |  |  |
    |  |  |  |  |  |  |
    
    Rules: no Tool Contract row without an enforced rule. Authority is deterministic: verbs, ceilings, caps, and destinations are rules, not judgments. A judge can add a no; it cannot add a yes. Fail closed at T2 and above. Dry-run before enforce, and count the dry-run as part of the eval spec. Every verdict leaves a receipt that names the contract row and the policy version. Loosening a policy is a new ship; tightening it is a hotfix.
    
    —
    CC-BY Product Leading · https://www.productleading.com/insights/the-contract-runs-on-every-call
    

    Free to copy and use in your PRDs. Attribution: Product Leading. CC-BY 4.0.