Reference · Deterministic structures · mutation evidence
Schemas and test vectors
Validate exact v124 structures and deterministic fixtures before integrating transport, persistence, or presentation, while retaining exact historical V123 bytes.
- Stable route
/reference/schemas-test-vectors- Version
- 124.1.0
- Source SHA-256
d59c95ffad21b219e19a382ddbd9bc2d60ad6b79c7153123dc417be599c48fc5
Solved outcome
What this enables
Prove compatible parsing, canonical bytes, mutation rejection, and offline verification with reproducible vectors.
Installed identity
@receiz/sdk
- Version
- 124.1.0
- Package SHA-256
479d52f4c2215b05377ac557a62427abae9c16347e5341201b72699311afd7ac- Record source
generated/sdk-testing-reference.json
Exact form
Signature or request
import { createReceizEmulator } from '@receiz/sdk/testing'Inputs
Inputs and constraints
- A deterministic seed and clock.
- Canonical fixture bytes or a declared schema instance.
- One bounded mutation per rejection test.
Outputs
Output and receipt
- sandboxVerified emulator result
- Deterministic snapshot
- Stable mutation failure
Stable recovery
Failures
ARTIFACT_TAMPEREDReject the mutated bytes; never normalize them into acceptance.
node_modules/@receiz/sdk/dist/artifactAdmissionTypes.d.ts · b659166d0ff90666b7984354a01bfc57b2f16e298c96641bddf02072492d6d52Offline
Offline behavior
Fixtures, schemas, emulator state, and artifact verification run locally. Emulator evidence is sandbox evidence, never production verification.
Permanent anchor · #schemas-test-vectors-schema-inventory
Schema inventory
Import the installed testing entry point and use the schema and fixture exports named by the v124 package. Validate the enclosing artifact before any domain schema projection.
Permanent anchor · #schemas-test-vectors-canonical-bytes
Canonical bytes
Keep fixture bytes byte-for-byte. Hash the exact sealed artifact, compare its artifact digest, then extract payload bytes only after enclosing-artifact verification succeeds.
Permanent anchor · #schemas-test-vectors-test-vectors
Test vectors
Run positive current-native, verified legacy-read, one-byte mutation, payload substitution, owner substitution, claim substitution, verify-path substitution, and exact-byte round-trip vectors.
Permanent anchor · #schemas-test-vectors-mutation-table
Mutation table
Apply one bounded mutation per vector and require deterministic rejection. Do not normalize, repack, recompress, or repair mutated bytes into acceptance.
Permanent anchor · #schemas-test-vectors-emulator
Emulator
createReceizEmulator supplies deterministic seed, clock, snapshot, and sandboxVerified behavior for local tests. Emulator evidence remains sandbox evidence and does not claim production verification.
Permanent anchor · #schemas-test-vectors-end-to-end-example
End-to-end example
Run the held-artifact Verify path against deterministic exact bytes before mutation cases. Test authenticated issuance separately, retain its returned artifact, and require the same local verifier and artifact-digest equality before admitting its receipt.
Copyable path
Authenticated SDK issuance → Verify → inspect receipt
import { createReceizClient } from "@receiz/sdk";
// Begin with the complete proof object already held by the person or runtime.
const encoded = process.env.RECEIZ_ARTIFACT_BASE64;
if (!encoded) throw new Error("RECEIZ_ARTIFACT_BASE64 is required");
const artifactBytes = Uint8Array.from(Buffer.from(encoded, "base64"));
// Local verification is account-free and precedes every transport projection.
const receiz = createReceizClient();
const verification = await receiz.verification.verifyArtifact(artifactBytes);
if (verification.status !== "verified-artifact") {
throw new Error(`Artifact verification status: ${verification.status}`);
}
console.log(verification.status);Deterministic check
Conformance
pnpm sdk:testRun from the Receiz repository against the exact coordinated package identity. A command result is evidence beneath sealed artifact truth.