Skip to main content

zambo-adk

Zambo verifiable execution receipts for Google ADK (Agent Development Kit) agents.

Attach receipt recording to any ADK agent and every tool execution becomes a hash-chained step in a verifiable workflow receipt (AER-1, Section 8): each step carries the tool name, arguments, result, agent identity, and timestamps, with one Merkle root over the whole run. The hooks only observe: every callback returns None, so ADK executes tools exactly as it would without us. No network calls until you call mint().

Works with LlmAgent and any agent carrying the standard ADK tool callbacks, via per-agent callbacks or a runner-wide plugin.

Install

pip install zambo-adk

Requires google-adk>=1.0 (installed automatically).

Quickstart (zero API keys)

This runs a real ADK agent end to end with a scripted fake model, no keys, no network, and ends at a live receipt URL on zambo.dev:

import asyncio
from google.adk.runners import Runner
from google.adk.sessions import InMemorySessionService
from google.genai import types as genai_types

from zambo_adk import AER1ADKCollector, attach_receipts
from zambo_adk.testing import scripted_agent


def add(a: int, b: int) -> int:
    """Add two numbers."""
    return a + b


async def main():
    collector = AER1ADKCollector(goal="Add 40 and 2")

    agent = scripted_agent(
        "calc", [add],
        script=[("add", {"a": 40, "b": 2})],
        final_text="42",
    )
    attach_receipts(agent, collector)          # line 1: attach

    session_service = InMemorySessionService()
    session = await session_service.create_session(app_name="app", user_id="u1")
    runner = Runner(agent=agent, app_name="app", session_service=session_service)
    message = genai_types.Content(
        parts=[genai_types.Part(text="Add 40 and 2")], role="user"
    )
    async for _event in runner.run_async(
        user_id="u1", session_id=session.id, new_message=message
    ):
        pass                                   # line 2: run

    receipt = collector.finalize(final_answer="42")
    assert collector.verify(receipt) == []     # VALID
    print(collector.mint(receipt))             # line 3: live receipt URL

asyncio.run(main())

Output:

recorded 1 tool call(s), receipt is VALID
live receipt: https://zambo.dev/run/6b3e89e9-1952-4850-aef4-a9534688637c

Swap scripted_agent for your own LlmAgent with a real model and the same three lines give you receipts on every tool call.

Chain it: a job, not a lookup

One call answers a question. A job chains calls and ends in a record a person can open. Attach receipts to an agent running Zambo's tools (the live MCP endpoint at https://zambo.dev/mcp) and give it a chained job instead of a single lookup:

Check the live price of BTC, ETH and SOL, save the run to memory, then wrap it into a handover addressed to me, with the receipt link for every call.

With receipts attached, every step of that chain is recorded as a step in one workflow receipt, hash-chained under one root.

Three prices, a save and the wrap fit inside one free day: every tool free once a day, plus 3 continue calls, and one free wrap-up handover per day. A longer run finishes in one sitting on a Day Pass ($0.99, unlimited for 24 hours). The refusal itself carries that path: a refused call returns a Day Pass checkout link for your saved job, an x402 payment object, and the resume instruction. The job is saved server-side, not lost. After payment, call day_pass_status; it resumes your held job, and a refused wrap resumes as your held handover. Only repeat the refused call if it did not. The handover is the part the person opens: the steps, the saved results, and the receipt for every call, checkable instead of trusted. Ready-made run cards for jobs shaped like this: https://rambozambodotdev.gitlab.io/aer1-hub/handover-templates.html

Runner-wide plugin

To cover every agent under a Runner, including sub-agents, register the plugin on the App instead of attaching per-agent callbacks:

from google.adk.apps import App
from zambo_adk import AER1ADKCollector, AER1ADKPlugin

collector = AER1ADKCollector(goal="Research the launch plan")
plugin = AER1ADKPlugin(collector)
app = App(name="my_app", root_agent=agent, plugins=[plugin])

Plugins run before agent-level callbacks, so the plugin also sees tool calls that an agent callback short-circuits.

What the receipt contains

Workflow level (AER-1 Section 8, Table 2):

  • type, version, workflow_id, receipt_id, session_id
  • goal, status
  • steps: one record per tool execution, seq 1..n in order
  • merkle_root: Section 8.1 root over the ordered step receipt ids
  • output_hash: SHA-256 of the final answer
  • verify_url: where the verification procedure is documented

