# Psyclone / CMSDK — Combined Changelog Version 2.3.2 (26/11/2026) ******************** Everything since 2.3.0. Psyclone (engine) and CMSDK (library and client libraries) ship together as 2.3.2: the 5 distributions, com.cmlabs:cmsdk-kotlin and com.cmlabs:psyclone-client on Maven Central, and psyclone-client and cmsdk3 on PyPI. ## Psyclone (LGPL) Feature: Remote modules (declared) - a program on any machine, in any language with a DataMessage codec, attaches to a over a with (TCP Message, WebSocket, UDP with udp="yes") and is that module: its triggers go out with PsyTrigger/PsySeq/PsyTypeName/PsyFromName, its posts come in by post name from the module, named (capped by maxretrieve, default 100) and work, PsyProbe component stop/start/restart reach it, a same-device takeover replaces the connection, a session silent for (30 s) goes offline with a Psyclone.RemoteModule.Offline system message. Auth: PsyProbe 2 API keys with permission modules.attach. proven by HMAC on a nonce, a shared token, or none (same machine only). Module hosts advertise PsyFeatures modules/1. Clients: RemoteModule in psyclone-client (Kotlin/Java, Python). Test remotemodule Feature: Remote modules, phase 2 - dynamic modules: with a process attaches a name the spec does not declare and builds its contract at run time (subscribe/unsubscribe with PsySpec XML, declare posts, retrieves, queries and parameters, describe), each request checked against (default deny; types are checked before they are registered); ad-hoc whiteboard retrieves and catalog queries inside (declared modules with adhoc="yes"); lets a declared module subscribe too. Re-sending a trigger changes nothing and an interval trigger never gets a second timer. A dynamic module's proxy goes with its session (Psyclone.RemoteModule.Detached) Feature: Remote modules - every session has its own sender thread and a bounded outbound queue (): delivery to a remote module never waits for the network, a slow process blocks neither the engine nor other sessions, overflow drops the oldest non-guaranteed trigger first and the process is told (PsyOp=dropped, Count, FromSeq, Reason queue|size); PsySeq is strictly increasing per session whatever thread delivers Feature: Remote modules - resume buffer (): after a dropped link the process attaches with Resume= LastSeq= and gets every trigger it missed, or a dropped report (Reason buffer) for what the buffer no longer had; the clients do this by themselves and send a dynamic module's desired set again after a new session Feature: Remote modules - parameters both ways (PsyProbe edits reach the process as PsyOp=parameter; the process may set its own), Psyclone.RemoteModule.Online on every attach, retrieves and queries on host worker threads (maxops in flight, default 16), limits maxperconnection (8) and maxtriggers (64); PsyProbe 2 shows each remote module's session in the component inspector (state, transport, peer, PsySeq, sent/dropped/buffered/queued, resumes) and in GET /api/v2/systems/local/modules Feature: logs a warning at start-up for each interface of the host (interfaces listen on every address; attaches are still accepted from this machine only). A remote module placed on a node without its host service fails the bake with a message saying to place it on the service's node Feature: Service peers expire - (default 0 = never, so older UDP listeners keep getting broadcasts; set it to turn expiry on); a UDP peer that sends nothing for 4 leases (2 minutes with lease="30000") is forgotten and gets no more broadcast triggers until it sends again (client keepalives keep it); a TCP Message peer is removed when a send to it fails. Before, every UDP address that ever sent a datagram got every broadcast for as long as the node ran. Test servicepeerexpiry Feature: A service's keepalive reply carries PsyFeatures (keepalive,packed), so a client can tell what the service supports before using it Feature: Python cranks run with any installed Python 3.10 or later - the crank library is built against the Python stable ABI and, on Linux and macOS, finds and loads the installed Python when the first Python crank starts (PSYCLONE_PYTHON, PSYCLONE_PYTHONLIB or the pythonlib parameter to choose; a refused choice is logged); Windows links python3.dll. The binary dists no longer need one particular Python version Feature: Services answer client keepalives (PsyKeepAlive) on UDP, TCP Message and WebSocket without posting anything - the round-trip time, PsyPacked=1 and PsyVersion come back in the form the keepalive came in, and the peer (address, form) is refreshed; clients negotiate the packed form from it. Tests udpservice, wsservice Feature: The Kotlin/Java client (com.cmlabs:psyclone-client 2.3.2) keeps connections alive and detects dead ones, negotiates the packed form, reports per-connection stats and is checked against the Android API 26; live tests run on the engine-test systems (see the CMSDK changelog) Fix: PsyProbe 2 component.restart answered after its full 5 s wait every time, because a component's status stayed "running" after its first run (it now shows "finished" between runs and a restart answers in well under a second); on Windows that slow reply was sometimes lost (test psyprobe2_compctl). See the CMSDK changelog Fix: Windows - ending a NetworkManager (a node, or a program using CMSDK networking) could wait for ever after one of its connections had been dropped by the other side; see the CMSDK changelog. Found by test=remotemodule Fix: Interval triggers - the message timer is locked and each beat works on a copy of its trigger, so replacing a component's interval triggers at run time (remote modules, PsyAPI addSubscription) cannot race the timer thread Fix: A text parameter set to a new value of the same length kept its old value (PsyProbe parameter editor, setParameter); see the CMSDK changelog Fix: Services no longer write their trigger name (PsyTrigger) into the message every subscriber shares - a module, whiteboard or other node delivered after a service used to see that service's PsyTrigger; the name now goes on the service's own copy of what it sends. Test servicetriggercopy Fix: Python cranks - the GIL was kept on every early error return and by the thread that started Python, and two cranks starting together could both start Python; Psyclone sets a 1 ms switch interval (parameter PythonSwitchUs) so a computing crank delays the others in its space less (ring next to a busy crank 108 -> 400 rounds/s) Fix: Python cranks on Windows - Psyclone sets a 1 ms timer resolution when Python starts, because Windows rounded the GIL hand-over up to its 15.6 ms tick (ring next to a busy crank in one space 38 -> 360 rounds/s, p50 30 -> 3 ms) Fix: HTTP services post urlencoded form fields as entries; DataMessage JSON replies are valid JSON (see the CMSDK changelog) Build: cmsdk3 wheels - the Python binding as one stable-ABI wheel per platform (Python 3.10 and later), built with cibuildwheel from CMSDK/python-wheel (see the CMSDK changelog) Build: The LGPL source distribution ships CMSDK/tools/swig_limited_api.py, which make python3 runs on the SWIG wrapper when swig is installed; the CMSDK BSD distribution also ships the Python client and the cmsdk3 wheel recipe; the Windows binary dist's version file says "Python 3.10 or later" (stable ABI) as version.txt on Linux and macOS does, instead of naming the build host's Python as the one needed Build: The unmaintained Windows-only Java (SWIG/JNI) bindings are removed (CMSDK/legacy/java); there are no Java cranks, and JVM programs use the Kotlin/Java client library Docs: Quick start and quickstart.txt - which Python to install on macOS (Homebrew, python.org or uv, 3.10 or later; the 2.3.0 need for Homebrew python@3.14 is gone); Java mentions removed from the User Guide and the LLM guide ## CMSDK (BSD) Feature: RemoteModule in the Kotlin/Java and Python psyclone-client (2.3.2) - a process attaches to a declared of a Psyclone 2.3.2 module host and is that module: contract from the server, triggers by name, posts, named whiteboard retrieve and catalog query, PsyProbe stop/start, takeover, re-attach after a reconnect or lease expiry, a crank-style pull API; PsyProbe 2 API keys proven by HMAC on a nonce (the secret never travels), shared tokens, or none (same machine). Live tests RemoteModuleLiveTest and tests/test_remote_module.py start Psyclone themselves (PSYCLONE_BIN) Feature: RemoteModule phase 2 (Kotlin/Java and Python, Psyclone 2.3.2) - dynamic modules (Trigger builder, subscribe/unsubscribe, declarePost/Retrieve/Query/Parameter, undeclare), ad-hoc retrieveFrom/queryCatalog, parameters both ways (onParameter, setParameter), resume after a dropped link with LastSeq (the host replays what was missed; onDropped reports the rest), the desired set sent again after a new session. Live tests RemoteModuleDynamicLiveTest, tests/test_remote_module_dynamic.py Feature: Kotlin ConnectionStats.serverFeatures and PsycloneClient.serverFeatures (PsyFeatures from the keepalive reply) Feature: Python psyclone-client 2.3.2 - the same connection behaviour as the Kotlin client 2.3.2: keepalive on every transport (15 s and right after connecting; RTT, PsyVersion, and the new PsyFeatures from Psyclone 2.3.2+), PackedMode FULL / PACKED / AUTO (default AUTO: packed once the service shows it reads it; packed=True/False still works), dead-link detection (TCP/WebSocket reconnect, UDP reports the link down and opens a new socket), jittered reconnect back-off, stats() with a ConnectionStats snapshot, wait_server(), remove_handler(), server_features; tests/test_keepalive.py (local and PSYCLONE_LIVE), checked on Python 3.8, 3.10, 3.12 and 3.14 Feature: Python binding on the stable ABI - one _cmsdk3 build imports into any CPython 3.10 or later (Py_LIMITED_API; tools/swig_limited_api.py makes SWIG's version checks follow it); on Linux it no longer links libpython Feature: cmsdk3 wheels - python-wheel/ builds the full SWIG binding as one stable-ABI wheel per platform (cp310-abi3: Python 3.10 and later) with cibuildwheel; SWIG from PyPI, OpenSSL 3 linked statically; manylinux_2_28 x86_64 and Windows x64 built and tested on 3.10-3.14, macOS arm64 (Apple silicon) built and tested on 3.10-3.14 too (no macOS x86_64 wheel in 2.3.2); published on PyPI as cmsdk3 2.3.2 Feature: Kotlin/Java psyclone-client 2.3.2 - keepalive on every transport (15 s, answered by Psyclone services with RTT, PsyPacked and PsyVersion; older systems drop it after refreshing the peer); PackedMode FULL / PACKED / AUTO (default: packed once the service shows it reads it); dead-link detection (TCP/WebSocket reconnect, UDP link down and a new socket); jittered reconnect back-off; stats() with a ConnectionStats snapshot (connects, drops, failures, bytes, messages, requests, keepalives, RTT, last error); DataMessage.isPacked(); live tests UdpServiceLiveTest, WsServiceLiveTest (with wss), HttpServiceLiveTest start Psyclone on the engine-test systems (PSYCLONE_BIN); Android API 26 checked with animal-sniffer Fix: ComponentMemory::setParameter - setting a text parameter to a value of the same length did nothing (the copy was limited to length - 1 characters) Fix: PsyAPI::finish() recorded a finished run (status FINISHED and its CPU time) on component id 0, because it cleared the component id first; a component's status never left "running" after its first run, so PsyProbe 2 component.restart always waited its full 5 s for the crank to finish (and on Windows that slow reply was sometimes lost: test psyprobe2_compctl failed about 1 run in 4-7) Fix: Networking on Windows - ending a NetworkManager could wait for ever: a channel joined its worker by ThreadManager slot id, and when that worker had already left and been reaped the recycled slot could belong to another thread (a node's accepted connection waiting for this very client to close). The join now checks that the slot still holds the worker's own thread handle. Found by test=remotemodule (dynamic part) on Windows Fix: XMLNode::guessCharEncoding() (used by openFileHelper) on Linux and macOS - its _strnicmp helper called itself, so an encoding="..." attribute overflowed the stack or, optimised, hung or read every encoding as UTF-8 (found by Isaac in the macOS wheel build); test xml checks ISO-8859-1, Shift-JIS and UTF-8 Fix: HTTP - application/x-www-form-urlencoded bodies are parsed into parameters (they were handed to the multipart parser and dropped) Fix: DataMessage JSON (toJSON, getUserEntriesAsJSON) escapes keys and text values and quotes array indices (a quote, backslash or newline made it invalid) Fix: Kotlin client - wss:// with hostname verification (the default) always failed on the desktop JVM, because the JDK's default HostnameVerifier refuses every name; the JVM now checks the name in the TLS handshake (Android keeps the platform verifier) Fix: Kotlin codec - DataMessage.toBytes() called the JDK 9+ ByteBuffer.position(int) overload, which is not in the Android API (NoSuchMethodError on older Android runtimes) Build: The BSD source distribution (make bsd) ships tools/swig_limited_api.py (make python3 and make swig3 run it on every SWIG-generated wrapper, so the dist could not build the Python binding where swig is installed), python-client/ and the python-wheel/ recipe Build: The Java bindings (Windows-only SWIG/JNI projects, unbuilt since before 2.3) are removed; the project files and the generated JNI wrappers (src/cmsdkjava*_wrap.cxx, no longer in the source dists) are in legacy/java. JVM programs use com.cmlabs:psyclone-client Version 2.3.1 (20/11/2026) ******************** Client libraries only. There was no Psyclone 2.3.1 engine release and no CMSDK library or distribution release; the engine and library changes made since 2.3.0 are in 2.3.2 above. ## Psyclone (LGPL) Feature: Client libraries for Kotlin/Java (Maven Central com.cmlabs:psyclone-client) and Python (PyPI psyclone-client) to talk to a system's services from outside (User Guide ch. 11) Build: Client libraries only - com.cmlabs:cmsdk-kotlin and com.cmlabs:psyclone-client 2.3.1 (Maven Central) and psyclone-client 2.3.1 (PyPI) were published on 20/11/2026; there was no Psyclone 2.3.1 engine release, and the engine changes made since 2.3.0 are in 2.3.2 ## CMSDK (BSD) Feature: Client libraries for programs outside Psyclone - Kotlin/Java com.cmlabs:psyclone-client (kotlin/client, JVM 17+ / Android 26+, Maven Central) and Python psyclone-client (python-client, pure Python 3.8+, PyPI): post by post name, triggers by trigger name, request/reply, UDP, TCP Message (+TLS), WebSocket, full and packed forms; the Kotlin codec is published as com.cmlabs:cmsdk-kotlin Build: Client libraries only (published 20/11/2026: com.cmlabs:cmsdk-kotlin and com.cmlabs:psyclone-client 2.3.1 on Maven Central, psyclone-client 2.3.1 on PyPI, from CMSDK fcdd0af); no CMSDK library or dist release, so the library changes made since 2.3.0 are in 2.3.2 --- Counts for 2.3.2: Psyclone 11 Feature, 8 Fix, 3 Build, 1 Docs; CMSDK 7 Feature, 8 Fix, 2 Build. That is 16 Fix entries in all (8 Psyclone, 8 CMSDK); a few Psyclone lines point to the CMSDK line for the same fix.