Skip to content

Execution, storage and physical effects ​

Checkpoint-engine reference only. The candidate serving binary Redis runtime is owned by Redis core and Service runtime. These checkpoint paths remain explicit fixture APIs, not an alternate serving backend.

This chapter maps the current implementation of the architecture and runtime contracts, including direct one-shot presentation. It follows the source shipped with this chapter. The read/reduce/CAS and retained codec graphs below apply to schema 1 / reducer 1 / timers 1 Redis checkpoint execution. The default typed Memory path is owned by Memory core; shared control framing is identified explicitly below. Fixture drivers are separate programs.

Architecture owns component boundaries; Runtime owns exact admission, proof, retention and failure invariants; Protocol owns public RPC framing and semantics. The operation index, SIP flows and lifecycle flows connect this shared machinery to individual operations. This chapter records current work, not a proposed redesign.

Units of work and the common CAS graph ​

A public request, a reducer input, a committed effect, a store call and a Redis command are different units. One request can generate several reducer inputs, external callbacks and inspections. A single Redis Lua invocation executes many commands internally without a network round trip for each command.

flowchart TD
  A[Build immutable input and original deadline] --> B[Local group stripe and execution slot]
  B --> C[ReadUpdate]
  C --> D{Exact retained receipt?}
  D -->|Yes| E[Project replay result]
  D -->|No| F{Pending input?}
  F -->|Yes| L[Bounded wait; retain incarnation]
  F -->|No| H[Pure reducer]
  H -->|Allowed read-only outcome| I[Return without receipt write]
  H -->|Next payload| J[CompareAndSwap]
  J -->|Definite success| K[Publish committed projections]
  J -->|Stale or busy| L
  L --> C
  J -->|Unknown| M[Conditional exact-operation inspection]
  M --> E

The graph's UNKNOWN inspection edge is conditional: external inputs and commands can inspect the exact operation; internal proof inputs do not automatically replay an uncertain computation. If inspection cannot establish a receipt, uncertainty is returned. No committed dispatch projection is synthesized from a replay, read-only result or uncertain inspection.

CASRuntime holds a local one-token group stripe through the read/reduce/CAS loop, then releases it. There are 1,024 stripes, so unrelated groups can collide locally. An execution semaphore bounds concurrent computations (64 slots in the service constructor). Neither gate serializes other processes: Redis revision, incarnation, comparison counter, transport observation and lease guards decide cross-process admission. A CAS conflict or busy read waits 5 ms and rereads under the original deadline; retained pending work is never resumed or stolen. An observed incarnation cannot become a fresh creator after deletion. A queued input whose semantic deadline expired may perform a bounded receipt-only lookup under the remaining caller lifetime.

The reducer can request external controller preflight. applyCommitted drops the observation, runs preflight, and retries the same input with a fresh ReadUpdate. The preflight itself uses ReadState and may reconcile controller authority. No protocol aggregate survives across that external I/O. See applyCommitted and preflight.

Entry points and every reducer input ​

Control hello, heartbeat and status processing establish/renew session and owner state before ordinary control RPCs reach the engine. Reply envelopes are matched to pending Peer.Call correlation IDs. They are not all new business inputs.

Entry or public RPC categoryExecution pathSource
Physical SIP ingress and retained completionFraming/observation; optional TryNativeCompletion; otherwise route lookup and controller ingress admissioningress, native ingress
IngestAttachment validation, input construction, CAS, then dispatch committed effectsengine handle
Command: Respond, OpenUac, DialogRequest, CancelSame CAS core; accepted Respond/DialogRequest/non-INVITE OpenUac can wait for operation completionengine handle, command reduction
OpenUac with a placeholder contextBootstrap locate CAS, ReadState to obtain its incarnation, then the command CASbootstrap and handle
InspectLoad and native group decode; project current result/snapshot or retirement evidence; no reducer inputcontext inspection
ControllerContextsOptional recoverable-controller inventory, owner/attachment checks and bounded context listing; separate response typecontroller recovery
WritePhysical ingress writer calls Reserve, performs at most one admitted socket attempt, and records Completestartup routing, writer
InspectEffectInspect local physical memo; possibly record known completion or read retained write evidence; never reserve a fresh attemptwriter inspection
Hello / hello acknowledgement, ping / pong, statusSession validation, current-session fencing, pending calls and application lease callbacks; no generic SIP reducer inputcontrol server, application leases

