Expand description
Boundary compiler primitives for AiDENs.
LLM structured output, patch payloads, generated manifests, and repaired JSON should pass through this crate before reaching tools or memory.
Two compile paths are available:
-
compile_json_boundary()— the lenient path with repair, markdown fence stripping, JSON substring extraction, and treatment-critical field integrity checks. -
canonical_boundary::canonical_compile_json_boundary()— the strict path via the canonicalboundary-compiler-coremicrokernel. Use this when you need unforgiving RFC 8259 compliance with canonical digests.
Structs§
- Boundary
Parse Outcome V1 - Boundary
Profile - A boundary profile with all constraints and policies.
- Boundary
Repair Policy V1 - Canonical
Content Digest - A blake3 content digest of JCS bytes, in hex.
- Canonicalizer
- JCS canonicalizer that produces deterministic JSON bytes.
Enums§
- Boundary
Error - Canonical
JcsError - Errors that can occur during JCS canonicalization or boundary profile processing.
Functions§
- canonical_
compile_ json_ boundary - Delegating boundary compile: strict parse path via the canonical bcc.
- canonical_
digest - Compute a canonical RFC 8785 JSON digest for any value.
- canonicalize_
json - Canonicalize a JSON value per RFC 8785.
- compile_
json_ boundary - detect_
duplicate_ keys - memory_
claim_ input_ schema - no_
repair_ receipt - non_
authoritative_ boundary_ json_ display_ digest - parse_
json_ boundary - parse_
strict_ canonical - Parse JSON with strict duplicate-key detection (using the canonical boundary compiler).
- parse_
strict_ json - repair_
receipt - validate_
json_ schema - validate_
memory_ claim_ input - validate_
tool_ input_ schema