Conformance

Shared fixtures and runner for AID parsers

Conformance

Use the shared golden fixtures to verify your parser.

Package

  • NPM: @agentcommunity/aid-conformance
  • Includes test-fixtures/golden.json and a tiny runner.

Usage (Node/TypeScript)

import { fixtures } from '@agentcommunity/aid-conformance';
import { parse } from '@agentcommunity/aid';

for (const c of fixtures.records) {
  const record = parse(c.raw);
  // assert deep equality with c.expected
}

CLI runner

# Default fixtures
npx aid-conformance

# Custom file
npx aid-conformance ./some-fixture.json

Exit code is non-zero if any case fails; output includes a concise summary.

For real-world testing, use the aid-doctor CLI to validate your AID records against live DNS and perform security checks.

ModelMarket interop

Open the ModelMarket interop test and select Run checks. It verifies three live AID endpoint-proof responses and checks the MCP server card against the digest in ModelMarket's ARD catalog. It then compares the card's Streamable HTTP remote URL with the AID endpoint. Copy the JSON report to share the outcome and the proof headers.

See the interop proposal in the IETF DAWN archive and ModelMarket's reply.

From a checkout with dependencies installed, run the same checks locally:

pnpm -C packages/aid build
pnpm --silent -C packages/web interop:modelmarket

The command prints the report as JSON and exits with status 1 if a check fails. The stale endpoint and stale digest cases use local fixtures in the same SEP-2127 server card format.

See also