The complete current stateEngineInput.Kind switch is below. All these kinds use the common execution graph unless an explicit early observation returns read-only.

KindProducer and work performedDistinct branch or follow-up
locateRoute/bootstrap admissionExisting selectors or one bounded new admission reservation; not a socket permit
ingestController-admitted SIP messageNative transaction/dialog matching and transition; can emit presentation, response, event or physical effects
native-ingestProven retained completion relayRevalidate exact retained completion before ingest; never create a context
rejectNative refusal arbitrationProve/select a scoped private response or reuse retained disposition
commandPublic commandSequence/owner/policy checks and action; exact replay projects retained result
reserveExact physical ingressSelect immutable write attempt; eligible metadata path described below
completePhysical ingress evidenceRecord WRITTEN / NOT_WRITTEN / UNKNOWN, update causal proofs and command outcome
owner-controlController preflight resultApply validated controller/attachment observation
owner-resultApplication probe callbackApply probe result and any required owner transition
owner-checkOwner expiry coordinatorApply required expiry transition; healthy unchanged owner is read-only
digest-resultCredential lookup plus local digest builderValidate constructed retry against retained challenge; never persist the clear credential reply
effect-startNonphysical dispatcherCommit executor/start selection where required; unavailable/non-startable effect can be read-only
effect-resultNonphysical callback or settlementApply matching receiver result; an absent effect can be read-only
presentation-failedOne-shot request presentation failed or expiredSelect a native refusal only if that exact admitted request is still unanswered; never replay the controller call
timerScheduling driverValidate exact timer identity/generation and due time; absent/not-due timer can be read-only

Sources: switch and shared preparation, effect handlers, owner state, credential path. The supported public command variants and individual SIP operations are expanded in SIP flows; owner/session/timer drivers are in lifecycle flows.

Full reduction and the reserve exception ​

flowchart TD
  A[Decode retained input] --> B{Early observation or eligible reserve?}
  B -->|Read-only| C[No group rewrite or CAS]
  B -->|Reserve| D[Owned group decode and exact reservation checks]
  D --> E[Keep protocol bytes and budget; change effect metadata]
  B -->|Normal path| F[Owned group decode]
  F --> G[Request fence; reclaim; prune; rebuild selectors; owner expiry]
  G --> H[Kind-specific transition]
  H -->|Refused| I[Decode original again; discard partial mutation]
  H -->|Accepted| J[Finish]
  I --> J
  J --> K[Timers; effects; leases; dispatch; capacity; selectors]
  K --> L[Encode group and result projections]
  E --> M[Store validates and CAS commits]
  L --> M

Normal preparation and finish both traverse retained state. Preparation reclaims settled effects, prunes eligible transactions and rebuilds selectors before the selected operation. Finish projects native timers, reclaims/compacts effects, prepares native write permits, appends lifecycle work, projects leases/dispatch, recomputes completion capacity, rebuilds selectors and encodes the group. A failed handler reloads the immutable original group before constructing its refusal; capacity refusal can also rebuild from the original. These are conditional extra passes, not extra Redis reads. See reduce and finish.

Reserve metadata execution still decodes the whole native group. It avoids normal finish, selector rebuilding, capacity recomputation and protocol re-encoding when all eligibility checks pass: no due retained timer/pending input, current unsealed matching owner observations, and an exact authorized native physical effect for this worker. It uses the same reservation authority checks as the normal handler. The original protocol bytes, indexes and conservative completion reservation are retained; changed effects and new commit guards are still fully validated/accounted by the store. A failed attempt discards its private decode and falls back to normal reduction.

