Elements

Elements

The closed set of eight semantic primitives forming the entire OKEngine backend model.

Forty backend concerns collapse into eight semantic primitives. An element earns its place only with irreducible physics.

Closed primitive set

There is no ninth element. Every backend capability belongs to one of the eight elements. New infrastructure creates a protocol driver or plugin, preserving a small mental model.

Elements define the model.
Plugins extend the model's capabilities.
Drivers connect the model to infrastructure.
Providers and Recipes choose where that infrastructure runs.

The Structural Anatomy

Every backend concern is mapped across three conceptual tiers:

TierQuestion AnsweredDefinition & Scope
ElementsWhat is the thing?The 8 closed primitives representing irreducible backend physics.
CapabilitiesWhat can it do?Explicit facets, triggers, and execution mechanics within each element.
CompositionWhat happens when they cooperate?Emergent system properties (Realtime, Live Queries, Multi-Tenancy, Agents).

The Eight Primitives

See How They Compose

The closed elements compose into full backend capabilities:

Composition TargetFormulaHow It Works
RealtimeStore + Gate + Signal + Flow → Live QueryCDC changes re-checked against Gate RLS, streamed as SSE
SecurityGate + Store/RLS + Tenant + fx → Secure runtimeTenant-isolated queries with least-privilege capability
AgentsMCP + Gate + OAuth + Flow → Agent-ready backendDeclared Flows exposed on :6535 behind auth confirmation
OperationsManifest + Effects + Runs → Inspectable backendInferred effects feed Console (:6533) and wide-event logs

On this page