Limits and errors
The limits below hold in every Runtime. The error classes are the public vocabulary through which a Runtime reports a failed operation.
- A Definition key (App, Template, Property, Relation, Event, operation or Role) is 1 to 64 characters matching
^[a-z][a-zA-Z0-9]*$. rootis a reserved Definition key.idandstateare reserved Property keys.- An Item key, relative to its parent, is at most 256 characters.
- Reserved keys match case-insensitively. The Builder rejects a reserved or malformed key; a Runtime rejects one at write time with an invalid-key error.
Events
Section titled “Events”- An Event lineage holds at most 20 PRNs. The bound applies to inline (
immediate) and asynchronous (publish) chains alike. - A PRN appears at most once in a lineage. The Builder rejects declared child-Event cycles; the Runtime rejects lineage cycles at publish time.
Metrics
Section titled “Metrics”- A Dimension occupies position
1,2,3or4. - A Dimension value is an Item Identifier (UUID).
Schedules
Section titled “Schedules”A schedule (addSchedule) fires on a best-effort basis. A Runtime publishes the scheduled Event on the first tick at or after the due time. It guarantees neither precise timing nor an Event for every tick of a frequent schedule.
Retries
Section titled “Retries”maximumTransientRetriesdefaults to 1 additional attempt.idempotencyScopeis unset by default, so no deduplication applies.- Only errors the Runtime classifies as transient are retried. Unit of Work defines the retry boundary.
Conflict errors
Section titled “Conflict errors”A Runtime reports failed operations through these public classes:
ConflictErroris the base class of every conflict: a write’s precondition no longer holds.StateTransitionConflictErrorreports a transition executed while the Item is not in its source state. It is transient and retried up tomaximumTransientRetries.AssertRoleFailedErrorreportsassertRolerun for a Role the context does not hold.
isAlpyneRuntimeError identifies an instance of any of these classes. Each instance carries a code: state-transition-conflict or assert-role-failed.
An idempotency rejection reports a second execution for the same Workspace, Event Identifier and scope. It is not a conflict and is not retried.
Related
Section titled “Related”- Add states and transitions handles
StateTransitionConflictError. - Handle events stays within the chain depth and cycle rules.
- Execution model explains attempts and retries.
ReadWriteExecuteOptionssets the retry and idempotency options.

