The Praxis Application Model
Praxis is a BaaS (backend as a service) for agents: the system of record, the execution layer, and identity and access are hosted by the platform, and you write only the system of engagement, which is the Application.
Classic BaaS (Firebase, Supabase) hosts data, storage and sign-in but not an execution layer. Praxis also hosts the execution layer (Automation, Agent, Browser, Computer). That is the difference.
This page applies to three cases: you build your own apps this way, your agents use the platform this way, and agents build apps for customers this way.
The four parts
A system has four parts. System of Record and System of Engagement are Geoffrey Moore’s terms, from Systems of Engagement and the Future of Enterprise IT (2011).
| Part | Responsibility | Praxis products |
|---|---|---|
| System of Engagement | Faces people and other systems: pages, APIs, orchestration, scheduling | Application |
| System of Record | The authoritative source of business data, shared by people, agents and apps | Database (table and key-value), Knowledge, Media, File |
| Execution Layer | Runs business processes and the actual work | Automation (workflows, scripts), Agent, Browser, Computer, Model |
| Identity and Access | Who may touch what, and where credentials are kept | Vault (secrets management), application grants (see Runtime capabilities) |
Two classes of data
| Class | Definition | Examples | Where it goes |
|---|---|---|---|
| Business Data | Facts of the business itself, independent of the implementation | Orders, customers, collected review text, intelligence cards | The system of record |
| Application State | Data that exists only because the application is implemented this way | Sessions, jobs, cursors, checkpoints, locks, retry records, caches, idempotency keys | The application’s own d1, kv, r2 |
The test is the implementation swap: if you replace the implementation, does this data still exist with the same meaning? If yes, it is business data. If it disappears or changes shape with the implementation, it is application state.
An order is business data: replace the order system and the order still exists. A retry record is application state: replace the scheduler and it is gone.
Compare Airflow. Its metadata database keeps DAG runs, task instances and retries (application state), while the data the pipelines move goes to the warehouse (business data).
Five principles
- The application is the system of engagement: pages, APIs and orchestration only.
- Business data goes to the system of record.
- Business processes go to the execution layer (Automation workflows and scripts, agents), not hard-coded in application code.
- Application state stays in the application’s own storage.
- Credentials go to Vault; access goes through grants. Where each of the three kinds lives and how to attach it: Credentials and logins.
Example: an intelligence crawler
The application is the intelligence console: a UI plus a few composite operations, such as computing health.
| Data or work | Where it goes |
|---|---|
| Targets, sites, accounts, sources, collected items, intelligence cards, demands | Database |
| Intelligence cards, also synced for semantic search | Knowledge |
| Screenshots | Media |
| Passwords and tokens | Vault |
| Sign-in state | Browser contexts |
| Scheduled collection | Automation |
| Collector definitions, run details, cursors and checkpoints, locks, retry records | The application’s own d1 |
Known gaps and the interim rule
- Database has no transactions across tables: one request inserts up to 500 rows into one table atomically, but writes to several tables, or inserts mixed with updates, cannot succeed or fail as one. Until it does, a small transactional core that must succeed or fail as one (for example placing an order and decrementing stock) may stay in the application’s own
d1, but the application must declare it explicitly as an exception. - An application reaches Database through a network round trip to the public API, with no direct binding; applications also have no Service Bindings (see Runtime capabilities).