{"id":"gate.policy.pin.v1","title":"A Gate policy pinned to an agent by the owner of its registration","unit":"per agent: one pinned policy or none; one stored event per pin, replacement or lift","chain_set":"eip155:8453 (Base)","window":"from a pin until the agent's next pin event","definition":"The owner of an agent's registration can pin one policy to the agent. While a pin is in force, the Gate evaluates every check of that agent twice on the same facts: under the policy the caller asks with, and under the pinned policy with the pinned policy's own counted context. The decision is the worse of the two (block > warn > log > allow). The answer carries both decisions, the reasons of each and which of them decided, and its receipt is gate.receipt.v3. Whoever asks can make an answer stricter and can never make it looser. A pin is set, replaced or lifted by a message signed by the wallet that owns the registration on Base at that moment (ownerOf on the ERC-8004 identity registry); the agent's own paying key can do none of these unless it is that owner. A pin over a pin replaces it. Every event is stored, never changed, and written into the signed statement log.","method":"The message is plain text with fixed lines: this site's name, the action (pin or lift), the agent by chain and registration number, the identity registry's address, the SHA-256 of the policy in canonical form (pin only), a nonce of ours and the time of issue. A nonce is random, bound to the agent and the action, valid for ten minutes and used once. The signature is verified twice. The site verifies it as the Desk sign-in does: a plain key by recovery, a smart wallet by ERC-1271, a smart wallet that is not deployed yet by ERC-6492. The service that stores the event then checks what it can check itself: it recovers a plain key's signer, asks the account's own isValidSignature on two public Base nodes for a deployed smart wallet or a key that has delegated under EIP-7702 (with the inner signature when the wallet wrapped it), and accepts a wallet that is not deployed yet only with a wrapped signature that the site verified. The service reads ownerOf for the registration from the same two nodes at one block, 25 blocks behind the head, and stores nothing unless both name the signer. What can be pinned: one of the named policies (/api/gate/policies), with the limits it has at that moment, or the operator's own policy object; a policy the evaluator does not fully understand is refused. If a later evaluator no longer understands a stored pin, the decision under it is block with the reason pin_not_evaluable. Each event is one stored row with the signed message and the signature, and one record (the event's id, the agent, the action, the policy's SHA-256, the signer, the owner read from the chain, how the signature was verified, the SHA-256 of the message, the time) whose SHA-256 is written into the signed statement log as the leaf publication/1|gate-pin/<event_id>|<sha256>|<time> (agent.statement.log.v1), which the daily Base anchor commits to (anchor.v2). The pin in force is the agent's newest event, in the order in which events were stored, if that event is a pin. At a check, set_by_earlier_owner compares the owner on record in our census of the registry with the owner at the event, and pinned_by_paying_wallet is true when the ledger holds a counted payment of the agent from the wallet that signed the pin. Public at /api/gate/pin?agent=<registration number>: whether a pin is in force, since when, the SHA-256 of the pinned policy, and every event with its record. The body of an operator's own pinned policy is shown only to a Desk session of the wallet that owns the registration at that moment. The rule, eight tests and the rule for shipping were written down on 25 November 2026 at 10:37 UTC, before any code; two amendments of the same day and the changes made to the candidate on 26 November 2026 are recorded with what had been seen at the time. Results: on 340 stored decisions of 30 days and each of the five named policies as the pin, the final decision is the worse of the two in every case (it differs from the decision asked in 0 cases with log-only pinned, 8 with balanced, 15 with recommended, 15 with recommended-v3 and 22 with strict). Without a pin, the code in force and the new code give the same decision, the same reasons and the same receipt body on every stored decision compared (344 decisions and 46 receipt bodies on 26 November 2026). Refused in the tests, with nothing stored: a wallet that does not own the registration; the owner's address with another key's signature; a signature over another agent or another policy; a used or an expired nonce; a change signed by the previous owner after a transfer. Eight submissions of one signed message at the same moment store one event. Eight identical checks sent at once under one reference, asked log-only with recommended pinned ($200 each to a payee never paid before, under a limit of $250 in 168 hours): one allowed, seven blocked by the pin. The time a pin adds to a check: a second evaluation (median 0.02 ms) and one read of our own tables (median 0.4 ms). In force from 26 November 2026, 22:40 UTC. Checked on the live service between 22:40 and 22:42 UTC: the status of a registration without a pin answers that no policy is pinned; a request for a pin message is answered with the message to sign; a correctly signed pin from a key that owns nothing is refused, naming the owner read from Base; a Gate check for an agent without a pin answers as before, with a receipt of version 2.","excludes":["Agents without a pin: their answers and receipts are as before (gate.receipt.v2).","Decisions made before a pin: nothing stored is rewritten.","The shadow evaluation of gate.context.v3: it answers for the policy asked only."],"does_not_assert":["That the agent asks the Gate: an agent that never calls the Gate is not held by a pin.","That the owner wallet is in the operator's hands: whoever holds that key, or takes the registration, can replace or lift the pin.","That the pinned policy is strict: a pinned log-only holds nothing.","That a payment was made or stopped: the Gate is advisory and the client decides."],"assumptions":["The wallet that owns the registration is held by the operator and not by the agent the pin is meant to hold.","The party that signs or accepts the payment asks the Gate and follows its answer."],"known_gaps":["Many registrations are owned by the agent's own paying wallet. For those a pin shows intent and no more, and the answer says so (pinned_by_paying_wallet).","A replaced or lifted pin takes effect at once; there is no waiting time. The public log shows every change.","A registration that changes hands carries its pin until the new owner changes it. The answer says the pin was set by an earlier owner once our census of the registry holds the transfer, which can take hours.","The pinned policy's budget and new-payee limits use the context we count (gate.context.v2): a payment the ledger does not hold yet counts only for a caller that sends its reference with every check.","Anyone can ask about any agent and learn from the answers where a pinned limit lies: the reasons of an answer name a limit that fired.","One pin per agent: none per payee, per day or per caller.","Tested on the two public nodes before release: the reading of ownerOf, and the refusal of a correctly signed pin from a key that owns nothing. Tested against stand-in nodes and the documented signature format only: an accepted pin, and the smart-wallet paths (ERC-1271, ERC-6492)."],"intended_use":"An operator's own limits that the agent, and anyone who talks the agent into something, cannot loosen by asking the Gate with a weaker policy; and a way for a seller or a co-signer to see from the receipt that a payment was checked under limits the operator pinned.","not_intended_for":"A statement that an agent, a payee or a payment is safe, or a control that stops a payment by itself: the Gate is advisory and never blocks a payment.","source":"AFG-Pulse intake (lib/gatepin.mjs; lib/gate.mjs gateCheck)","since":"2026-11-26","revisions":[],"body_sha256":"93b5f46b8e9f3c54a05e2ce0419223022fae25fc04d3c391250ddb38975022a3","url":"https://agenticfinancegraph.com/def/gate.policy.pin.v1","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"}