Skip to main content

The 5-Layer Trust Stack

HelixID is a 5-layer trust stack for AI agents, not just an identity library. Each layer answers a different question, and skipping one leaves a gap the others cannot cover.

LayerWhat It DoesHow
1. IdentityEvery agent gets a DID (Decentralized Identifier) bound to a cryptographic keypairW3C DID (did:web default, did:key local, did:hedera optional)
2. AuthorityScoped, time-bound credentials that prove what an agent is allowed to doW3C Verifiable Credentials with delegation chains
3. EnforcementRuntime verification and authorization checks at execution boundariesSDK/core verification + verifier-owned policy checks
4. AuditOrdered record of the whole chain — issuance, consent, presentation, verification, authorization, action, resultAdapter-based audit_log store + structured stdout/file
5. RevocationDecentralized revocation read as a static, cacheable document — no per-credential call to the issuerBitstring Status List

The passport and the visas​

The stack is easier to hold in your head with a travel analogy, because an agent's identity and its permissions really do come from different places.

AnalogyWhat it is in HelixIDWho issues itAnswers
PassportThe agent's DIDCreated when the agent is onboardedWho is this agent, and who vouches for it?
Base visaHelixAgentCredentialThe HelixID issuer that onboarded the agentWhat is the most this agent could ever be allowed to do?
Service visaDelegationGrantCredentialThe service, after the user says yes on its consent pageWhat may it do here, for this user?

A passport is issued once and checked anywhere. A base visa sets the outer limit. A service visa is valid only at the service that issued it, cannot say more than the base visa allows, and a passport alone does not get an agent through the gate when it is acting for a user.

The border officer checks all of them against published records — the issuer's public key and its list of revoked documents — rather than phoning the issuing authority about this particular traveller. That last detail is the whole verification argument in one image.

Read the mechanics in The Two-Issuer Model.

Layer 1 — Identity​

Every agent gets a DID bound to an Ed25519 keypair. HelixID generates the keypair when the agent is onboarded and keeps the private key encrypted in custody; the agent itself holds no key and no wallet file, only its DID. When the agent needs to present credentials, it asks HelixID to sign on its behalf. See Security Model for what that custody means.

Because a DID resolves to a public key without a shared secret, a verifier that has never met this agent can still check its signature.

Layer 2 — Authority​

Identity says who. Authority says what they may do. HelixID expresses authority as W3C Verifiable Credentials carrying privilegeScopes, a validity window, and — when the credential is delegated — a chain back to an issuer-backed root.

Two things bound authority:

  • The ceiling (the base visa), set by the platform issuer at onboarding, which no downstream credential can widen.
  • The grant (the service visa), issued in the service's name after the user consents, which narrows the ceiling to what was actually approved for that one service.

The enforcement value is what both allow: effectiveScopes.

Layer 3 — Enforcement​

A credential nobody checks is decoration. Enforcement happens at the execution boundary — in the service's own handler after verifyVP(), or inside the MCP middleware — before the tool runs.

verifyVP() sends the presentation to a HelixID API, which checks the VP signature, each credential's signature, the validity windows, revocation, the target service, and the delegation chain, and returns the scopes that apply. What it deliberately does not do is decide your business rules: the scope a call requires and replay protection are the verifier's own calls, because only the verifier knows its threat model. See Authorization & Scopes.

Layer 4 — Audit​

Every step of the chain is recordable — issuance, consent, presentation signing, verification, the authorization decision, and the action that followed. The event types are listed in the HTTP API reference.

Refusals are recorded as clearly as approvals. An audit trail that only shows successes cannot answer "did anything try and fail?", which is usually the more interesting question. Events are written through an adapter-based audit_log store plus structured stdout or file output, and are readable via GET /v1/audit-log or the operator Console.

Layer 5 — Revocation​

Revocation uses a Bitstring Status List: one gzip-compressed, base64url-encoded bitstring covering every credential an issuer has ever signed. Revoking flips one bit.

This is deliberately a static shared document rather than a per-credential lookup. It is cacheable, it sits well on a CDN, and it does not tell the issuer which credential a verifier was curious about. The trade-off is cache staleness — the window between flipping the bit and every verifier noticing is a real operational parameter, covered in Performance & Caching.

Why five and not one​

Each layer fails differently, and each failure is one that an "identity library" alone would not catch:

  • Identity without authority gives you an agent you can name but not constrain.
  • Authority without enforcement gives you a credential nobody checks.
  • Enforcement without audit gives you decisions you cannot reconstruct afterwards.
  • All four without revocation gives you a compromised agent you cannot stop without rotating every key it ever touched — the exact failure mode API keys already have.