Skip to content

Verfy CLI 0.25.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 06:13
· 18 commits to main since this release
fc7f0fa
  • Receipts for any agent. Any program can now sign a receipt for an action it took, not only a coding agent's tool calls: a refund, an email sent, a row deleted, a deploy. verfy.Recorder(agent="refund-bot").record("refund", system="stripe", kind="payment", args={...}), the @rec.track(...) decorator (plain and async functions; a raised exception is recorded as error and raised again) and the with rec.action(...) block write a verfy.receipt/1 receipt with the same key and chain as the hook, so verfy verify, verfy.dev/verify and Verfy Cloud check it like any other. From any other language: verfy record ACTION --system S --kind K --args JSON.
    • Only salted hashes of the arguments and the result are kept unless you ask for the arguments (include_args, secrets redacted). Decimal, datetime, UUID, sets, dataclasses and pydantic models are recorded as data; integers beyond JavaScript's safe range become text so the Python and JavaScript engines sign the same bytes.
    • Anything Verfy Cloud would refuse is refused before anything is written, so one record can never stop later uploads. A record that fails after the action ran is logged and the program carries on. Threads and processes record at once without forking the chain; the key is created once even when two processes start together.
    • A record's decision.policy_sha256 is "none": no Verfy policy decided it.
  • Share links (Verfy Cloud). verfy share (or rec.share()) uploads what is waiting and prints a link anyone can open to check one receipt: its signature, its place in the chain and when Verfy received it. verfy share --agent links to the device's whole record as numbers (receipts, kinds, outcomes, first and last), never one action's details. Links can expire (--expires-days) and be revoked in the dashboard. A receipt that carries its arguments cannot be shared.
  • Verfy's witness statement. Each link and each answer of the new verification API carries a statement signed with Verfy Cloud's own Ed25519 key (verfy.witness/1): the receipt's hash, when it first reached Verfy and the state of the chain. verfy witness verify proof.json checks it offline with the key published at verfy.dev/.well-known/verfy-witness.json, and checks the receipt inside against the device key. A shared test vector keeps the Python and JavaScript signatures byte for byte the same.
  • The verification API (Verfy Cloud). Insurers, auditors and marketplaces that check other teams' agents make a verifier key under Usage & API and call GET /api/v1/verify/shares/{token} or POST /api/v1/verify/receipts (does Verfy have this signed receipt, and since when). Every call is counted; the dashboard shows this month's receipts, records, links and checks.
  • Stop an action before it runs. Recorder(rules=[...]) checks rules before each tracked call: by kind, system or action name, with a limit on one action (over) or on today's total (daily), and ask or deny. A person approves an ask in Verfy Cloud's approval queue (on_ask="team", which sees the rule and its message, never the arguments) or through your own function. A stopped call raises verfy.ActionDenied, never runs, and is recorded as blocked or declined. It fails closed: a missing amount counts as over the limit, an approver that cannot be reached declines, and daily totals are kept under a lock so two processes cannot both spend the last of a limit. Rules also come from ~/.verfy/policy.json and the team policy ("actions").
  • LangChain, the OpenAI Agents SDK and CrewAI. verfy.integrations.langchain.VerfyCallbackHandler, verfy.integrations.openai_agents.VerfyRunHooks and verfy.integrations.crewai.VerfyCrewHooks record every tool call and check the rules before it, with nothing to change in the tools. Each is tested against the real framework (a CrewAI crew and an Agents SDK run with a model that makes no network call); none is a dependency. A call CrewAI's hook cannot check is blocked, because CrewAI runs the tool when a hook fails.
  • Node.js and the Vercel AI SDK. verfy-cli/js/verfy-node.mjs records the same receipts from Node.js 18 and later; the tests check Node's receipts with Python and Python's with Node. withVerfy(tools, rec) (verfy-ai-sdk.mjs) records every tool call of a Vercel AI SDK agent, tested with a real generateText run. node scripts/build-npm.mjs builds both as the npm package @verfy-dev/receipts with types.
  • Deals two agents sign (verfy.deal/1): seller.offer(...) and buyer.accept(offer) give each side a receipt in its own chain, the second naming the first, over the same terms; verfy deal verify checks both. Payments tied to a mandate: rec.record_payment(amount, currency, payee=..., mandate=...) keeps the amount and payee only as a salted hash and names the mandate it carried out by its hash (verfy deal hash). These receipts hold only references, so they upload without --allow-args.
  • Incident packs. verfy incident export --since --until [--agent] [--prove] [--attest] writes every receipt in a window as one unbroken run of the chain, with the key, with --prove Verfy's public-log proof for each, and with --attest Verfy Cloud's signed statement of which of them it holds and since when (it receives only their hashes); verfy incident verify checks it all offline.
  • Verfy as the deal's witness (Verfy Cloud). POST /api/v1/verify/deals with a verifier key checks a deal, says when each side's receipt reached Verfy and where it is in the public log, and signs that. verfy deal verify --online asks it and checks the signature.
  • Verfy's public log (Verfy Cloud). Every receipt Verfy accepts becomes the next leaf of one append-only RFC 6962 Merkle tree of receipt hashes; its size and root are signed with the witness key at least daily. verfy log prove checks a receipt is in it; verfy log watch checks the newest head only added to the heads this machine saw before, so Verfy cannot quietly drop or change a receipt it accepted. New public endpoints: /api/v1/log, /api/v1/log/proof, /api/v1/log/consistency, /api/v1/log/heads.
  • Attacks no rule names yet. Three layers beyond the rules. Escalation: a session that tried something Verfy blocked, or several suspicious things, needs approval for every risky action for an hour, and after more tries is blocked (VFY-AD-001, VFY-AD-002). Novelty: after a warm-up of 50 actions, a program that reaches the network or runs inline code, or a host, this machine's agents never used is asked about once (VFY-AD-003); nothing is learned from a session under escalation. The rule feed: verfy rules update takes rules Verfy publishes between releases, signed with its witness key; a feed rule can only ask or deny, the first signing key is remembered and an older feed is refused; machines enrolled with automatic upload refresh it daily. verfy adaptive shows what was learned. Policy: "adaptive": {"escalate", "novelty", "warmup"}, which a repository's policy can only tighten.
  • New rules for shapes no earlier rule caught: code that only exists after decoding run by bash -c, eval or an interpreter (VFY-SH-041), data sent out in a DNS name or a web address built from a command's output (VFY-SH-039; nslookup, dig, host and drill now count as reaching the network), and a browser's saved passwords or cookies read (VFY-SH-040). Both engines check them on the shared fixtures. A custom rule can name "kind": "shell" to apply to commands only.
  • verfy doctor --live runs each installed hook exactly as its agent does (Claude Code, Cursor, Codex, Gemini CLI, Copilot, Windsurf, Devin), with a harmless and a destructive call in that agent's format, in a throwaway Verfy folder: the command must start, answer in time, let ls pass and stop rm -rf ~.
  • verfy demo shows each rule on its own again. Its project folder sat inside the demo's Verfy folder, which Verfy protects, so writing notes.md was blocked when it should run; the project now sits next to it. Escalation is off in the demo, and the demo says what it would have done.
  • The formats are written down in docs/spec: receipts, rules, witness statements, the log, deals and incident packs.

pip install -U verfy or verfy update. Check a file: sha256sum -c SHA256SUMS --ignore-missing, then python -m sigstore verify github FILE --bundle FILE.sigstore.json --repository verfy-dev/verfy.