@absolutejs/agent-conformance
v0.6.0
Published
Provider-neutral adversarial conformance for agent security plus A2A, MCP, Arazzo, and WebMCP standards.
Downloads
959
Readme
@absolutejs/agent-conformance
Provider-neutral adversarial test runners for AI agent security boundaries. Adapters expose a tiny harness; the package attacks it with replay, concurrent maximum-use races, confused-deputy identity, scope escalation, lookalike URL origins, mutated approved inputs, denied lease issuance, failed-execution replay, and task-owner isolation.
import {
assertConformance,
runCapabilityConformance,
} from "@absolutejs/agent-conformance";
const report = await runCapabilityConformance(() => yourHarness());
assertConformance(report); // throws with the complete report when any case failsThe runners return data rather than depending on a test framework, so they work inside Bun test, Vitest, Jest, CI scripts, or provider certification jobs.
Version 0.3 adds discovery signature/search, durable runtime recovery/budget,
provenance/taint, scoped memory, and verified inbox suites. Passing reports can
be combined into a deterministic, optionally signed
absolutejs-agent-first-1 certification artifact and linked from an agent's
public discovery descriptor.
Version 0.4 adds provider-neutral conformance harnesses for A2A 1.0, MCP 2025-11-25, Arazzo 1.1, and the July 2026 WebMCP draft. They test protocol negotiation, task/session isolation, required extensions, unsafe callback URLs, dependency ordering, policy-before-effect, unsupported-feature atomicity, input validation, metadata poisoning, cross-origin exposure, and abort cleanup.
import {
runA2aConformance,
runArazzoConformance,
runMcpConformance,
runWebMcpConformance,
} from "@absolutejs/agent-conformance";Implement only the harnesses relevant to your package:
ActionConformanceHarnessfor approval binding and execution leases.CapabilityConformanceHarnessfor credential grants, delegations, spend mandates, or other bounded capabilities.TaskConformanceHarnessfor durable task ownership and cancellation.
License
MIT
