TerraID Protocol Paper

Accountability Infrastructure for the Agentic Economy

Passports for autonomous agents — cryptographic identity with jurisdictional boundaries, scoped delegation, and Merkle-logged activity.

v0.1.0July 2026TerraID Labs

Abstract

The agentic economy is arriving faster than the infrastructure to govern it. Within 18 months, autonomous AI agents will negotiate leases, execute financial transactions, manage buildings, conduct environmental monitoring, and deploy capital — without a human approving every action.

Today, there is no universal protocol for answering the four questions every autonomous agent interaction demands: Who is this agent? What is it allowed to do? Where is it authorized to operate? What did it actually do?

An AI agent deployed in London should not be able to execute actions on assets in Dubai without explicit cross-jurisdiction delegation. An agent trained on UK building regulations has no authority over Nigerian land rights. Yet today, nothing enforces this — jurisdiction is a policy document, not an architectural constraint.

TerraID is accountability infrastructure. Every agent receives a cryptographic identity bound to a physical jurisdiction. That identity determines not just who the agent is, butwhere it can operate and whatit can do there — enforced mathematically through delegation chains, not linguistically through system prompts. Every action is logged to a tamper-evident Merkle ledger, anchored on-chain. Passports for the agentic economy — verifiable, auditable, and architecturally impossible to circumvent.

1. The Problem: Agents Without Accountability

Every major AI lab is building agent frameworks. OpenAI’s Agents SDK, Anthropic’s Claude Code, Google’s A2A protocol, Microsoft’s AutoGen — all are racing to deploy autonomous agents that can take actions in the real world.

But these frameworks share a critical gap: they have no trust infrastructure for the physical world.

An AI agent managing a building cannot cryptographically prove it is authorized to act on behalf of the owner. A prospecting agent cannot verify which geological survey data is authentic. A DeFi protocol tokenizing a property cannot verify who actually holds the title. An insurance agent cannot prove it inspected the premises it claims to have inspected.

The root cause is structural. People have decentralized identifiers (DIDs). Companies have Legal Entity Identifiers (LEIs). Money has wallet addresses. But physical space — the largest asset class on Earth at $300 trillion in land alone — has no cryptographic identity standard.

Current AI safety approaches focus on constraining model behavior through system prompts, RLHF, and constitutional AI. These are necessary but insufficient for autonomous agents operating on real-world assets. A system prompt can be jailbroken. An RLHF-trained refusal can be bypassed with prompt injection. The constraints are linguistic, not mathematical.

What’s needed is infrastructure — external, cryptographic constraints that are architecturally impossible to circumvent, not merely difficult to bypass.

2. The Protocol: Three Pillars of Agent Accountability

TerraID addresses agent accountability through three interlocking protocol primitives. Each pillar is necessary; together they are sufficient for verifiable autonomous agent governance.

Pillar I — Spatial Identity

Every agent needs an answer to where.TerraID assigns a deterministic cryptographic identity to every 3-meter cell on Earth. The identity is computed from pure mathematics — the same coordinates always produce the same identifier. No lookup table. No API. No vocabulary.

terra://tid/<spatial-cell>/<entity-type>/<entity-id>

  Spatial cell — deterministic from coordinates
  Entity type  — property, licence, facility, etc.
  Entity ID    — jurisdiction-specific identifier

Any agent, in any language, on any platform, can compute the same identifier from the same coordinates. The spatial cell is the root of every TerraID — agents discover entities by computing the cell, then querying the protocol for what exists there. Multiple assets at the same location share the cell but are distinguished by entity type and identifier.

This design is deliberately agent-native. Humans already have the best addressing system ever built — natural language. “The house next to the pub on Church Street” is more memorable than any code. The missing piece is not a better encoding for humans; it is a computable, deterministic coordinate that machines can reason about.

TerraID currently indexes 42 million UK properties, each with a spatial cell and multiple complementary geospatial encodings. The protocol is jurisdiction-agnostic — any physical entity with coordinates receives an identity through the same computation.

Pillar II — Delegation Chains

Identity without authorization is inert. TerraID’s delegation chains are the mechanism by which agents receive, exercise, and propagate scoped permissions.

A delegation is a cryptographically signed grant from a delegator to a delegate, specifying: a set of permissions from a structured taxonomy, a target entity (the TerraID the delegation applies to), a time-to-live, and revocation conditions. Every delegation is signed with Ed25519 — the same curve used by the EUDI Wallet standard.

Owner
  → Operating Company (scoped permissions)
    → Property Manager (narrower scope)
      → Contractor (narrower still, time-limited)

The critical constraint is narrowing-only sub-delegation.An agent can delegate a subset of its own permissions to a sub-agent, but can never escalate beyond what it was granted. This is a mathematical constraint enforced at the protocol level — no amount of prompt engineering can bypass it.

Revocation is instant and propagative. When a delegation is revoked, every sub-delegation in the chain is invalidated immediately. The agent is not asked to stop; it is cryptographically unable to continue.

This is not access control. Access control gates entry. Delegation chains define the mathematical boundary of what an agent can do, log every attempt (authorized and denied), and make the entire history publicly verifiable. This is AI safety infrastructure — behavioral constraints that are architectural, not linguistic.

Pillar III — Merkle Audit Ledger

Every action taken by every agent — every query, delegation grant, credential issuance, claim, revocation, and denied attempt — is recorded as a transaction on TerraID’s Proof-of-Authority ledger.

