Skip to content

Scope and conformance

The Alpyne specification defines the contract between an application and the Runtime that executes it. It covers the composition of Apps into a Definition, the persistence and identity of Items, authorization, the Event stream, the execution model, Metrics, limits and the public error classes. Application authors start with the Introduction; Runtime implementers start with Unit of Work and Runtime conformance.

The specification states rules a Runtime must satisfy and behavior an application may rely on. A rule holds in every Workspace and under every auth context unless the rule names an exception. The specification describes observable behavior, not storage layout, transaction mechanics or process topology; the Runtime architecture pages describe how each Runtime realizes the rules.

Each chapter uses the vocabulary of the glossary. “Must” marks a Runtime obligation. “May” marks a permitted variation. A sentence with neither is a definition.

A Runtime conforms when every rule in the specification holds for every Definition it accepts. A Runtime may offer a stronger guarantee than a rule requires, for example broader atomicity, provided the stronger behavior changes no other rule’s outcome.

Conformance is demonstrated by running the shared conformance suite against the Runtime. The suite lives beside the Runtimes in the repository and runs against PostgreSQL, SQLite and the test Runtime. Runtime conformance lists the suites, the harness that runs each one and the obligations each scenario demonstrates.

The API reference names the operations the specification governs: PlatformInstance.execute, the read and write contexts, Items, Events, Metrics and the error classes. The specification defines what those operations mean; the API defines how to call them; the conformance suite checks that a Runtime delivers the defined meaning. Every rule refers to behavior reachable through the public API.