Step level (AER-1 Section 8, Table 3), plus agent identity:

  • seq, receipt_id, tool, receipt_hash, started_at, ended_at, status
  • agent: the name of the ADK agent that acted (every step)

Each step receipt_hash is SHA-256 over the canonical JSON of the tool name, arguments, result, and error flag. The hash commits to the content; the receipt stays compact. Tool errors are recorded as steps with status: "error" and the exception captured, so failures are auditable too.

Verification

collector.verify(receipt) runs the full offline check and returns a list of failure reasons, empty when valid:

  • all Table 2 / Table 3 members present and well-formed
  • seq values exactly 1..n in order, no gaps
  • no two steps share a receipt_id
  • merkle_root matches the recomputed Section 8.1 root
  • strict RFC 3339 timestamps, lowercase UUIDs, 64-char hex digests

Tamper with any field and verification fails. Try it:

receipt["steps"][0]["tool"] = ""
assert collector.verify(receipt) != []  # fails, as it should

Minting a live Zambo receipt

collector.mint(receipt) submits the finalized AER-1 receipt to zambo.dev for verification and returns the live audit URL (https://zambo.dev/run/<receipt-id>). It uses the free zambo.dev MCP tier: no auth, no API keys. The mint itself is a Zambo tool call, so it carries its own verifiable Zambo receipt.

Notes

  • attach_receipts preserves callbacks already on the agent: ours are appended to the existing callback lists.
  • The collector never touches the network and never changes what the agents do until mint() is called. A recording failure can never break a run.
  • session_id defaults to a fresh UUID per collector; pass your own to correlate receipts across runs.
  • ScriptedModel / scripted_agent in zambo_adk.testing are test helpers: scripted tool-call sequences with no model credentials.
  • Verified against google-adk 2.11.0.

Spec

AER-1: Agent Execution Receipts, draft-zambo-aer1 (an IETF draft): https://datatracker.ietf.org/doc/draft-zambo-aer1/

License

Apache-2.0

Where these receipts run live: Zambo

zambo-adk connects Google ADK agents to Zambo, minting a verifiable AER-1 receipt for every call, and it has been downloaded 1,166 times on PyPI. The live home of those receipts is Zambo, the verifiable work layer for AI. Connect any AI to the live endpoint at https://zambo.dev/mcp or add Zambo to your AI in one step at https://zambo.dev/add/

Free tier: every tool free once a day, plus 3 continue calls. One free wrap-up handover per day, and pickup is always free. The Day Pass is $0.99 for 24 hours, unlimited.

Install:

pip install zambo-adk

Zambo, built by Brennan Zambo, the creator of the AER-1 standard, runs 153 tools in total, 37 on the default surface, behind one MCP endpoint: https://zambo.dev/mcp.

Metadata

Release files for zambo-adk 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zambo-adk 0.1.7
File Size Uploaded Provenance Actions
zambo_adk-0.1.7.tar.gz 16.9 kB Without provenance Details for zambo_adk-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zambo-adk 0.1.7
File Interpreter ABI Platform Actions
zambo_adk-0.1.7-py3-none-any.whl Python 3 none any Details for zambo_adk-0.1.7-py3-none-any.whl

Total release size: 30.9 kB

Release files / zambo_adk-0.1.7.tar.gz

Download URL zambo_adk-0.1.7.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ea05bf6f146e57ce0b55baf5ba79426db01ba52ac5e0cc8c1d112709ebe8ff6f
BLAKE2b-256 checksum
How to use checksums
023fc9e6f676298bec1ded1747518184c1738f0b2578bb9a777be3433d4d918f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via rambo-pypi-grab/0.1.0

Release files / zambo_adk-0.1.7-py3-none-any.whl

Download URL zambo_adk-0.1.7-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f426753612d908ef2b1ee33059710e49aa4f3e3ba38b449a7df8d19b04166cfb
BLAKE2b-256 checksum
How to use checksums
ddacb3caef1f463fe28f483d5631590f9bd66a359cc4c4a3569574f4c74c3211
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via rambo-pypi-grab/0.1.0

Security for zambo-adk 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page