@oxdeai/conformance
v1.3.1
Published
Conformance test suite for OxDeAI Core implementations, ensuring compliance with the deterministic policy engine protocol through standardized test cases and validation tools.
Maintainers
Readme
@oxdeai/conformance
Conformance vectors and validator for the OxDeAI protocol.
Purpose
@oxdeai/conformance verifies that an implementation matches the frozen protocol behavior for a specific version.
Passing validation means the implementation reproduces expected deterministic artifacts (hashes, statuses, and verification outputs) from frozen vectors.
Version Coupling
@oxdeai/[email protected]targets protocol/core1.3.xbehavior.- Use matching major/minor protocol versions when validating.
Included Vector Sets
intent-hash.jsonauthorization-payload.jsonsnapshot-hash.jsonaudit-chain.jsonaudit-verification.jsonenvelope-verification.jsonauthorization-verification.jsonauthorization-signature-verification.jsonenvelope-signature-verification.json
Current validator assertion count: 94.
Usage
From repo root:
pnpm -C packages/conformance extract
pnpm -C packages/conformance validateExpected success output includes:
Conformance passed: 94 assertionsAdapter Contract
The validator is built around a pluggable adapter (ConformanceAdapter) so non-TypeScript runtimes can be checked against the same vectors.
An adapter must provide deterministic implementations for:
- canonical serialization used by vectors
- intent hashing
- authorization generation checks
- snapshot encoding + snapshot verification
- envelope verification
Reference adapter: @oxdeai/core (implemented in src/validate.ts).
Freeze Policy
Vectors are frozen per protocol version.
- Do not regenerate vectors for the same protocol version after behavior changes.
- Any behavior-impacting change requires a new protocol/versioned vector release.
- Regeneration is allowed only when intentionally producing a new version baseline.