The operation-local wire projection memo shares validated scalar identities and selectors with capacity calculations. It is bounded by 256 entries / 1 MiB of exact wire keys and holds no parsed SIP graph. It is discarded with the reduction and cleared on rollback. The pinned native reducers still own SIP transitions; this memo is neither a protocol cache nor an alternative authority.

Physical emission and settlement ​

flowchart TD
  A[Reducer constructs immutable wire obligation] --> B[Prepare native permit in next payload]
  B --> N[CAS commits state and prepared effect]
  N --> C[Exact ingress discovers committed effect]
  C --> D{Local attempt memo?}
  D -->|Known or in flight| E[Return or reconcile evidence; no new syscall]
  D -->|New attempt| F[Reserve CAS]
  F -->|Wire authorized| G[Acquire flow write lock]
  G --> H[Recheck exact flow and monotonic start bound]
  H --> I[Socket write]
  I --> J[Release flow lock; save local evidence]
  J --> K[Complete CAS]
  K --> L[Publish command result and dispatch hints]
  L --> M[Native settlement and normal reclamation]

Preparation verifies the immutable authorization/fingerprint and produces the native permit. There is no per-send controller grant RPC for this service path. The native dispatcher invokes the local writer only on the exact physical ingress; another worker leaves discovery to that ingress's indexed queue.

Reserve uses a fresh internal operation identity for CAS, so an old computation receipt cannot return permission to repeat a syscall. Reserve returns owned wire or a known outcome. The writer installs a bounded local attempt memo, performs Redis work outside the per-flow write lock, and takes that lock only for final flow/deadline checks and socket use. A full socket write produces WRITTEN, proven no start NOT_WRITTEN, and partial/unknown evidence UNKNOWN. The lock is released before recording completion in the store.

Complete has its own read/reduce/CAS and does not reload the group afterward merely to notify a local command waiter. Native preparation marks known terminal physical evidence settled; normal reclamation transfers compact transaction/ACK/final proof before removing the effect. Depending on ordering, this occurs in a later natural reduction. Physical inspection/reconciliation is separate from permission to send. The local memo can reconcile a lost store acknowledgement, but its absence is not proof that a write never happened. See runtime physical writes.

Nonphysical effects and callback inputs ​

Incoming request presentation is a direct controller exchange rather than a retained effect. Only a definite fresh commit returns its bounded presentation DTO. The request path calls the controller after releasing state gates, under the original deadline. There is no presentation queue, scheduler replay, cross-worker fallback or successful-acknowledgement CAS. Replayed and uncertain commit results cannot recreate it. Deferred flow adoption/owner proof returns the same transient output from its completing transition. Process failure in this exchange may fail the in-flight request; retained dialog state and physical obligations have independent lifetimes.

flowchart TD
  A[Committed effect projection or discovery read] --> B[Decode effect metadata and local dispatch gate]
  B --> C{Effect kind}
  C -->|event| D[Stable receiver RPC; CAS skips start mutation]
  C -->|adopt| M[Start CAS; stable adoption RPC]
  M --> H
  C -->|credential| E[Pure lookup; build digest retry locally]
  C -->|open| F[Start CAS; dial once on selected executor]
  C -->|owner| G[Start when needed; owner probe]
  D --> H[Canonical callback reply]
  F --> H
  G --> I[Owner result input]
  E --> J[Digest result input; no credential payload]
  H --> K[Result-input CAS]
  I --> K
  J --> K
  K --> L[Dispatch fresh committed effects]
