feat(amdp): v0.1.0 spec draft — ADR-040 Phase 1#2
Merged
Conversation
Introduces the Agent Mandate Discovery Protocol (AMDP) as a new draft specification in the protocol-commerce monorepo, alongside adcp-spec/. AMDP defines the cross-vertical mandate-discovery layer currently missing from the agent-commerce stack — answering "which agent is authorized to do what, for whom, with which constraints, in which vertical" in a way third parties can verify and revoke. What this PR adds (amdp-spec/, 17 files, ~2,169 lines): - README.md — Overview, position in agent-commerce stack, quick start - SPECIFICATION.md — Normative spec: terminology, Mandate Document JSON Schema (Draft 2020-12), verticals taxonomy v0.1, actions taxonomy v0.1, constraints taxonomy v0.1, signature algorithms (Hybrid Ed25519 + ML-DSA-65 per ADR-025), Resolver + Discovery OpenAPI 3.1 specs, 15-code stable error taxonomy, SemVer policy - CONFORMANCE.md — Role-based MUST/SHOULD/MAY requirements for Issuer / Verifier / Resolver / Discovery Endpoint, 15-vector test plan, conformance test suite roadmap - SECURITY.md — Threat model T1-T6 (forgery, replay, constraint bypass, compromised principal key, compromised agent, cross- vertical privilege escalation) with explicit mitigations, 4-phase PQC migration strategy, audit-log requirements - CHANGELOG.md — v0.1.0 entry, known v0.2.0 open items - REFERENCES.md — Cross-repo ADR links, IETF/W3C standards, NIST FIPS 204, industry coalitions (IAB AAMP, LF Agent-Infra-WG, UCP, ACP, AP2, x402, MCP) - examples/ — 5 reference mandates (advertising, equity-research, procurement, multi-vertical sub-delegation, public-services) with companion .md explanations; all validate against the Mandate Document JSON Schema (ajv strict=false) Strategic frame (ADR-040): - Open Standard route — IAB Tech Lab AAMP + Linux Foundation Agent- Infrastructure-WG submission targets (AAMP Curation-Protocol window closes 30.06.2026) - ICANN-Move not Google-Move — EU-Authority via co-authoring and Lean-4 reference implementation, not via hosted product - Brand-Architektur-consistent — AMDP sits UNDER verticals (Nexbid for advertising, Mineralis for equity-research), not next to them - Generalizes ADR-008 Universal Purchase Mandate (single-vertical Ed25519 mandate) cross-vertical - Uses Hybrid Ed25519 + ML-DSA-65 signature scheme from ADR-025 (PQC-readiness without classical-validation-fallback gap) Status: draft v0.1.0. Breaking changes between MINOR versions are explicitly permitted per the pre-1.0 contract in SPECIFICATION.md section 10. Lean 4 reference implementation lands in a follow-up PR. Validation: all 5 example mandates plus the README minimal-mandate example validate against the JSON Schema in SPECIFICATION.md section 2.1 (ajv 2020 with ajv-formats). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was
Introduces
amdp-spec/— the Agent Mandate Discovery Protocol (AMDP) v0.1.0 draft — as a sibling specification toadcp-spec/in the protocol-commerce monorepo. Phase 1 of the ADR-040 roadmap.Warum
AMDP fills the missing fourth layer of the agent-commerce stack: cross-vertical mandate discovery. The other three layers — marketplace, capability-registry, transaction-protocol — already have multiple implementations (Circle Marketplace, IAB Tech Lab Agent Registry, UCP/ACP/AdCP). What none of them define is the cross-vertical, revocable, third-party-verifiable mandate that a relying party in one vertical can use to verify an agent acting on behalf of a principal whose identity lives in another vertical.
Per ADR-040 (
Baldri/nexbidrepo, merged 2026-05-17), Nexbid pursues the Open Standard route rather than launching another hosted product:Aenderungen
amdp-spec/folder, 17 new files, +2,169 lines:README.mdSPECIFICATION.mdCONFORMANCE.mdSECURITY.mdCHANGELOG.mdREFERENCES.mdexamples/.mdfilesKey technical decisions in v0.1.0:
/.well-known/amdp/{verify,revoke,discover}with OpenAPI 3.1 inline specsadvertising,procurement,equity-research,public-servicesTests
All 5 example mandates plus the README minimal mandate validate against the Mandate Document JSON Schema (
SPECIFICATION.mdsection 2.1):Validation tool: ajv 2020 (
ajv/dist/2020.js) withajv-formats,strict=false. Schema is extracted fromSPECIFICATION.mdDraft 2020-12 fenced code block; one UUID v7 variant-byte bug was caught and fixed during validation (c5fa-→85fa-; the variant byte must start with[89ab]).JSON parse-checks via
jq emptyon all 5 example files: OK.No CI pipeline runs on
*.md-only PRs innexbid-dev/protocol-commerce(verified — onlylean-build.ymlworkflow exists and is restricted tolean-verification/**paths).Review-Punkte
Please pay particular attention to:
multi-vertical-family-office.json+SPECIFICATION.mdsection 2.2 +SECURITY.mdmitigation M6.5). The example deliberately changes vertical (equity-research parent, procurement child) and the spec text says this is permitted "if operationally subordinate". v0.2.0 may want stricter rules — but for the draft this models the realistic Family-Office case.Baldri/nexbid/lean-verification/.github.com/Baldri/nexbid/blob/main/...— please confirmBaldri/nexbidis the correct upstream slug (vsnexbid-dev/nexbidor similar).Dokumentation
draft v0.1.0is explicit throughout — no claims of "stable" anywheredocs/knowledge-base/adr/040-amdp-agent-mandate-discovery-protocol.mddocs/strategy/2026-05-17-amdp-google-fuer-agenten-ehrliche-positionierung.mddocs/outreach/2026-05-17-iab-amdp-submission-draft.mdOut of scope for this PR
lean-verification/(just imported via feat(lean): import 47 Lean 4 theorems — machine-checked auction core #1) establish the precedent; AMDP-specific theorems will be added on top.amdp-sdk-typescript/). Planned for ADR-040 Phase 2 once the spec stabilizes.@protocol-commerce/amdp-conformance). Planned for Phase 4.examples/test-vectors/). The 15 vectors are enumerated in CONFORMANCE.md section 6; the JSON files + key material come with the conformance suite (Phase 4).🤖 Generated with Claude Code