Glossary
Key terms used throughout the Reventless framework and documentation.
Adapter
A module that implements a framework interface for a specific provider. Adapters exist at two levels: deploy-time (creates cloud resources using Pulumi) and runtime (executes operations inside the deployed handler). See Adapter Pattern.
Aggregate
A command handler that enforces business invariants and emits events. Aggregates are the write side of CQRS. Each aggregate instance is identified by an ID and has its own event log. Commands are either accepted (producing events) or rejected (returning an error). See Aggregate component.
AutomationSlice
A DCB component implementing the automation (TODO-list) pattern: it accumulates pending work from events, issues a command per item, and marks the item resolved when the resulting event arrives. Stateful, unlike an EventMapping. It can also run on a time: see Schedule. See AutomationSlice component.
Business capability
Not a framework concept. A term from enterprise architecture and business analysis (TOGAF, ArchiMate, BIZBOK) for what an organization is able to do — "Order Fulfilment", "Customer Management" — named so it stays stable while the systems realizing it change. Capability maps decompose these into levels and are used to plan investment, not to describe software.
It is listed here because readers arrive with it and because three framework words sit near it without meaning it:
- A plugin is a bounded context. One usually realizes part of a business capability, but the two are not the same unit and do not have to line up.
- A competency is a supporting capability packaged as compiled rules — notification, attachments. Below a business capability in granularity, and beside it in kind.
- A platform capability is infrastructure, a whole layer down, and unrelated except by the shared word.
Nothing in the framework declares, stores or checks a business capability.
Chapter
A grouping band inside a plugin: the first folder under src/ that is not a kind
folder, so src/Order/StateChange/PlaceOrder.res puts PlaceOrder in the Order
chapter, and a component placed directly under a kind folder has none. The
generated Plugin.res lists every component's chapter, and every component
definition carries it as chapter, so the platform's component-definitions API
and the UI manifest publish it. The generated UI groups a plugin's components by
it. The DCB partition inference reads it as
well: when several ids are left as a slice's partition key, the
ids every event written in the slice's chapter carries break the tie, so moving a
slice into another chapter can move its partition. See
DCB usage.
Not a section, which names a list page's row groups and a part of a document.
Clock
The framework source an AutomationSlice maps to receive its schedules' firings.
Its one event is Tick({key, at}): which schedule fired, and the time it was
scheduled for. See Running on a time.
Competency
Something the domain does that recurs across domains — deciding whether to notify a recipient, keeping an ordered set of attachments, turning an address into a map point. A domain trait packages one as compiled rules a host calls.
Not a platform capability, and the distinction is worth
keeping sharp: a competency is domain behavior, a platform capability is
infrastructure the deployment provides, and a trait that needs one declares it.
trait-notification is a competency, and it declares the Messaging platform
capability.
Not a business capability either — that term belongs to enterprise architecture, where it names what an organization does at the strategic altitude; a competency is a supporting one packaged as code.
Consumed event
An event a slice reads in order to decide — declared as type consumedEvent on
its spec, separately from the events it emits. Only the fields the decision
needs have to be present; where existence is all that matters the variant can be
payload-less.
Decision
The logic file of a write-side component, <Spec>_Decision.res, annotated
@@reventless.decision: type state, initialState, evolve
(state × event → state), and decide (state × command → events or error). It
implements the decider pattern. Paired with a Spec, which holds the types
the decision operates on. In conversation, "the AddProduct decision" can also
mean the whole write-side slice, spec and decision together; the two readings
nest. It was called Behavior before (_Behavior.res, @@reventless.behavior).
Decision model
The ephemeral state a write-side component builds by replaying the events
relevant to one command, folding them with evolve from initialState. It is
never stored: it is rebuilt per command, used by decide, and discarded. Its
read-side counterpart, which is stored, is a view's row.
DCB (Dynamic Consistency Boundary)
A way to handle commands that span several entities without giving each entity its own event log. A DCB slice reads a shared event log filtered by tags, builds a decision model from what it reads, and appends new events conditioned on nothing having changed underneath it. The consistency boundary is per command, not per entity — which is what lets one entity's decision depend on another's events. See What is a DCB?.
Delegate
The local component an extension point or
extension stands in for, declared as module Delegate in its
mapping. On the publishing side, an extension point's delegate is the component
whose events it translates into published events; on the consuming side, an
extension's delegate is the component it sends commands to. The GWT kind that
tests both mappings is Delegate_GWT.
Domain trait
A package holding a competency: the rules as a module your host imports and calls, while the types stay yours. Adopting one is a graft — the trait emits components and prints the relays only you can write — so fixing a rule is a release of the trait rather than an edit to every host that copied it. See Domain Traits.
Error
In a spec, type error lists the named reasons decide rejects a command with,
returned as Error(CategoryNotFound). An error is not a failure: returning one
is the model working. The outcome a client sees is a rejection.
Plain-language surfaces may call a declared error a refusal.
Extension
A component that connects to an extension point published by another plugin. Extensions receive events and send commands across plugin boundaries without direct coupling. See Extension component.
Extension point
The external interface of a plugin. An extension point publishes events outward and accepts commands inward through a stable, versioned protocol. Other plugins connect via extensions. See ExtensionPoint component.
Fence
The consistency check a DCB append carries: for each tag the decision read, the append is rejected if any new event carrying that tag was recorded since the read. This is how optimistic concurrency is enforced without locking. See DCB consistency checks.
GWT (Given/When/Then)
The scenario format Reventless tests are written in: given these prior events, when this command or event arrives, then these events, this state, or this error. Scenarios are written in the domain's vocabulary and run as the test suite. See Writing scenarios.
Local platform
A running instance of an application on the Local provider — one process, in
memory or on SQLite, with the GraphQL and MCP servers attached. The distinction
matters: Local provider names the reventless-local package, local platform
names the thing you started.
Optimistic concurrency
Writing without holding a lock: read, decide, then append on the condition that nothing relevant changed in between. A conflicting append is rejected and retried rather than blocking other writers. Aggregates apply it per instance; DCB slices apply it per tag through the fence.
Partition key
The one id that decides which storage partition a DCB event lands in, what a
command reads before deciding, and which fence guards the write. The framework
infers it per slice from what the slice writes and reads; @partitionTag marks
it only where that inference cannot choose. Distinct from a tag that is merely
queryable: every tag can be read on, but one decides placement.
Platform
The top-level deployment unit that assembles one or more plugins and creates the
shared infrastructure they use (admin components, runtime, API). Built by
Platform.makePlatform.
Platform capability
Infrastructure a plugin needs but does not provision — an object store, a geocoder, a mail sender. The plugin declares it, the platform provisions it, and a deploy that declares one the platform does not provide is refused. Three are supported today, and the set is expected to grow. See Platform Capabilities.
Called an infrastructure capability in enterprise-architecture and commercial
material, where the contrast with business and component capabilities is the
point and "platform" is claimed by platform engineering. The two name the same
thing; this is the term used throughout the framework, because the type is
Platform.capability.
Distinct from a competency, which is domain behavior rather than infrastructure.
Plugin
The deployable unit of a Reventless application, grouping related components and their infrastructure. Plugins are independently versioned and communicate only through extension points and extensions. In domain-driven design terms a plugin is a bounded context: its own model, its own event log, no tables shared with another plugin. Plain-language surfaces may call it "a separate system". See Plugin component.
The platform's own Plugin aggregate, with the Plugins read model beside it, is the registry of plugins: it records each plugin's registration, versions and status (connected, disconnected, inactive, retired). The capitalized name refers to that component, not to the kind.
PPX
The compile-time source transformation that injects the repetitive parts of a
spec — names, module identity, schema annotations, DCB tags — from the file-level
markers (@@reventless.spec, @@reventless.decision, …). It is why a spec file
states its types and almost nothing else. See
PPX annotations.
Projection
The function that folds one event into a view's row, the same in
both styles: event × state → state, and pure. A
ReadModel holds one per source event, a
StateViewSlice one in total.
ReadModel
The aggregate-style view. A read model consumes events from an event collector, folds each into a row with that event's projection, and stores the rows in a QueryDb that its GraphQL queries read. See ReadModel component.
Rejection
The outcome a client sees when a command does not go through: a
CommandRejected result with an errorCode and a cause. With cause DOMAIN
the code is a declared error that decide returned; with ACCESS the
caller may not send the command (Forbidden); with INFRASTRUCTURE the
platform could not record it (AppendFailed, Conflict, …) and a retry may
succeed. A spec may not declare an error named like one of the platform's codes.
A plain-language refusal is a declared error. See
Mutations.
Row
The stored record of a view, one per key: its spec's type state. A
projection folds events into it, and the view's queries return
it. The same type state in a write-side component is the
decision model, which is rebuilt per command and never stored.
Schedule
One key and one time held by one AutomationSlice: declared in its spec
(let schedule, under the key default), or set and cleared by events through a
mapping's reschedule. The slice keeps its schedules as rows, and the platform's
Scheduler follows them. Not a component of its own. See
Running on a time.
Scheduler
The platform's part that fires at a time: EventBridge Scheduler on AWS, timers locally. It knows only when; what a firing means is the slice's.
Section
A list page's row groups, keyed by the field a view's state marks @groupBy
(see @groupBy),
and in prose a part of a document. Not a chapter, which groups a
plugin's components.
Slice
A component in a DCB-based plugin that processes a subset of events from a shared DCB event log:
- StateChangeSlice — handles commands and emits events; the DCB equivalent of an aggregate
- StateViewSlice — reads events to produce a query view without handling commands
- AutomationSlice — reacts to events by issuing commands
- InboundTranslationSlice — translates incoming external input into commands
- OutboundTranslationSlice — translates internal events into outgoing calls
Spec
The module defining a component's type contract — command, event, error,
and where applicable consumedEvent or state — plus its name and schemas.
Annotated @@reventless.spec. Paired with a decision that holds the logic.
StateChangeSlice
The DCB equivalent of an aggregate: decides commands against a decision model built from tag-filtered events and appends new ones. See StateChangeSlice component.
StateViewSlice
The DCB-style view: a read-only slice consuming tag-filtered events into rows its queries return. See StateViewSlice component.
Sury
The schema library behind @schema: it derives serialization for a type from its
declaration, so events and commands cross the wire without hand-written codecs.
Sweep
The run over every automation's pending and failed to-do items, every five minutes. It retries work and offers items with a due time; it does not fire schedules.
Tag
A key on a DCB event that makes it findable — usually an entity id. A decision reads by tags, and the events it appends carry them, which is what lets two slices' events live in one log and still be queried apart. See DCB usage.
Tick
The event the Clock delivers when one of a slice's schedules comes due.
View
A read-side component: a ReadModel or a
StateViewSlice. In the code and in the platform API its
definition is a read-side def: readSideDef in the plugin structure,
Platform_ReadSideDef in the API. What the generated UI draws from a view is a
page: its list page, detail page or board page.