Effect categoryFresh service-path start and external workResult and retained state
Request presentationOne direct RPC from a transient definite-commit DTO, never discovered from retained stateNo success result CAS, retained presentation or recovery queue
eventCAS skips effect-start; controller deduplicates stable receiver identity. Envelope projection is materialized at the send boundaryeffect-result commits receiver outcome. Event recovery is bounded from the original effect deadline
adoptFresh effect-start selects executor before the stable-identity controller publication RPCeffect-result validates the receipt before publishing accepted delivery and any pending response
credentialCAS skips start selection because lookup/digest construction is repeatable; raw credentials remain transientdigest-result carries constructed SIP message or failure and validates against the retained challenge
openFresh effect-start selects executor before local network dial; recovering an already-started open does not dial againeffect-result carries flow/failure, then native procedure may emit its request
ownerProbe/observation path with its original authority and recovery behaviorOwner-specific result input; does not grant socket authority
deliver with native bodyLocal Reserve/write/Complete graph aboveNo receiver RPC or extra effect-start for physical emission
wire or non-native deliver retained by historical fixturesDispatcher contains compatibility branches, but autonomous service dispatch rejects themNot an additional live service grant/relay mode

Sources: dispatchEffectWithin, credential construction, owner callbacks, startless receiver kinds. acquireDispatch suppresses concurrent local transport work by effect ID. It is not cross-worker execution fencing. Receiver idempotency and committed identities remain necessary in healthy multi-worker operation.

A fresh definite commit supplies copied finite effect projections directly to dispatch. Replay/uncertain paths lack that projection and can fall back to a ReadState discovery read. Callback dispatch stops when the matching effect is unchanged or has no continuation; a successful receipt alone does not imply that another external call should be made. Bounded metrics attribute receiver RPC attempts, responses/errors and result commit projections to fresh-commit, index or continuation discovery. Native physical candidates count whether the retained dispatch worker is local, remote or unknown (including wildcard targets); these are candidate observations, not writes. A successful result without a fresh commit projection may be a replay or a read-only result; the counters do not distinguish them or track identities.

Bytes, validation and ownership at each boundary ​

flowchart LR
  A[WebSocket JSON bytes] --> B[Token/object validation]
  B --> C[Public protobuf DTO]
  C --> D[Private input protobuf bytes and fingerprint]
  D --> E[Canonical store input JSON and digest]
  E --> F[ReadUpdate: binary Payload plus receipt metadata]
  F --> G[Owned native group and effect values]
  G --> H[Native reduction]
  H --> I[Group protobuf bytes inside Payload protobuf]
  I --> J[CAS stores data and JSON receipt metadata]
  H --> K[Compact result JSON; bounded local DTO]
  K --> L[Public projection and outgoing ProtoJSON]
BoundaryCurrent allocation/validation workOwnership/lifetime and source
Incoming control frameStrict JSON token/object tree, duplicate/type/oneof validation, then ProtoJSON decode into public DTOOne received envelope; control JSON
Outgoing control frameProtoJSON encode, size check and typed producer validation. It does not parse/decode its own emitted JSONSession write buffer; control JSON
Engine inputReject retained credential reply; map engine input to private storage DTO; deterministic protobuf encode; SHA-256 fingerprintImmutable per-operation bytes; applyCommitted, binary input
Store input admissionValidate scalar fields/bounds; canonical JSON envelope and digest once per ReadUpdate; clone payload/lease-ID ownership; retain a scalar/header plus raw-payload hash bindingPrivate update token only. CAS verifies mutation binding without remarshaling the JSON envelope; input binding
Store record readBinary frame preflight and generated outer Payload decode; structural/size checks; full reads additionally decode receipt/proof/pending JSON and owner observationsFresh independently owned record; state binary, metadata
Native group decodeValidated direct reader builds the domain group without first building a second generated group graphOperation-local only; direct reader, group decode
Effect metadata decodePrivate protobuf decode and policy checks; selected SIP wire is prepared at most once in the operation, with public DTOs deferredUnused message fields remain opaque; effect binary
Effect encode with a public SIP messagestateEffectForStorage constructs the retained envelope metadata without copying the parsed message graph and retains one exact wire representation; immutable metadata is shared only during synchronous encodingOperation-local storage projection; effect binary
Native group encodeDomain-to-generated storage graph conversion, compact cached result projection, deterministic protobuf size/encodeNew protocol bytes; binary codec, storage frame
Payload commitOuter storage DTO conversion/encode; validate effects/timers/lease membership and encoded capacity; construct JSON guards, projections and receiptNew Redis data value plus separate metadata; Store.commit
Results and callbacksCanonical callback cloning strips session framing. Callback identity generation can encode the input before applyCommitted encodes it again. Public result materialization reuses selected immutable wire facts when neededcallback identity, receipt projection, result materialization
Fresh commit handoffCopy finite effect bytes/lease refs and optional bounded local result/observation DTOsNo protocol aggregate crosses external I/O; committed projection

