Separate physical delivery from logical ACK validity
Date: 2026-10-23. Worktree base: bb1e51680ba5e06dde5d897e8e273f17460cb064,
branch showtime/sdk-production-fixes-20261023. The user authorized these SDK
changes in an isolated worktree. The original SDK checkout and its unrelated
changes were not edited. This report records the SDK change; it does not
qualify the integrating application's financial or production behavior.
Problem and resulting behavior
The IC adapter used to turn received-but-undecodable ACKs, every call failure
and guard abandonment into the same Option<Acknowledgement>::None. An
application budgeting possible outstanding delivery could not tell a known
finished response from an ambiguous remote attempt. The SDK itself still
released its callback permit, but an external conservative delivery bank could
keep the reservation permanently, eventually closing a lane after ordinary
terminal errors.
Both maintained RRT and RRts adapters now give Host::finish an explicit
PhysicalDisposition independently of its optional ACK. A successful response
that exceeds a local byte bound or fails ACK Wire decoding is a received
physical reply, with no usable logical ACK. An insufficient-cycle preflight or
nonzero call_perform result did not dispatch a call. A genuine known rejection
ends that exchange but does not mean that its callee made no earlier effect.
The transport still keeps exact unacknowledged frames and retries them through
the existing paced finish path.
SYS_UNKNOWN, unclassified reject codes and abandonment remain conservative
for possible delayed request/callee work. retires_delivery_debt() uses an
explicit positive whitelist; adding an unknown enum case cannot silently
authorize retirement. The existing byte format, saved identity, retry content,
timeout choice and Reactor frame-removal rules are unchanged.
| Event | Physical disposition | Usable logical ACK |
|---|---|---|
| Successful reply and valid ACK | ReplyReceived |
Preserved decoded value |
| Successful reply with invalid/truncated/wrong-method ACK | ReplyReceived |
None |
| Successful reply rejected by local response-size cap | ReplyReceived |
None |
Cycle preflight failure or call_perform failure |
NotDispatched |
None |
| Genuine reject codes 1 through 5 | DefiniteReject |
None |
SYS_UNKNOWN, unclassified code, cleanup or dropped guard |
UnknownOrAbandoned |
None |
Cleanup provenance and API boundary
The CDK cleanup path previously synthesized CallRejected(4, "cleanup") for
executors that observe a result after a reply/reject callback trapped. That
placeholder could be mistaken for a genuine code-4 rejection. CallRejected
now carries a private transient cleanup flag and exposes is_cleanup().
Normal callbacks and the public test constructor mark a genuine/simulated
rejection; cleanup marks its placeholder explicitly. Clone and conversion into
the broader call error preserve the origin. Neither the reject code nor the
message is used to infer cleanup.
This is an unreleased SDK, so there is no legacy host shim. The existing
Host::finish(scope, exchange, ack, disposition, now) signature changes
explicitly. All six manual RRT/RRts host implementations are updated: Chat,
basic Rechain, both Fourcans roots, the callback probe and pending-local probe.
Their ordinary transport finish behavior is unchanged. The callback probe also
asserts that a received ACK reports ReplyReceived and trap recovery reports
UnknownOrAbandoned.
HRRT has a separate heap-experiment adapter and no consumer of this new
RRT/RRts host contract; it is outside this patch. Takt's unrelated driver Host
trait, generated workflow source and management protocol bytes are unchanged.
Applications can use PhysicalDisposition::from_call_failure for the nested
call failure inside a management error; management decode failures must still
be recognized by that application as received replies.
Delivery-tail premise and source review
The IC delivers at most one response to a call. When it delivers
SYS_UNKNOWN, a later actual callee response is dropped instead of generating
a second caller callback. This does not by itself bound an unknown request's
remaining network or callee work. The adapter deliberately preserves that
stronger possible-delivery uncertainty instead of converting a callback-count
fact into a complete delivery-tail theorem. See the primary
execution properties
and system API.
CallErrorExt::is_clean_reject is not the classifier: it describes whether the
callee could have changed state, rather than whether a known response has
finished the exchange. The explicit cleanup-origin flag also avoids trusting
an error message. Independent IC source review is retained in
the separate reviewer note.
No guard is moved across a Store frame or awaited boundary. The guard still opens one fresh write frame at physical completion, clears its exchange once after successful host finish, and reports conservative abandonment on Drop. Pre-poll cancellation and callback-trap rollback require actual IC evidence; this patch does not claim to have proved them from the native enum tests.
Validation scope
The pinned compiler/environment and an isolated jobs-2 Cargo target were used. Locked offline metadata covers the SDK, RRT and RRts workspaces without changing their lockfiles. Native tests exercise cleanup origin, error conversion, recognized and unknown reject codes, pre-dispatch failures, oversized replies, valid ACK variants, malformed ACKs and positive debt-retirement classification. The native validation receipt retains the exact source, compiler, commands, executable hashes and logs: two core origin tests, 43 RRT Reactor tests and 46 RRts Reactor tests pass. The new classifier/reply coverage is present in both implementations. Metadata covers all three locked workspace graphs; no lockfile changed. The current documentation link check also passes. The shared research catalog needs regeneration after concurrent experiment notes finish; it is not rewritten by this lane.
These tests do not execute real IC reply/reject callbacks, prove a network tail bound, or qualify application counters, accounting, upgrade drain or outage recovery. The modified callback probe still needs its canonical Wasm build and actual callback/cleanup lifecycle run. An application using the new metadata needs tests showing repeated terminal failures do not exhaust its physical bank, genuine uncertainty stays charged, and eventual retry settles the unchanged logical effect once.
Performance attribution
The WireDecode interval retains the original owned-response decode/drop boundary. The new metadata is transient and adds no persisted message field or alternate decoder. No instruction, page, latency or Heavy16 improvement is claimed. Existing entry traces and workload ledgers retain their old artifact and source attribution; the new callback classification needs matched complete measurements before accepting a performance conclusion.
Current behavior belongs in the RRT guide. The maintained call trace explicitly excludes this new callback path from its earlier measurements.