self-audit-run.json
run record Outcome of a canonical 17-area run over the protocol's reference state. schema_version, self_audit_id, profiles_tested, summary.tests_*, findings, evidence_refs.
Self-audit fixture
Three JSON artefacts — a self-audit run record, an engine-health snapshot and an audit-chain integrity check — signed with EdDSA over a canonical payload, verifiable by anyone using the published JWKS. The fixture is deterministic: the same inputs produce the same artefact, byte-for-byte. Production-grade self-audit runs (the live ones inside the KYE™ Reference Gateway™) sign with a key whose private half lives in HSM/KMS — see protocol § self-govern.
1 · The three artefacts
run record Outcome of a canonical 17-area run over the protocol's reference state. schema_version, self_audit_id, profiles_tested, summary.tests_*, findings, evidence_refs.
engine health Point-in-time snapshot of every engine: schema_validator, dictionary_resolver, profile_resolver, registry_resolver, authority_engine, state_engine, policy_adapter, decision_engine, audit_engine, evidence_engine, graph_engine, webhook_engine, recovery_engine.
chain integrity Hash-chain replay verification: events checked, orphan events, missing reason codes, missing evidence refs, overall result.
JWKS for verification: trust/self-audit-jwks.json — a single Ed25519 public key with kid kye:key:self-audit-fixture-2026-05.
2 · Verify it yourself
The verifier is a 90-line Node script in the public repo. It fetches the three artefacts and the JWKS, recomputes the canonical payload (sorted keys, no whitespace), and verifies the EdDSA signature. Node 18+ only — no npm install.
curl -fsSL https://raw.githubusercontent.com/KYE-Protocol/app/main/scripts/verify-self-audit.mjs -o /tmp/verify-self-audit.mjs
node /tmp/verify-self-audit.mjs
# Expected output:
# Loaded JWKS — 1 key(s): kye:key:self-audit-fixture-2026-05
# ✓ self-audit-run.json alg=EdDSA kid=kye:key:self-audit-fixture-2026-05
# ✓ engine-health.json alg=EdDSA kid=kye:key:self-audit-fixture-2026-05
# ✓ audit-integrity-check.json alg=EdDSA kid=kye:key:self-audit-fixture-2026-05
# All artefacts verified.
For each artefact: parse JSON, extract payload and signature, canonicalise payload (sorted keys, no whitespace), base64url-decode signature.sig, look up signature.kid in self-audit-jwks.json, and verify EdDSA. The fixture is small enough (< 4 kB) that a Python or Go verifier is ~30 lines.
3 · What this proves
npm run test:self-audit-snapshot); a regression in the schema, the audit-chain integrity check, or the engine-health snapshot would fail PR CI. Public visitors don't have to take our word for it.kye.self_audit_run.v1, kye.engine_health.v1, kye.audit_integrity_check.v1. Schema drift would break the verifier.POST /v1/self-audit:run on the KYE™ Reference Gateway™ emits the same shape this fixture uses.4 · Where to go next
The reproducible fixture above proves the mechanism. Operational detail and the full hardening register are part of the procurement pack delivered to design partners under NDA.
Start in shadow mode. We’ll deliver your first Evidence Pack™ in 4–8 weeks.
Canonical KYE™ surfaces referenced on this page: Evidence Pack™ · KYE Protocol™.