Expand description
touchstone-core: the types and verdict rules for the personal AGI conformance spec. See SPEC.md at the repo root for the normative text.
This crate deliberately has no filesystem, network, or process dependencies so it can compile to WASM and be shared by every verifier.
Structs§
- Attestation
- The signed attestation document.
- Check
Result - One check result in an attestation.
- Signature
- A signature block on an attestation.
- Subject
- The subject under test.
Enums§
- Organ
- The organs a conformant organism must demonstrate.
- Status
- Status of a single check, as emitted by an adapter.
- Validation
Error - Structural validation errors an attestation can carry even when it parses as JSON.
- Verdict
- Overall verdict for a run.
Constants§
- SPEC_
VERSION - Version of the conformance spec this crate implements. Independent of crate semver — SPEC.md bumps only when the checklist or verdict rules change, not on every code release.
Functions§
- canonical_
bytes - Canonical serialization of an attestation for signing: the JSON with the signature field removed, keys emitted in sorted order.
- document_
hash - SHA-256 of the canonical document — what signatures cover.
- verdict_
for - Compute the verdict for a set of check results.