November 5, 2026
6 pull requests merged across 2 repos
Offline-Protocol/offline-protocol-sdk
Audit of the docs against every PR since v0.31.0. Each behaviour PR carried its own docs, except for four gaps, all around service subscriptions:
- ADR 0035 status. Phases 1 and 2 shipped in #658 to #664, but the ADR and the index still said Proposed. Now Accepted, with a note that phase 3 is ADR 0036, still proposed. ADR 0037 stays Proposed (parked), which matches the revert in #696.
docs/configuration.mdhad no section forProtocolConfig::service_subscriptions. Added one with the six fields, their defaults and bounds fromconfig.rs, and a clear Rust-only note: no binding's config record carries it yet. Added validation rules 29 and 30 for the two checksvalidate()runs.docs/api-reference.md: theProtocolConfigstruct listing was missing the field.docs/service-discovery.md: the "In the bindings" section left out C#, which reaches the subscription calls through the generatedMeshServicesClient(engine.Services).
Checked and left as is: the parked membership exchange (__MEMBER__) is described the same way in the control-messages spec, ADR 0037 and UPGRADING. The README install pins stay at 0.31.0 until 0.32.0 is published.
crypto_recovery_docs_state_the_unauthenticated_trigger, the guard that reads configuration.md and api-reference.md, passes.
The 0.32.0 cut, version and documentation together. Tagging v0.32.0 on this merge publishes the release.
Version files
Cargo.toml: the workspace version and the eleven internal dependency versions.- The local internal dependency versions in
offline-protocol-sealed,offline-protocol-leafandoffline-protocol-web. Cargo.lock,tools/embedded-footprint/Cargo.lockandtools/mls-interop/Cargo.lock. Version lines only.bindings/python/pyproject.toml,bindings/react-native/package.jsonwith its lockfile, andbindings/flutter/offline_protocol/pubspec.yaml.THIRD-PARTY-NOTICES.md×3, regenerated. Version lines only.
The remaining 0.31.0 strings are install pins in the READMEs, the Java README and the Docker README, plus historical mentions. The pins move after publish.
Documentation
CHANGELOG.md:[Unreleased]becomes[0.32.0] — 2026-11-05with a release summary (service subscriptions, the C# preview, the Bluetooth LE fixes, and the Rust and TypeScript additions that break an exhaustive match).- 0.31.0 is archived into
docs/changelog/0.31.md, with a row in both archive tables. The move is lossless: the section re-extracted fromHEADand run through the same link rewrite is identical to what landed, apart from one trailing blank line. SECURITY.md: the supported line is0.32.x.docs/UPGRADING.md: the current line isv0.32.x, and the summary of what each release breaks gains a sentence forv0.32.0that points at §30.docs/README.md: the ADR count is thirty-seven (ADR 0037 landed), and the bindings table gains a C# row.
Every relative link and anchor in the touched documents resolves.
Verification
cargo fmt --all -- --checkandcargo clippy --workspace -- -D warningsare clean.cargo test --workspace --lib: 3638 passed, 1 failed. The failure isno_shipped_file_names_a_relay, which walks the checkout and found relay URLs only inside gitignored agent worktrees under.claude/worktreeson the machine that ran it. A clean checkout has none.cargo deny check advisoriesis ok.
Before the tag
- A
workflow_dispatchdry run ofrelease.ymlfrom this branch withversion: 0.32.0anddry_run: true. - No new crate this release, so no new-crate budget is spent on crates.io.
The 0.32.0 readiness check left three blockers after #698. This PR clears all three. It changes docs and advisory config only.
1. Waive RUSTSEC-2026-0441 (pin-utils unmaintained)
cargo deny check advisories fails on main today. CI's Dependency Audit passed on 2026-11-04 only because the advisory reached the database afterwards, so the next CI run that touches dependencies would fail.
pin-utils compiles for wasm32 only. It sits directly under fluvio-wasm-timer, on the OpenMLS js path that the existing instant waiver (RUSTSEC-2024-0384) already covers:
pin-utils v0.1.1
└── fluvio-wasm-timer v0.2.5
└── openmls v0.7.4
cargo tree -i pin-utils prints nothing for the host or aarch64-apple-ios. The waiver goes in both deny.toml and .cargo/audit.toml, because the audit list must stay a superset of the deny list.
2. Upgrade guide section 30
The new section follows the shape of section 29.
- Breaks Rust code that names every case or field.
Eventgains three subscription variants and is not#[non_exhaustive].ProtocolConfiggainsservice_subscriptionsand has noDefault. A hand-writtenMeshServicesconformer needs the twelve new methods. - TypeScript. The
ProtocolEventunion gains three event interfaces. - Behaviour with no compile error. The section covers subscription requests under the default
restrictedpolicy, which are rejected after 60 seconds unanswered. It also covers the__MEMBER__send refusal, frames for a live mesh neighbour staying on its link, the second Android app's LAN port, background and screen-off Bluetooth LE discovery, the four React Native calls that work again, and three smaller fixes.
Each claim was checked against main:
- Group and 1:1 sends both return
InvalidArgumentfor a reserved prefix. __SVC_was already reserved at v0.31.0, so__MEMBER__is the only newly refused prefix.- No binding passes
service_subscriptionsto the engine, so every binding runs the default. - The approval timeout defaults to 60,000 ms.
The at-a-glance table and the "current line" reference are left for the version bump PR, as the recipe in CONTRIBUTING says.
3. README install table
- C#. A new row points to
bindings/csharp, which builds over the C API and the native library in the release's desktop archives. Nothing publishes it to NuGet, so the row says so. - Ruby. The row now points at the
offline_protocolgem, which RubyGems has carried since 0.31.0. The Ruby README's "once a release publishes it" line is updated to match.
Verification
cargo deny check: advisories, bans, licenses and sources all ok.cargo auditreports only the existing allowed warnings.scripts/check-license-consistency.shpasses.- Every new relative link and anchor resolves.
- The diff has no em dashes.
The readiness check for 0.32.0 found two merged fixes with no entry under Unreleased: #686 and #683. Only one of their four items fixed behaviour that shipped, so this adds one entry and one clause.
What shipped in 0.31.0, and gets an entry
#686, item 2. In v0.31.0, the Wi-Fi Direct branch of ProtocolEngineHost.enableTransport stopped the manager only when it was RUNNING. The Internet branch also stopped it when it was STARTING. An enable that found a start in progress started it again over the first one. The new entry under Fixed describes this.
What never shipped, and gets no entry
- #683, bind before STARTING. The
StartFailedthrow after STARTING was added by #681. v0.31.0 has noStartFailedinWifiDirectManager.ktand binds asynchronously instartServerSocket. - #683, accept timeout at bind time. The spurious "Failed to start server socket" came from #681 handing a bound socket to the accept task. In v0.31.0 the bind and the timeout are in the same task.
- #686, item 1. The stranded listener came from #683 moving the bind ahead of STARTING.
Instead, #681's entry gains one clause: a start that fails at any point leaves nothing running. That is true on main, because the bind comes before STARTING and any throw after it runs stopUnsafe() and closes the listener.
Verification
- Read
git show v0.31.0:of both files. TheSTARTINGgap is atProtocolEngineHost.ktin thewifidirectbranch. - Counted
StartFailedinWifiDirectManager.kt: 0 at v0.31.0, 1 at #681, 2 at #683. - The JavaScript call is
enableTransport("wifiDirect")inbindings/react-native/src/index.ts. - The diff has no em dashes. It changes docs only.
Fixes found by an audit of the SDK's implicit state machines: lifecycles encoded in flags, Option fields and map membership rather than one enum. Each fix closes a combination of fields that the code could reach and should not.
Nine candidates went in. Six are fixed here, and three turned out to be intended behaviour once read in full; those are listed at the end so nobody re-reports them.
Fixed
| Layer | What was wrong | Fix |
|---|---|---|
| iOS | start() reported Bluetooth available at once and again after 1 s, whatever the radio's state. With Bluetooth off, unauthorized or unsupported, the manager reports false, and the backup then reported true over it, so the engine routed sends to a dead radio until its next state change. | Both reports are skipped while BleManager.state == .unavailable. Coming to the foreground also restated the Wi-Fi Direct layer up for a transport that was disabled, stopped or had failed to start; it now does so only while the manager is .running. |
| FFI | Two copies of event delivery. Core events clone the callback out of its slot and catch a throw. Wrapper events (NeighborDiscovered, NeighborLost, PeerRssi, carrier status) called the callback under the read guard with no catch_unwind: a callback calling set_event_callback deadlocked, and a throwing one skipped the polling queue. | One deliver_event used by both paths. |
| MLS | delete_session left the PendingWelcome that encrypt_for_user parks, so mls_get_pending_welcome returned an invitation to a deleted group. | Cleared after the session goes, best-effort, so an Err still means the session exists. |
| Browser | ble_link_up added the address to linked and consumed its verification before looking up the BLE transport, which does not exist until initialize. The refused call left the address linked: its fragments were accepted, and the next link-up read as a relink and never announced the peer. | The transport is resolved before either set changes. |
| Android | start() ran protocol?.start() then startForegroundService() even with no protocol, putting "Mesh Active" up over no engine; a sticky restart then read that as KEEP_ALIVE. The JS wrapper never does this; a direct native-module caller could. | Rejects with "Protocol not initialized", as the module's other methods do, before any side effect. |
| Engine | OutboundTransferState::on_chunk_ack counted any index, so is_fully_acked could go true early. Latent: the engine completes transfers from its own delivered set. | Only a chunk the window handed out counts. |
Investigated and left as is
- The transport manager and the DORS selector each keep a current transport. They mean different things. The selector's copy is the hysteresis anchor, and its setter restarts the switch cooldown; the manager's is the carrier that last carried a frame, which direct neighbour sends update. Merging them would let every neighbour send reset the cooldown. A doc comment on the field now says so.
- An epoch fork whose leader fails
update_keysis not retried.check_epoch_forksdocuments this as intended: the 5-minute stale sweep allows re-detection, and escalation is the application's. - The browser worker keeps
engineset afterstop().OfflineNode.startis a static constructor that creates a fresh worker and sends onestart, andstop()terminates the worker, so neither a restart nor a concurrent start reaches it through the page API.
Verification
- Each Rust fix has a test that fails with the fix reverted. The FFI deadlock test runs on a thread with a 10 s deadline so a regression fails instead of hanging; on the old path it hit the deadline.
cargo clippy --workspace -- -D warnings,cargo fmt --all -- --checkandRUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-depsare clean.cargo test --workspace: 3,752 passed. The one local failure,no_shipped_file_names_a_relay, flags only files in a gitignored.claude/worktreescheckout that CI does not have.- iOS:
OfflineProtocolModule.swifttypechecks with React using the CI step's recipe; a probe calling a missing method on the module was caught, so the harness is not vacuous. - Android: the module compiles and all 773 JVM unit tests pass in the CI harness. There is no test for
start()itself, because the module class needs a React context. - Not run locally: the Swift package and Android library jobs, and the browser pages in three engines. The browser change is in the Rust engine and is covered by
cargo test -p offline-protocol-web.
bahdotsh/wrkflw
Upgrades ratatui to 0.30.2 and crossterm to 0.29. Every TUI screen was then stress-tested and reworked. The UI now stays usable from a 1×1 terminal to 300×100, including with CJK, emoji, combining marks, tabs and ANSI escape codes in names and output.
Bug fixes
- Failed runs showed PASSED. A run now fails when any job fails, unless
continue-on-errorallows that job's failure. After a run, the first failed job and step are selected. A regression test is included. - The Trigger tab trapped you. Tab moved focus into the Branch field. There, digits and
qwere typed as text, and Tab only cycled fields, so Esc was the only way out. Now Tab/Shift+Tab switch tabs as they do elsewhere, and cycle fields only while a field is being edited. - The terminal is restored on panic, and Ctrl+C quits.
- Key-release events are ignored, so on terminals that report them, each key acts once instead of twice.
- Log scrolling is bounded, and a new log line no longer snaps the view back to the first search match.
- Text is now truncated by display width instead of byte length. Before, CJK and emoji text overflowed or wrapped into neighbouring panes, and tabs and control characters broke the layout.
Redesign
- A shared look: rounded panels with padding, an accent on the focused panel, badges in the title, scrollbars and empty states.
- Responsive layouts: side panes collapse, columns drop by priority, and tab labels shrink to a compact form or to the active tab only.
- Execution: a summary strip, jobs that haven't reported yet, step exit codes, an output tail and a results bar.
- Inspector: ANSI-coloured output that you can scroll back from the tail, and a Matrix view with the status of each combination. The placeholder Env, Files and Timeline tabs were removed.
- DAG: adaptive stage cards that scroll with ←/→, a list view and a legend.
- Logs: follow mode, PgUp/PgDn/Home/End and a compact search bar.
- Help: a modal overlay drawn over the current screen, in two columns on wide terminals.
- Status bar: a mode pill or a toast, hints that keep their first two entries at narrow widths, and runtime and validation badges.
Tests
stress_tests.rsrenders every tab and inspector view in 10 scenarios, at 14 sizes from 1×1 to 300×100, with 1, 3 and 60 workflows. It runs in about 8 seconds and found no panics.dump_screensis an ignored test that prints each screen as text:DUMP_SIZE=120x40 cargo test -p wrkflw-ui dump_screens -- --ignored --nocapture.cargo test --workspacepasses, andcargo clippy -p wrkflw-ui --all-targetsreports no warnings.- Checked by hand in tmux, including leaving the Trigger tab with Tab, Shift+Tab and the number keys.