Persisted data is framed protobuf, not the diagnostic JSON implementations of Payload/Effect. Input and receipt metadata still use JSON; opaque protobuf bytes in those JSON envelopes are encoded as bytes. The outer Payload decoder owns its protocol byte field, and the native direct reader owns the domain wire values it constructs. This is not a zero-copy resident group cache. Full read/replay paths decode retained receipt metadata before applying same-read result suppression. Suppression on a read does not rewrite the Redis receipt field; lazy result compaction happens only on a later successful commit.

Several checks traverse data without a serialization round trip: structure/size validation, commit lease-guard derivation, typed producer validation and CAS input binding. Incoming control performs strict JSON validation followed by ProtoJSON decoding. Ordinary checkpoint group encoding still constructs a storage DTO graph. The direct group decoder and reserve exception remove specific passes; they do not remove all encoding/decoding from the operation.

Lifecycle and dispatch classification each reuse one validated body within their current effect iteration. The eligible reservation path passes its owned selected body and drain observation through the same reservation authority checks used by ordinary reduction. There is no effect-body cache across iterations or operations. Native preparation does not re-encode an already-settled physical result; its second pass remains necessary for obligations emitted by lifecycle continuation.

Read projections and healthy single-attempt counts ​

The following counts assume a validated primary observation, an already connected Redis socket, a loaded Lua script, no conflict/timeout, and no external preflight. They count client script invocations / warm request-response exchanges, not individual redis.call operations. TLS/authentication, connection establishment, Sentinel discovery, readiness probes, script cache misses and driver retries are outside these conditional counts.

Logical operation or branchWarm Redis exchange countReturned data / protocol mutation
GroupForCallID, reference/authority derivation0Local HMAC/configuration computation
ReadState1 scriptBinary Payload, revision/incarnation/Call-ID, pending-present bit and timer-owner scalar; no receipts, pending body or lease observations
Load / LoadAt1 scriptFull Payload plus receipts/proof/pending and observed application leases; LoadAt also returns same-read store time
ReadUpdate exact replay1 script, no CASFull read/validation, then original receipt lookup before new deadline admission
ReadUpdate plus allowed read-only reducer result1 script, no CASRead-only internal result; no retained operation receipt
Fresh ordinary mutation or eligible Reserve2 scriptsReadUpdate plus atomic CAS. Reserve exception changes CPU/bytes, not this count
InspectOperation1 full-read scriptScan bounded receipts/proof and pending identity; this is not a one-field Redis lookup
Recoverable-controller attachment validation1 lease script when negotiated; otherwise 0Additional to its public RPC branch; checks current term/generation/holder
ControllerContexts page2 scriptsAttachment validation plus bounded owner-context listing; excludes session setup/renewal
Native completion selection and mutation2 scriptsReadUpdate plus CAS; unmatched candidate stops after ReadUpdate with no receipt
Fresh local physical Reserve then Complete4 scripts for these two inputsExcludes discovery, producer command and peer response; known attempt/recovery branches differ
Tagged existing-context lookup that succeeds read-only1 ReadState scriptNo new group revision; fallback admission takes a different branch
Placeholder OpenUac bootstrap then command5 scripts before extrasTwo for bootstrap locate, one ReadState, two for command; excludes attachment checks, dial/result/write and waits
Local completion observation already available to waiter0 additional readsExact matching bounded DTO from definite CAS
One waiter fallback observation1 ReadState scriptOuter payload plus native group decode; repeated until result/deadline

