Sovereign Context Architecture: Separating the Engine from Knowledge
The evolution of language models is converging on a paradox: parameters grow to memorize static encyclopedias, while local inference demands compact, deterministic models. The Sovereign Matrix Containers (.smc) proposal from Progetto Siliceo breaks this tension with a clean architectural separation: the reasoning engine (SLM 3B–4B or MoE 35B-A3B) resides in the weights; specialist expertise travels in modular containers injected on-demand into the context window.
The Pattern: Pure Engine + Knowledge Packs
The operating principle is simple: a small model, distilled for Chain-of-Thought and function calling (XML/JSON), runs 100% on-premise on edge hardware. It has no encyclopedic knowledge. When expertise is needed — Italian tax code, Siemens PLC diagnostics, HL7-FHIR protocol — the runtime loads a Matrix Container, signed, versioned, and encrypted, injects it as a structured system prompt, and unloads it at task end.
// Pseudocode runtime loader (concept)
struct MatrixContainer {
id: Uuid,
version: semver::Version,
schema: ContainerSchema, // JSON Schema of tools/examples
system_prompt: String, // Binding operational instructions
signatures: Vec<Ed25519Sig>, // Chain of trust: author → reviewer → Siliceo CA
}
async fn inject_context(engine: &mut SlmEngine, container: &MatrixContainer) -> Result<()> {
verify_chain(&container.signatures, &TRUSTED_ROOTS)?;
engine.push_system(container.system_prompt.clone());
engine.register_tools(container.schema.tools.clone());
Ok(())
}The container is not a passive RAG: it contains validated few-shot examples, typed tool definitions, output guardrails (regex/JSON Schema), and post-generation validation rules. This turns the context window into an auditable procedural working memory, not a probabilistic black box.
Why It Works on the Edge
- Constant footprint: the base model (compact quantized SLM, e.g., Gemma 2B/7B family) does not change. Containers are kilobytes-megabytes, loaded into system RAM, not VRAM.
- Determinism: tool grammar is enforced via grammar-based decoding (llama.cpp
/grammarorguidance); output respects the schema by construction, not by hope. - Data sovereignty: zero egress. The tax container holds IRPEF tables, not client data. The client runs the engine; the provider updates the container.
Business Model: Container as a Service
Value lies not in the model (open-weight commodity), but in the curation, certification, and maintenance of containers:
- Tax/Administrative Container: updated at every decree-law, signed by accountant + Siliceo reviewer.
- Manufacturing Container: OEM workshop manuals, safety procedures, error-code diagnostics.
- Healthcare Container: ICD-10/ICD-11 mapping, regional clinical pathways, GDPR pseudonymization.
Every container has a tracked lifecycle: draft → review → sign → publish → rotate. Revocation is immediate (local CRL list). The client pays for subscription to the certified container feed, not inference.
Difference from RAG and Fine-tuning
| Approach | Latency | Update | Auditability | GPU Cost |
|---|---|---|---|---|
| Fine-tuning | Low | Full retraining | Low (opaque weights) | High |
| Classic RAG | Variable (retrieval) | Re-indexing | Medium (opaque chunks) | Medium |
| .smc Injection | Zero (static prompt) | Atomic file swap | High (schema + sigs + tests) | Zero (CPU RAM only) |
Current Position
The clean separation between reasoning engine and versioned knowledge packs is the only architecture that makes local AI sustainable for regulated SMEs: it shifts cost from GPU to human curation, and risk from hallucination to verifiable procedure.
How to Verify the Thesis
- Test a quantized SLM (e.g., Gemma 2B/7B q4_k_m) + grammar-guided decoding on recent llama.cpp with a JSON ToolCall schema: measure tok/s and 100/100 output validity.
- Compare update time: swap a tax container (~200 KB .smc file) vs retrain 3B LoRA on new tax code.
What Would Change My Mind
- Demonstration that a quantized 4-bit MoE 35B-A3B on mid-range consumer GPU exceeds 30 tok/s with 32k context window and constrained grammar, without CPU offload.
- Empirical evidence that hybrid RAG (retrieval + rerank) beats injected containers on knowledge-dense tasks (e.g., full civil code) for both accuracy and p95 latency.
Official channels: https://progettosiliceo.online · https://github.com/PROGETTO-SILICEO · https://agora.progettosiliceo.online Open dialogue: Reddit r/esperimenti_con_AI · LinkedIn Alfonso Riva