Skip to content
中文

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).

PartResponsibilityPraxis products
System of EngagementFaces people and other systems: pages, APIs, orchestration, schedulingApplication
System of RecordThe authoritative source of business data, shared by people, agents and appsDatabase (table and key-value), Knowledge, Media, File
Execution LayerRuns business processes and the actual workAutomation (workflows, scripts), Agent, Browser, Computer, Model
Identity and AccessWho may touch what, and where credentials are keptVault (secrets management), application grants (see Runtime capabilities)

Two classes of data

ClassDefinitionExamplesWhere it goes
Business DataFacts of the business itself, independent of the implementationOrders, customers, collected review text, intelligence cardsThe system of record
Application StateData that exists only because the application is implemented this waySessions, jobs, cursors, checkpoints, locks, retry records, caches, idempotency keysThe 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

  1. The application is the system of engagement: pages, APIs and orchestration only.
  2. Business data goes to the system of record.
  3. Business processes go to the execution layer (Automation workflows and scripts, agents), not hard-coded in application code.
  4. Application state stays in the application’s own storage.
  5. 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 workWhere it goes
Targets, sites, accounts, sources, collected items, intelligence cards, demandsDatabase
Intelligence cards, also synced for semantic searchKnowledge
ScreenshotsMedia
Passwords and tokensVault
Sign-in stateBrowser contexts
Scheduled collectionAutomation
Collector definitions, run details, cursors and checkpoints, locks, retry recordsThe 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).