# Psyclone AIOS & CMSDK 2.3.2 โ€” Release Notes **Released 26 November 2026** ยท Psyclone (LGPL) + CMSDK (BSD) + client libraries ยท 64-bit Linux, macOS (Apple Silicon) and Windows 2.3.2 lets a program **outside** Psyclone become a **full module** of a running system. A **remote module** can run on any machine and be written in any language that has a DataMessage codec. It connects over TCP, WebSocket or UDP. Its triggers fire it, it posts by post name, it retrieves from whiteboards and queries catalogs, and PsyProbe can stop, start and edit it. The release ships the engine, CMSDK and all client libraries together, all as version 2.3.2: - **Psyclone 2.3.2:** the engine, in 5 distributions. - **CMSDK 2.3.2:** the C++ library. - **Kotlin/Java:** `com.cmlabs:psyclone-client` and `com.cmlabs:cmsdk-kotlin` on Maven Central. - **Python:** `psyclone-client` on PyPI. - **Python binding:** the new `cmsdk3` wheels on PyPI. There was no Psyclone 2.3.1 engine release. Version 2.3.1 (20 November 2026) covered only the first client libraries, so every engine change since 2.3.0 is in 2.3.2. --- ## Highlights ### ๐Ÿ›ฐ๏ธ Remote modules โ€” any language, any machine A `` with a `` element becomes a **module host**. Each `` names its host. Inside the system the module is an ordinary component without a crank. What it posts comes *from* the module, so `from=` filters and whiteboard origins work as they do for a local module. - **Declared modules:** the PsySpec is the whole contract (triggers, posts, named `` and ``, parameters). The process only attaches. - **Dynamic modules:** with `` a process attaches a name the spec does not declare. It builds its contract at run time: it subscribes with PsySpec `` XML, and it declares posts, retrieves, queries and parameters. The host checks every request against an `` policy, and the default is deny. - **Authentication:** three options. - A PsyProbe 2 API key with the permission `modules.attach.`. The process proves the key with an HMAC on a nonce, so the secret never travels. - A shared token. - `none`, which the host accepts from its own machine only. - **Resume after a dropped link:** the host keeps a resume buffer (256 messages / 5 s by default). The process attaches again with `Resume` and `LastSeq`, and gets every trigger it missed. Anything the buffer no longer held is reported to it as `dropped`. - **Flow control:** each session has its own sender thread and a bounded outbound queue. A slow process blocks neither the engine nor other sessions. - **Operations:** PsyProbe stop/start/restart and parameter edits reach the process. A same-device takeover replaces the connection. A silent session goes offline after its lease (30 s). The host posts the system messages `Psyclone.RemoteModule.Online`, `.Offline` and `.Detached`. PsyProbe 2 shows each session in the component inspector and in `GET /api/v2/systems/local/modules`. - **Clients:** `RemoteModule` in both client libraries (Kotlin/Java and Python). The wire protocol ("Remote Module Protocol 1") is documented in User Guide ch. 11, so another language needs a codec port, not an engine change. - **Engine test:** `test=remotemodule` (declared and dynamic parts). ### ๐Ÿ“š Client libraries 2.3.2 (Kotlin/Java and Python) Both libraries now behave the same way on every transport (UDP, TCP Message with optional TLS, WebSocket `ws://`/`wss://`): - **Keepalive** every 15 s and right after connecting. A 2.3.2 service answers it with the round-trip time, `PsyPacked`, `PsyVersion` and `PsyFeatures`, and posts nothing. - **Dead-link detection:** after 3 unanswered keepalive intervals, TCP and WebSocket reconnect. UDP reports the link down and opens a new socket. - **Packed form by default** (`PackedMode.AUTO`): the client switches to the packed form once the service shows it reads it. This form has about 3x less overhead for small messages. - **Jittered reconnect back-off** (500 ms doubling to 10 s, ยฑ20 %). - **`stats()`:** a `ConnectionStats` snapshot with connects, drops, bytes, messages, requests, keepalives, RTT and the last error. - **`RemoteModule`** (above). - **Kotlin/Java:** - runs on JVM 17+ and Android API 26+, checked with animal-sniffer; - `wss://` with hostname checking now works on the desktop JVM; - `DataMessage.toBytes()` no longer calls a JDK 9+ method that older Android runtimes lack. - **Python:** pure Python 3.8+, standard library only. ### ๐Ÿ `cmsdk3` on PyPI, and Python cranks on any Python 3.10+ - **`pip install cmsdk3`:** the full CMSDK SWIG binding (`DataMessage`, the `PsyAPI` crank API, spaces, subscriptions, time and utilities). Each platform gets one **stable-ABI wheel** that installs on Python 3.10 and every later 3.x. OpenSSL 3 is linked in. - **Python cranks** are built against the stable ABI too. On Linux and macOS, Psyclone finds the installed Python when the first Python crank starts; `PSYCLONE_PYTHON`, `PSYCLONE_PYTHONLIB` or the `pythonlib` parameter choose one. On Windows the crank library links `python3.dll`. The binary distributions no longer need one particular Python version. - **Faster cranks sharing a space:** Python cranks that share a space wait less for a busy neighbour. Psyclone sets a 1 ms GIL switch interval (parameter `PythonSwitchUs`). On Windows it also sets a 1 ms timer resolution. ### ๐Ÿ”Œ Services - **Keepalive replies:** services answer client keepalives (`PsyKeepAlive`) on UDP, TCP Message and WebSocket. The reply carries `PsyFeatures` (`keepalive,packed`, plus `modules/1` on a module host). - **Peer expiry, opt-in:** with ``, a UDP peer that sends nothing for 4 leases is forgotten. A TCP Message peer is removed when a send to it fails. - **A service's trigger name stays on its own copy:** a service no longer writes `PsyTrigger` into the message that every subscriber shares (test `servicetriggercopy`). - **HTTP services:** urlencoded form fields are posted as entries, and DataMessage JSON replies are valid JSON. ### ๐Ÿ› Fixes 2.3.2 has **16 Fix entries (8 Psyclone, 8 CMSDK)**. The main ones: - **PsyProbe 2 `component.restart`:** it waited its full 5 s every time, because a component's status stayed "running" after its first run. On Windows that slow reply was sometimes lost. A restart now answers in well under a second. - **Windows teardown hang:** ending a NetworkManager could wait for ever after the other side had dropped one of its connections. - **`xml_parser` on Linux and macOS:** an `encoding="..."` attribute overflowed the stack, hung, or was read as UTF-8. - **Interval triggers:** replacing them at run time could race the timer thread. - **Parameters:** a text parameter set to a new value of the same length kept its old value. - **Python cranks:** several GIL bugs. - **Kotlin client:** the `wss://` and Android codec fixes above. See `CHANGELOG-2.3.2.md` for every entry. --- ## Platforms and verification The release dists and wheels were built from the `v2.3.2` tags (psyclone2 `653bcd1`, CMSDK `2258a5a`) on 26 November 2026 and tested as shipped; the engine suite and the longer runs are from the release-candidate rounds of 25 November. | Platform | Build | Tests | Also checked | |---|---|---|---| | Linux 64-bit (Ubuntu) | `make clean` + `make ssl`: 0 warnings | at the tag: `test=cmsdk` 70/70, `remotemodule`, `psyprobe2_compctl`, `psy_ready_once`; from the dists: `test=cmsdk` 70/70 (LGPL and binary), BSD `CMSDKTest` 44/44, `psytest`; engine suite 57/57 (RC) | services, `psymulti` (RC); Python cranks from the dist; PsyProbe 2 from the dist; the PsyProbe app rebuilt from the source dist matches the shipped one | | macOS 26.7.1 (Apple Silicon) | `make clean` + `make ssl`: 0 errors | from the dist: `test=cmsdk` 70/70, `psytest` 7/7, `psy_ready_once`, `remotemodule`; 108/108 unit tests (RC) | 18 binaries arm64 and codesigned; `cmsdk3` in Homebrew and python.org 3.14; Python crank and PsyProbe 2 from the dist | | Windows 64-bit (VS2022) | 4 configurations, 0 errors; `builddist` 0 errors | from the dist: `test=cmsdk` 70/70, `remotemodule`, `psyprobe2_compctl`, `psy_ready_once`; services, `psyprobe2`, `psytest` and `psyprobe2_compctl` 20/20 (RC) | Python cranks on 3.11 and 3.13 (RC) | | Client library | Tested | |---|---| | Kotlin/Java 2.3.2 | 59 run / 7 skipped / 0 failed at the tag (Linux) and on the RC (macOS), including the RemoteModule live tests; `ClientLiveTest` 7/7; Android API 26 (animal-sniffer); published on Maven Central | | Python `psyclone-client` 2.3.2 | 49 tests on Python 3.10 and 3.14 at the tag and on 3.8, 3.10, 3.12 and 3.14 on the RC (Linux), 3.10, 3.12, 3.13 and 3.14 (macOS), including the RemoteModule live tests; installed from PyPI on 3.10 and 3.14 | | `cmsdk3` 2.3.2 wheels | each wheel tested on Python 3.10, 3.11, 3.12, 3.13 and 3.14; installed from PyPI on 3.10 and 3.14 (Linux) | ### `cmsdk3` wheels | Platform | Wheel | |---|---| | Linux x86_64 (glibc 2.28+: RHEL 8+, Debian 10+, Ubuntu 18.10+) | `cmsdk3-2.3.2-cp310-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl` | | Windows x64 | `cmsdk3-2.3.2-cp310-abi3-win_amd64.whl` | | macOS Apple Silicon (arm64, macOS 11+) | `cmsdk3-2.3.2-cp310-abi3-macosx_11_0_arm64.whl` | There are no wheels yet for Linux aarch64, musllinux (Alpine), Intel macOS or Windows ARM64. Free-threaded Pythons (3.13t/3.14t) are outside the stable ABI. On those platforms, build from source (`pip wheel CMSDK/python-wheel`) or use the pure-Python `psyclone-client`. ## Downloads | File | SHA-256 | |---|---| | Source โ€” Psyclone (LGPL): `Psyclone_LGPL_2.3.2.261126.zip` | `23a365ad1101b50da0600f514fb977f8836d6582ccdf3e7e4f6ecdea426d82fc` | | Source โ€” CMSDK (BSD): `CMSDK_BSD_2.3.2.261126.zip` | `3649c0201eca44fb8c2146aeb1d3de1dc4161015f6bc4019981dd0828c386454` | | Binary โ€” Linux 64: `Psyclone_binary_linux64_2.3.2.261126.zip` | `635497795d481fcd5466df7be85606ccbebc846a3cd97080e9d50897ed3dd1e0` | | Binary โ€” macOS (arm64): `Psyclone_binary_macos64_2.3.2.261126.zip` | `ff5494761ad713abd921247052beaba11a63d2f379b8dbab7382d1f8ba0099fd` | | Binary โ€” Windows 64: `Psyclone_binary_win64_2.3.2.261126.zip` | `b9e7896927c91cb8a0c80b3271bb20d763617020c20822df0a9dbcf72c6f48aa` | What the distributions contain: - **All dists:** `Docs/`, `quickstart.txt` and both changelogs. - **LGPL source dist:** `CMSDK/tools/swig_limited_api.py`, which `make python3` runs on the SWIG wrapper. - **CMSDK BSD dist:** also the Python client (`python-client/`) and the `cmsdk3` wheel recipe (`python-wheel/`). ### Client libraries Kotlin/Java (Maven Central). The client pulls in the codec `com.cmlabs:cmsdk-kotlin` for you: ```kotlin // Gradle (Kotlin DSL) implementation("com.cmlabs:psyclone-client:2.3.2") ``` ```xml com.cmlabs psyclone-client 2.3.2 ``` Python (PyPI): ``` pip install psyclone-client # pure Python 3.8+, talks to a system from outside pip install cmsdk3 # the full CMSDK binding, Python 3.10+ ``` ## Requirements for the binary dists - **OpenSSL 3:** unchanged from 2.3.0. - Linux needs `libssl3`. - macOS needs `brew install openssl@3`. - On Windows, OpenSSL is linked in; run `PsycloneSSL.exe`. - **Python:** the Python binding and Python cranks need **any CPython 3.10 or later**. The free-threaded builds are not supported. - On macOS, Homebrew, python.org or uv all work. Homebrew `python@3.14` is no longer required. - On Windows, the Python directory must be on `PATH` (for `python3.dll`). - **macOS:** the dist is for Apple Silicon. After a browser download, run `xattr -dr com.apple.quarantine Psyclone_binary_macos64_*` once. ## Upgrade notes - **Rebuild from clean:** run `make clean` before `make` on Linux and macOS, or Rebuild in Visual Studio. Rebuild your own modules and external programs against the 2.3.2 CMSDK as well. - **``:** the default is `0`, which means peers never expire, so existing systems behave as before. In particular, older UDP listeners that never send keepalives keep getting broadcasts. Set a lease to turn expiry on. - **Reserved names:** remote modules use these names, so don't use them for your own posts or entries: - the post names `PsyModule` and `PsyKeepAlive`; - the entries `PsyOp`, `PsyOpID`, `PsySession`, `PsySeq`, `PsyTypeName`, `PsyFromName` and `PsyFeatures`. The services enforce this at run time: a message that carries a `PsyModule` entry is handled as a module frame and never posted (a service without `` answers `unsupported`), and a message that carries `PsyKeepAlive` is answered as a keepalive and never posted. The spec parser does not reject these names. - **There was no engine 2.3.1:** 2.3.1 (20 November 2026) was a client-library-only release. If you used `psyclone-client` 2.3.1, upgrade it to 2.3.2. The 2.3.2 clients still talk to a 2.3.0 system. The engine does not answer their keepalives, so they stay on the full form and don't detect dead links. Remote modules need a 2.3.2 host. - **Java bindings removed:** the Windows-only Java (SWIG/JNI) bindings had been unmaintained since before 2.3. They are now removed (the files are in `CMSDK/legacy/java`). There are no Java cranks. JVM programs use `com.cmlabs:psyclone-client`. ## Known issues - **Windows:** the CMSDK HTTP client can lose a reply that arrives about 5 s late, and its thread ignores a stop request. Planned for 2.3.3. --- *Psyclone AIOS is a distributed, real-time publish/subscribe platform with sub-100ยตs messaging, built on the open-source CMSDK library. โ€” Communicative Machines / CMLabs*