Sovereign Synthesis Engine
2026-05-192 turns8,030 charsgpt-5-3-mini
Summary
The user requested to rewrite a technical specification for the Sovereign Synthesis Engine in their own voice using paragraph form.
Messages
write this in paragraph form in my voice: This specification defines the **Sovereign Synthesis Engine (SSE)**, a local-first application designed to ingest multi-source data, map it into a cognitive structure, and synthesize high-fidelity content through a quantified "persona" lens. Built upon the philosophy of **Sovereign Intelligence**, the system prioritizes owned infrastructure and local reasoning over "rented cognition" [Query Section 1].
### 1. System Overview
The SSE is an orchestration layer that automates the transition from raw data (RSS, .md files, Reddit history) to structured knowledge and synthesized output. It utilizes **Agentic Knowledge Graphs** to manage relationships between concepts and **Persona Vectors** to modulate the voice and behavior of the generating agents.
### 2. The Sovereign Technical Stack
The SSE follows a three-layer architecture designed for privacy and environment parity [Query Section 2, 18].
| Layer | Component | Core Technologies |
| :--- | :--- | :--- |
| **Scaling** | Orchestrates containerized inference servers and tools. | GKE, Docker Compose, Artifact Registry [Query Section 2]. |
| **Bridge** | Handles API routing, task management, and structured data validation. | **FastAPI**, Python, Pydantic [Query Section 2, 1030]. |
| **Reasoning** | Executes local inference loops and tool-calling protocols. | **Ollama**, `llama.cpp`, **Model Context Protocol (MCP)** [Query Section 2, 1704]. |
### 3. Synthesis Pipeline (Agentic Orchestration)
The system employs a multi-agent workflow where agents act as nodes in a directed graph (NetworkX) and edges represent task flows.
1. **Ingestion Agent:** Recursively reads local `.md` folders and external RSS/Reddit feeds, performing **Sliding Window Chunking** for context retention.
2. **Extraction Agent:** Uses local models to identify entities and relationships (e.g., "A influences B"), populating a **Neo4j** or **NetworkX** graph.
3. **Vectorization Agent:** Generates embeddings for text chunks using local models like `nomic-embed-text` and stores them in **ChromaDB**.
4. **SynthAI (The Orchestrator):** Performs **Hybrid Retrieval**, combining vector similarity search with graph traversal to gather contextually deep information.
5. **Persona Steerer:** Injects a **50-trait quantitative vector** (0.0 to 1.0) into the final prompt to ensure the output aligns with a specific writing style, tone, or psychological profile.
### 4. Data Modeling
#### A. Memory Layer (The Cognitive Substrate)
* **Vector Memory:** ChromaDB serves as the episodic memory, allowing the system to recall "similar ideas" across different data threads.
* **Graph Memory:** Neo4j stores the ontological relationships, enabling the system to reason over concepts rather than just matching text.
#### B. Persona Schema (The Algorithmic Lens)
The system synthesizes content through a JSON-based persona model including traits such as:
* **Cognitive Style:** Analytical Thinking, Abstractness, Logical Rigor.
* **Communication Style:** Sarcasm Level, Verbosity, Formality, Metaphor Usage.
* **Worldview:** Anti-Authoritarian Bias, Risk Tolerance, Philosophical Intensity.
### 5. API Specifications (FastAPI)
| Route | Method | Description |
| :--- | :--- | :--- |
| `/ingest` | POST | Uploads documents or URLs to the ingestion pipeline. |
| `/persona` | POST | Generates a 50-trait JSON vector from a writing sample. |
| `/synthesize` | POST | Accepts a query and persona ID, returning a research report or blog post. |
| `/graph` | GET | Returns a JSON/Cytoscape representation of the current knowledge graph. |
### 6. Acceptance Criteria
* **Sovereignty:** All inference must occur locally via Ollama or `llama.cpp`; no data leaves the user’s security perimeter.
* **Traceability:** Every synthesized claim must be linked back to a source chunk in ChromaDB or a node in the Knowledge Graph.
* **Fidelity:** The synthesized output must align with the target persona vector, measurable via automated trait-scoring scripts.
Would you like me to generate the **main.py** file for the FastAPI backend or the **persona_schema.json** file containing the 50 traits?
This specification defines the Sovereign Synthesis Engine (SSE), a local-first application built to ingest multi-source data, map it into a structured cognitive system, and synthesize high fidelity output through a quantified persona lens. It is grounded in the philosophy of Sovereign Intelligence, where computation is owned and run locally, prioritizing self-contained reasoning infrastructure over rented cognition or external API dependency.
At its core, the SSE acts as an orchestration layer that turns raw inputs like RSS feeds, markdown files, Reddit history, and other local or remote data sources into structured knowledge. That transformation is handled through agentic knowledge graphs that preserve relationships between concepts, while persona vectors modulate how the system thinks and expresses itself, effectively shaping tone, reasoning style, and output behavior as a measurable construct rather than a loose prompt.
The system architecture is intentionally layered for separation of concerns and deployment consistency. A scaling layer manages containerized inference environments using tools like Docker Compose and orchestration systems such as GKE. A bridge layer built on FastAPI and Python with Pydantic handles routing, validation, and structured task management. The reasoning layer sits closest to the model runtime, using Ollama, llama.cpp, and Model Context Protocol to execute local inference loops and tool-based reasoning workflows.
The synthesis pipeline operates as a multi-agent graph where each agent is a node and task flows are represented as edges, typically managed through a structure like NetworkX. Ingestion agents recursively parse markdown directories and external feeds using sliding window chunking to preserve context. Extraction agents identify entities and relationships and populate either a graph database like Neo4j or an in-memory graph structure. Vectorization agents embed content using local embedding models such as nomic-embed-text and store results in ChromaDB. The SynthAI orchestrator then performs hybrid retrieval by combining vector similarity search with graph traversal to build a deep contextual substrate. A final persona steering stage injects a 50-trait quantitative vector that controls writing style, tone, and psychological orientation of the output.
Data modeling is split between vector memory and graph memory. ChromaDB functions as episodic recall, enabling semantic similarity across dispersed information, while the knowledge graph encodes ontological relationships so the system can reason over structure instead of only text proximity. On top of this sits a formal persona schema, expressed as a JSON vector, which encodes cognitive style, communication style, and worldview dimensions such as analytical rigor, verbosity, metaphor usage, risk tolerance, and philosophical intensity.
The system exposes a simple FastAPI interface with endpoints for ingestion, persona generation, synthesis, and graph inspection. Each endpoint corresponds to a stage in the pipeline, allowing documents or URLs to be ingested, persona vectors to be generated from writing samples, and synthesized outputs to be produced from a query combined with a specific persona. The graph endpoint provides a structured representation of the system’s current knowledge state, suitable for visualization or downstream reasoning tools.
The acceptance criteria are strict by design. All inference must remain local through Ollama or llama.cpp to preserve sovereignty and ensure no data leaves the execution boundary. Every generated claim must be traceable back to either a vector store entry or a node in the knowledge graph. And finally, all synthesized outputs must conform to the target persona vector in a measurable way, validated through automated scoring against the defined trait space.
gpt-5-3-mini