cdk-rsx-takt
Typed durable workflow execution on one shared Reactor scheduler/runtime.
memory/v1.rs owns complete execution, node, saved-request, history and runtime
records. Each typed engine owns one module; executions and nodes use native
retained collections rather than individual Store resources.
For JSON workflows, keep payloads and the complete carrier in the workflow's
handwritten memory/vN.rs and derive cdk_rsx_takt::Progress. JSON lists stage
names and explicit operation Input/Output tags. Register with the generator's
build_workflows and build-only workflow!, then include the definition with
cdk_rsx_takt::workflow!("name"). See Takt authoring
for registration, type checks, diagnostics and create-only scaffolding.
Definitions, reducers and custom size functions run outside saved-row mutable
loans. Short callback-free commits edit existing rows directly. Payloads are
immutable after admission, and size functions must be pure and truthful.
Takt owns PayloadSize, including its primitive and container implementations.
It measures logical admission size independently of encoded bytes, allocation
capacity and retained sharing. Workflow APIs expose cdk_rsx_takt::Error and
Result by reexporting Reactor's orchestration error contract.
Definition::DATA_BYTES and ERROR_BYTES select optional static size functions;
admission, transitions, callback capture and explicit resolution share them.
The scheduler driver binds these functions once during startup. A raw host that
reconstructs an engine calls bind_definition::<ItsDefinition>() before replying
to or resolving saved work. Bounds are transient function pointers, with no
persisted registry or per-reply allocation.
Native and addressed callbacks preserve original request identity, attempt fences
and outcome certainty. Timeouts retain physical accounting; uncertain effects
require explicit reconciliation before a drained KEEP.
PayloadContract binds the application-owned data/error interpretation.
Physical catalogs independently certify every reachable saved representation.
The JSON generator emits typed definitions and source maps; it does not own
application memory or add a separate host queue.
Takt scheduling requests and committed-event notices use sparse Wire peer records. Requests also allow additive fields in their nested topic and return address records. Topic keys, operation identities, workflow arguments and local event handoff each use their own existing codecs.
Cold migration::Planner<Source, Target> conversions cover unattempted local
work, absolute waits, joins and terminal results. Saved tasks and unresolved
effects remain on their source definition. See the
workflow evolution guide
and two-image fixture for frozen
version-specific contracts and admitted owner conversion.
See RRT, the memory contract, and the current native, callback and nested-upgrade fixtures. Historical receipts do not qualify a newly compiled artifact automatically.
Package guides
Workflow authoring · Workflow evolution
License
This crate is available under the ICP3V License.