Sources: store reads and commit, update adapter, StateView, native completion, route/bootstrap.

ReadState is a projection of metadata classes, not a selected-context storage read: it still transfers the complete binary Payload, including effect bytes, and its consumer may decode the complete native group. Load and ReadUpdate are logical reads but application-lease observation can initialize an expired owner's recovery deadline inside Lua. Thus “one read” must not be reported as “zero Redis writes” without stating the branch. See lease observations.

Every script is wrapped with Redis-clock checks and validates current primary identity/role within Lua. Those TIME/INFO calls are internal commands, not additional network exchanges. ensurePrimary is local when the transport observation is already validated. Otherwise readiness performs TIME, INFO server and INFO replication; connection observation has its own primary checks. redis.Script.Run can issue EVALSHA followed by EVAL on NOSCRIPT. Source: script wrapper, transport observation, runKeys/readiness.

Atomic Redis work and key families ​

root below is the configured prefix plus namespace. p denotes the configured partition. Key names describe implementation categories, not separate protocol authorities. The adapter uses a writable Redis primary/Sentinel deployment; partition tags are not a claim that these multi-key operations run on Redis Cluster.

Key familyRepresentation and roleAtomic operations and source
root + {p}:group:idHash: protocol Payload, revision/incarnation, bounded receipts/proof, input/claim metadata, scheduling and owner projectionsReadUpdate / CAS / Load / ReadState / exact retirement; scripts
root + {p}:ready, root + {p}:dueSorted fallback scheduling indexes for groups not handled by their owned queueProjected in CAS/retirement and repair; scripts
root + scheduler:heads, scheduler:wake, scheduler:leaseGlobal head index, compact wake stream and coordinator lease hashMetadata head/lease reads and writes, bounded repair; scheduler
root + scheduler:workersLive dispatch-worker deadline registryRegistration/renewal and wildcard effect discovery; dispatch
root + dispatch:worker, dispatch:worker:wakeExact physical/control discovery sorted queue and compact worker wake streamCAS projection, head/hints, revision-fenced acknowledgement; dispatch
root + timer:worker, timer:workersOwned group deadline queue and worker-expiry indexCAS updates queue head; coordinator transfers expired-worker timer ownership in bounded pages; timer workers
root + {p0000}:application-lease:id, application-leasesOwner term/expiry/sealing/optional attachment hash and bounded owner indexAcquire/read/renew/fence/recoverable attachment; leases
Lease hash key plus :contextsSorted owner/context projectionCAS reference changes and bounded owner inventory; contexts
root + application-expiry, application-expiry:idOne owner deadline index and bounded resumable sweep metadataPage/ack fencing, renewal/head update and completed sweep removal; expiry

The CAS Lua body checks group identity/version/revision/counter/pending state, original deadline, lease guards/fences and index key types/permissions. It plans lease-reference, context-index and dispatch changes; decodes bounded receipt metadata; suppresses expired result payloads and checks total capacity before applying writes. Success installs the new group hash value, updates reference and context indexes, physical/timer queues and earlier-head wake hints atomically. The number of internal HGET/HMGET/HSET, sorted-set and stream commands depends on owners, contexts, effects, worker targets and head changes; it is not a fixed per-dialog network count. The protocol blob is opaque to Lua.

Receipt storage branches are distinct. Ordinary external inputs append bounded receipts; proof-marked commands can replace the single proof receipt; other internal proof inputs return a receipt to the current caller without retaining another replay entry. A read-only internal outcome stores neither. All branches still use their input deadline and the applicable native proof checks; an internal receipt return is not permission to repeat external work.

A fresh definite CAS can return its exact result DTO even when the acknowledgement arrives after result cutoff. Stored replay uses the original cutoff and same-read store time; a discarded result remains positive commit evidence, not permission to execute again. Full guarantees and quotas are in Runtime.

