R&D stage R0 · for the proposal review

The proposal, running.

This is the XPYRYA architecture as working code: the shared kernel and six module engines, wired together through domain events. A simulated runtime stands in for the database and the vendors, so you can step through one customer's journey across every module and watch each event, job and record appear.

What is real here and what is simulated

PartIn R0Where
Kernel types and rules (ids, money, capabilities, events, system of record)Realpackages/kernel
Module engines: Relate, Engage, Schedule, Commerce, Work, ExperienceRealpackages/modules/*
Customer-facing text in English and ArabicRealpackages/i18n
Database, RLS, transactionsSimulated in memorypackages/sim/runtime.ts (Postgres in M0)
Outbox relay and job queueSimulated in memorypackages/sim/runtime.ts (pg-boss in M0)
HubSpot, Stripe, Google Meet, WhatsAppMockedpackages/sim/connectors.ts (real connectors in M3–M7)

R0 decides nothing that Phase 0 has to decide. The engines are the production design and will carry over. The runtime is throwaway, and its replacement is M0: Postgres with RLS, the outbox and pg-boss.