Repository navigation
rutis 0.23.0
0.23.0 was released on 2026-11-20. These notes cover only what is merged (origin/main 8e9975de, 2026-11-19). The release gate ran on tag v0.23.0 (18a912a8) and every job passed; crates.io, npm, PyPI, Go and the GitHub Release are out, Maven Central skipped because the environment maven has no secrets, and post-release verification passed after the assets missing from the GitHub Release were uploaded and its job rerun. The two-machine network smoke and the pre-release agent trial (#663) have not run; "Release record" at the end lists them.
0.23 is the beta before 1.0: the session protocol goes from 4 to 5, a cancel is resolved exactly once by the callee (the new ack frame), an asynchronous call says on the wire whether its result is waited for (awaited), and a protocol-4 or older host, runtime, node or SDK is refused at the handshake, so one deployment upgrades together. The plugin API is still 3, rutis.json's format is still 1, and no public Rust API is removed or renamed. Events and the loader fix the withdrawal and delivery order around a row ending or unloading, the event hot path and instance_rows are faster, and the evidence gains Kani's first verdicts, Swift 6 strict concurrency, the Kotlin RutisApp Fray cases and the call-lifecycle cancel-acknowledgement model. Read migrating to 0.23 before upgrading.
What is in this release
| Work | Issue | What this release has |
|---|---|---|
| Session protocol 5: cancel acknowledgement | #1099 | The ack frame; a cancel is resolved exactly once by the callee: a call cancelled while queued, while running, and an await cancelled while waiting are all acknowledged, and after the ack no return/throw follows for that call; a reply written before the cancel was read is the resolution and no ack follows; an ack whose entry a crossed reply already cleared is ignored; a reply after the ack ends the session with a protocol error (response for unknown call). The caller clears the cancelled entry on the ack, so a long session that keeps cancelling queued calls no longer keeps every entry until it ends. Specification §7, §8, SESS-57, SESS-61, SESS-79; the specs/call-lifecycle configurations call-gap-ack, call-mut-ack-then-reply, relay-healthy and relay-mut-ack-then-reply; all seven implementations (Rust, Node, Bun, Python, Go, Swift, Kotlin) and the shared malformed matrix's wrong-type ack case. |
The asynchronous awaited signal |
#1098 | A call frame (invoke, call, get, await) gains an optional boolean awaited: false means fired and forgotten (the caller will not wait for this result before the call that made it finishes); absent or true means it will. It is meaningful only for asynchronous calls and is ignored when sync: true. The host counts a call in the wait graph only when it is sync or an asynchronous call whose result will be waited for; a call that says awaited: false is an entry, no longer a hop because it appears on a marked chain, and a forward keeps the original signal. The absent field keeps the conservative reading, so an old caller can still be refused by a false cycle; saying false is what removes the edge. Specification SESS-83, SESS-7, SESS-66, §14 G7; the specs/cross-runtime-sync configurations async-policy-b and async-forgotten-policy-b; all seven implementations know the field, and a runtime writes false where it knows nobody waits. |
| Large frames across messages | #1361, #1363 | Protocol 5 gains a chunk frame: the whole frame's JSON bytes are split into transfer, seq, last and base64 data, at most 8 MiB each; the receiver reassembles, parses and dispatches only after the last chunk, and drops an incomplete transfer on disconnect. The hello capability chunked is required on both ends; Rust, Node, Bun, Python, Go, Swift and Kotlin all implement and declare it. max_transfer (RUTIS_MAX_TRANSFER) defaults to 256 MiB and is configurable; over it the call fails with the configured limit. Real cross-language 17 MiB arguments and returns, single execution and mid-transfer disconnect are covered. |
| Protocol specification and tracker | #635, #634 | The current session specification moves to protocol 5: 84 SESS-* rules (this revision adds the ack and awaited rules); the shared malformed matrix has 27 cases (14 single-frame and 13 multi-frame/sequence, with the wrong-type ack and awaited cases); the tracker stays at 1825 rows, and the 1368 current protocol rules re-checked against the 0.22 sources keep their statuses (179 verified, 364 partly verified, 479 unverified, 42 explicitly not guaranteed, 103 withdrawn, 201 not counted separately), with 67 rows raised to verified on evidence and a mutation. |
| Service-name boundary for runtime rows | #1040 | SpawnPlugin::undeclared, Session::undeclared and Mount::undeclared take an UndeclaredPolicy: the default Publish (as in Cordis), Refuse, and Allow(names). A refused name is not published; its row fails with a ProvideError that names the name and the row, while the runtime and its other rows keep running; an announcement inside an instance belongs to that instance only. This is a new host API and does not change the default; loader/announced-services and the open-host guide are updated. |
| Event order around a row ending or unloading | #1088, #1133, #1318, #1327, #1295 | rows.ended / rows.unload withdraw the row's entries before letting its queued emits go, and the session's emit queue waits for the withdrawal (#1133); the kernel withdraws the entries synchronously on the calling thread, so no dispatch sent after the reply sees an ended row (#1318); an emit a row's cleanup stack hands over during unload is kept until delivery, and one still queued when the session ends fails with the session-ended error (#1327); an unload's reply no longer overtakes the dispatch its cleanup emits (#1088); a session that ends wakes those waiting for its ordered queue, so an unload does not hang (#1088); a memory channel writes both directions' close reason before waking, so a replaced connection reads 4002 on Windows too (#1295). |
| Event hot path and loader | #1125, #1126, #1076, #1077 | One flight per dispatch and one state word for a listener's flags (#1125); a listener call holds the owner directly, with no Weak::upgrade per call (#1126); instance_rows indexes by scope and instance instead of scanning every instance (#1076); create_instance hands back the FiberView of each row it spawned, so a host can wait on running() and roll back on failure (#1077). Numbers are in "Verification and models". |
| Evidence close-out | #1270, #1271, #1272, #1273, #1274 | #1270 decides the means of the rules that had only named cases: the first 7 loader/host integration rules move to tests, and the second 15 kernel/event rules land (a new kernel model 28: Unloading before cleanup, cleanup sees the cancel, LIFO, Disposed last; a two-consumer eviction test); #1271's 11 Kani harnesses all reported VERIFICATION:- SUCCESSFUL on 2026-11-18, and the boot blob's const ABI moves into the new crate rutis-abi; #1272 adds the Swift columns for the lease suites and host_gone, run by CI's runtimes-swift; #1273 switches to the Swift 6 language mode (strict concurrency is an error) with TSan over five suites; #1274 adds 7 Fray cases and a connection seam for the Kotlin RutisApp's start and stop. |
| Nightly and CI | #1080, #577 | A batch of nightly failures is fixed: Python's reload read a stale .pyc when a file was edited to the same length in the same second; dsh panicked on a YAML number with a base prefix followed by a sign, and an expression nested more than 64 levels is now an error instead of a stack overflow; Swift's cancel waits for the ack rather than a reply, and Swift fixtures mark dispatch/apply @Sendable so they do not wait for a blocked main thread; Node's connection-failure classification test uses a local server; session conformance cases bound a far end that does not connect or answer; each grant_rollback proptest case uses a new link. stress.yml shards shuttle models by model name, raises the shard limit from 90 to 150 minutes, and runs on a self-hosted runner the way ci.yml does; the PR time target is now 15–20 minutes. |
| Type generation | #1289 | A data object is generated as a type alias rather than an interface: an interface is open to declaration merging, so TypeScript gives it no implicit index signature, and it cannot be assigned to a recursive data type with a string index signature. Services and RustError stay interfaces. |
| Documentation | #1322, #1321 | Cordis's compatibility boundary is collected on one page (both languages); the guarantee register states the scope of cleanup and reload accurately (core/D6, core/D7, sdk/unload-order, and the difference between loader and dev reloads). |
Behaviour changes
| Where | Before | Now |
|---|---|---|
| A call cancelled while queued (protocol 4) | Dropped, no reply; the caller's cancelled-table entry stayed until the session ended | Dropped, the method never runs, argument references are released, the callee sends ack, and the caller clears the entry (#1099) |
| A call cancelled while running | Ran to the end; the callee replied as usual or dropped it, implementation by implementation, and the caller discarded a late reply | Runs to the end; the result is dropped, the callee sends ack, and no reply follows |
An await cancelled while waiting |
Dropped without a reply | Dropped and acknowledged |
| The reply was written before the cancel was read | That reply was the late reply, discarded by the caller | That reply is the resolution; no ack follows, and the caller discards the reply |
A reply arrives after the ack |
(No ack existed) |
response for unknown call: the session ends with a transport error, and in-flight calls fail with peer-gone |
| The far end speaks protocol 4 | It worked | incompatible session: the far end speaks protocol 4, this side 5: upgrade the far end; the link stops and is not retried |
| The WebSocket subprotocol | A dialer could say rutis.4 |
Only rutis.5; rutis.4 is refused as an older dialer |
| A fired-and-forgotten asynchronous call | Counted as waited for, so SyncWaitCycle was occasionally reported by mistake |
A call whose frame says awaited: false is an entry and no longer a hop; an ordinary asynchronous call the runtime cannot classify still omits the field and is read as waited for |
| A call argument or return over 16 MiB | The sender refused it and the call failed | With chunked on both ends it is split and reassembled transparently; all seven implementations support it, and an earlier end that does not declare it keeps the old limit (#1361, #1363) |
| A dispatch after a row ends | The session's withdrawal was asynchronous, so a dispatch that arrived after the reply could still select the ended row | The kernel withdraws the entries synchronously on the calling thread, so no dispatch after the reply sees the row (#1318) |
| An emit a cleanup hands over during unload | Dropped with the row's queued emits, while rows.unload said Ok |
The cleanup's emit is kept until delivery and other rows hear it; one still queued when the session ends fails with the session-ended error (#1327) |
| A runtime row announces a service it did not declare | Always published by name (Cordis compatibility) | The default is still Publish; when the host sets Refuse or Allow(names), a refused name is not published and only that row fails, naming the name (#1040) |
| A memory channel that is replaced | Could read Ok(None) instead of 4002 |
Both directions' close reason is written before waking; Windows reads 4002 too (#1295) |
Other fixes:
- Python reload: editing a file to the same length in the same second made the reload read a stale
.pyc; a timestamp-changed module's.pycis now removed and compiled again. The.pycpath comes fromimportlib.util.cache_from_source, which also works on Python 3.15, where__cached__is gone (#1080). - dsh: a YAML number with a base prefix followed by a sign no longer panics; an expression nested more than 64 levels reports an error instead of overflowing the stack (#1080).
- Swift fixtures and SDK: a cancel waits for the
ack, notreturn; the session and app fixtures markdispatch/apply@Sendable;receiveunwraps oneResult; Security's certificates and identity cross tasks in immutable boxes (#1099, #1273). - Session conformance cases: a far end that does not connect or answer is bounded, and stale offers and replacement timing no longer make a case fail by chance; each
grant_rollbackproptest case uses a new link (#1080). - Cross-version tests: under protocol 5, 0.19–0.22 peers are refused by release generation; before 0.19 the old texts and the
rutis-bridge/peerrow are still asserted (#1080).
Verification and models
- Current specification:
docs/protocol-session.en.mdhas 84SESS-*rules; this revision addsack(§7),awaited(§5.3,SESS-83) and protocol 5's handshake rule (SESS-79). The shared malformed-frame matrix has 27 cases (14 single-frame and 13 multi-frame/sequence), with an entry point in Rust, Node, Bun, Python, Go, Swift and Kotlin; Swift's cases compile on macOS only and run in CI'sruntimes-swiftjob. - Rule tracker: 1825 rows (219 register, 54 handwritten, 1552 protocol). The 1368 current protocol rules re-checked against the 0.22 sources: 179 verified, 364 partly verified, 479 unverified, 42 explicitly not guaranteed, 103 withdrawn, 201 not counted separately; 67 rows were raised to verified with evidence and a mutation.
node tools/formal-trace.mjs --checkreports 0 problems. The 219 register rows and the 10 handwrittenECArows have not been re-extracted row by row. - TLA+: 7 directories, 17 modules, 224 configurations (0.22's 220 plus 4 for protocol 5);
call-lifecycle'scall-gap-ack,call-mut-ack-then-reply,relay-healthyandrelay-mut-ack-then-replycover cancel acknowledgement and "no reply after the ack", andcross-runtime-sync'sasync-policy-bandasync-forgotten-policy-bcoverawaited. CI'sspecsjob runs every configuration on PRs that changespecs/**and in the nightly full run. - Shuttle: 65 models across four crates (28 in the kernel, 31 in
rutis-bridge, 3 inrutis-host, 3 inrutis-loader);stress.ymlruns the kernel's andrutis-bridge's 59 each at 1,000,000 iterations every night, and a failure prints a schedule that can be replayed. The 6 inrutis-hostandrutis-loaderstill run in no workflow; dylib has no model. Kernel model 28 pins "enter Unloading first, cleanup sees the cancel, LIFO, Disposed last", and model 6 now catches the "check then count" order error (#1270, #1125). - Kani and Miri: the 11 harnesses in
fuzz/kani/all reportedVERIFICATION:- SUCCESSFULon 2026-11-18, covering the date and time predicates and round trips and the boot blob's const ABI (#1271); the constructors through theirformat!error paths,parse_boot, and the&strwrappers ofboot_meta/is_sha256still have no verdict, andrutis-sdkis still notcargo kani-buildable (fuzz/KANI-MIRI.md). Miri runs the session frames, value path and error graph on fixed inputs with no UB. - Swift, Kotlin, Go: the four SDK targets compile in the Swift 6 language mode, where a strict-concurrency diagnostic is an error; CI's
runtimes-swiftruns TSan over the Peer, Writer, EventsConformance, App and Concurrency suites; the Swift columns for the lease suites andhost_goneare added (#1273, #1272). Kotlin'sRutisApphas 7 Fray start/stop cases (#1274). Go still has no controlled scheduling. - Performance (release build, 32-core Linux x86-64, base and branch alternating over several rounds, medians; these are reference values, not commitments):
close_cpuwith 1000 instances creates in 16.47 s → 5.69 s and closes in 10.85 s → 1.44 s, andbail_syncwith 64 listeners takes 116.8 ns → 29.8 ns per dispatch (#1125); measuring #1126 on the same binary pair gives create 5.24 s → 3.95 s and close 1.42 s → 1.21 s, whilebail_syncmoves 1787 ns → 1861 ns (the empty-listener case moves +11% too, which is this machine's noise floor, so that number is not a claim);instance_rowsover 1000 loaded instances takes 12.0 µs → 0.30 µs flat and 37.4 µs → 0.50 µs nested per call (#1076). - Release-check numbers:
node tools/check-guarantees.mjsreports 219 rows and 1287 markers with 0 problems; the 40 core commitments are 33 verified and 7 partly verified with 0 unverified, the 158 contract behaviours are 147 verified and 11 partly verified, and 10 are explicitly not guaranteed. - Persisted sample:
tests/fixtures/persisted/0.23.0/is copied from 0.22.0; this release adds no field or form torutis.jsonor dsh's user layer, and the expectations regenerated with this release's code are byte-identical to 0.22.0's;cargo test -p rutis-host --test persistedandcargo test -p rutis-dsh --test persistedpass.
Explicitly not guaranteed
- 1.0's long-term contract is not in this release: no Rust API stabilisation process, no redesign beyond plugin API 3, and no format beyond
rutis.jsonformat1. 0.23 is a beta, not 1.0. - Large frames are enabled between all seven implementations: Rust, Node, Bun, Python, Go, Swift and Kotlin declare
chunked; an earlier end that does not declare it keeps the original 16 MiB single-message limit with any end;max_transferdefaults to 256 MiB and exceeding it fails explicitly (#1361, #1363). - Protocol 5 is verified only within this repository's seven implementations: a protocol-4 or older host, runtime, node or SDK is refused at the handshake (
SESS-79), and no protocol-4/protocol-5 session exists; a peer that has seen an earlier protocol-5 prerelease build fails a call carryingawaitedunderSESS-66and must be replaced with a 0.23 build (SESS-81). - These wait-graph cases are still not guaranteed (
SESS-40): a synchronous call that does not marksyncon the frame is outside the check and may deadlock; a call that saysawaited: falsebut actually waits for its result loses the edge and may deadlock; cross-host cycles, the cost of reentrancy, a mixed-version wait graph, and exhausting the host's worker threads are not guaranteed. - Unknown fields are not an extension mechanism (
SESS-69): an old implementation fails that call underSESS-66; a new frame or a changed meaning needs a protocol version bump, and a new capability is used only when declared. - Formal coverage is not complete yet: 479 current protocol rules in the tracker are unverified and 364 are only partly verified; the 219 register rows and the 10 handwritten
ECArows have not been re-extracted; the remaining gaps are tracked by #776 and #1270–#1274. Kani has no verdict for the constructors' error paths,parse_boot, or the&strwrappers ofboot_meta/is_sha256; dylib has no shuttle model; the 6 models inrutis-hostandrutis-loaderrun in no workflow; Go has no controlled scheduling;sync_cyclesstill lacks a Kotlin column andhost_gonestill lacks one. - The service-announcement trust boundary:
UndeclaredPolicydefaults toPublish, so a host that sets no policy still publishes names a runtime did not declare, for Cordis compatibility. It is not a permission, authentication or security boundary; it is a host's policy for which names a runtime's rows may announce. - Events' explicit non-guarantees: concurrent emits have no order, concurrent registration and dispatch have no order, the fate of a call in flight when an entry is withdrawn, and listener completion order (part of the 10 explicitly-not-guaranteed rows in the guarantee register).
- Network smoke and agent trial: the two-machine network smoke and the pre-release agent trial (#663) have not run; the loopback smoke is in the release guide, section "0.23.0".
What developers see
| Role | What they see |
|---|---|
| Plugin authors | The plugin API is still 3 and plugin source needs no change. The host, runtimes, nodes and SDKs of one deployment upgrade to 0.23 together: a 0.22 end is refused at the handshake, and the message names the end to upgrade. awaited is a session-layer field, not part of the plugin API; cancelling a call you started still gives you your own cancellation error, never the far end's value. A Swift plugin whose apply is formed in top-level code (which is @MainActor) marks it @Sendable or defines the plugin in a file of its own under the Swift 6 mode, or the runtime calls it on the main thread. |
| Host owners and deployers | Session protocol 5, hello.version and the WebSocket subprotocol rutis.5; rutis-host's commands, status lines, exit codes and close codes do not change. rutis.json's format is still 1, and no configuration changes. To confine the names a runtime's rows announce, set UndeclaredPolicy::Refuse or Allow(names); the default is still Cordis-compatible. A replaced connection reads 4002 on Windows too. Every package is at 0.23.0, and rutis-abi is new to the train. |
| Rust host authors | The kernel's public API snapshot crates/rutis/public-api.txt is unchanged; no public API is removed or renamed. The additions are rutis_bridge::runtime::UndeclaredPolicy and Instance.rows (Vec<(String, FiberView)>, in report order for a successful creation); rutis-sdk re-exports rutis-abi, with no change to its public API or build behaviour. Instance's public field is new, and nothing else in the repository constructs it. |
| Runtime authors and contributors | Implement protocol 5: the ack frame, a cancel resolved exactly once, no reply after the ack, and ignoring an ack whose entry is gone; accept and write awaited, and use the rutis.5 WebSocket subprotocol; the 27-case shared malformed matrix and the seven implementations' conformance suites are the entry points. The tracker, TLA+ models, shuttle, Kani, trace and conformance suites are contributor evidence, not runtime output. |
Compatibility
- The session protocol is 5 (
ENDPOINT_PROTOCOLincrates/rutis-bridge/src/session/mod.rs); protocol 5'schunkedcapability is declared by all seven implementations (Rust, Node, Bun, Python, Go, Swift and Kotlin); an earlier end that does not declare it never receiveschunkframes and keeps the 16 MiB limit.
a protocol-4 or older end is refused at the handshake, so no mixed session exists. The handshake adds no "required capability"; an absentawaitedis read with the old semantics (waited for). - The plugin API is still 3 and
rutis.json'sformatis still 1; the configuration gains no field, the persisted sample is copied from 0.22.0, and its expectations do not change. - No public Rust API is removed or renamed, and the kernel's public API snapshot is unchanged.
rutis-bridgegainsUndeclaredPolicyandrutis-loader'sInstancegains therowsfield: both are additions. - A dylib plugin is rebuilt with 0.23.0's SDK, as with every release.
- npm, PyPI, Go, Swift and Kotlin take the train's 0.23.0; the Kotlin SDK keeps the train's version, and Maven Central is published by the rules of
release.yml(the four secrets of the environmentmaven; themavenjob skips when one is missing).
Upgrading
Most plugins and hosts need no code change. Two things to do: upgrade the host and every runtime, node and SDK to 0.23 together (a protocol-4 peer is refused at the handshake); and change a tool that pins the WebSocket subprotocol to rutis.5. The behaviour changes to meet: a cancelled call is now acknowledged by the callee and gets no reply; an asynchronous call that says awaited: false is no longer treated as a wait edge; a dispatch after a row ends does not see the row; an emit a cleanup hands over during unload is delivered. A Swift plugin whose apply is defined in top-level code marks it @Sendable or moves it to a file of its own under the Swift 6 mode. See migrating to 0.23 for each change.
Release record
- Release gate and publishing: tag
v0.23.0(18a912a8) started release.yml 44674248010 on 2026-11-20. All 58 gate jobs passed (every CI job, the five platforms' binaries and wheels, the four npm packages, the five platforms' install scenarios, the Windows dylib tests);crates(11,rutis-abifor the first time),npm,pypi,pypi-host,go(go/rutis/v0.23.0) andgithuball succeeded. Maven Central skipped: the environmentmavenhas none of its four secrets, and the job's summary names them. - Post-release verification: the first attempt failed in
installed / install (linux-x64…)at "download the released binary": thegithubjob had uploaded only one asset,aarch64-apple-darwin. It askedassets?name=<name>, an endpoint that ignores the parameter and answers every asset, so after the first upload the rest were taken as already there. The nine missing assets were uploaded from this run'sbinary-*artifacts (checksums verified) and the job was rerun; attempt 2 passed:the registries themselves,download the released binary,the install scenariosand the guides' examples all succeeded. The check now reads the asset list once and matches by name (#1371). - Network smoke and agent trial: the two-machine network smoke, its outage and recovery half, and the pre-release agent trial (#663) have not run.
- Version numbers: every package, the version numbers in the guides and the Swift package version in
READMEare at 0.23.0 (node scripts/train.mjsprints0.23.0). The workspace declaration inCargo.tomlis still0.6.0, as it was for the 0.22.0 release: decide and record the package/version process as the roadmap §3 says before changing it. - Statistics: the numbers here are from the current
node tools/formal-trace.mjsandtools/check-guarantees.mjs(1825 rows; protocol re-check 179/364/479/42/103/201; 219 rows and 1287 markers), and the TLA+ configuration and shuttle model counts are 224 and 65 as counted in the current tree;docs/quality-status.mdand.en.mdwere synced to the output at that time (1279 markers, 224 configurations, 65 models); the chunked cases bring the markers to 1287.