Skip to content

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]*$.
  • root is a reserved Definition key.
  • id and state are 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.
  • 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.
  • A Dimension occupies position 1, 2, 3 or 4.
  • A Dimension value is an Item Identifier (UUID).

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.

  • maximumTransientRetries defaults to 1 additional attempt.
  • idempotencyScope is unset by default, so no deduplication applies.
  • Only errors the Runtime classifies as transient are retried. Unit of Work defines the retry boundary.

A Runtime reports failed operations through these public classes:

  • ConflictError is the base class of every conflict: a write’s precondition no longer holds.
  • StateTransitionConflictError reports a transition executed while the Item is not in its source state. It is transient and retried up to maximumTransientRetries.
  • AssertRoleFailedError reports assertRole run 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.