signed-policy-agentic-commerce

signed-policy-agentic-commerce is a command for Claude Code from PostOakLabs/ainumbers. It costs 28 tokens per session (496 once invoked), scanned A, original, MIT.

A worked workflow for making a purchasing agent follow a signed spending policy. It tests both a purchase over the policy limit and one within the limit, then records the outcomes for later checking.

In plain words
What is it for?
Use it to test signed spending limits, escalation handling, compliant and non-compliant purchases, and replayable evidence of the decisions.
Why use it?
It shows whether an automated purchase was governed by an explicit mandate and whether an over-limit action was escalated instead of proceeding normally.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ainumbers plugin — 1 skill, 5 commands shipped together

Good fit Use it to test signed spending limits, escalation handling, compliant and non-compliant purchases, and replayable evidence of the decisions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/postoaklabs/ainumbers/signed-policy-agentic-commerce
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/PostOakLabs/ainumbers

Made for: Claude Code.

Or install ainumbers, the plugin that ships this one along with the rest of its 1 skill, 5 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for signed-policy-agentic-commerce

README.md
[![agentmods](https://agentmods.dev/badge/commands/postoaklabs/ainumbers/signed-policy-agentic-commerce.svg)](https://agentmods.dev/commands/postoaklabs/ainumbers/signed-policy-agentic-commerce)
Your own site
<a href="https://agentmods.dev/commands/postoaklabs/ainumbers/signed-policy-agentic-commerce"><img src="https://agentmods.dev/badge/commands/postoaklabs/ainumbers/signed-policy-agentic-commerce.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00496
Opus 5 $0.00014 $0.00248
Sonnet 5 $0.00006 $0.00099
Haiku 4.5 $0.00003 $0.00050

Measured yesterday against content hash 7fdfba141a3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

signed-policy-agentic-commerce scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent-kit/claude-plugin/commands/signed-policy-agentic-commerce.md · 21 lines

What it actually says

Agent buys under a signed policy, and proves the policy governed

Act as a procurement agent operating under a signed spend policy. Produce a receipt that proves the policy governed every step.

  1. Call find_chain with "agent commerce conformance" and pick the chain named agent-commerce-conformance. Call build_chaingraph on it and list each step's required policy_parameters.
  2. Draft a Work Mandate (OCG §22): principal "treasury-ops", agent "procurement-bot-01", scope limited to this chain, per-transaction cap 2,500 EUR, validity 24h from now. Call vc_issue to sign it, then show me the mandate_hash.
  3. Call run_chain on agent-commerce-conformance with escalation_transport "resolve_handle", passing the signed mandate and synthetic inputs where a cart total of 3,100 EUR breaches the cap. Report per-step status, the composite execution_hash, and the escalation record with its record_hash and resolve handle.
  4. Re-run with a 1,900 EUR cart. Report the composite hash and confirm no escalation.
  5. For the compliant run, call verify_execution_hash on the composite artifact, then emit_chaingraph_artifact to get the in-toto link set. Confirm each link's materials equal the previous step's products.
  6. Open the ledger_url for the compliant run. Report what the §21 gate replay shows and whether the §16 signature and mandate_hash check pass.
  7. Now prove the counterparty would accept the agent: on https://ainumbers.co/chaingraph/art-129-webbotauth-signature-verifier.html, use the page's WebMCP tool to verify a WebBotAuth-signed request header for procurement-bot-01 (synthetic sample). Record the hash.
  8. Call build_session_receipt over all hashes in order (mandate, both runs, identity check) and anchor the root with anchor_hash (FreeTSA RFC 3161). Return the session root, the anchor receipt, and a five-line summary: who authorised, what ran, where it breached, what a human still has to close out (the open resolve handle).

Finish by stating the execution_hash you received and the ledger link a human can verify it at.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 21 lines · 28 tokens per session scan A 7fdfba141a3d

Subscribe to this mod's changes

signed-policy-agentic-commerce is a command published in the GitHub repository PostOakLabs/ainumbers (5 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 496 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.