Version 2.3.2 (26/11/2026)
********************
Feature: RemoteModule in the Kotlin/Java and Python psyclone-client (2.3.2) - a process attaches to a declared <module type="remote"> 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
Fix: ComponentMemory::setParameter - setting a text parameter to a value of the same length did nothing (the copy was limited to length - 1 characters)
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
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)
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: 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)
********************
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
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

Version 2.3.0 (18/11/2026)
********************
Feature: Named (process-shared) mutexes survive an owner that died holding them — Linux uses robust mutexes (EOWNERDEAD -> consistent), macOS a lock word that is the owner's pid (one CAS, os_sync/ulock kernel wait, dead or zombie owner taken over); a warning is logged. On macOS the lock word is faster than the native pthread mutex (processmemory_perf -8% idle, -15% under load). Tests utils_mutex_ownerdeath, processmemory_perf
Feature: macOS named semaphores are a counter word in a shared segment that nothing holds, and POSIX named Events a generation word (signal wakes all waiters, not kept for later): a process killed inside wait()/signal()/waitNext() can no longer wedge them (the old pthread mutex + condition stayed locked, or ~Event hung in pthread_cond_destroy). Tests utils_semaphore_userdeath, utils_event_userdeath
Feature: DataMessage — getAllKeys(); a packed wire form (toPacked()/FromPacked(), read by MessageProtocol alongside the classic form); a byte-exact Kotlin/Android codec (kotlin/, conformance-tested against the C++ library, with setEntry and toPackedBytes)
Feature: Python bindings — std::map templates so map getters and getAllKeys() return dicts; setDataBytes/getDataBytes for binary entries (setData(char*) stopped at the first NUL), getPackedBytes(), fromBytes()
Feature: ComponentMemory parameter listing (getParameterInfo/ParamInfo); component pause/wake; queries reach module cranks
Feature: PsySpace delivers a process's messages to its cranks in queue order
Fix: POSIX shared names — only the process that created a segment, Mutex, Semaphore or Event name removes it (closing used to remove it in any process, so the next opener got a new object); node-owned names (resized segments, queue semaphores) are removed by the node at shutdown; the machine-wide PsycloneIndex is no longer taken away by the first node to end, its slots are reused, and GetStatus no longer leaks a mapping per call. A forced create on Linux makes a new object, as on macOS. Test utils_shared_names
Fix: Mutex::leave() updates its bookkeeping under the lock (owner-death recovery missed holds)
Fix: The POSIX named Event never set its name (every object opened a segment named after uninitialised heap bytes)
Fix: endConnection on its own worker thread no longer frees itself; launched children get an empty signal mask; per-test timeout in the test runner
Fix: PsyAPI — two pool threads could run the same crank at once (use-after-free); PsySpace shutdown drains the pool (up to 10 s) and reset() waits for an in-progress shutdown (Windows teardown crash); the process launcher never destroys the condvar its thread waits on
Fix: Networking — WebSocket frames over 64 KB (truncated 16-bit length), an inverted partial-header timeout that dropped requests arriving in several pieces, case-insensitive HTTP headers (RFC 9110) and the Connection token list for the WebSocket upgrade, TLS SSL_write serialised with SSL_read, the HTTP client sends Host with a non-default port and maps 400/401/501/503/504, HTTP requests with headers and no body
Fix: UDP — keep each datagram's sender, reply from the bound port, 4 MB receive buffer; a zero-length datagram is not a disconnect; isConnected() on Windows (MSG_PEEK WSAEMSGSIZE)
Fix: Library::load — a library path could never load (two bugs)
Fix: Console log lines are flushed as they are written: a space process shares the node's stdout, and when that was a file or a pipe its buffered lines were lost when the space was stopped (the "language library unavailable" line among them). That line is now an Error naming the missing library and how to build it, instead of suggesting a misspelt language name
Fix: CreateADir creates missing parent directories and ignores a trailing separator; DataMessage::toXML escapes text; DataMessage delete + re-add of a key (stale find-key cache); getKeyType leak; Sunday weekday name
Fix: ComponentMemory index corruption and five parameter bugs; ReplayCatalog writes type names by id
Build: Windows x64 SSL builds use OpenSSL 3.5.9 (LTS); 32-bit Windows retired (configs kept, unmaintained)
Build: The test runner removes the shared names and /tmp/psytest_* dirs a test leaves behind
Build: macOS — the Python bindings link with the OpenSSL path (Homebrew openssl@3 is not on the default path: "ld: library 'ssl' not found", Isaac), and _cmsdk3.so uses -undefined dynamic_lookup instead of linking the build host's libpython
Build: CMSDK.vs2022.sln builds the library and the Python 3 binding only: the Python 2 and Java projects (legacy; their SWIG step failed) are no longer in it
Build: The BSD source distribution (make bsd) ships the VS2022 projects (was VS2015), readme.txt, doc/*.md and the Kotlin codec; doc/Building_CMSDK.md describes the current VS2022 x64 / OpenSSL 3.5.9 / make toolchains
Docs: PsyAPI::addPsyProbeCustomView/removePsyProbeCustomView marked @deprecated (PsyProbe 1.x was removed in Psyclone 2.3; the calls are ignored), also in the CMSDK LLM guide
Docs: CMSDK LLM guide — shared-memory ownership rules, semaphore/event words, logind RemoveIPC, UDP/HTTP/WebSocket client notes; Doxygen for NetworkChannel::sendMessage

Version 2.2.0 (22/08/2026)
********************
Feature: LLM Connections — a new <llm> / <llmvendor> connection primitive. LLMConnection parses vendor/model configuration into typed errors and a stats struct, connects over the CMSDK HTTP client, and calls an endpoint via interact() with JSON path extraction (jsmn). Both a request/response mode (mode-A) and a streaming mode (mode-B) are supported, with mode-B stream statistics accounting, a typed cancel error, reset() parity and an owner-end lifecycle callback hook
Feature: LLM Connections — real streaming transport. Added an SSEEventParser, an HTTPChunkedDecoder, a StreamByteSource with bounded pump loops, and an EventStreamFrameParser that validates the AWS event-stream prelude and per-message CRCs — so live token-streaming endpoints (SSE and binary event-stream) are consumed correctly
Feature: LLM Connections — secret handling. LLM credentials resolve from environment-variable or file references, and inline secrets in a spec are rejected, so keys never have to live in the spec file
Feature: PsySpace::registerInternalCrank — inject a built-in crank by function name, backing the Root-space Supervisor/Builder cranks on the Psyclone side
Feature: Test — a seeded oracle fuzz for the ProcessMemory ring (test=processmemory_fuzz), a Phase-2 ring-invariant checker, and a resize-heavy op-mix (PSY_RING_RESIZEHEAVY=1)
Feature: Utils — POSIX pseudo-terminal process primitives and utils::ProbeProcessWait, a stall-on-stdin probe (Linux exact, macOS composite, Windows stub), for the Windows stall-probe test work
Fix: Reliable POSIX shared-segment cleanup — startup pre-clean plus graceful unlink, so a killed run can't leave a stale named segment behind to poison the next start
Fix: Launch die-with-parent children from a persistent launcher thread, so a spawned child is reliably torn down with its parent
Fix: NewProcess/NewProcessEx must not treat the command line / title as a printf format string — a % in a command line no longer triggers a Windows c0000409 fast-fail (was crashing the CLIRunner test=cmsdk case)
Fix: POSIX NewProcessEx implemented with capture / env / process-group support and an optional posixUseShell (/bin/sh -c), unified onto a single shared launch path; ReleaseProcessCapture exposed for a signal-free capture-pipe release
Fix: SSL client verification on Windows now imports the Windows ROOT system store (CryptoAPI) into the SSL_CTX X509 store — SSL_CTX_set_default_verify_paths pointed at the build-time OPENSSLDIR and failed cert verification against public endpoints on end-user machines
Fix: HTTP client fixes exposed by the LLMConnection work — honour the computed encryption in makeHTTPRequest (was hardcoded to SSL), un-invert the ReceiveHTTPReply timeout check, preserve a buffered reply when the peer closes after responding (Connection: close), and correct the URL parser (colon-in-path vs port) and chunked transfer-encoding decode
Fix: Fixed a NetworkThread teardown use-after-free race — capture parent/id before clearing isRunning, and have endConnection/shutdown wait (bounded, self/forced-aware) for the worker OS-thread to exit
Fix: NetworkManager map corruption fixed — wrong id space, operator[] on read paths, and missing locking
Fix: PsyAPI::waitForNewMessage held a dangling reference into a popped queue slot
Fix: Memory-safety pass under a new ASan gate — fixed gethostbyname_r use-after-free, ~21 new[]/scalar-delete mismatches, a PsySpace::logEntry leak, 22 StringFormat frees, and a third over-read in GetFirstFreeBitLocN (now word-granular)
Fix: Flake-1 shutdown hardening — cooperative-only connection-worker shutdown (no pthread_cancel of a mutex holder), Node::terminate teardown deadlock fixed with a cancel-safe mutex and a dedicated signal thread, and ThreadManager::JoinThread now joins the worker before freeing the NetworkThread
Fix: Windows portability of the concurrency fuzz TUs — _putenv_s (setenv is POSIX), GetModuleFileNameA on the re-exec path, and a portable temp path instead of a hardcoded /tmp
Build: Added ProcessMemoryFuzz/ConcFuzz and LLMConnection translation units to the vs2022 project/filters so a headless MSBuild links them; dropped stray cmsdk_perf_*.json test artifacts
Build: Scale unit-test time budgets under sanitizers (UT_TIME_SCALE); ignore SIGPIPE so the SSL tests can run
Docs: LLM guide documents the child-process launch path (NewProcessEx, capture lifecycle, ReleaseProcessCapture); the Doxyfile dist-copy exclusion is version-agnostic so the Doxygen build stays at 0 warnings

Version 2.1.1 (26/07/2026)
********************
Feature: Added NewProcessEx / ReadProcessOutput / SendProcessBreak in Utils for the Psyclone T1.4 external-exec lifecycle (cross-platform child-process spawn, output capture and graceful-break signalling)
Feature: TriggerGroup declarative-join support — CMSDK primitive backing the Psyclone <triggergroup> grouped-activation feature, with grouped-delivery documented in the CMSDK LLM guide and Doxygen-clean header comments
Fix: Fixed an intermittent network_http teardown hang — a double-delete race in NetworkChannel endConnection/shutdown; teardown now uses bounded waits plus invalid-handle hardening (verified 20/20 clean test=cmsdk runs)
Fix: Fixed Windows GetExitCodeProcess misuse — a still-running process was reported as terminated with code 259 (STILL_ACTIVE); process-exit detection is now correct
Fix: Fixed a Linux SIGSEGV/hang introduced by the graceful-shutdown thread change — thread reaping is now safe on Linux
Fix: Fixed intermittent Windows unit-test failures — graceful thread shutdown plus WAIT_ABANDONED handling
Fix: Windows shared memory now honours force by zeroing a pre-existing named mapping; assorted minor Windows compilation fixes
Fix: SSL — OpenSSL handshake/certificate errors are now routed through the log system; client-side hostname verification and custom CA locations; verify-peer default with allowselfsigned opt-in
Fix: Corrected Subscriptions.h trigger-filter doc-comments — maxage operand is milliseconds (not microseconds), haskey matches any entry type, >=/<= epsilon boundary noted on greaterthan/lessthan, numeric ops parse as float64
Build: Clean builds from scratch fixed — the build/ object directory is now self-created by the compile rules (mkdir -p $(@D)) rather than a parse-time guard, so make clean && make and make rebuild work out of the box

Version 2.1.0 (12/07/2026)
********************
Feature: Native macOS support — CMSDK now builds and runs correctly on Apple Silicon/Intel macOS as a first-class platform alongside Linux and Windows, with a full passing unit test suite
Feature: Added a unified CMSDK unit test framework (UnitTestFramework.h/.cpp) — one PASS/FAIL line per object, indented perf metrics, timestamped performance JSON (cmsdk_perf_latest.json) with compare=<file> %-deltas for an automated regression-tracking loop, a live overwriting progress line, per-test process isolation with a timeout (a crash/hang in one test can't take down the suite), and self-healing shared-memory cleanup so a killed run can't poison the next
Feature: Authored/converted ~20+ object unit tests: Base64, hash (MD5/SHA1/SHA256/CRC32/SHA3/Keccak), MathClasses, Bitmap, HTML, xml_parser, Subscriptions, VantagePoints, Observations, ControlMessage, ThreadManager, DataMessage, NetworkManager, RequestGateway, ComponentMemory, ProcessMemory — 33 tests total, all passing
Feature: Added a `network_https` unit test — a real TLS handshake plus encrypted HTTP round-trips over loopback with a runtime-generated self-signed certificate — for SSL/TLS builds
Feature: Added `-O0` unoptimised debug/ssldebug build targets for a real single-step debugging experience (previously debug builds were still optimised, making breakpoints unreliable)
Feature: Added a per-test hang-diagnostic mechanism — on timeout, the child is signalled (SIGUSR1) to dump a native stack trace of exactly where it hung before being killed, and the parent reports the last progress phase recorded, instead of a bare "timed out"
Fix: Fixed a macOS-only thread-liveness bug that caused shutdown hangs across the whole product — IsThreadRunning/CheckForThreadFinished used a destructive pthread_join as a liveness probe (which reaps the thread), so a later authoritative join operated on an already-joined pthread_t: heap-corrupting undefined behaviour. Switched to non-destructive pthread_kill(h,0) liveness probing plus a single authoritative join, with null-handle guards
Fix: Fixed two macOS-only timeout-emulation primitives (macos_pthread_mutex_timedlock, macos_pthread_join_with_timeout) that treated an absolute deadline as a relative countdown / used an already-expired deadline, so bounded waits silently became indefinite hangs under contention — root cause of intermittent 30s teardown hangs and 6-27s stalls on IsThreadRunning
Fix: Fixed macOS CPU percentage calculation — GetProcAndOSCPUUsage mixed Mach clock ticks (~100/sec) with microsecond-scale process ticks, inflating reported CPU usage by roughly 10,000x
Fix: Implemented real per-thread CPU measurement on macOS via pthread_mach_thread_np + Mach thread_info (previously a stub returning false / garbage stats for Root-space components such as AudioInput/AudioOutput)
Fix: Fixed ComponentMemory/ProcessMemory off-by-one arena bounds checks (were using > instead of >= indexSize) and resize/destroyComponent memmove lengths that were over-copying by indexSize*8 bytes
Fix: Fixed OpenSharedMemorySegment(size=0) reading its size from an offset the caller's own header immediately overwrites; now autodetects the real size via fstat
Fix: Fixed a NetworkChannel::shutdown() deadlock — it held channelMutex while joining a worker thread that also needed the same mutex — plus an unsigned-integer underflow in a wait timeout calculation
Fix: Fixed NetworkChannel::waitForMessage never setting its connection-id out-parameter, so a receiver had no way to reply to the correct sender; now tracks the source connection id per message
Fix: Fixed a NULL-pointer crash in RequestGateway::addToCallLog constructing std::string from NULL getString() results (e.g. a DataMessage request with no "User-Agent"); parameters are now NULL-safe
Fix: Fixed Stats::getMedian off-by-two iterator bug and a mutex leak on an early return
Fix: Fixed Point::getDistanceTo using the X coordinate twice instead of X and Y
Fix: Fixed corrupted multibyte character literals in HTML2Char that broke the build on some toolchains
Fix: Fixed aarch64 Linux builds incorrectly detected as 32-bit (BITARCH/-fPIC), breaking builds on ARM64 Linux (e.g. Raspberry Pi 5)
Fix: Fixed Linux Python3 build — hardcoded python3.4m include/lib paths replaced with sysconfig-derived paths matching the macOS branch; fixed an LP64 SWIG binding word-size mismatch (vector<long> vs vector<long long> ODR clash) that broke the wrapper build on 64-bit Linux
Fix: Fixed the make bsd distribution build failing on macOS — replace.sh used the GNU-only sed -b flag, which BSD sed rejects; the flag is now feature-detected at runtime, and sed runs under LC_ALL=C so non-UTF-8 template files cannot trigger BSD sed's "illegal byte sequence" error (byte-transparent, preserves CRLF; GNU sed behaviour on Linux/Cygwin unchanged). Verified identical distribution archives on macOS and Linux
Perf: TCP messaging throughput ~42k → ~90k msg/s and latency 23.8us → ~11us (~2x improvement) by keeping sockets non-blocking instead of flipping blocking mode around every send (previously 4 fcntl syscalls/message plus a race with the receive thread on the same socket)
Perf: UDP messaging throughput ~107k → ~155k msg/s and latency 9.3us → ~6us via the same socket-mode and buffered-read optimisations
Perf: Removed a redundant per-read SetSocketNonBlockingMode call (2 fewer fcntl syscalls per read)
Perf: NetworkConnection::receive() now only reads from the socket when the buffer doesn't already hold the requested bytes — a single drain typically pulls a whole message (or several pipelined messages), so most subsequent reads cost no syscall at all
Perf: MessageProtocol::ReceiveMessage now peeks the header into a stack buffer and does a single malloc(size), replacing a malloc(1KB)+free+malloc(size) sequence on every message
Perf: Replaced a per-message 36KB recent-message ring memmove in both ComponentMemory and ProcessMemory with a circular write index (recentInPos/recentOutPos), removing a large memmove from the hot messaging path
Perf: PsySpace*Run thread functions return THREAD_RET without a heap allocation
Perf: CMSDK DataMessage construction/serialisation and general networking hot paths optimised (unittest + optimisation pass)
Perf: RequestGateway/NetworkManager test harnesses warmed up and stabilised so back-to-back and concurrent runs no longer fail on transient address-in-use or teardown-timing races — validated with a 1500-run soak, zero failures, no hangs

Version 2.0.0 Beta 3 (02/07/2014)
********************
Fix: Fixed HTTP server connection issues
Fix: Fixed more memory leaks
Fix: Fixed several network protocol and connection problems
Fix: Since this is still in Beta there are more fixes than can be listed here
Performance: Improved messaging performance
Feature: Added statistics functions and objects (MovingAverage, etc.)
Feature: Added DataMessage toXML and toJSON

Version 2.0.0 Beta 2 (23/05/2014)
********************
Fix: Fixed memory leaks
Fix: Since this is still in Beta there are more fixes than can be listed here
Performance: Improved messaging performance

Version 2.0.0 Beta 1 (09/05/2014)
********************
Complete rewrite of all CoreLibrary source code, design and implementation