Local concurrency, waits and retained lifetime ​

MechanismScope and retained contentSource
CAS stripes and execution slotsProcess-local admission; no stored group lock or resident authoritative graphCAS runtime
MemoryStore gateOne in-process adapter gate around record/index/lease operations; serializes that adapter's atomic workMemory adapter
Engine work/background slots, lifecycle mutex, dispatch mutex/maps48 ingress slots separate from 64 command/completion slots; at most 48 background tasks use the latter pool. Direct presentation cannot consume the command pool while waiting for a nested Respondengine
Per-flow write lock and physical-attempt mapSerialize one socket's framing/syscall; retain exact local attempt evidence under a bound, never another SIP FSMwriter
Control server/session locks, correlation waiters and write gateAuthenticated session claims, pending RPC replies and bounded serialized WebSocket writesserver, peer
Owner term / optional attachment generationRedis-backed business-ownership fencing across processes; not a per-dialog mutexlease guards
Global scheduler leaseTwo-second coordinator lease; owner-expiry/orphan adoption/repair work, not healthy per-dialog executionscheduler, lifecycle flows
Worker registry and per-worker headsDerivative discovery and timer ownership; CAS/timer generations/physical permits remain final authoritytimer workers
flowchart TD
  A[Resolve group and register exact operation waiter] --> B[Command admission and CAS]
  B -->|ACCEPTED| C[Dispatch committed effects]
  B -->|Other result or error| K[Unregister and return]
  C --> D[Wait for signal or bounded delay]
  D --> E{Matching local committed outcome?}
  E -->|Yes| F[Materialize public SIP messages and return]
  E -->|No| G[ReadState and decode group]
  G --> H{Matching terminal result?}
  H -->|Yes| F
  H -->|No| I[Keep bounded latest result; release group]
  I --> D
  D -->|Deadline| J[Return bounded outcome; Respond may become UNKNOWN]

Waiters retain at most one bounded wire-only outcome per active local command identity, published only after definite CAS and fenced by group incarnation/operation/revision. Registration precedes producer admission so indexed completion cannot outrun it. Identified waiters wake only for a matching result, not generic group changes or intermediate physical completion. The fresh-commit path initially waits up to 100 ms for an exact result; replay reads immediately. Fallback waits back off through 100/200/250 ms, paced after each completed read. It checks local observations before loading Redis. Sibling-worker completion, lost signals and large outcomes retain the store-read fallback, with remote observations delayed by at most the current interval. Unregistering removes the waiter and its result. See operation polling.

MemoryStore retains the encoded protocol Payload and adapter metadata in process, not a second decoded native FSM. Reads reconstruct owned values; CAS validates, encodes and installs the next value under the adapter gate. Redis instead holds the encoded record and side indexes externally. Neither adapter lets a native reduction retain its group across an RPC or socket wait.

Longer-lived data is stored separately: protocol transactions/dialogs/subscription metadata and their fixed proof lifetimes in the group; bounded operation markers and result cutoffs in receipt metadata; unresolved physical evidence in effects; owner references and derivative scheduling indexes beside them. Current cached results keep wire-only SIP messages without another current snapshot. Actual terminated transitions discard stopped native timer maps. Positively settled, matched successful reliable subscription NOTIFY clients can retire before the generic tail; server SUBSCRIBE proofs, INVITE/ACK duties and UNKNOWN retain their specified obligations. This distinction changes how much history subsequent operations decode; it does not remove the read/reduce/CAS boundary.

The current repeated work is therefore visible at several independent layers: full Payload reads, native group ownership construction, selector/capacity traversal, effect metadata validation, group encoding, commit projections/receipt accounting, callback input encoding and fallback waiter reads. This inventory establishes where work occurs. Whether any pass or retained field can change requires a separate design decision against the operation-specific invariants.

sipbridge holds SIP connections and runs the protocol; your application decides what happens on each call.