Skip to main content
Every Stack component speaks one exhaustive, versioned internal protocol. The protocol is shared because a service operation should not need a different lifecycle model for a queue than for a database or scheduler.

Resource addresses

A resource address combines a capability kind and a provider-chosen namespace:
Only declared addresses may receive commands. A database command sent to queue.fulfillment is a kind mismatch rather than an implicit conversion.

Command envelope

The supervisor assigns the command identity and logical time before dispatch:
The result repeats the assigned identity and time. Component result variants are exhaustive, so a protocol-version change is required before a new command family can silently appear.

Causality and idempotency

The metadata fields answer different questions: Reusing an idempotency key for the same resource and command returns the original result with replayed: true. Reusing it for different input fails with conflict; Stack never guesses which command the caller intended.

Stable errors

Components return a small shared error vocabulary: conflict, invalid_command, invalid_value, kind_mismatch, not_found, undeclared_resource, and unavailable. Human-readable messages add context, but callers can branch on the stable code.

Component process surface

Each simile-* component process exposes the same lifecycle routes: The process writes one JSON readiness record to stdout. Diagnostics go to stderr, which makes the process safe to supervise and compose without parsing human log text.
Stack component processes are persistent by default, so persistent is true. Every state transition is checkpointed beneath SIMILE_HOME before its result is returned, including logical-time advances, resets, restores, and failed commands that append journal state. See Persistence for path, restart, and compatibility semantics.