This directory holds the Oshun V1 architecture documentation, decomposed from
the single ../ARCHITECTURE.md hub into focused, in-depth
pages. The hub remains the canonical entry point and preserves every heading
anchor (so existing arch§"…" cross-references keep resolving); each page below
expands one section with far richer, code-grounded detail.
Companion documents: the product feature map lives in
../features/, the backlog in
../TODOS.md, the dependency registry in
../DEPENDENCIES.md, and the 2026-06-24 review/audit
ledger in ../AUDIT_2026-06-24.md.
Cross-reference convention. A bare
§N/§N.Mpoints at a section of the backlog../TODOS.md;deps§Npoints at../DEPENDENCIES.md; page-to-page links are relative (./<slug>.md, or../features/<slug>.mdfor the companion).
Architecture landscape#
The pages below zoom into each box and boundary. A line represents a governed contract or effect path, not permission to reach around domain ownership or a claim that every provider and later-release surface is deployed.
Orientation#
- V1 Product Promise — what V1 commits to shipping across customer, admin, assistant, and platform surfaces.
- Subsystem Glossary — every domain and substrate name mapped to the real lib/app that owns it.
- High-Level Architecture — the runtime topology: surfaces → BFF → domain adapters → substrates → data stores.
- Product Surfaces — the customer, operator, tenant, and public apps and the shared consumer shell.
Customer Domains#
- Customer-Facing Domains — Tara, Arete, Veritas, Nyx, Nisaba, and Metis at the contract/data/event level, with their real availability tiers (active / beta / planned).
Platform Substrates#
- Sophia — Grounding Substrate — grounded answers, evidence packs, citation trails, retrieval-vs-synthesis labeling.
- Iris — Assistant Memory Substrate — profile/session/notebook memory, consent, deletion/export, policy-controlled inspection.
- Psyche — Real-Time Runtime Substrate — text/voice/avatar session envelope, turn-taking, transcript and lip-sync coherence.
- Lilith — Contemplative Policy Substrate — tone policy, teacher-persona safety, crisis-aware behavior, spiritual-domain boundaries.
- Isis — Generation Control Substrate — workflow templates, model/provider registries, environment promotion, provenance, release gates, rollback.
- Aje — Non-Custodial Payment Substrate — library-only Web3 settlement, merchant invoices, per-chain providers, wallet management.
- Cross-Domain Support — Aja, Yemaya, Themis plus the Studio-only Bellona, Hathor, and Neith substrates.
Foundations, Data, and Communication#
- Foundations — contracts, adapters, persistence, OpenAPI/codegen, idempotency, multi-tenant routing, queues, event-bus, identity/audit.
- Communication Patterns — synchronous BFF request lifecycle, asynchronous events, and a worked cross-domain cascade.
- Data Architecture and Tenancy — per-domain databases, shared cluster features, residency, the tenant/consent/memory-scope model.
- Security, Privacy, and Compliance — access control, operational hardening, and the compliance posture.
Experiences and Systems#
- Living Scenes — the conductor/blend/composition pipeline that turns an intention into a shareable artifact.
- Agentic AI Studio — the AgentRun lifecycle and the multi-agent hand-off protocol.
- Generation Audience Tiers — who can generate what, and the surface boundaries between tiers.
- Search, Discovery, and Knowledge Graph — retrieval, recommendations, and the concept graph.
- Customer Curation — notebooks, collections, saved items, and sharing.
- Persona, Avatar, and Voice Packs — the persona/avatar/voice registry and its policy gates.
- Oshun Studio — the authoring, editorial, and curation workspace.
- Messaging Channels — the tier-aware channel abstraction (Telegram, WhatsApp, email/push/SMS, Discord/Slack).
Governance, Operations, and Launch#
- Trust, Safety, and Privacy — abuse handling, review, consent, residency, and DSAR.
- Support, Entitlements, Billing, and the Aje Entitlement Bridge — entitlements, billing, and how crypto settlement maps to access.
- Fiat Payments and Wallets — V1.1 Stripe billing, Apple Pay, Google Pay, entitlement settlement, provider boundaries, webhook invariants, and operational requirements.
- Observability, Design System, Testing, and Performance — release gates, the design system, and the testing/perf posture.
- Content, Localization, Documentation, and Launch Readiness — the launch-locale set, content/docs, and launch gates.