Transactions are bundled into blocks. Each block contains a SHA-256 Merkle root of its transactions and chains to the previous block, creating a tamper-evident log that makes retroactive modification detectable.

Periodically, the ledger’s Merkle root is anchored to a public blockchain via a smart contract. This means anyone — a regulator, a counterparty, the public — can independently verify the integrity of TerraID’s records without trusting TerraID itself. The anchor is a commitment, not a data dump; the ledger data remains off-chain for performance and privacy, but its integrity is publicly verifiable.

This design directly addresses the requirements of the EU AI Act (Article 12), which mandates automatic logging of AI system activities “to enable the tracing of the functioning of the system.” The UK Building Safety Act’s “golden thread” requirement — an immutable audit trail of safety-critical decisions — is satisfied by the same mechanism.

3. Architecture

The protocol library (terra-core) implements identity, trust, delegation, and ledger primitives in Python, with Ed25519 signing via the standard cryptography library and SD-JWT-VC for selective disclosure credentials.

Integrations are provided for LangChain, CrewAI, AutoGen, Vercel AI SDK, and OpenAI GPTs — allowing any agent framework to verify identity, check delegation scope, and record actions through TerraID without rebuilding its own trust layer.

4. Market: The Agentic Economy

The agentic economy is not speculative. It is being built in production today. Autonomous agents are managing customer service, writing and deploying code, conducting financial analysis, and operating physical systems. The total addressable market for agent infrastructure is the sum of every industry where autonomous agents will operate on real-world assets.

Beachhead: UK Property

TerraID starts with property because the pain is acute, quantifiable, and regulatory. The UK Building Safety Act 2022 (post-Grenfell) mandates a “golden thread” — an immutable audit trail of who did what, when, under whose authority, for every safety-critical decision in higher-risk buildings. Build-to-Rent operators managing 270,000+ units are legally required to maintain this. Most are using SharePoint.

The cost of the problem: £45K/year per 500 units in staff time verifying contractor authorization. £80K+ per building in BSA compliance consultant fees. Uncapped liability (corporate manslaughter) for broken chains of accountability.

TerraID replaces the SharePoint folder with cryptographic proof. Delegation chains become the golden thread. The Merkle ledger becomes the audit trail — at a fraction of the compliance cost it replaces.

Expansion: Natural Resources

The same protocol primitives — identity, credentials, delegation, ledger — apply directly to natural resource exploration and management. A mining licence receives a TerraID. Geological surveys become verifiable credentials. AI prospecting agents operate within delegation chains. Satellite change detection is logged to the Merkle ledger.

Junior miners spend $5–10B annually on exploration with fragmented data and no verifiable provenance. Enterprise miners face ESG compliance pressure (EU Taxonomy, conflict minerals regulation) requiring auditable supply chain documentation.

Platform: Universal Agent Identity

As autonomous agents proliferate across industries, every vertical encounters the same accountability gap. Insurance agents inspecting properties. Agricultural agents monitoring crop health. Environmental agents measuring pollution. Logistics agents managing warehouse operations. Each needs identity, scoped permissions, and auditable activity logging.

TerraID is not a property product or a mining product. It is accountability infrastructure that any agent, in any domain, can integrate. Property proves it works. Natural resources prove it scales. Universal adoption is the protocol play.

5. Regulatory Alignment

TerraID’s architecture was designed with regulatory compliance as a first-class concern, not a retrofit.

EU AI Act, Article 12

Mandates automatic logging of AI system activities to enable tracing. TerraID's Merkle ledger satisfies this with tamper-evident, publicly verifiable logs.

UK Building Safety Act 2022

Requires a "golden thread" — an immutable record of safety-critical decisions and delegated authority. TerraID delegation chains + ledger provide this natively.

EUDI Wallet Standard

TerraID uses Ed25519 signing and DID:key identifiers — the same cryptographic primitives specified by the European Digital Identity Wallet.

GDPR / Data Protection

SD-JWT-VC selective disclosure credentials give holders control over which attributes are revealed. The Merkle ledger stores hashes, not personal data.

6. What Is Built

TerraID is not a concept. The protocol, services, and data infrastructure are operational.

Identityterra://tid URIs, DID:key documents, Ed25519 signing, SD-JWT-VC credentials
DelegationHierarchical permission taxonomy, narrowing-only sub-delegation, instant revocation
LedgerPoA blockchain, SHA-256 Merkle trees, on-chain anchoring (smart contract deployed)
Data42 million UK property records, millions of title deeds, spatial indexing
SourcesMultiple UK government data sources integrated
AgentsFederated agent architecture for protocol operations
ClaimsMulti-phase verification with authoritative data source checks
SDKPython SDK for protocol integration
TestsComprehensive test suite across protocol layer
IntegrationsLangChain, CrewAI, AutoGen, Vercel AI, OpenAI GPTs

7. Conclusion

The agentic economy will be built. The question is whether it will be built with accountability infrastructure or without it. Without it, autonomous agents will operate on real-world assets with no verifiable identity, no scoped permissions, and no auditable record of what they did. The regulatory, financial, and safety consequences of this are predictable and severe.

TerraID is the alternative: a universal identity protocol that makes agent accountability a property of the infrastructure, not a feature of the application. Spatial identity binds agents to the physical world. Delegation chains provide mathematical behavioral constraints. The Merkle ledger creates a tamper-evident record that regulators, counterparties, and the public can independently verify.

Property is the wedge. Natural resources are the scale. Universal agent identity is the endgame.

For technical documentation, protocol specifications, and SDK access, visit terraid.org.