service-content — The Gravity Engine
service-content is the synthesis engine of the PointSav family. It reads raw payloads from inside a Totebox, runs them against an institutional taxonomy, produces dense Gravity Vectors, and ultimately generates the documents an organisation publishes — wikis, news releases, due-diligence ledgers, internal memos. It is the difference between a file store and an active intelligence engine. This article covers the Four-Pillar Seed Vault, the Gravity Engine pipeline, the Stratified Ontology, and the human-in-the-loop boundary that governs what the engine can write autonomously.
The Four-Pillar Seed Vault
Every Totebox is provisioned with four JSON ledgers that form the institutional grammar of the system — the Seed Vault. The Seed Vault is built once, locked, and adjusted only by operators, not by AI:
| Pillar | What it captures | Example |
|---|---|---|
| Entities | The "who" — every individual, organisation, email, and phone number extracted from payloads | A Sovereign-ID keyed to a specific contact's email hash |
| Archetypes | The "logos" — eleven functional personas (Executive, Guardian, Fiduciary, Architect, Engineer, Artisan, Constructor, Catalyst, Envoy, Steward, Sage) | A façade consultant maps to "The Engineer" |
| Chart of Accounts | The "where" — the rigid hierarchical structure of the organisation (Profile → Domain → Sub-Domain) | Construction → Collaborators → Façade Consultants |
| Domains | The "what" — the localised vocabulary and glossary terms in use | "Direct-Hold Solution" |
A fifth pillar, Themes, captures the multidimensional undercurrents emerging from the corpus — recurring topics and institutional concerns that are flagged and proposed to operators for approval.
The Gravity Engine pipeline
When a payload arrives (an email, a PDF, a DOCX), the engine performs a tight, deterministic sequence:
- Ingest.
service-email(or the Input Machine) writes the raw payload to the Totebox's WORM vault. Nothing is mutated yet. - Entity extraction.
service-extractionruns Aho-Corasick over the raw text and pulls out every name, email, phone number, and organisation. Each gets a deterministic Sovereign-ID and begins inDiscoverystatus. - Gravity calculation.
service-contentloads the four pillars, fuses them into a single search automaton, and extracts only sentences containing structural keywords. A 5 MB payload becomes a 50-word Gravity Vector. - Verification. The vector and the entity bundle pass to
service-slm, which evaluates whether the payload aligns with the institution's taxonomy. The output is a single token —VALIDorREJECT. - Routing. Verified payloads go to deep storage; rejected payloads go to quarantine. Verified entities have their
Discoverystatus upgraded and are socketed to the Chart of Accounts.
The Stratified Ontology
service-content organises information in a five-layer stack, with three derivative engines on top:
| Layer | What it holds |
|---|---|
| L0 — Base Geometry | Raw files (/source, /assets, /ledger) — immutable, local |
| L1/L2 — Raw Graph | Blind 100% extraction into a JSONL knowledge graph |
| L3 — Global Anchors | Universal standards (IFRS/GAAP for finance, O*NET/ISCO for personnel) |
| L4 — Sovereign Taxonomy | The institution's bespoke operational reality — Domains, Glossaries, Topics |
| L5 — Verification Crust | The human-in-the-loop truth ledger; outputs from operator-verified content only |
| Derivative | What it produces |
|---|---|
| D1 — Thematic Quant | Foresight: monitors graph inflow and surfaces emerging themes for operator review |
| D2 — Linguistic Protocols | Behavioural constraints — TRANSLATE, MEMO, COMMS, TEXT, LEGAL protocols |
| D3 — Content Creation | Final artefacts: HTML wikis, PDF ledgers, news releases — generated from L5 truth |
Self-healing
The Gravity Engine is self-healing in a specific, narrow sense: its own outputs feed back into its inputs. A successfully synthesised memo becomes new content the engine indexes the next time it runs. Over months, the Domain glossaries grow, the Themes track real institutional concerns, and the engine's syntheses converge on the institution's actual voice. This is not autonomous model fine-tuning — the improvement is corpus-level: the engine has more verified material to draw from.
The human-in-the-loop boundary
service-content does not publish to verified ledgers autonomously. Every L5 entry must transit a human-in-the-loop verification step — either through the Input Machine (F12) or through the content review surface — before it can be written to a verified ledger. This satisfies sys-adr-07 (no structured data through AI) and sys-adr-19 (no automated AI publishing to verified ledgers).
See also
- service-slm — the local small language model that produces
VALID/REJECTdecisions - service-people — the identity ledger that receives socketed entities from the Gravity Engine
- archetypes-and-chart-of-accounts — the institutional taxonomy that forms the Seed Vault's structure
- app-console-input — the F12 Input Machine; the human-gated ingest surface
- totebox-os — the Totebox that hosts service-content and its WORM storage