feat: evidence carrier types and schemas#414
Merged
Conversation
Ship PeacEvidenceCarrier types (Layer 0, zero runtime) and Zod schemas with shared computeReceiptRef() helper (Layer 1). Includes carrier conformance fixtures (5 valid, 3 invalid) and verifyReceiptRefConsistency() for DD-129 async extraction enforcement. - kernel: PeacEvidenceCarrier, CarrierAdapter<T,U>, CarrierMeta types - kernel: PEAC_RECEIPT_HEADER canonical constant (DD-127) - schema: ReceiptRefSchema, CompactJwsSchema, PeacEvidenceCarrierSchema - schema: computeReceiptRef() with WebCrypto runtime guard - schema: validateCarrierConstraints() transport-aware validation - schema: verifyReceiptRefConsistency() for tamper detection - schema: CARRIER_TRANSPORT_LIMITS per-transport size constants - conformance: 8 carrier fixtures in specs/conformance/fixtures/carrier/ - conformance: carrier category registered in manifest and tracking
This was referenced Feb 23, 2026
jithinraj
added a commit
that referenced
this pull request
Feb 23, 2026
Evidence Carrier Contract + A2A Mapping release. - Bump all 65 workspace packages to 0.11.1 - CHANGELOG entry for Evidence Carrier Contract, A2A mapping, MCP _meta carrier, ACP/UCP/x402 carrier adoption, discovery profile - AGENTS.md: v0.11.1 carrier format, A2A metadata example - Normative specs: EVIDENCE-CARRIER-CONTRACT.md, A2A-RECEIPT-PROFILE.md, MCP-EVIDENCE-PROFILE.md - Registry: a2a, ucp, stripe entries (version 0.10.0) PRs: #414-#421 (8 merged) Design decisions: DD-124 through DD-131
jithinraj
added a commit
that referenced
this pull request
Feb 23, 2026
Evidence Carrier Contract + A2A Mapping release. - Bump all 65 workspace packages to 0.11.1 - CHANGELOG entry for Evidence Carrier Contract, A2A mapping, MCP _meta carrier, ACP/UCP/x402 carrier adoption, discovery profile - AGENTS.md: v0.11.1 carrier format, A2A metadata example - Normative specs: EVIDENCE-CARRIER-CONTRACT.md, A2A-RECEIPT-PROFILE.md, MCP-EVIDENCE-PROFILE.md - Registry: a2a, ucp, stripe entries (version 0.10.0) - Spec fixes: embed-only HTTP in v0.11.1, MCP dual-legacy wording, softened RFC 9711 analogy, DD-129 producer/consumer split, Node >= 20 runtime vs >= 22 dev baseline, fixture description clarity, removed duplicate UCP registry entry PRs: #414-#421 (8 merged) Design decisions: DD-124 through DD-131
jithinraj
added a commit
that referenced
this pull request
Feb 23, 2026
Evidence Carrier Contract + A2A Mapping release. - Bump all 65 workspace packages to 0.11.1 - CHANGELOG entry for Evidence Carrier Contract, A2A mapping, MCP _meta carrier, ACP/UCP/x402 carrier adoption, discovery profile - AGENTS.md: v0.11.1 carrier format, A2A metadata example - Normative specs: EVIDENCE-CARRIER-CONTRACT.md, A2A-RECEIPT-PROFILE.md, MCP-EVIDENCE-PROFILE.md - Registry: a2a, ucp, stripe entries (version 0.10.0) - Spec fixes: embed-only HTTP in v0.11.1, MCP dual-legacy wording, softened RFC 9711 analogy, DD-129 producer/consumer split, Node >= 20 runtime vs >= 22 dev baseline, fixture description clarity, removed duplicate UCP registry entry PRs: #414-#421 (8 merged) Design decisions: DD-124 through DD-131
jithinraj
added a commit
that referenced
this pull request
Feb 23, 2026
* test(smoke): MCP carrier e2e round-trip Full flow: issue -> computeReceiptRef -> attachReceiptToMeta -> extractReceiptFromMetaAsync -> verifyLocal. No network calls, no clock dependencies; uses deterministic key material for reproducible failures. Tests: - Full round-trip with offline verification - Tampered receipt_ref detection (DD-129) - Legacy org.peacprotocol/receipt extraction with receipt_ref computation - Round-trip carrier field preservation - Null return for missing _meta Also re-enables tests/smoke in vitest config and adds @peac/mappings-mcp alias for root-level test resolution. * chore(release): v0.11.1 Evidence Carrier Contract + A2A Mapping release. - Bump all 65 workspace packages to 0.11.1 - CHANGELOG entry for Evidence Carrier Contract, A2A mapping, MCP _meta carrier, ACP/UCP/x402 carrier adoption, discovery profile - AGENTS.md: v0.11.1 carrier format, A2A metadata example - Normative specs: EVIDENCE-CARRIER-CONTRACT.md, A2A-RECEIPT-PROFILE.md, MCP-EVIDENCE-PROFILE.md - Registry: a2a, ucp, stripe entries (version 0.10.0) - Spec fixes: embed-only HTTP in v0.11.1, MCP dual-legacy wording, softened RFC 9711 analogy, DD-129 producer/consumer split, Node >= 20 runtime vs >= 22 dev baseline, fixture description clarity, removed duplicate UCP registry entry PRs: #414-#421 (8 merged) Design decisions: DD-124 through DD-131
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.
Summary
PeacEvidenceCarrierpure types in@peac/kernel(Layer 0, zero runtime) and Zod schemas + shared helpers in@peac/schema(Layer 1)computeReceiptRef()(SHA-256 of compact JWS via WebCrypto) with runtime portability guard (Node >= 20, CF Workers, Deno, Bun)validateCarrierConstraints()for transport-aware size enforcement andverifyReceiptRefConsistency()for DD-129 tamper detectionspecs/conformance/fixtures/carrier/PEAC_RECEIPT_HEADERcanonical constant ("PEAC-Receipt") per DD-127Design Decisions
PeacEvidenceCarrier,CarrierAdapter<T,U>,CarrierMetatypes in kernel; Zod schemas + helpers in schemaCARRIER_TRANSPORT_LIMITSper-transport size constants (MCP 64KB, A2A 64KB, HTTP 8KB headers)verifyReceiptRefConsistency()async check:sha256(receipt_jws) === receipt_refKey Types
Test plan
computeReceiptRef()produces deterministicsha256:<hex64>outputvalidateCarrierConstraints()enforces transport size limits from CarrierMetaverifyReceiptRefConsistency()detects tampered JWS (DD-129)crypto.subtlepnpm build && pnpm lint && pnpm typecheck:core && pnpm testpasses (77/77 build, 4246 tests)guard.shandcheck-planning-leak.shpass