Skip to content
Registry

STRATT Integration

Grace enforces the STRATT Protocol, five specification layers governing prompt units for autonomous AI agent systems. This page shows how Grace integrates with the STRATT toolchain.

For the full protocol specification, see the STRATT Protocol Specification.

For the argument this layer stack exists to serve, and why the four guarantees it delivers are treated as a category rather than a toolchain, see Why Verifiable Agentic Prompt Architecture is its own category.


L6 MERIDIAN <- Astro documentation site (public-facing)
L5 @stratt/cli <- 24 commands, all orchestration
L4 @stratt/ir <- Execution IR, portable compilation (n8n, TypeScript, LangChain)
L3.5 @stratt/n8n-exporter <- Chain -> n8n workflow compiler (FORGE pattern)
L3 @stratt/graph <- DAG, blast radius, CI pipeline (FM-01 through FM-08)
L2 @stratt/crdt <- Yjs-based CRDT, 7 merge strategies
L1 @stratt/schema <- Zod validators, URI parsing, SPUH binary encoding
L0 @stratt/fingerprint <- Canonical serialization -> Blake3 hash

Dependency rule: Lower layers depend only on lower layers. Layer 5 can depend on Layers 0-4, but Layer 0 has zero dependencies on anything else.

Grace operates at L5+, routing unit operations through the STRATT CLI, validating council decisions against SPEC-04, and tracking ecosystem integration patterns.

SPECProvidesDepends onPrimary Package
SPEC-01ContractsL1 validators@stratt/schema + @stratt/cli
SPEC-02FingerprintsL0 hashing@stratt/fingerprint + @stratt/schema
SPEC-03DependenciesL1 URIs@stratt/graph
SPEC-04GatesL3 DAG@stratt/graph + @stratt/cli
SPEC-05TracesL5 commands@stratt/cli

Each SPEC defines one or more failure modes (FM), detectable during CI or runtime:

FM CodeSPECNameCondition
FM-01SPEC-02Fingerprint tamperBlake3 digest mismatch
FM-02SPEC-03Broken importsUnresolvable stratt:// or choco:// reference
FM-03SPEC-03DAG cyclesCircular dependency detected
FM-04SPEC-04Protected agent missingChain lacks required protected agent
FM-05SPEC-04Gate removalGate step removed without major version bump
FM-06SPEC-01Contract breaking changeRequired input removed or type changed without major bump
FM-07SPEC-03Draft isolationStable unit importing a draft unit
FM-08n/aR2 infrastructure failureRegistry unavailable
FM-09SPEC-04Capability checkAgent assigned to step lacks required capability
GapSPECTarget
R2 atomic publish pipelineSPEC-02Production registry writes (currently local-only)
HTTP mode for ChocoBridgeResolverSPEC-03choco:// resolution via API endpoint
MIPROv2 optimization loopSPEC-05Automated prompt refinement via DSPy
Veritas auto-trigger automationSPEC-05Event-driven regression detection