| Plane 1 |
slm_harness.core.kernel
CheckpointStore |
Deterministic state-machine execution loop with SQLite WAL transactional checkpoints supporting instant session branching (/fork, /rewind, /undo). |
<1.2 ms per WAL commit |
| Plane 2 |
slm_harness.runtime.arena
MemoryArena |
Watermark LRU model governor enforcing strict RAM ceilings across 3 hardware profiles with zero-copy session sharing and automatic OOM tier step-down (8B → 4B → 3B → 0.8B). |
lite 2.6 GB · balanced 4.7 GB · power 8.2 GB |
| Plane 3 |
slm_harness.core.scratchpad
ArtifactScratchpad |
Content-addressed artifact://<sha12> object store that keeps raw tables, JSON payloads, and code outputs out of the LLM context window. |
70–85% prompt token reduction |
| Plane 4 |
slm_harness.memory.*
HybridMemoryStore |
4-tier local memory hierarchy (L1 active window, L2 episodic summaries, L3 SQLite FTS5 BM25 + HNSW vector index, L4 project SLM.md rules). |
0.03 ms warm INT8 vector lookup |
| Plane 5 |
slm_harness.runtime.gguf_backend
GrammarCompiler |
Compiles Pydantic / JSON-Schema tool definitions into GBNF grammars enforced directly at the token sampler level—eliminating malformed JSON and hallucinated tool names. |
100% schema-valid tool calls |
| Plane 6 |
slm_harness.router.cascade
CascadeRouter |
4-stage deterministic-first router: Stage 1 File/Command Signatures → Stage 2 FTS5 BM25 Lexical → Stage 3 1024-d Embedding Margin → Stage 4 GBNF Micro-Classifier + DAG Planner. |
<35 ms p95 routing latency |
| Plane 7 |
slm_harness.verifiers.*
VerifierSuite |
Deterministic post-execution verifiers (SQLite EXPLAIN QUERY PLAN, Python AST + sandbox, JSON Schema, SymPy equivalence, RAG span citations) with surgical error-span repair. |
Up to 2 self-healing repair turns |
| Plane 8 |
slm_harness.governance.*
PolicyGuard |
Pre-execution security gate scanning shell commands, file paths, and SQL statements against destructive patterns and redacting PII (SSN, keys, tokens) in under 5ms. |
<5 ms policy & PII scan |
| Plane 9 |
slm_harness.cli & webui
SkillStore |
Unified operator surfaces: Rich TUI (./slm chat with 18 slash commands), Offline Web Studio, OpenAI-compatible /v1/chat/completions server, MCP bridge, and .slm/skills/ repository. |
Zero external cloud dependencies |
| Plane 10 |
slm_harness.telemetry.*
TraceRecorder |
Per-turn JSONL execution trace logging, live RAM/throughput HUD, and automated 26-agent regression benchmark harness (./slm bench). |
<0.4 ms trace overhead |