soul-memory-kernel — Fail-Closed Identity, Memory & Privacy Kernel

soul-memory-kernel — Fail-Closed Identity, Memory & Privacy Kernel An architecture diagram generated by Archify. Application / Provider · TextExtractionClient & Sink · Architecture component Application / Provider TextExtractionClient & Sink soul / · SoulCore · SessionAccess · Profile · Zero-Dependency Python >=3.11 Governance Kernel · identity · Python soul / SoulCore · SessionAccess · Profile identity extraction / · Multi-Gate Extractor & Budget · Zero-Dependency Python >=3.11 Governance Kernel · atomic fuse extraction / Multi-Gate Extractor & Budget atomic fuse privacy / · PrivacyKernel · OutputGate · Zero-Dependency Python >=3.11 Governance Kernel · lease gate privacy / PrivacyKernel · OutputGate lease gate memory / · SqliteStore · Grants · Seam · Zero-Dependency Python >=3.11 Governance Kernel · fail-closed · SQLite memory / SqliteStore · Grants · Seam fail-closed obs / · Metadata JsonlEventLog · Architecture component · zero text obs / Metadata JsonlEventLog zero text project() extract() seal sink SessionAccess propose lease check closed enums Zero-Dependency Python >=3.11 Governance Kernel Legend Backend Database Security Message bus External

Fail-Closed Policy & Grants

  • • Every read_model, send_provider, and mutation checks SessionAccess + consent
  • • Recursive ancestor provenance grants block raw snapshot bypasses

Atomic Extraction Fuse

  • • Conditional SQLite UPSERT caps daily LLM calls under concurrency
  • • Strict JSON schema validation before staging pending proposals

Zero-Content Observability

  • • obs.events strips transcripts, memory text, record IDs, and raw audio
  • • Only presence bits, bounded counts, and closed-set enums reach disk