v3/@claude-flow/guidance/docs/adrs/ADR-G014-conformance-kit.md
Status: Accepted Date: 2026-02-01 Author: Guidance Control Plane Team
The Agentic Container Specification and the Guidance Control Plane define contracts that every agent cell must honor. Without a concrete acceptance test, conformance claims are untestable. The system needs a canonical reference implementation (the Memory Clerk) and a test runner that validates all five axioms of the Agent Cell contract.
Implement a three-part conformance kit:
A lightweight runtime that provides:
The runtime is deterministic — given the same inputs, it produces identical traces.
A canonical agent cell implementation that exercises the full contract:
| Phase | Operations | Count |
|---|---|---|
| Read | Memory reads across namespace | 20 |
| Infer | Single inference from read data | 1 |
| Write | Memory writes with gated coherence | 5 |
| Degrade | Coherence drop triggers privilege reduction | 1 |
The Memory Clerk is the simplest agent that exercises all five axioms:
Orchestrates the test:
| Step | Validation |
|---|---|
| Run cell | Execute MemoryClerkCell in SimulatedRuntime |
| Check trace | All expected events present in correct order |
| Verify proof | Proof chain is intact (hash verification) |
| Replay | Run the same trace through gates again, verify identical decisions |
| Report | Pass/fail with detailed breakdown |
The runner captures the full event trace, then replays it through the gate system a second time. If any decision differs between the original run and the replay, the test fails. This validates determinism — the same inputs must always produce the same gate outcomes.