feat: integrator kit bootstrap + conformance harness#410
Merged
Conversation
Migrate all 9 packages from Zod 3.22.x to Zod 4.3.6. This is a
breaking change for downstream TypeScript consumers who compile
against exported @peac/schema types (z.infer<> types are not
assignment-compatible across Zod majors).
Schema changes:
- z.record() single-arg form removed in Zod 4: add explicit
z.string() key schema in 5 locations (schema, control, mcp-server)
- .default({}) on object schemas requires output-type-compatible
values in Zod 4: use .prefault({}) for input-type defaults (policy.ts)
- ZodError.errors alias removed: use .issues in test assertions
- issue.path typed as PropertyKey[] (was (string | number)[]): add
casts at 2 call sites (protocol/issue.ts, cli/validators.ts)
No behavioral changes to schema validation, receipt issuance, or
verification. All 4138 tests pass across 167 test files.
Workspace enforcement:
- pnpm.overrides forces zod@^4.3.6 across all workspace packages
- Prevents mixed Zod 3/4 which causes runtime TypeError
Add integrator kit templates for ecosystem partners and a CLI conformance harness for running fixtures against validators. Integrator kits: - template/: base kit with README, integration guide, security FAQ - mcp/, a2a/, acp/, x402/, content-signals/: ecosystem scaffolds Conformance harness (scripts/conformance-harness.ts): - Runs fixtures from specs/conformance/fixtures/ against validators - JSON (default) or pretty output format - Deterministic ordering, stable report schema - Exit code 0 = pass, 1 = failures - Core adapter: validates 10 fixture categories via @peac/schema
Merged
Integrator kit templates reference npm install for external consumers who may not use pnpm. Add integrator-kits/ to NPM_ALLOW pattern.
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
Integrator kits
template/mcp/@peac/mappings-mcpin v0.11.1a2a/@peac/mappings-a2ain v0.11.1acp/x402/@peac/rails-stripefor existing adaptercontent-signals/Conformance harness
pnpm exec tsx scripts/conformance-harness.ts --adapter core --format prettyspecs/conformance/fixtures/against validatorsTest plan