Skip to content

Glossary

Alpyne uses one name for each idea. Capitalized terms name a Definition resource or a platform part; lowercase terms name a mechanism. Terms are grouped by area and listed alphabetically, and each links to the page that explains it and to the interface that exposes it.

Term Definition Concept API
App A unit of application code that declares data, behavior and access; the root App imports other Apps. Application model AppBuilder
Builder The design-time interfaces that evaluate an AppSpec and produce a Definition. Application model AppSpec
canonical name The name an App sets with configure, which appears in PRNs and keys ctx.apps. Compose apps AppBuilder.configure
Definition The composed, immutable description of Apps: structure plus executable handlers. Apps and Definitions AppDefinition
dependency key The local key an importer passes to addDependency, distinct from the imported App’s canonical name. Application model AppBuilder.addDependency
generated types Application-specific Builder and Runtime types produced by the Alpyne compiler from a Definition. Application model AppBuilderTypes
imported App An App added with addDependency(key, spec); it keeps its own canonical name while the importer supplies a local dependency key. Compose apps DependencyAppBuilder
PRN The resource name of a Definition entity: prn::<app> for an App, prn::<app>:<type>/<path> for every other entity. Apps and Definitions createAlpyneDefinitionAccess
root App The App at the top of a composition; every Definition has exactly one. Application model RuntimeDefinition
Runtime An implementation that executes a Definition in a Workspace: PostgreSQL, SQLite or the test Runtime. Runtime implementations PlatformInstance
Workspace The tenant and execution boundary that every Item, Event and Metric belongs to, anchored by the Workspace Item. Workspaces and access ReadWorkspaceItem
Term Definition Concept API
archive Marking an Item excluded from default selection while retaining it. Data model WriteItem.archive
extensible Template A Template marked setExtensible whose Items can define per-parent Property extensions. Define data ReadTemplateExtension
hierarchy The parent-child tree of Items rooted at the Workspace Item. Data model BaseWriteItem.createChild
Identifier The opaque string id of an Item, Event or Workspace. Application model ReadItem
Item One runtime instance of a Template inside a Workspace. Data model ReadItem, WriteItem
key An optional identifier for an Item relative to its parent; a key path addresses an Item through the hierarchy. Data model ReadRuntimeInstance.getItemByKeyPath
Property A typed value declared on a Template or an operation input, read on an Item through properties or propertyValues. Data model PropertyValue
Relation A declared, directional link of fixed cardinality between Templates or Unions. Data model RelationBuilder, RelatedItem
search index A per-App full-text index over Templates declared with addSearch. Define data SearchIndexBuilder
selector The chainable, immutable builder returned by selectItems, selectChildren, a many-side Relation’s select and selectEvents. Data model ItemCursorSelector
Template A kind of persisted Item: its Properties, Relations, states, Events, Roles and Grants. Data model TemplateBuilder
Union A named group of Templates used as a common target for Relations, Events and selection. Data model UnionBuilder
Term Definition Concept API
App Hook An App lifecycle Listener registered with onCreate or onSeed that receives a system write context and a prev chain. Handle events AppCreateHookFn
Event A named occurrence declared on an App, Template or Union and appended to the Workspace’s Event history with a payload. Behavior and change EventBuilder, EventInstance
immediate Appends an Event and runs its Listeners inline within the active execution. Execution model WriteEventPublishInstance.immediate
Listener Application code registered on an Event with addListener that runs with a write context when the Event is processed. Handle events EventListener
Mutation A named write operation with declared input and output that runs in a write execution. Behavior and change MutationBuilder
operation A Query or a Mutation. Add queries and mutations BaseOperationBuilder
parent Listener A Listener registered on a parent Template for a child Template’s Event. Handle events TemplateBuilder.addParentListener
publish Appends an Event for asynchronous processing after the write commits. Execution model WriteEventPublishInstance.publish
Query A named read operation with declared input and output that runs in a read execution and publishes no Events. Behavior and change QueryBuilder
schedule A crontab attached to an Event with addSchedule, with best-effort timing. Handle events EventBuilder.addSchedule
state A named position in a Template’s state machine, exposed on an Item as item.state?.value. Add states and transitions ReadStateInstance
state machine A Template’s declared states and transitions, with one default state and any others marked setInitial as valid starting states. Behavior and change StateBuilder
transition A named, directional move from one state to another, executed atomically against its source state. Add states and transitions WriteTransitionInstance
Term Definition Concept API
Grant The link from a Role to what it may access: an operation, a Metric, a transition or a Template’s Properties. Authorization TemplateGrantBuilder
principal The identity an execution acts as under one of the auth contexts principal, masquerade, sudo and system. Workspaces and access AlpyneAuthContext
Role A named grantee: an App Role is assigned to principals, and a Template Role is computed per Item by a callback. Grant access AppRoleBuilder, TemplateRoleBuilder
system context A system or sudo auth context with Runtime-level authority inside one Workspace, reached in handlers through ctx.sudo. Workspaces and access SystemWriteRuntimeInstance
Term Definition Concept API
attempt One run of an execution callback; a transient retry starts a new attempt with fresh Item references and a fresh ctx.now. Unit of Work ReadWriteExecuteOptions
harness The test utility that builds a Runtime, creates Workspaces and drives the reactor and ticker with tickAll. Test an app —
reactor Runtime infrastructure that claims committed Events and runs their Listeners and subscribers. Event processing PlatformInstance.publishExternalEvent
read execution A run of execute('read', fn), which cannot modify Items or publish Events. Execution model ReadRuntimeInstance
subscriber An internal reactor consumer of Events; application authors register Listeners instead. Event processing —
write execution A run of execute('readwrite', event, fn), where Mutations, Listeners and App Hooks run. Execution model WriteRuntimeInstance
Term Definition Concept API
Dimension A category a Metric contribution is assigned to by a handler, attached at positions 1 to 4. Measure with metrics MetricDimensionBuilder
Metric A time-series aggregation projected exclusively from selected Events. Metrics and projections MetricBuilder, MetricInstance
projection The step that turns Event history into queryable Metric data, performed by the projector after the write commits. Persistence and projection MetricQueryBuilder
projector Runtime infrastructure that writes Metric projections from committed Events. Persistence and projection —