Core Concepts
Runtime Taxonomy
Loop Engine is a governed operational runtime platform. This page is the canonical glossary for public docs on loopengine.io. Package names (@loop-engine/*) and developer types (ActorAdapter, ToolAdapter) are implementation details — see IntegrationAdapter archetype for the implementer map.
Runtime flow (read this first)
1Providers → intelligence in (analyze, recommend, classify)2 ↓3Decision loops + Guards → governance (who may transition, under what policy)4 ↓5Channels → human coordination (approve, reject, escalate)6 ↓7Integrations → operational execution (CRM, tickets, apply writes)8 ↓9Evidence + learning → audit trail and improvementRules this model enforces:
- Channels are not integrations. Slack approves; Salesforce updates.
- Providers are not workflow systems. Temporal executes paths; loops govern commits.
- Integrations are not governance. Guards run in the runtime, not in your CRM.
- Providers do not bypass guards or write directly to integrations.
- Integrations do not call models without a governed loop transition.
- Durable workflow engines may execute approved work; loops govern whether transitions commit.
Public taxonomy
| Public term | Meaning | | --- | --- | | Provider | Intelligence system — generates analysis and recommendations; does not commit operational state. | | Channel | Human coordination surface — where people approve, reject, or escalate; not a system of record. | | Integration | System of record / operational system — executes actions and persists state after policy passes. | | Loop | Governed decision cycle — explicit states, transitions, signals, and outcomes (not a generic BPM template). | | Guard | Deterministic runtime policy — evaluated before a transition commits; not prompt instructions. | | Evidence | Auditability layer — structured context explaining why a transition was allowed. | | Actor | Participant — human, automation, or AI agent (and engineering types such as webhook where documented). |
Providers
Providers supply intelligence into a loop: recommendations, classifications, draft decisions, or research steps.
Includes: Anthropic, OpenAI, Gemini, Grok, Vercel AI SDK–backed models.
Research steps: Perplexity Sonar acts as a tool step (ToolAdapter) for grounded retrieval with citations — still governed by the same loop and guards.
Excludes: MCP as a Provider. MCP is a protocol/connectivity layer used with Commerce Gateway; Loop Engine governs whether operational transitions proceed.
npm adapters (examples): @loop-engine/adapter-anthropic, adapter-openai, adapter-gemini, adapter-grok, adapter-vercel-ai, adapter-perplexity.
Channels
Channels are where humans interact with a governed loop — not where ERP writes occur.
Includes: Slack, Microsoft Teams, email, Discord/Telegram via OpenClaw routing, in-app approval UIs.
Not Loop Engine “Channels” (disambiguation):
| Term elsewhere | What it means |
| --- | --- |
| DCM commerce channel | Sales/marketplace channel in Commerce Chain (Shopify, Amazon, etc.) |
| Event-bus channel | Internal module queue name in workers — engineering only |
| @betterdata/dcm-channels | Commerce Chain package — not this taxonomy |
npm adapters (examples): @loop-engine/adapter-openclaw (routing). Slack/Teams adapters are planned; hosted connectors may use Loop Engine Cloud APIs.
Integrations
Integrations are operational systems and persistence layers that connect after governance:
- Trigger or enrich loops (PagerDuty incidents, webhooks)
- Persist state and events (Postgres, Kafka, memory store)
- Execute commerce or tool calls (Commerce Gateway)
- Apply approved writes (Google Workspace APIs in hosted patterns)
Browse the runtime connections index grouped by this taxonomy.
npm adapters (examples): adapter-postgres, adapter-kafka, adapter-pagerduty, adapter-commerce-gateway, adapter-http, adapter-memory.
Loops, guards, evidence, actors
Loop
A loop is a versioned governed decision cycle with LoopDefinition states and transitions. Finite-state machinery is the runtime implementation — the product unit is the decision loop.
Guard
Guards enforce policy at runtime: constrain execution, require evidence fields, escalate to humans, and block transitions that fail hard checks.
Evidence
Evidence is attached to transitions to support audit, dispute resolution, and operational learning. It is captured when the transition is evaluated — not assembled later from scattered logs.
Actor
Every transition names an actor (human, automation, ai-agent). Attribution is mandatory for governance.
MCP and Commerce Gateway
MCP (Model Context Protocol) is a protocol and controlled connectivity pattern — not a Loop Engine Provider and not the runtime itself.
Typical stack:
- Registry / Gateway — discover and execute tools against operational data.
- Loop Engine — govern whether operational state may change.
- Integrations — systems of record that receive approved side effects.
→ Commerce Gateway integration · Decision Governance
Runtime platform vs Loop Engine Cloud
Loop Engine can run inside your infrastructure, or connect to hosted governance services from Better Data.
Runtime platform (OSS)
| Aspect | Description |
| --- | --- |
| What | Open governed operational runtime (@loop-engine/sdk and adapters) |
| Where | Local execution in your environment — processes, containers, or services you operate |
| Primitives | Loops, guards, actors, evidence, events, signals |
| Direction | Self-host first; add Providers, Channels, and Integrations via adapters |
| Docs | You are reading them on loopengine.io |
Install and run:
1npm install @loop-engine/sdkLoop Engine Cloud (hosted)
| Aspect | Description | | --- | --- | | What | Better Data hosted governance control plane | | Where | Multi-tenant service at loops.betterdata.co | | Adds | Tenant isolation, connector OAuth (e.g. Slack, Google), API keys, metering, retention/compliance-oriented operations | | Direction | Optional path when you want managed connectors and fleet-style operations without operating every adapter yourself | | Contract | Loop Engine Cloud HTTP API |
We document what is available today on the Cloud API page. We do not imply undelivered surfaces (Studio, docker compose runtime, multi-service mesh, or full self-host parity with Cloud) — see Runtime Platform Direction and changelog.
Workflows vs loops
| | Workflows (Temporal, n8n, app code) | Loops (Loop Engine) | | --- | --- | --- | | Job | Coordinate durable steps and retries | Govern whether a transition may commit | | Policy | Often external or implicit | Guards in the runtime | | Audit | Reconstructed from logs | Evidence on each transition |
→ Loop Engine vs Workflow Engines
Next steps
- Runtime Platform Direction — self-host direction, roadmap-only services, forbidden claims
- Architecture — how primitives compose in one system
- Integrations — Providers, Channels, and Integrations index
- IntegrationAdapter archetype — developer interface map