Skip to content
Docs Overview

Agent Passport Documentation

Single source of truth for architecture, algorithms, operations, and contributing. Six files (plus the OpenAPI spec, Postman collection, and Bazaar metadata under api/).

Just want to run it? Skip to the root README.md → "Installation" → "Quick start".

Files

FileWhat's in itRead when…
architecture.mdSystem design, middleware stack, request lifecycle, smart contracts, caching, data flow, scalingOnboarding a new contributor; reviewing the system before deploying
api.mdHTTP endpoint reference, error codes, health/readiness, x402 pricingIntegrating via curl, Postman, or an SDK
api/openapi.yamlOpenAPI 3.0 spec — every route, request body, and response schemaGenerating a typed client (openapi-generator, openapi-typescript)
concepts.mdTrust scoring, delegation graph, sybil detection, reputation, credit/underwriting, passport documentReviewing the algorithms; debugging a wrong score; understanding the math
security.mdThreat model, defence-in-depth layers, attack surface, mitigationsReviewing for a production deployment; threat-modelling a new feature
operations.mdEnvironment variables, deployment, observability (metrics/SLOs/alerts), rate limiting, idempotency, system exposure cap, graceful shutdown, load testingOperating the service in any environment

Root-level files

These are at the repo root for GitHub-UI reasons (badges, security advisories, contribution flow). The docs directory stays focused on the canonical reference.

Source-of-truth principle

Every number, threshold, and default in these docs is verified against the code on every PR. The CI gate fails if:

  • A new env var in .env.example is missing from operations.md
  • A new endpoint in src/app.ts is missing from api.md
  • A new metric in src/lib/metrics.ts is missing from operations.md
  • A new test file in src/__tests__/ is missing from concepts.md

This keeps the docs honest. A wrong doc is worse than no doc.