{"id":"gate.context.v2","title":"The Gate's context: the ledger, plus what the Gate let through for the same caller and has not yet seen on chain","unit":"per check: USD paid in the policy's period, payments in the period, first payment and USD paid to the payee, new payees today","chain_set":"eip155:8453 (Base)","window":"the policy's own periods (a day, 24 hours, 7 days; the new-payee window); pending decisions of the last 12 hours","definition":"The figures a Gate policy's limits are compared with. From the ledger: the agent's counted payments before the check. Added since 17 Nov 2026: the pending payments of the same caller, which are that caller's earlier Gate decisions for the agent that were not block, were made in the last 12 hours, and are not matched by a counted payment (same payee, a block time from 60 seconds before the decision on, an amount within 1%; each payment matches one decision, oldest first). A caller is a Desk session wallet, or a client_ref: a random string of 16 to 64 characters that the client keeps and sends with every check, stored as its SHA-256. A pending payment counts in the period's total, in the amounts paid to its payee and in the day's new payees, and a payee with a pending payment is read as already paid by the new-payee rules. A check with neither a Desk session nor a client_ref counts the ledger only, and its context says so.","method":"Pre-registered on 17 Nov 2026 at 10:13 UTC and committed alone before any code or run (afg-security-lab 02b743ba8b), with five tests and the rule for shipping fixed in advance. Why: a counted payment reaches the ledger late (on the 8,146 counted payments of the three days before: median 159 minutes from block time, 90th percentile 392, 99th percentile 577), so for hours the ledger-only context did not hold what the agent had just paid, and one large payment could pass as many small ones. Results at 10:17 UTC, on the candidate's own functions: twenty payments of 40 to one new payee under a limit of 50 per new payee and 200 a day all passed under the ledger-only context (800 in total); with the pending payments the first passes and the second fails on the new-payee limit, and with the budget alone the sixth fails; twenty new payees under a limit of three a day: the fourth fails; another caller, and a caller without a scope, do not see the first caller's decisions; a decision followed by its payment in the ledger is not pending; and on 191 stored decisions replayed with their stored inputs the decision and the reasons equal those of the code it replaces.","excludes":["Decisions that were block.","Decisions of other callers and of callers without a scope.","Decisions older than 12 hours: by then the ledger holds the payment or it was never made."],"does_not_assert":["That a pending payment was made: a check that was allowed and then not paid counts against the caller's own limits for up to 12 hours.","That an agent which never asks the Gate is covered: a payment made without a check is seen when the ledger has it."],"assumptions":["The client keeps its client_ref outside the reach of the model it guards (in the payment hook's configuration), so a steered agent cannot change it."],"known_gaps":["The out-of-character score of the payment still reads the ledger history only.","A caller that sends no client_ref and has no Desk session gets no protection from this definition."],"intended_use":"Policies with a budget, a new-payee limit or a daily count of new payees, applied before each payment by the operator's own client.","not_intended_for":"A verdict on an agent, a payee or the people behind them; the Gate is advisory and never blocks a payment itself.","source":"AFG-Pulse Gate (lib/gate.mjs gateContextV2), from 17 Nov 2026","since":"2026-11-17","revisions":[],"body_sha256":"ea5ce2a1b47353c7f7b42a6de123c3f8439f151b315dee13e0ff79a67696637e","url":"https://agenticfinancegraph.com/def/gate.context.v2","ladder":"https://agenticfinancegraph.com/ai-agent-liveness-methodology-l0-l9-ladder","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"Agentic Finance Graph — https://agenticfinancegraph.com"}