Skip to content

Changelog

Notable changes. Format loosely follows Keep a Changelog; versions before 0.9.0 were an internal 0.BUILD+SHA counter and are summarised rather than enumerated — there were roughly 1,100 of them.

[1.1.4] — 2026-11-17

The pionlite wheels carry a package page, their licence files and project links. The server is unchanged from 1.1.3.

Changed

  • pionlite wheels (experimental): each carries embedded/README.md as its long description, LICENSE and NOTICE (which names the Modular runtime libraries the wheel redistributes, under the Modular Community License), and Homepage, Source, Changelog and Issues links. CI runs twine check --strict on every wheel it builds. They are still not on PyPI.
  • CI keeps evidence when a library-mode server faults. The embedded workflow's Linux tier writes core dumps, prints a gdb backtrace of every thread for each core, and runs with Python's fault handler on. A library-mode server died with SIGSEGV before answering its first PING in 2 of the tier's CI runs on Linux x86-64, and 8 more runs plus 10,000 isolated starts did not reproduce it; the next occurrence names its frame.

[1.1.3] — 2026-11-17

An eviction policy no longer empties the keyspace after a burst of writes, FT.CREATE refuses under --profile kv instead of serving a one-vector index, and each release carries wheels of the embedded engine.

Fixed

  • An eviction policy no longer empties the keyspace after a burst. A burst of writes could cut the controller's data target to 0. Evicted keys' memory stays resident, so RSS then sat between 90% and 100% of --maxmemory with no keys, and the target rose again only below 90%: every new write was evicted at once. The target now rises whenever RSS is under the limit, still at most one step ahead of the data held. On macOS, a write mix of every value type against a limit 25 MB over idle emptied the keyspace in 2 of 26 runs before and 0 of 80 after, with the same peak overshoot (1.44× and 1.43× of the limit). Hit rates in benchmarks/reproducers/eviction_hit_rate.py are unchanged.
  • FT.CREATE refuses under --profile kv. That profile sizes the vector graph for one vector, and FT.CREATE succeeded anyway: ingest kept one document and dropped the rest without an error, and FT.SEARCH answered from it (recall@10 0.002). It now answers an error naming the profile, so there is never an index to answer from, and hashes are stored as hashes.
  • A failed slab mapping exits with a message. When the kernel refused a mapping, the slab allocator handed out MAP_FAILED as memory and the worker crashed at the first write into it. It now exits with FATAL: out of memory mapping a N byte slab, as the hash table's mapping already did. A huge-page request falls back to normal pages on macOS, which has none.

Added

  • Wheels of the embedded engine on each release (experimental). pionlite 1.1.3 for Linux x86-64 and arm64 (manylinux_2_35, so glibc 2.35: Ubuntu 22.04, Debian 12 and later) and macOS 14+ arm64, Python 3.11+ (abi3). Each is installed and run in clean venvs before it is attached, and its sum is in SHA256SUMS. They are not on PyPI. The package, pion_embedded until this release, is now pionlite (import pionlite). It ships py.typed, and pionlite.asyncio.ConnectionPool.from_url("pion:///dir") gives a redis.asyncio.ConnectionPool on the engine.

Changed

  • Embedded engine (experimental): it logs to dir/pion.log, never to the host application's stdout; connections wait on a wake fd instead of polling (a blocked BLPOP answers a push in 0.34 ms, was 5.6 ms); CLIENT KILL, CLIENT LIST, MONITOR and the pub/sub output limit no longer pass a virtual connection id to the kernel, where it could name one of the host's own descriptors; the adapters wait with poll(), so descriptors past 1,024 work. The server's test tier runs through the library in CI on all three platforms.

[1.1.2] — 2026-11-15

AUTH checks the user name, pion-server --dir keeps a server's files in one locked directory, and an idle server holds 7.5 MB less.

Fixed

  • AUTH and HELLO … AUTH check the user name. With --requirepass set, Pion compared only the password, so AUTH <any name> <password> logged in as the default user. Only default, or a --tenant name with its own password, is accepted now; any other name is WRONGPASS, as in Redis. The password was still required. With no password set, AUTH default <anything> is OK, as in Redis, where Pion answered ERR; redis-py's credential providers send this form. AUTH <password> with no password configured, and AUTH with more than two arguments, now give Redis's errors. 14 probes, each with and without --requirepass, match Redis 8.10.3.
  • An eviction policy holds the limit after memory pressure. Below 90% of --maxmemory, the controller gave half the gap back to its data target every 10 ms, with no bound. RSS falls when the OS compresses (macOS) or swaps (Linux) the process's pages while the data stays the same, so a server under pressure wound its target far past anything it held. Then, when the pages came back, nothing was evicted until RSS passed the limit. Measured on macOS: 25 s of memory_pressure against a 126 MB limit took the target to 49 GB, and the writes that followed took RSS to 192 MB. The target now runs at most one step ahead of the data held.

Added

  • pion-server --dir PATH. The WAL, snapshot, blob arenas and vector index files go under PATH instead of the working directory, and the server takes an exclusive lock on PATH/pion.lock before it opens any of them. A second server (or an embedded engine) given the same directory exits with FATAL: --dir '…' is in use rather than writing the same log. Without --dir, files stay in the working directory and no lock is taken. The crash log and status file still follow --crash-log and --status-file.
  • embedded/: the engine as an in-process library behind redis-py (experimental). pion_embedded.Redis(dir=...) runs the KV engine inside the Python process, with no server and no socket, and writes the same WAL as the server, so pion-server --dir can open the directory after the app closes it. It is built from source (embedded/README.md) and not published; the package name is not final.
  • DEBUG MAXMEMORY-HIDE-RSS <bytes>, with --enable-debug-command: takes bytes off the RSS that --maxmemory reads, as compression or swap does. It is Pion's own subcommand, there for tests, because real memory pressure reaches a given process only some of the time.

Changed

  • An idle server holds 7.5 MB less. 33 per-connection tables of 65,536 entries each were written with zeros at startup. They are now mapped from the OS and stay untouched until a connection uses its entry. Measured on macOS, one worker, median of 3 interleaved starts against the 1.1.1 release: idle RSS 56.8 → 49.3 MB (default profile) and 29.8 → 22.3 MB (--profile kv); after 100,000 keys of SET and GET, 98.9 → 94.0 MB and 71.9 → 66.9 MB.

[1.1.1] — 2026-11-11

--maxmemory works with the write-ahead log on, and a GET over a large keyspace costs less server CPU.

Fixed

  • --maxmemory no longer refuses every write because of the log. Under the default policy, noeviction, the write-ahead log's resident pages counted against the limit, while the eviction policies already left them out. With the WAL on (the default), a server whose data held steady (overwrites only) refused every write once the log outgrew the headroom. Refused writes do not grow the log, so it never rotated and the refusal never lifted: 149,000 of 200,000 overwrites refused, against none with --no-wal. The limit now leaves the log out under every policy, and the log line for a crossing names the log's share (wal_mb=).
  • A SAVE no longer shrinks a cache under an eviction policy. SAVE empties the log, but its pages stayed mapped and resident while the count of them went to zero, so the controller took them for new data and evicted keys to pay for them. In the test, 50,000 keys fell to 33,400 and stayed there, every new write evicting one. SAVE now unmaps the log and maps it again, so its pages leave RSS with it.

Changed

  • A GET over a large keyspace costs less server CPU again. 1.1.0's 8-byte slots put a slot word between a key's metadata and its entry, a third dependent memory load on every GET, and the batched GET path built each string value into a GenericValue only to unpack it for the reply. The path now fetches the slot word together with the metadata and writes the reply from the value's stored bytes. Server cycles per GET over 5,000,000 keys, against the code before the slots: +3.7% at a 100-deep pipeline (1.1.0: +8.6%), +2.3% at 50 (+6.0%), +1.0% at 10 (+2.3%); instructions per GET on one key +0.6% (+1.9%). macOS, interleaved runs.

[1.1.0] — 2026-11-09

Keys can be evicted under --maxmemory, and on macOS a key now takes less memory than in Redis.

Added

  • Eviction. --maxmemory-policy (or CONFIG SET maxmemory-policy) evicts keys to hold RSS to --maxmemory, with Redis's allkeys- and volatile- lru, lfu and random and volatile-ttl. noeviction stays the default and its hot path is unchanged. maxmemory-samples, lfu-log-factor, lfu-decay-time, evicted_keys, OBJECT IDLETIME and OBJECT FREQ work as in Redis. An eviction logs a DEL, so a restart does not revive the key and a replica drops it. Redis 8.10's allkeys-lrm and volatile-lrm are not implemented. What differs because the limit is on RSS: doc/configuration.md.

Changed

  • A key costs less memory than in Redis. A keyspace slot is 8 bytes, the address of one allocation that holds the key and, for a string, its value; it was a 32-byte key and a 32-byte value. Hash tables (the keyspace, and every hash, set and TTL table) also grow past 7/8 full instead of 70%, and a table's arrays of 256 KiB or more are mapped from the OS and unmapped when the table grows or goes. Measured on macOS with 200-byte values, RSS for the data (loaded less idle): 200,000 keys 76.4 MB on 1.0.9, 46.4 MB now, 54.2 MB on Redis 8.10; 460,000 keys 155.0 → 109.2 MB (Redis 123.5 MB). From 100,000 to 460,000 keys a key costs 241–249 bytes, against Redis's 281–292, with no step where the table doubles. With 3-byte values, 200,000 keys take 6.4 MB (Redis 14.2 MB). Idle RSS read 56.7 MB in 8 of 10 starts, against 60.7 MB for 1.0.9, because an empty table's pages are never touched (the other two read 60.7 MB too). Against 1.0.9, SET takes 2.4–4.3% fewer instructions and MSET 2.9–3.4% fewer; GET takes 0.4% more on one key and 1.1% more over 225,000 keys. Over 5,000,000 keys at a 100-deep pipeline, the server spends 8% more cycles on a GET than 1.0.9 does (285 against 264); throughput read the same on both, because the benchmark client topped out at 10 million GETs a second. benchmarks/reproducers/memory_per_key.py measures it, and benchmarks/results/2026-11-09-mac-m4-memory/ has the runs.
  • Mojo 1.2.0. The toolchain moved from 1.1.0, with the closed vector library rebuilt on all three platforms. The engine needed one change: Mojo 1.2 refuses two signatures for one C function, and a Linux-only write() call declared a second one.
  • No compiler warnings. Mojo 1.2 printed 7,154 deprecation warnings building the server. Every site it reports, on macOS and both Linux targets and in the tests, now uses the 1.2 spelling: Pointer, unsafe_offset, unsafe_alloc, unsafe_free, unsafe_bitcast, unsafe_load/unsafe_store, abi("C") on the exported entry points, and deinit move move constructors. The 54 warnings about values nothing read are fixed as well: gone are 31 slow-path value() calls that each built a heap String, and a 4 MB buffer the XDP loop allocated and never used.

Fixed

  • A vector build no longer depends on the builds before it. HNSW levels came from the process's one random stream, which every build advanced, automatic builds included, so FT.OPTIMIZE built a different graph from the same vectors depending on what the server had built since it started. On one server, 22 builds of the same 1,500 vectors read recall@10 anywhere from 0.917 to 1.000. A node's level is now a fixed function of its position in the build, and the same 22 builds all read 0.967. A build of 4,096 vectors or more links on several threads, and their interleaving can still make two builds differ. tests/test_hnsw_build_history.py checks it.

[1.0.9] — 2026-11-04

Builds where the level-0 repair fires no longer lose recall.

Fixed

  • Builds where 1.0.7's level-0 exit repair fired lost a little recall. That repair gave each closed region (nodes a search could enter but not leave) one link out, and a query that landed in the region rarely found it: those builds read recall 0.935–0.936 against 0.941. Every node of a closed region now has its level-0 list rebuilt the way the build links a new node: a fresh search from the entry point, the usual neighbor selection, and backlinks. The log line is now [HNSW] level-0 exits: N node(s) that could not reach the entry re-linked. In 960 probe builds on GitHub's x86 runners it fired 11 times, and all 11 builds read 0.941, with no query under 0.5.
  • Linking in an unreachable node could open a closed region through that one node, leaving the same one-way-out shape. The node is linked from its closest reachable node, which can be a member of the region. One of the 960 probe builds read 0.936 with only the reachability line logged. Closed regions are now rebuilt before unreachable nodes are linked in. In 600 more probe builds with both fixes, the repair fired 12 times, and all 12 builds read 0.941. tests/test_hnsw_l0_exits.mojo covers both cases, and now also checks that most of a region's nodes link out of it (59 of 60; one link gave 1 of 60).

[1.0.8] — 2026-10-30

Keys with TTLs no longer slow down pipelined GETs, and non-GET commands do less server work per command.

Changed

  • A key with a TTL no longer slows down every GET. While any key in the keyspace had a TTL, the batched GET path (pipelined GETs on short keys) was switched off, and each GET paid about 200 more server instructions. That path now checks deadlines itself: a GET past its key's deadline still reads nil and removes the key. The TTL lookup also reuses the key's hash instead of computing it again.
  • SET, INCR, MSET and the other non-GET commands do less work per command. Each command made an out-of-line call to learn whether it began a run of GETs, and the call copied the whole command handler in and out. Only a frame that starts like a GET makes the call now, and the call takes two pointers. Server instructions per command, 2M pipelined commands on an M-series Mac, against 1.0.7:
no TTL in the keyspace a TTL in the keyspace
GET same −187 (−16%)
SET −120 (−7%) same
INCR −158 (−9%) +14
MSET (10 keys) −191 −416

The gain is in server CPU per command. redis-benchmark on the same machine is client-bound at these depths, so its RPS barely moves.

[1.0.7] — 2026-10-30

A vector index build always leaves level 0 strongly connected, so a search can never be trapped in one region of the graph. tests/test_hnsw_l0_exits.mojo (gate tier) checks it.

Fixed

  • An automatic or FT.OPTIMIZE build could leave a region of level 0 that a search could enter but not leave. After a parallel build, every node the entry point could not reach was linked in, but nothing checked the reverse: a set of nodes whose level-0 links all point back into the set. A query whose descent landed there returned that region's nodes at any EF_RUNTIME. One such build (60 of 6,000 nodes) read recall 0.908 against 0.941, with 13 of 400 queries under 0.5. Seen only on x86, in 4 of 480 probe builds on GitHub's runners; tests/test_vector_auto_build.py failed once at 0.856. A build now also gives every node a level-0 path back to the entry point, logged as [HNSW] level-0 exits: N closed region(s) linked back to the graph. In 360 probe builds after the fix it fired 7 times. Those 7 builds read 0.935–0.936, and none of them had a query under 0.5. Gate: tests/test_hnsw_l0_exits.mojo.
  • tests/test_kvprefix_xworker.py failed when every connection's accept went to one worker. It now reaches each worker through its affinity port (port + 2 + worker), and its default port no longer puts an affinity port on the Redis oracle's 6399.

[1.0.6] — 2026-10-25

Under -w N, every worker names every document of the vector index by its key. tests/test_vector_xworker_keys.py (gate tier): 14 of its checks fail on 1.0.5, none now.

Fixed

  • A key over 31 bytes came back as the slot number from every worker but the one that ingested it. The slot → key map every worker shares held keys of up to 31 bytes, and a longer key lived only in the ingesting worker's own map, so FT.SEARCH on any other worker answered 0, 17 and so on in its place, with no error. LangChain's keys (doc:<index>:<uuid hex>) are always longer, RedisVL's (<index>:<ULID>) nearly always; at -w 10, nine replies in ten. The shared map now holds keys of any length, and the index file carries them (an optional section, below). -w 1 was not affected.
  • After FT.DROPINDEX on one worker, the other workers' slot maps named the new index's slots. Only the worker that ran the drop (or an FT.CREATE that replaced the index) dropped its records of the old slot numbering. Another worker then answered a new long-key document with an old document's key, and after a restart it linked its old hashes to the new index's slots: deleting an old document took a new one out of the results. Every worker now drops its own records when the numbering moves on, before it records anything (WAL record 48), and a restart links a hash only when the shared map names its key.
  • The worker that built an index refused the next one after FT.DROPINDEX on another worker. It kept its graph, and with it the old name, so FT.SEARCH of a new index answered ERR index 'b' is not the index loaded on this server ... currently serves 'a' until the new index was built. It now reads the registered name while its own graph serves nothing.

Changed

  • The index file can carry one more optional section (header word 25, bit 11): the keys over 31 bytes. The version stays 5. 1.0.5 reads such a file and stops before the section, naming those documents as before; a file 1.0.5 or earlier wrote loads in 1.0.6, which fills the keys in from each worker's slot map at startup (doc/operations.md §3c).
  • FT.DROPINDEX pauses ingest while the slots start over: an HSET on another worker meanwhile is stored, not indexed, as RediSearch has no index then. An FT.CREATE that replaces an index already did.

[1.0.5] — 2026-10-24

The vector index's records are no longer keys. Each document the index ingests gets a slot, and the worker that ingested it kept the slot's key as a key of its own, __hk__<slot>, and the slots that died as a set, __hk_dead__. Clients saw them, and could break the index by deleting them. They are now tables beside the keyspace. tests/test_vector_slot_map.py (gate tier): 102 of its checks fail on 1.0.4, none now.

Fixed

  • DBSIZE, KEYS, SCAN, RANDOMKEY and INFO's key count see only the client's keys. 20 indexed documents read DBSIZE 40, and a replica's keyspace held the same extra keys.
  • Deleting those keys no longer breaks the index. After SCAN MATCH __hk__* and DEL, or any cleanup of keys a client did not write, a restart left every document deleted afterwards in the FT.SEARCH results: nothing linked its hash to its slot any more.
  • A client's own key named __hk__7 stays the client's. Ingesting slot 7 overwrote it, FT.DROPINDEX ... DD deleted it, and a new build deleted a client's set named __hk_dead__.

Changed

  • The index file is version 5 (version 4's layout). 1.0.4 and earlier refuse it with HNSW snapshot version 5 unsupported (want 3 or 4) and serve no index; FT.CREATE there indexes the existing hashes again. They would otherwise load it and answer wrongly with no error, because they read the slot map from keys this release no longer writes. Upgrading needs nothing: the __hk__ keys a data directory from 1.0.4 or earlier holds are read into the new tables. doc/operations.md §3c has both directions.
  • The slot map and dead slots are WAL records 46 to 48, and every snapshot and BGREWRITEAOF writes them.

[1.0.4] — 2026-10-23

FT.* against RediSearch, option by option. 1.0.1 to 1.0.3 each fixed one FT.CREATE option that was accepted and never applied. A new test sends every FT.CREATE, FT.SEARCH and FT.DROPINDEX option to Pion and to RediSearch (Redis 8's search module) and compares the answers. It found the rest of that class. Each option is now applied as RediSearch applies it, or refused. tests/test_ft_differential.py (gate tier, needs a RediSearch module): 509 steps, 159 divergences on 1.0.3, none now beyond the 88 documented in tests/ft_differential_known.tsv.

Fixed

  • FT.SEARCH ... LIMIT <offset> <count> applies the offset, and the total is every hit. LIMIT 2 3 answered with the first three hits, and the reply's total was the page's size, so a client paging through results got the first page every time.
  • FT.SEARCH ... SORTBY is applied. It was read and dropped: the hits came back by distance whatever was asked, DESC included. It now sorts the KNN hits by the score or by a schema field, before LIMIT, with RediSearch's order for documents without the field (last) and for ties.
  • TAG filters match tags, as RediSearch indexes them. The stored value is split at the field's SEPARATOR (, by default), trimmed, and compared ignoring case unless the field is CASESENSITIVE. The whole value was compared byte for byte: a document tagged a,b matched neither {a} nor {b}, and {A} did not match a.
  • NUMERIC filters are doubles, and ( bounds work. Bounds and values were Float32, which cannot tell 1,700,000,014 from 1,700,000,000: a timestamp range matched documents up to 128 s outside it. Exclusive ( bounds were refused. A value that is not a number now fails the clause; it read as 0.
  • A filter must name a schema field of its kind. A clause on a field the schema lacks read the hash anyway, and a range on a TAG field read a as 0.0 and matched. Both are now RediSearch's errors. A NOINDEX field matches nothing, as in RediSearch.
  • A field changed after a build is seen by filters. The build kept a copy of each document's TAG and NUMERIC values for the graph path, which went stale: HSET doc cat x after a build, and {x} did not find it.
  • An expired document is not returned. FT.SEARCH returned a document past its key's TTL until the active sweep reached the key. It now expires it on read, as any Redis read does.
  • FT.CREATE refuses what it does not apply. It picked out the words it knew and took every other word for a field name, so these answered +OK and changed nothing: ON JSON (the hashes were indexed), FILTER, TEMPORARY, AS aliases (nothing was indexed), TYPE FLOAT16, BFLOAT16, INT8, UINT8 and FLOAT64 (blobs read as FLOAT32), a second VECTOR field (the first was dropped), a bare VECTOR with no algorithm, a missing TYPE or DIM, DIM 0, a vector attribute count that did not match, an unknown option or field type, and a missing SCHEMA. Each is now refused, and the refused FT.CREATE changes nothing. The full-text index's options are accepted, as they change no answer Pion gives.
  • FT.SEARCH refuses the options it does not apply. An unknown option was skipped, so INKEYS and GEOFILTER answered as if absent, and WITHPAYLOADS, WITHSORTKEYS and EXPLAINSCORE returned a reply of the wrong shape. They are refused, as is any unknown option.
  • FT.DROPINDEX ... DD deletes the documents. It was read and dropped. Under -w N, where each worker holds its own documents, DD is refused. Any other argument is refused; it dropped the index.
  • FT.SEARCH on a dropped index is an error. After FT.DROPINDEX, or an FT.CREATE that was refused, it answered from the vectors the old definition kept routing, while FT.INFO said Unknown index name.
  • FT.INFO num_docs counts documents, not slots. It counted every vector ever written, so it only grew: two deletes and an update on 40 documents read 41.
  • Scores after an automatic build are exact. The graph's hits were scored from their INT8 codes when no vector had been written since the build (+1.3% on squared L2 at DIM 8). The FP32 rows the build keeps now score them.

Added

  • FT._LIST, which RedisVL calls to check that an index exists.
  • The schema (fields, kinds, SEPARATOR, CASESENSITIVE, NOINDEX) is saved with the index (index-file word 25, bit 10), so a restart keeps the filter rules. A file written before 1.0.4 has none: it loads as before, and its filters read any hash field. tests/test_ft_schema_restart.py (gate tier).

Changed

  • A TAG filter reads the stored value as a tag list (split at ,, or the field's SEPARATOR), ignoring case unless the field is CASESENSITIVE, as RediSearch does. It compared the whole value byte for byte.
  • A filter on a field the index's schema lacks, or of the other kind, is an error. It read the hash.
  • Options FT.CREATE and FT.SEARCH used to accept and ignore are refused (above). A client that sent one gets an error where it got an answer that did not do what it asked.

Remaining differences from RediSearch are listed in doc/vector_engine.md.

[1.0.3] — 2026-10-23

FT.CREATE ... PREFIX is applied: an index holds only the hashes under its prefixes, as in RediSearch.

Fixed

  • FT.CREATE ... PREFIX is applied. It was accepted and never applied, so an index on PREFIX 1 doc: took every hash with its vector field and DIM, whatever its key. From 1.0.1, FT.CREATE's backfill took all of them at once. A search could answer with documents that were never part of the index. Now only a hash whose key starts with one of the prefixes is indexed, as in RediSearch:
  • The match is byte for byte and case-sensitive, and several prefixes are ORed.
  • PREFIX 0, an empty prefix, or no PREFIX means every key.
  • A hash renamed out of the prefixes leaves the index, and one renamed in joins it.
  • A write outside the prefixes is not counted in vector_unindexed_writes.
  • The list is saved in the index file, so a restart keeps it.
  • FT.CREATE with a different list replaces the index, as a different name or DIM does.

At most 16 prefixes of up to 63 bytes are supported. More is refused, never cut short. An index file written before this release holds no list, so it keeps answering for every key until FT.DROPINDEX and FT.CREATE. A client that re-creates its index at startup with a PREFIX replaces it once, and the new index is built from the hashes under the prefix. Test: tests/test_ft_create_prefix.py (gate tier; 26 failures on 1.0.2). Its --oracle PORT runs the shared cases against a live RediSearch, which gives the same answers.

[1.0.2] — 2026-10-22

After a restart, a vector index that built itself keeps indexing what is written next. An index FT.OPTIMIZE built still takes no new vectors, but now counts them and says so. A dropped index stays dropped.

Fixed

  • After a restart, a vector index loaded from its file indexed nothing written afterwards, and nothing said so. It served the vectors it was built with. FT.SEARCH missed every vector written after the restart, with no error, and INFO vector_unindexed_writes read 0. Only FT.DROPINDEX followed by FT.CREATE brought those vectors in. A restart now leaves an index as its build left it:
  • An index that built itself (no FT.OPTIMIZE) keeps indexing. Its file records that it was built automatically. Before any worker serves, each one puts back the FP32 rows of the documents it holds, since the file has the graph and not those rows. The documents written after the build become the delta again. A vector written after the restart is found at once, and the index rebuilds itself as before.
  • An index FT.OPTIMIZE built keeps ingest closed, as that command says. A vector written to it after the restart is now counted in vector_unindexed_writes, and the log says at startup that ingest is closed. A file written before this release loads the same way, because it does not record how its index was built. FT.DROPINDEX followed by FT.CREATE indexes every hash, and the next automatic build's file records it.

Test: tests/test_vector_restart_ingest.py (gate tier; 31 failures on 1.0.1). - A dropped vector index came back after a restart. FT.DROPINDEX left the index file, pion.hnsw.0, in place, so after a restart FT.INFO knew the dropped index again and FT.SEARCH answered from it. Dropping an index now deletes its file, and so does an FT.CREATE that replaces an index of another name or DIM. - A key over 31 bytes could be answered as another document's key. The slot-to-key map keeps keys of up to 31 bytes, and a longer key is resolved from the keyspace only when the map has nothing for its slot. After FT.DROPINDEX and FT.CREATE numbered the slots again, a long key whose slot an earlier short key had held came back from FT.SEARCH as that short key. Writing a long key now clears its slot in the map.

[1.0.1] — 2026-10-22

FT.CREATE indexes the hashes already in the keyspace, as RediSearch does, so an index created over existing documents, or re-created after a restart, no longer answers [0]. SKIPINITIALSCAN keeps the old behaviour.

Fixed

  • FT.CREATE indexes the hashes already in the keyspace, as RediSearch does. It used to index only what was written after it, so an index created over existing documents answered [0] with no error, and every document had to be written again. The same happened after a restart to an index whose DIM differs from the server's --dim: its file is not restored, and re-issuing FT.CREATE gave back an empty index while every hash was still in the keyspace. Every worker indexes its own keyspace; the one that ran FT.CREATE does so before it answers. SKIPINITIALSCAN keeps the old behaviour, and re-issuing FT.CREATE for the index being built adds nothing. Test: tests/test_ft_create_backfill.py (gate tier; 17 failures on 1.0.0).
  • doc/vector_engine.md said re-issuing FT.CREATE after a restart indexes the vectors written since. It never did for a served index. FT.DROPINDEX followed by FT.CREATE now does, because the new index takes every hash in the keyspace.

[1.0.0] — 2026-10-22

1.0 means the documented surface can be relied on, not that Pion does more. 0.9.0 shipped as a public preview and listed its gaps. 1.0 is measured against what was set for it then:

  • TLS is documented at a proxy. Pion has no TLS. doc/operations.md §6 puts stunnel in front of a loopback server with a password, and tests/test_tls_proxy.py runs that recipe as written in the gate tier.
  • Memory has a ceiling. --maxmemory (or CONFIG SET maxmemory) refuses memory-growing writes with Redis's -OOM error at a bound on RSS, the number INFO reports as used_memory. Nothing is evicted.
  • Linux binaries come from CI. x86_64 and arm64 tarballs and a multi-arch container image, each leg gated before it is packaged, since 0.9.0.
  • A value receipt. PION.STATS and the # Pion section of INFO report prefill time avoided, measured when the client reports its cold prefill and labelled an estimate when it does not.
  • No open bug reports. None is open on the public tracker at release.

What "relied on" covers is the README's What works, each part in the gate tier: the prompt cache for mlx-lm and its endpoint for coding agents, the Redis-compatible KV store with its write-ahead log, and vector search with the semantic cache. The README's Experimental table (cluster and replication, tenant binding, AI.COMPLETE, AI.CHAT, AI.FLARE.*, RedisVL and LangChain through their Redis clients) stays in the tree, labelled, outside that promise.

The 0.9.0 list, revisited:

  • No TLS: unchanged; documented and tested at a proxy, as above.
  • No eviction: unchanged; --maxmemory refuses, it does not evict.
  • -w N is N independent keyspaces: unchanged, and still refused without --independent-workers. One keyspace can now use more cores with --io-threads N: one executor runs every command, N-1 threads own the sockets.
  • Cluster mode is single-node: unchanged, and labelled experimental.
  • CUDA is source-build only: unchanged.
  • One maintainer: unchanged. Crash, desync and data-loss reports come first.

Removed

  • Five experimental engine planes are gone: AI.ROUTE.* (the semantic router), RAG.SPECULATE.* and RAG.QUERY, AI.KNN_LM.*, NEURON.PKM.* and MOE.EXPERT.* with its --moe-cache / --moe-cache-mib flags, its warm pool (src/ffi/moe_warm_pool.c) and the build-iouring variant that existed for it. That is 30 commands. None had a published measurement of what it buys or a user outside this project. The moe_hits / moe_misses fields leave PION.STATS (now a 14-pair map) and INFO. Each event loop no longer drains the MoE warm pool on every tick. The product-key kernels stay in the vector library, which ships them unchanged, and the differential test still checks them against the open reference.
  • The Python packages that nobody used are gone from the tree: pion-serve, vllm-pion, the MCP server (mcp/) and pion_context, pion-exo, flare_gateway, pion_glide, and the LMCache, LangGraph, AutoGen and LlamaIndex packages, about 19,000 lines. Each was experimental, none was ever on PyPI, and none had a user outside this project. The demos and benchmarks that existed only for them went too: the CAG legal demo, the GLIDE demo and pion-serve's cache-hit suite. pion-vllm-mlx is unchanged and is the one Python package. No engine command changed: ATTEND.*, KV.PREFIX.*, AI.FLARE.* and LMCache's RESP connector (resp://) work as before. The two RESP clients that engine tests borrowed from these packages now live in tests/ (pion_store.py, attention_client.py).

[0.9.10] — 2026-10-20

A vector index answers without FT.OPTIMIZE, so a stock Redis client that creates an index, HSETs and searches gets results; it used to get [0]. The graph builds by itself once inserts pause, and vectors written after it are searched exactly until the next rebuild. Those exact searches are slow on a large index: on an EPYC 8124P at 500K vectors a query takes 1.6 ms from the graph and 190 ms during a rebuild (doc/vector_engine.md). FT.SEARCH scores from an INT8 index no longer read high on real embeddings. The README's comparisons are re-measured on that EPYC: about 2.4x RediSearch's vector queries per second at 500K, not 3.5x, with the cases where Pion loses named, and the one-keyspace KV table with --io-threads.

Added

  • A vector index answers without FT.OPTIMIZE. A stock Redis client (RedisVL, LangChain, VectorDBBench's own) creates an index, HSETs and searches, and never sends FT.OPTIMIZE; it used to get [0] back. Now, until the graph exists, FT.SEARCH answers exactly from the inserted vectors (same reply, same score units, FILTER and deletes honoured). Once inserts pause for 200 ms, the graph builds on a background thread while searches stay exact, and is then published and saved. A vector written after that build is scanned exactly and merged into every search, and a tenth of the index written that way triggers a rebuild. FT.INFO counts the vectors searchable before a build, and INFO reports vector_index, vector_graph_rows, vector_exact_rows, vector_auto_builds and vector_unindexed_writes. An explicit FT.OPTIMIZE keeps its meaning: build now, and later HSETs are stored but not indexed (now counted). FT.HYBRID and FT.SEARCH … HYBRID take the same exact path. doc/vector_engine.md, "Searching without FT.OPTIMIZE".
  • The graph build uses one link lane per CPU (4 to 16; it was always 4). PION_BUILD_LANES=N overrides it.

Changed

  • The README's one-keyspace KV table is re-measured with --io-threads. On an AMD EPYC 8124P (2026-10-12), Pion 0.9.9 at --io-threads 8 led Redis 8.10.2 at io-threads 8 at every pipeline depth, and with both persisting at P=10. The README and the landing page no longer say that Redis's I/O threads win at shallow pipelines. Raw output: benchmarks/results/2026-10-12-linux-epyc-8124p/.
  • The 32-keyspace KV figure (15.9M ops/sec) is no longer quoted. In those runs Pion's 800 connections landed on about half of its 32 workers, while each Redis process got exactly its own client's. The idle workers left the shared machine's CPU to the client, so the runs measured that asymmetry, not either server. The 2026-10-06 results page explains it from the GET hit rates. The KV tile now leads with one keyspace (2.97M against Redis's 1.66M at P=10), next to the 16-keyspace comparison, where Redis leads.

Fixed

  • A worker that served another worker's index could build into that worker's buffers. Borrowing an index overwrote the borrower's own arrays, and giving it back only cleared a flag. An FT.OPTIMIZE that then landed on the borrower wrote into the owner's graph. Borrowers now keep their own arrays and take them back. A borrow of an index that was since replaced is noticed and renewed. A worker whose own graph is no longer the published index stops searching it.
  • FT.OPTIMIZE freed the ingest buffer while other workers could still write to it or read it. It now waits for them first, as FT.DROPINDEX does.
  • Writing the same vector again before a build listed the document twice. The identical rewrite now keeps its one slot, as it already did after a build.
  • FT.OPTIMIZE with nothing new to build republished the worker's own graph, which on a worker that had not built the index was an empty one. It now keeps the served index.
  • FT.SEARCH scores from an INT8 index read high on real embeddings. The quantizer's calibration clips the few near-constant outlier dimensions that OpenAI embeddings have (to mean ± 8 sigma); that costs search nothing, but the score compared the unclipped query with the clipped codes and counted the difference: on OpenAI-50K, 1 - cos read 0.094 high on average. A client that thresholds on the score was misled. The score now clamps the query to the same range, and reads each code from the middle of its quantization step (the quantizer truncates). On the same data the error is now under 0.002.

[0.9.9] — 2026-10-11

FT.SEARCH, FT.HYBRID and FT.INFO answer RESP3 connections with RediSearch's maps, so redis-py 8's ft().search() and ft().info() work against Pion with default settings. FT.SEARCH also honours RETURN, NOCONTENT and WITHSCORES, and a KNN query without RETURN sends the score and every field of the hash, as RediSearch does. Code that indexes a raw reply as a list, or reads the score by the name score without AS score, needs the change described under Changed. --io-threads N serves one keyspace from N threads. The full test tier passes on macOS as well as on Linux (x86-64 and arm64): the four macOS failures 0.9.8 shipped with were test bugs.

Added

  • --io-threads N: one keyspace served by N threads. -w N gives N independent keyspaces; --io-threads N (with -w 1) keeps one, as Redis's io-threads does: the worker thread executes every command, and N − 1 I/O threads accept, receive and send. The executor still owns every piece of command state, so nothing it runs takes a lock. The I/O threads poll with epoll on Linux and kqueue on macOS. The default stays 1, the single-thread loop, which measured the same as before on the Mac KV gate (geometric mean 1.0000 over 21 rows, paired). On a Mac with the client on the same machine it lowers throughput, as Redis's io-threads does there (Mac results). It is meant for a Linux server with cores to spare; those numbers are not in yet. PION_IO_THREADS=N makes N the default for every server a test tier starts.

Changed

  • A KNN FT.SEARCH without RETURN sends what RediSearch sends: the score, then every field of the hash, the embedding included. It sent id and score only. The score's field is named by the KNN clause's AS alias, or __<field>_score without one, where Pion always called it score: code that reads it by name and has no AS score gets __<field>_score now. A caller that needs only the keys should pass RETURN 1 id or NOCONTENT. Pion's own tools are updated: pion-mcp's memory search, pion-autogen and pion-llamaindex name the score with AS score; pion-serve and the pipelined and corpus benchmarks ask for RETURN 1 id; pion_glide decodes a non-UTF-8 field (the embedding) instead of dropping every result. The BM25 and HYBRID forms of FT.SEARCH, and FT.HYBRID, are Pion's own syntax and keep id and score.
  • On a RESP3 connection a raw FT.SEARCH, FT.HYBRID or FT.INFO reply is a map, as from RediSearch. redis-py 8 opens RESP3 by default, so code that calls execute_command("FT.SEARCH", …) and indexes the reply as a list (hits[0], hits[1]) now gets a dict, as it would from Redis. Use redis-py's r.ft(index).search(…), which reads either protocol, or connect with protocol=2. The README's quick start uses r.ft().search() now, and Pion's integrations (pion-mcp, pion-autogen, pion-llamaindex, pion_context, pion-serve) ask for RESP2, so they keep working on redis-py 8.

Fixed

  • FT.SEARCH, FT.HYBRID and FT.INFO answer RESP3 connections in RediSearch's RESP3 shape. redis-py 8 negotiates RESP3 by default, and its search module then reads these replies as maps. Pion sent its RESP2 arrays on every connection, so with redis-py's default settings ft().search() and ft().info() failed inside redis-py. A RESP3 FT.SEARCH reply is now the map RediSearch sends (attributes, format, results, total_results, warning, one map per document with its fields under extra_attributes), and FT.INFO is a map with num_docs an integer. RESP2 replies are unchanged. Pion's own tests pinned protocol=2, which hid it; it turned up while writing a VectorDBBench client.
  • FT.SEARCH honours RETURN, NOCONTENT and WITHSCORES, and answers KNN 0. It ignored all three and sent id and score for every document. RETURN body, RAG's basic call for a document's text, came back without the text; NOCONTENT made redis-py read each document as two; WITHSCORES crashed redis-py's parser; KNN 0 was an error where RediSearch returns an empty result. Each now answers as RediSearch does, in RESP2 and RESP3: RETURN sends the named fields, renamed by AS, the KNN score first when named (its alias, or __<field>_score), a missing field left out, and RediSearch's own errors for a bad count; RETURN 0 is NOCONTENT; WITHSCORES sends the query's text score, 0 for *=>[KNN …]. A score between -1 and 0 also no longer breaks the reply's framing: its bulk length was one byte short.
  • test_kv_prefix_workload checks a cache hit against the cache it fetched. Its 99% first-token check failed 49 of 50 on every macOS full tier since 0.9.7, whose entry put that down to the fp16-stored cache. That was wrong. The model's cache is fp16 already, and mlx-lm's own in-memory prefix cache, with no Pion involved, picks the same other token: prefilling the prefix and then the question rounds differently from one pass over both, and that request's top two tokens are 0.016 logits apart. Pion's fetched cache gave logits bit-equal to the in-process cache's on all 50 requests. A hit is now checked against the same K/V rebuilt in process (bit-equal logits required for fp16 storage of an fp16 cache), a miss against the cold prefill, and agreement with the one-pass baseline is printed, not gated. With int8 storage the check fails, as it should: 0 of 45 hits bit-equal.
  • The long-context tests pass in the macOS full tier. test_long_context_niah prefilled in one unchunked forward by default, unlike its two siblings and mlx-lm: at 16K that peaked at 14 GB on a 16 GB Mac and swapped (a vanilla trial took 57 s against 9.3 s chunked). It now uses 2048-token chunks. The three tests also declare timeouts; they had run under the runner's 120 s default and take 254, 792 and 862 s.

[0.9.8] — 2026-10-10

A worker starts 44 MB smaller, and on Linux its memory no longer grows with its first traffic and first 1,000 lists. PFADD no longer leaks about 64 bytes for every element longer than 23 bytes. --epoll on x86-64 no longer drops connections under concurrent load. A prompt-cache hit from another process on the same machine maps a file instead of copying over TCP (37.0 ms against 67.4 ms at a 2,049-token prefix). FT.OPTIMIZE builds 28–33% faster with the same graph, and pion-vllm-mlx 0.1.6 ships the serve command. The full test tier now passes on Linux (x86-64 and arm64) as well as macOS.

Added

  • A prompt-cache hit on the same machine maps a file (V.EXPORT). A hit from another process used to copy the prefix's K/V over loopback TCP and rebuild MLX arrays from it: 67.4 ms at a 2,049-token prefix on Llama-3.2-1B, where mlx-lm's own cache file takes 37 ms. The server now writes the prefix once as safetensors in mlx-lm's cache layout, and PionPromptCache maps it with mx.load: 37.0 ms, the same first token. The server picks every name and only a local peer may ask; files are 0600 in a 0700 directory ($PION_EXPORT_DIR, default ./pion-export) and are replaced when either session changes. A remote client, or PION_PROMPT_CACHE_NO_EXPORT=1, keeps the TCP lane. benchmarks/reproducers/cross_process_ttft.py times both.

  • TLS in transit, as a tested recipe. doc/operations.md §6: Pion on loopback with a password, stunnel in front, redis-cli --tls and redis-py over it, and what the proxy does not cover. tests/test_tls_proxy.py runs the recipe as written.

  • Three Mojo packages built from Pion's own source. packages/ builds pion_resp (the RESP2/RESP3 request parser), pion_slab (the slab allocator and object pool) and pion_simd (the open vector-distance kernels) from the files under src/ the server compiles, with no second copy. packages/build.py assembles each one, rewrites Pion's absolute imports to package-relative ones, precompiles it, and runs its tests; the gate tier runs it (tests/test_mojo_packages.py). Each package has a draft recipe for the modular-community channel; none has been submitted.

Changed

  • A worker starts 44 MB smaller, and its RSS no longer creeps up on Linux. Each worker pre-built 1,000 lists and 1,000 sorted sets at startup, and none was used as built. A list's 24 KB of buffers was freed and replaced on first use, and a sorted set was constructed over (which leaked the pre-built one). Those pools now hold zeroed objects, as the objects past the 1,000th always were. On macOS, where the pre-built objects were resident from the start, an idle worker goes from 107 MB to 62.6 MB. On Linux they were allocated lazily, and RSS grew ~24 KB for each of a worker's first 1,000 lists and then stopped. The io_uring loop also faults its 4 MB of receive buffers in at startup. Before, RSS grew by up to 4 MB over the first 4 MB a worker received. Neither was a leak, but both read as one: the full test tier's RSS tests failed on Linux for them.

  • FT.OPTIMIZE builds 28–33% faster, with the same graph. The build scores a node's neighbors eight at a time through the SABD+UDOT kernels, in its search layer and in its backlink eviction scan. A serial build writes a byte-identical index file. 50K OpenAI vectors on an M4 mini: 5.3 s to 3.85 s at 1536 dims, 3.55 s to 2.4 s at 1024, 1.85 s to 1.33 s at 512.

  • Search at 1024 dims uses 27% less CPU per query. 512 and 1024 dims used to score one neighbor per call through a generic kernel; every non-1536 INT8 beam now goes eight at a time. Results are unchanged.

  • VSIM scans a set with one GEMV. On macOS through Accelerate, elsewhere with a four-chain FMA kernel: 0.17–0.22 ms to 0.083 ms per call on 1,000 vectors of 1536 dims. kNN-LM's brute-force path uses the same kernels, 1.4–1.6× faster.

  • --metal-attention-fp16 stores session K/V as half. The fp16 kernels converted every element on load, so they streamed twice the bytes they used: ATTEND.PREFIX.QUERY 1.2–1.3× faster, half the memory per session. Output moves in the sixth or seventh significant digit; Llama-3.2-1B decode still matches vanilla mlx-lm token for token.

  • pion-vllm-mlx serve measured against the alternatives. One recorded Claude Code session (21 requests, 14K-21K-token prompts) replayed against stock mlx-lm, Ollama, LM Studio, oMLX 0.7 and serve, with a restart after turn 10 and a second session's first request: tokens reused and time to first token, on Llama-3.2-1B and on Gemma-4-E2B (a hybrid model). Only oMLX and serve skip the re-prefill after a restart and share the system prompt with a second session. oMLX also does both on the hybrid model, which serve does not, and reached the first token sooner from the start command. Harness with a recording proxy: benchmarks/reproducers/agent_session_ab.py; tables in doc/coding_agents.md; raw results, without reply text, in benchmarks/reproducers/results/agent_session_ab_2026_10_07/.

  • pion-vllm-mlx serve is a command now. The package declares a pion-vllm-mlx console script (pion-vllm-mlx serve ..., also python -m pion_vllm_mlx serve ...). The serve module's own docstring named that command since 0.1.x, but no release installed it, so the only way to start serve was python -m pion_vllm_mlx.serve, which still works. The package version is 0.1.6, so the next tag uploads it to PyPI; the release job skips a version PyPI already holds. serve --help now lists serve's flags before mlx-lm's. New guide: doc/coding_agents.md. New gate test: tests/test_vllm_mlx_serve.py checks the command, the Anthropic and Responses translation, and a SIGKILLed serve answering its next request from Pion with an identical greedy reply. Until now serve's tests ran only in the full tier.

  • The README documents three things, and marks the rest experimental. The README described about thirty planes, many with no outside user and several with no test of their own. It now leads with the three that Pion's gate tier covers: the prompt cache for mlx-lm with pion-vllm-mlx serve, the Redis-compatible KV store with its WAL, and vector search with the semantic cache. Everything else moved to an Experimental table that says what tests each part: the pion-serve proxy, the MCP server, cluster mode and replication, tenant binding, AI.COMPLETE / AI.CHAT / AI.ROUTE.* / RAG.* / FLARE, AI.KNN_LM.* and NEURON.PKM.*, MOE.EXPERT.*, pion-exo, vllm-pion, the LangGraph, AutoGen and LlamaIndex packages, the LMCache backend, pion-glide, and RedisVL and LangChain through their Redis clients. Each part's own page now opens with an Experimental banner, and tests/test_experimental_banners.py (gate) keeps the table and the banners in step. Nothing was deleted; whether any part should be is a separate decision. The install, Docker and architecture detail the README carried is in doc/operations.md and doc/architecture.md.

Fixed

  • PFADD leaked ~64 bytes for every element longer than 23 bytes. The element was copied to the heap to be hashed, and the copy was never freed, so a HyperLogLog of user ids, emails or URLs grew the server by its input. It now hashes the bytes in place. WAL replay of PFADD leaked the same way at startup.

  • pion-exo could not be imported on Python 3.10–3.13. Two classes define a redis property and annotate a later method -> redis.Redis; before 3.14 that annotation is evaluated in class scope, where redis is the property, and the import raised AttributeError. The package declares Python 3.10 and up. Annotations are now deferred.

  • --epoll on x86-64 dropped connections under concurrent load. Linux x86-64 packs struct epoll_event to 12 bytes; the loop read each event as a 16-byte struct (the aarch64 layout), so only the first event of every epoll_wait batch decoded correctly. The rest came from the wrong bytes, and a garbage mask carrying EPOLLERR or EPOLLHUP made the loop close a healthy connection: memtier saw Connection reset by peer in 8 of 9 runs. Events are now read through per-target helpers, and tests/test_epoll_event_layout.mojo decodes three ready fds from one epoll_wait. Fixed, --epoll serves 126K / 969K / 1.92M ops/s at pipeline 1 / 10 / 50 on an EPYC 8124P, ahead of the default io_uring loop (115K / 855K / 1.60M); raw runs in benchmarks/results/2026-10-09-linux-epyc-8124p/epoll_event_layout/. The default io_uring loop and aarch64 were not affected.

  • serve re-prefilled every request on hybrid models. To journal answers for resume, serve forces mlx-lm's single-request path, and that path skips the cache snapshots mlx-lm's batched path takes at segment ends, which are the only in-process reuse a sliding-window or recurrent cache gets. On Gemma-4-E2B a Claude Code session reused 0% of its prompt through serve against 98.4% on stock mlx-lm. Pion stores nothing for such a model, so there is nothing to resume from: serve now keeps the batched path and skips the Pion tier on hybrid models, and logs once that it does. tests/test_vllm_mlx_serve.py checks the in-process reuse on Gemma-4-E2B when the model is cached.

  • Server code that only compiled because nothing elaborated it. mojo precompile type-checks every function, and it rejected four spots the server build never reaches: def deinit(owned self) methods with no callers in the slab allocator, object pool and buffer pool (owned is gone in Mojo 1.1; renamed free_all(var self)), the legacy __moveinit__ form in the first two (now __init__(out self, *, deinit take: Self)), and an Int-to-Int32 SIMD construction in pq_distance_8way.

  • src/common/version.mojo says 0.9.7. The 0.9.7 release PR set VERSION without committing the stamped version.mojo, so the v0.9.7 source still said 0.9.6. The release binaries report 0.9.7+720a55c, and pixi run build stamps the file from VERSION. A build that compiles src/main.mojo without the stamp step reported 0.9.6, and the conda recipe was one. CI now fails when the two disagree.

[0.9.7] — 2026-10-07

Every harness, reproducer and example now builds its prompt with exactly one <bos>. A stray second one mid-prompt had broken the 64K sparse-mask NIAH reproducer and moved several published figures. The 64K result is back at 437× with its raw output, and the figures the stray tokens inflated are corrected: quantized-tier BLEU, hybrid-retrieval agreement, and RULER. pion-vllm-mlx 0.1.5 carries the corrected figures and the one-<bos> guidance to its PyPI page. The server is unchanged from 0.9.6, and the two read each other's data.

Changed

  • pion-vllm-mlx 0.1.5: documentation only. 0.1.4's PyPI page showed the pre-0.9.6 TTFT figures and a hybrid-retrieval result the stray <bos> inflated (3.0×, 98.3% token agreement). It now shows the 2026-10-07 measurements, each linked to its harness and raw output: 26× in the same process, 17× over the wire, and hybrid retrieval at 3.5× with 96.1% agreement. The HybridRetrievalCache docstring now says to encode a query or chunk that follows other tokens with add_special_tokens=False. The code and its dependency bounds are unchanged from 0.1.4.

Fixed

  • examples/sparse_mask_64k_niah.py finds the needle again. It built its prompt from separate tok.encode() calls, and the Gemma 4 loader turns on add_bos_token, so each call began with <bos>: the 64K prompt held 397 of them, through the filler and before the needle and the question, and neither vanilla mlx-lm nor Pion found the needle. The prompt now has one <bos>, at position 0.
  • Six more harnesses put a second <bos> mid-prompt, and now build prompts with one. test_long_context_niah, test_long_context_niah_multi, test_ruler_subset and test_hybrid_per_layer_agreement (Gemma 4), and test_kv_prefix_workload and bench_w1_stage2 (Llama 3, whose tokenizer prepends <|begin_of_text|> on every encode() too). They build prompts through tests/_prompt_ids.py, which refuses a prompt with any <bos> but the first, and tests/test_prompt_bos.py (gate) checks every builder against the real tokenizers. Re-run on 2026-10-07: every long-context test passes, and RULER's multi-value NIAH, which lost a value on every path with the stray tokens (F1 0.80 at 4K), scores F1 1.000 at 4K, 32K and 64K. The per-layer agreement test, which failed with them (5/16), agrees 16/16.
  • The rest of the class: reproducers, BLEU, hybrid retrieval. tools/audit_prompt_bos.py reads every tracked .py and reports a plain encode() piece placed after another piece; it found 47 sites in 21 files, and CI and the gate now run it (tests/test_audit_prompt_bos.py, canaried). The rest are fixed: the hybrid-retrieval reproducers, demo, tests and the HybridRetrievalCache docstring; test_kv_prefix_bleu, test_kv_prefix_cross_instance, test_prompt_cache_workload, test_wire_sparse_consumer, test_boundary_protect and two benches. The cross-process TTFT reproducer's prefix had no <bos> at all and now has one. The Qwen tokenizers add none, so the Qwen3.5 sweep was never affected.
  • Two agreement tests compared tokens after <eos>. With one <bos>, Gemma 4 answers bare filler by ending its turn, so test_chunked_prefill_correctness (13/16, failing) and test_hybrid_per_layer_agreement compared noise; the stray <bos> had made the model continue the filler. Both now send a one-turn chat request (tests/_prompt_ids.py:chat_prompt) and agree 16/16 on real text.

Documentation

  • The 64K sparse-mask result is back, with its raw output (benchmarks/results/2026-10-07-mac-m4/): on Gemma-4-E2B-it-4bit, both vanilla mlx-lm and Pion find the needle, and Pion's warm call takes 124.4 ms against vanilla's 54.4 s cold prefill (437×), attending 0.80% of the prefix on each full-attention layer. It replaces the 326× figure withdrawn in 0.9.6.
  • The Stage 1 and Stage 2 workload figures are re-measured with the fixed harnesses (benchmarks/results/2026-10-07-mac-m4/). The TTFT figures move within run-to-run variation: Stage 1 3.6× (was 3.8×), the in-process lane 4.7× (was 4.8×), and the RESP lane's p50 is now given as two runs, 110 and 128 ms. Stage 1's first-token agreement is 49 of 50, not 50 of 50: one request is a near-tie in vanilla mlx-lm (its top two tokens are 0.016 logits apart) and the fp16-stored cache picks the other token, so test_kv_prefix_workload's 99% correctness check fails.
  • RULER's variable-tracking task is solvable on Gemma-4-E2B-it-4bit at 4K (3/3 vanilla, dense and sparse); the test's note said 0%.
  • The quantized V-store tiers' BLEU was overstated by the stray <bos>: int8 0.499 and turbo4 0.378 against vanilla, where the docs said 0.677 and 0.538; fp16 is 0.979 (was 0.969). The unfixed harness reproduces the old figures exactly, and the fixed one repeats the new ones exactly.
  • The TTFT figures are re-measured with the fixed reproducer: 1,193 ms cold at a 2,049-token prefix, 69.0 ms from a separate process (17×) and 46.2 ms in the same process (26×; was 61.9 ms, 20×); 12× / 4.6× / 1.4× at 1,035 / 268 / 34 tokens. A same-day run of the unfixed reproducer gives the same figures within run-to-run variation, so the change from 2026-10-02 is the day, not the fix. Hybrid retrieval is 3.5× (inproc) and 3.2× (pion) with 96.1% token agreement, and answers 0.73 against text-RAG's 0.72; the stray <bos> had cost answers (0.68 on every path) and hidden divergence (98.3–99.3% agreement).

[0.9.6] — 2026-10-07

A security fix: every earlier release could be made to write past the end of its reply buffer from the wire (see Security), so every deployment should upgrade. Replies of any size now arrive whole, SCAN and its relatives iterate with a cursor, AI.CHAT returns the model's reply again, commands with more than 2,048 arguments run, and inline commands parse as Redis parses them. Every measured number in the docs now names its raw evidence, re-measured against Redis 8.10.2 where it compares with Redis.

Documentation

  • Every measured number in the docs names its evidence. tools/check_doc_claims.py finds each number with a performance unit in the README, the website, doc/ and the package READMEs, and fails unless benchmarks/claims.toml points it at a published raw result, a test that asserts it, or the source line that defines it. It runs in CI's source checks and in the gate (tests/test_doc_claims.py). The raw output behind the numbers is now in the repository: benchmarks/results/ and benchmarks/reproducers/results/.
  • Re-measured, same machine for both engines: the KV and vector comparison against Redis 8.10.2 on one Linux server (benchmarks/results/), and the prompt-cache lanes, TTFT paths, Stage-1 workload, BLEU, Metal SDPA, PKM, ATTEND.* at 128K, failover time and per-profile memory on an M4 Mac mini. The README's earlier KV headline (14.0M ops/sec, 10.2× Redis) had no surviving raw log and compared Pion's independent keyspaces with a single Redis instance; it is replaced.
  • Withdrawn until they reproduce or are published with a harness: the 64K sparse-mask NIAH result (326×; on 2026-10-06 its reproducer did not find the needle), MoE paging sizes and latencies, pion-serve hit rates, AI.ROUTE and RAG.SPECULATE accuracy, the FLARE results, the binary-lane ATTEND figures, and the illustrative latency tables in doc/embeddings.md.
  • Corrected: the keyspace starts at 65,536 slots and grows (not a fixed 10M); lists no longer use a slab allocator; the HNSW visited array is max_elements long; the SWIM probe waits 100 ms (+200 ms indirect), not 250 ms; requests may be up to 256 MB (CLIENT_BUF_SIZE), not 64 MB, and no 16 MB blob limit exists; the 5M-vector FP32 staging buffer is 30.72 GB; the command-matrix coverage summary now counts the matrix's own rows; the --profile memory column is measured idle RSS; tests/test_mlx_lm_patch.py states the threshold it asserts.

Removed

  • The site no longer recommends Pion as an MCP server for Claude Code. The landing page's MCP chip, the pion-mcp and pion-context reference pages and the codebase-search guide are gone, and both packages' READMEs are marked experimental, with their known limitations. Several statements in them were wrong: re-indexing an edited file (the PostToolUse hook, index-file) removes it from search instead of refreshing it; directories named models, Django's ORM among them, were never indexed; agent memory and codebase search replace each other's index on one server; the hooks were not configured automatically; and "70-86% of repeated queries hit cache" had no measurement behind it.

Fixed

  • Replies of any size arrive whole (#49). The reply buffer is 4 MB per worker; a reply that did not fit was cut short with -ERR response exceeds buffer, and a pipeline of small replies past 4 MB lost the ones that did not fit. A full buffer is now handed to its connection and the reply goes on, as Redis's goes on into its output buffer: LRANGE, HGETALL, KEYS, SMEMBERS, ZRANGE and MGET of any size, and a pipeline of any length. A connection that stops reading no longer blocks the others: what it is owed waits in its own queue. A published message or MONITOR line to a connection already owed 32 MB closes it, as Redis's pub/sub output limit does.
  • SCAN, HSCAN, SSCAN and ZSCAN iterate with a cursor (#50). Each returned its whole table in one reply with cursor 0, whatever COUNT said, so a large keyspace ran into the reply limit. They now walk the table COUNT entries at a time and return every key present for the whole iteration, across inserts, deletes and table rebuilds. A small keyspace still comes back in one call.
  • AI.CHAT returns the model's reply (#51). It compared an 11-byte JSON key as 12 bytes and answered nil to every reply. AI.CHAT and AI.COMPLETE now decode \uXXXX escapes, surrogate pairs included, so <, > and & from Go-based backends such as Ollama no longer come back as u003c.
  • Commands with more than 2,048 arguments run (#52) instead of being refused, through a token table that grows for the one command that needs it.
  • Inline commands parse as Redis parses them (#53): double- and single-quoted arguments and their escapes follow sdssplitargs, any line not starting with * is an inline command, and a malformed request (a bad count, an element without $, an unbalanced quote) gets Redis's -ERR Protocol error: ... and a closed connection. Before, SET k "a b" was a syntax error, and "PING" or a line starting with a space got no reply at all.
  • The unknown-command error is Redis 7's full text: the name and the arguments, cut at 128 bytes.
  • CLIENT REPLY OFF / SKIP drops a reply even when the reply is larger than the reply buffer.
  • A command that fails after part of its reply has already been sent is answered and the connection closed, rather than rolled back to bytes the client already holds.
  • pion-context indexes what git tracks, and keeps a built index current. It skipped every directory named models (Django's ORM among them) and dataset; it now indexes git's files (tracked, plus untracked not ignored). Re-indexing a file in a built index (index-file, the PostToolUse hook) made the file unsearchable, because a vector written after FT.OPTIMIZE never enters the graph; it now rebuilds the index from the stored vectors. The hook's absolute paths replace a file's chunks instead of adding a second copy, deleted and emptied files leave the index, and install-hooks writes the Claude Code hooks. Ollama embeddings go 64 to a request: Django's 8,627 chunks index in 194 s on an M4 Mac mini. A search that cannot run raises instead of returning nothing. Tested on every push by tests/test_pion_context_index.py.
  • pion-mcp accepts PION_EMBED_PROVIDER=ollama (it raised) and embeds exactly as pion-context does; codebase_search reports a replaced index instead of returning []. tests/test_mcp_search.py now runs in the gate without the mcp package, through a stub FastMCP; it was skipped on every gate run.
  • pion-serve's --rag-index retrieves from any index. It queried @vector whatever the index's vector field was called, Pion refused, and the error was swallowed, so RAG injected nothing. The field is learned from the server or set with --rag-field, and a failed lookup is logged and counted in /v1/stats as rag_errors.

Security

Reachable from the wire in every release up to and including 0.9.5, and fixed in this one:

  • Three fast-path replies were copied into the 4 MB reply buffer without a bound: PING with an argument, LRANGE on a small list, and the cluster-mode redirects (-MOVED, -ASK, -READONLY). A large enough PING, or a long enough pipeline of the others, overflowed the heap and could crash the server. A server without --requirepass, the default, accepts these from any client.

[0.9.5] — 2026-10-06

Linux fixes from the first run of the whole gate tier there, Redis compatibility fixes across the command surface, and fixes for 14 bugs reachable over the network, listed under Security. Several of those are heap overflows, so every deployment should upgrade. New: stream consumer groups, blocking list and sorted-set commands, and the commands Redis 7 clients send.

Added

  • Stream consumer groups (#40): XGROUP, XREADGROUP (>, history, COUNT, NOACK, BLOCK), XACK, XCLAIM, XAUTOCLAIM, XPENDING, XINFO GROUPS / CONSUMERS / STREAM FULL, XSETID, and Redis 7's stream metadata (entries-added, max-deleted-entry-id, recorded-first-entry-id, lag). Redis 8.2's XDELEX and XACKDEL, and KEEPREF / DELREF / ACKED on XADD and XTRIM trimming, are in too. Groups, consumers and pending entries are durable (WAL, snapshot, DUMP, COPY) and replicated. Checked against Redis 8.10 in RESP2 and RESP3. Not implemented, and refused: XREADGROUP CLAIM, MAXCOUNT / MAXSIZE, XNACK, idempotent XADD.
  • Blocking list and sorted-set commands block (#38): BLPOP and BRPOP answered nil at once; BRPOPLPUSH, BLMOVE, BLMPOP, BZPOPMIN, BZPOPMAX and BZMPOP did not exist. A blocked client parks, in FIFO order, until a key holds what it pops or its timeout passes.
  • Commands Redis 7 clients send (#39): LCS, LOLWUT, MONITOR, ROLE, PFDEBUG, PFSELFTEST, REPLICAOF / SLAVEOF, FAILOVER, REPLCONF, RESTORE-ASKING, EVAL_RO / EVALSHA_RO / FCALL_RO, TIME. SYNC and PSYNC refuse.

Changed

  • Scripts run the server's own commands (#36). redis.call used a 26-command copy of the server; every command now runs through the real dispatcher, logs its own WAL record and reaches replicas. Errors, conversions, the sandbox and the redis.* API follow Redis 8.10. FUNCTION libraries persist. --lua-time-limit and --lua-memory-limit replace the old instruction and heap caps.
  • The HNSW index file is the size of the index (file v4). It held the node map and neighbor lists for the server's whole capacity: 329 MB for a 100-vector index, rewritten on every FT.OPTIMIZE. A 100-vector rebuild went from about 410 ms to 6 ms. v3 files still load.
  • Admin and introspection commands do what they answer, or refuse (#47): CLIENT (IDs, LIST, INFO, KILL, PAUSE, REPLY, UNBLOCK), COMMAND (INFO, LIST, GETKEYS, DOCS from Redis's own tables), SLOWLOG, ACL, LATENCY, MEMORY, MODULE, SHUTDOWN, and CLUSTER outside cluster mode. SHUTDOWN ABORT used to shut the server down.
  • Linux x86-64 runs the closed vector library's AVX-512 VNNI build by default on CPUs that have it. PION_VECTOR_VNNI=0 forces the x86-64-v2 build, which was the default until now. The VNNI build has passed the differential on a Zen 5 and a Zen 4c CPU. On an EPYC 8124P (Zen 4c) it cut server CPU per query by 32% and raised QPS by 20–22%, winning all six rounds, with identical recall. Intel CPUs with AVX-512 VNNI have not been measured. pixi run test-vector-differential now pins the x86-64-v2 build, and test-vector-differential-vnni checks the VNNI build on VNNI hardware.

Fixed

  • FT.SEARCH on the Linux x86-64 release binaries spent more than half its time in libm fmaf. The reply rescoring, which reports the index metric's distance for the k rows a reply returns, used fma() on 8-wide vectors. The release targets x86-64-v2, which has no FMA instruction, so every lane became a call into libm: about 300,000 calls per query, more server time than the search itself. Those targets now multiply and add. macOS, Linux arm64 and builds for a CPU with FMA compile exactly as before. On an EPYC 8124P, with the build otherwise unchanged, server CPU per query went from 2,180 to 1,012 µs and peak QPS from 2,188 to 3,687 (+70%), in all four rounds, with identical recall.
  • A source build finds its Metal library from any directory. pixi run build puts ./pion-server at the repo root and the shader library in src/ffi/. The search covered that layout only relative to the working directory. A source build started from anywhere else, a data directory for instance, therefore reported Metal Attn: NOT ACTIVE and fell back to the MLX bridge. The search now also looks in src/ffi/ next to the binary, and tests/test_metallib_discovery.py starts one from a temporary directory. Release tarballs were not affected: they find the library in lib/.
  • The Docker image's version label is Pion's. org.opencontainers.image.version was 24.04, inherited from the Ubuntu base image, on every image through 0.9.4. The release now sets it from VERSION and checks the pushed image's label against the tag, which also stops a tag cut without bumping VERSION.
  • Linux:
  • the io_uring loop ticks when idle, so shutdown, WAIT, replica ACKs and expiry no longer stall on a quiet server; a failed io_uring_setup falls back to epoll instead of leaving a port nobody answers (#17, #21);
  • the CPU count comes from Linux's own constant, so Linux machines no longer all ran the embedded profile (#20);
  • a multi-worker warm restart serves no query before the index has loaded (#19);
  • a stopped server frees its port, and a restart waits for one still held (#22);
  • no libm fmaf call per lane on the x86-64-v2 build, in the vector library and in 60 places in the open kernels (#25).
  • Replies Redis clients parse: ±inf scores no longer read INT64_MIN on x86, and scores print as Redis prints them (#18); HGETALL is a RESP3 map (#23); a bad password in HELLO's AUTH answers WRONGPASS (#24); RESP3 sets, doubles and pairs where Redis sends them (#30).
  • Parsing as Redis parses: bitmaps (#31), option keywords matched by whole names and unknown options refused (#32), geo, now a sorted set as in Redis (#33), streams (#34), long-double INCRBYFLOAT (#35).
  • Each command that embeds text sees only its own entries (#29).
  • INFO and --version say which vector build runs (#26).
  • DUMP and RESTORE carry every type, with Redis's options and errors; MIGRATE works (#41).
  • Pub/sub delivers every message whole, across workers, with shard channels (#42).
  • RESET resets the connection, and WATCH, QUIT and RESET run inside MULTI (#44).
  • A key past its deadline is gone for every command, and expiry is logged, so a restart does not bring an expired key back (#45).
  • FT.SEARCH drops documents that were deleted, renamed or given a new vector (#46). Writing the same vector again keeps a document indexed, and an FT.OPTIMIZE with no index defined no longer blocks the next index's ingest.
  • Vectors written by every path are indexed: HSET inside MULTI/EXEC or a script, HMSET, HSETNX (#43).
  • OBJECT ENCODING reports embstr by Redis 8's rule, which depends on the key's length and the platform's cache line.
  • Startup refusals exit 1: an invalid --tenant setup exited 0. A cluster node whose replication port would pass 65535 refuses to start.

Security

These were reachable from the wire, and are fixed in this release:

  • io_uring: a request that overflowed the client buffer was still read past its end; a late completion could act on a new connection that reused the fd; the submission ring had no full check and published entries before they were written.
  • Heap overflows in fixed-size buffers: the XREAD BLOCK wake reply (64 KB), PUBLISH deliveries (4 KB) and DUMP (1 MB).
  • SETBIT read the old bit before growing the bitmap: an out-of-bounds read.
  • Replies and WAL records built from freed buffers (AI.KNN_LM.INFO, NEURON.PKM.INFO, COMMAND GETKEYSANDFLAGS, ACL LOG, the MoE manifest probes).
  • XADD truncated a field or value longer than 65,535 bytes and reported success.
  • Commands pipelined behind XREAD BLOCK were answered before it.
  • A replica acknowledged a FULLRESYNC before applying it, so WAIT could count writes the replica did not hold.
  • A removed key's TTL stayed behind and expired a later key of the same name.
  • SELECT n answered +OK and stayed on database 0. It now refuses, as Redis does with one database.
  • FLUSHALL and FLUSHDB were not written to the WAL, so flushed data came back after a restart and stayed on replicas.

[0.9.4] — 2026-10-04

pion-vllm-mlx 0.1.4 works with mlx-lm 0.32, which took code fixes as well as a wider cap. The server changes only in what it logs when it stops.

Changed

  • pion-vllm-mlx 0.1.4 works with mlx-lm 0.32. mlx-lm 0.32.0 came out on 2026-10-01, its first release since April, and the mlx extra capped it at <0.32. Installing the extra beside mlx-lm 0.32 failed to resolve, or downgraded mlx-lm to 0.31.3, which lacks every architecture added since April. The cap is now <0.33. Three things 0.32 broke behind the cap are fixed:
  • HybridRetrievalCache loaded chunk K/V by assigning a cache's state. 0.32 added the offset to state, so hydrating a chunk in process raised ValueError.
  • The hybrid-model wire path (Qwen3.5-style models, and softmax_bitexact) serialized each cache slot by reading state by position. On 0.32 that tuple also holds Python scalars and, for an attention slot, the step-padded buffers. Slots are now read and written through attributes every supported mlx-lm has, so a stored blob is the same whichever version wrote it. A restored rotating cache also gets its write index back.
  • pion-vllm-mlx serve wraps mlx-lm's single-request path, which takes an extra argument in 0.32, so every request through serve would have raised TypeError.

Checked on mlx-lm 0.31.3 and 0.32.0 against this release's server (M4 Mac mini): - The 20 mlx test files whose models are cached here pass on both. Tests that need Gemma 4 or Qwen models were not run. - A serve smoke test passes on both: chat, streaming, the Anthropic endpoint, and a restarted serve that restores 881 of 882 prompt tokens from Pion and gives the same greedy answer. - The seam test gained a model-free round trip for each cache class. The version matrix runs it on 0.20.1, 0.24.1, 0.28.4, 0.31.3 and 0.32.0. - benchmarks/reproducers/cross_process_ttft.py on mlx-lm 0.32.0 (2,049-token prefix) measured 1,242 ms cold, 63–64 ms for a hit from a fresh process and 40 ms in the same process. That is at or above the published 17× and 20×, which stay as published. - The two Qwen3.5 reproducers in benchmarks/reproducers/ read state the same way and are ported. Their changed functions were checked on synthetic caches; the reproducers were not re-run on the model.

Measured

  • What the open build costs on Linux x86-64. The machine was a Ryzen 9 9950X (Zen 5), and the test was INT8 in the gate configuration with three rounds in rotated order.
  • The open reference gives 5,836 QPS.
  • libpion_vector's default x86-64-v2 build gives 7,610 (open is −23%).
  • Its VNNI build gives 8,534 (open is −32%).
  • Recall@100 is 0.960 in every run.
  • The VNNI build also passed the differential on this machine. It stays opt-in until its lead over the default build is settled. Details are in vector_engine.md.

Fixed

  • The vector benchmark ran nowhere but the maintainer's machine.
  • pixi run install-vdbbench installed VectorDBBench into the pixi environment, while the harness runs it from venv_zvec/.
  • Stock VectorDBBench never sends FT.OPTIMIZE, so every query searched an index that was never built: recall 0.0 at an impossible QPS.
  • The task now creates venv_zvec and patches the client, on every platform. The harness refuses a run whose index was never built and names the task.
  • The Linux tarballs now state their minimum glibc (2.38). The README and each Linux tarball's README.txt say so; the tarball reads the version from the binary itself. On an older system, such as Ubuntu 22.04 or Debian 12, the binary stops with GLIBC_2.38 not found, and the Docker image is the way to run it.
  • The Linux gate profile's CPU is labelled correctly. The EPYC 8124P is a Zen 4c "Siena" part, not "Naples-class".
  • A clean stop no longer logs a worker death. After SIGTERM, SIGINT or SHUTDOWN, each worker flushes its WAL and returns, and the thread wrapper reported every return as worker 0 DIED (event loop returned). Each brew services stop pion wrote one into the service log. A drained worker now logs worker 0 stopped (shutdown); DIED is kept for a worker that returns without a shutdown request.

[0.9.3] — 2026-10-03

The Linux binaries link the tuned vector library, and the PyPI page gives the prefix sweep. The macOS server is unchanged apart from its version.

Changed

  • The Linux tarballs and the Docker image link libpion_vector. It is the free closed library with the tuned 1536-dim beam searches and product-key kernels. Until now only the macOS build linked it, and the Linux builds ran the open reference kernels in src/vector/reference/.
  • Every release leg (macOS arm64, Linux x86-64, Linux arm64) checks the library against its open reference before packaging. The check, pixi run test-vector-differential, requires identical results.
  • On x86-64 the library runs its x86-64-v2 build. Its AVX-512 VNNI build stays opt-in (PION_VECTOR_VNNI=1) until it has passed that check on VNNI hardware.
  • The speed difference on Linux has not been measured. On an M4 Mac the open kernels are 22–34% slower at 1536 dims (vector_engine.md).
  • The image carries the library's licence at /opt/pion/LICENSE-pion-vector, as the tarballs do, and its licence label names both licences.
  • pixi run build-open, the build with no closed code, now exists on both Linux targets too.
  • pion-vllm-mlx 0.1.3. Its PyPI page gives the prefix sweep from a separate process: 11× at 1,035 tokens, 4.5× at 268 and 1.5× at 34. The 0.1.2 page said that a prefix under about a thousand tokens has little to save, which the 0.9.2 measurements contradict. The README gives the same sweep. The page's summary line now describes the prompt cache. It used to describe an attention backend for vllm-mlx, a module the package no longer contains. The package's code is unchanged.
  • CI runs on Linux arm64 too, alongside Linux x86-64 and macOS arm64. CONTRIBUTING gives the perf-gate commands. Before, it named /gate, a command that does not ship with the repository, and said that opening a pull request runs no checks.

Fixed

  • benchmarks/valkey-benchmark/valkey-benchmark.py removes its temp directories at exit. Every run left a Redis and a Valkey data directory in $TMPDIR, --pion-only runs included.

[0.9.2] — 2026-10-02

Corrections, the demo, and the PyPI page; the server's behaviour is unchanged.

Corrected

  • Time-to-first-token ratios were too high, and one row was mislabelled. Every TTFT harness timed vanilla mlx-lm as one forward over the whole prompt, with its logits evaluated. That computes the vocabulary projection at every prompt position. mlx-lm's own generate_step never does: it prefills with only the cache evaluated, then runs the last token alone. So the cold side was ~30% slow at 2K tokens (1,624 vs 1,246 ms, same first token), and every ratio against it was too high.

Each harness now prefills the way generate_step does, checked within 2% of it. Re-measured 2026-10-02 on an M4 Mac mini against Pion 0.9.1: - From a separate process, 2,049-token prefix and a 16-token question: 1,242 → 73.9 ms, 17× (was 1,558 → 64.7 ms, 24×). Prefix sweep: 1.5× / 4.5× / 11× / 17× at 34 / 268 / 1,035 / 2,049 tokens (was 1.6× / 6.0× / 16.4× / 24×). - Same process, same prompt and question: 1,242 → 61.9 ms, 20× (was 1,530 → 30.2 ms, 50.6×). That row was also mislabelled. tests/bench_ttft.py built a fresh PionPromptCache for every request, so it timed Stage 2's wire lane, where Pion computes the attention, and not the in-process lane the README named. Its one-token suffix was a best case besides. Both 1B rows now come from cross_process_ttft.py (--same adds this one), and bench_ttft.py times both lanes; at 2,048 tokens with a one-token suffix the wire lane is 28.6× and the in-process lane 86×. - Stage 2 lanes at ~316-token prefixes: in-process 4.8× (was 6.51×). Binary and RESP p50 are 127 and 131 ms (were 92.1 and 108.6 ms); the old figures ran the suffix in one pass, and mlx-lm runs it in two. - The mixed workloads (mean over all requests, cold ones included): Stage 1 3.1× at ~316 tokens and 5.4× at ~2,514 (were 5.07× and 6.96×). Stage 2's in-process lane 4.8× and 13.2× (were 3.31× and 6.75×). These two went up; the harness behind the old Stage 2 pair is not recorded. - Stage-1 workload, 5 prompts × 30 queries: 612 → 84 ms, 7.3× (was 846 → 91 ms, 9.26×). - Qwen3.5-4B hybrid at 2K / 4K / 8K: 14.0× / 25.3× / 29.0× (vanilla 5.0 / 10.2 / 21.3 s). The 0.9.0 notes below said 24.7× / 32.7× / 11.6×, and the reproducer README said 24.77× / 36.0× / 29.5×. - Hybrid retrieval, 100 SQuAD v2 queries: 3.0× p50 in-process and 2.7× over the wire (was 4.5×). That bench also left the cache hydration (prepare()) out of its clock.

The 64K sparse row is unchanged: its vanilla prefill is chunked and never computed the extra logits.

Changed

  • examples/prompt_cache_demo.py shows what a tester will see.
  • It runs against Pion by default. The old default re-prefilled and printed ~1× by construction.
  • It times five requests the way an app makes them and reports their median.
  • It says what to start when no server answers, and exits non-zero on failure.
  • It names the one-time cost of the first request after a store, and says why its requests sit above the separate-process row.
  • pion-vllm-mlx 0.1.2 carries the corrected numbers to its PyPI page.

Removed

  • benchmarks/reproducers/bench_qwen3_5_warm_ttft.py, a one-length copy of sweep_qwen3_5_warm_ttft.py, which runs any length with --target-tokens N. Against the corrected baseline its 174-token default measures 1.7×, below the 2× it required to pass. The 3.92× it used to back came from the old baseline.

[0.9.1] — 2026-10-01

Packaging and documentation only; the server's behaviour is unchanged.

  • pion-vllm-mlx 0.1.1. The 0.1.0 page on PyPI still said the package was not on PyPI, told you to install it from a checkout, and its links resolved only inside the repository. Fixed.
  • Homebrew's service runs the prompt cache. brew services start pion now starts the server with --kvcache --metal-attention --nle-embed, so the four PionPromptCache lines and the semantic cache work against it as installed; before, they failed with ERR V-store not enabled. Idle memory is about 113 MB.
  • The README and the website match their sources again. Vector numbers carry their date and machine (the current build: ~9.4K QPS at recall 0.960 on an M4 Mac mini); at P=1 Pion is at parity with Redis, not "ties or beats" it; the 64K row shows its denominators; multi-chunk hybrid retrieval is documented as shipped; MoE pruning states its quality cost. Claims with no measurement behind them are gone: ANE acceleration for NLEmbedding, a 60% cache hit rate, a 60× expert-fetch factor, a P=1 P99 figure, and a Docker image variant that does not exist.

[0.9.0] — 2026-10-01

The first public release. Pion is a Redis-wire-compatible memory engine for AI inference: it keeps your model's KV cache across processes, restarts and machines.

This is labelled public preview, not 1.0, and the label is meant literally. The engine has been under continuous gate discipline since February and the correctness surface is well tested, but the operational surface has gaps that a 1.0 should not have. They are listed below rather than discovered.

Headline

  • Shared KV cache over a wire protocol. KV.PREFIX.*, ATTEND.*, SSM.PREFIX.*, V-store, and a binary lane on port+1. A different process, a different model object or a different machine reads the same prefix. 1,530 ms → 30.2 ms warm TTFT (Llama-3.2-1B-4bit, 2,048-token prefix, same process); 24× cross-process on the wire (1,558 ms → 64.7 ms); cross-instance output verified BLEU 1.000. (Both ratios were overstated; see Corrected under 0.9.2.)
  • PionPromptCache — a 4-line drop-in for mlx_lm.make_prompt_cache on Apple Silicon.
  • A value receipt. PION.STATS (and a # Pion section in INFO) reports cumulative prefill seconds avoided, measured from the client's own reported cold prefill (KV.PREFIX.REGISTER ... PREFILL_MS) and kept apart from the per-token estimate used when nothing was reported. INFO no longer hardcodes its port, memory or an empty keyspace.
  • Crash-consistent, not merely persistent. Every store is a WAL record; SIGKILL → restart → bit-equal V.FETCH (max |Δ| = 0.0), verified on macOS and Linux.
  • Hybrid Mamba+Transformer prefix state shared across processes and persisted: 24.7× / 32.7× / 11.6× warm TTFT at 2K / 4K / 8K on Qwen3.5-4B. (Overstated; see Corrected under 0.9.2.)
  • Sparse long-context selector — 100% needle recall at 64K attending 0.78% of the prefix, bit-identical greedy decode. NIAH-class retrieval only.
  • MoE expert paging (MOE.EXPERT.*) — a 51.6 GB model on a 16 GB Mac, with a cross-process API and access histograms.
  • Semantic cache, vector search, BM25, hybrid retrieval, and built-in text embedding on macOS (--nle-embed), all behind the same RESP wire.
  • The engine underneath: 2.2M+ ops/sec on a single Mac worker at P=10, 14.0M peak on EPYC (w=32, P=50), parity with Redis at P=1. This is the on-ramp, not the pitch.

Licensing

Pion is Apache-2.0: the engine, the tools, the docs and every client package. The tuned 1536-dim vector kernels ship as libpion_vector, a free closed binary library under its own licence (vendor/pion-vector/LICENSE); pixi run build-open builds without it, from source only, with slower vector search at 1536 dims. Every client package carries its Apache-2.0 text inside: pion-vllm-mlx, pion-mcp, pion-lmcache, pion-context, pion-glide, pion-langgraph, pion-autogen, pion-llamaindex, pion-exo. The full map, including what is deliberately not in the repository, is doc/licensing.md.

Not in this release

Stated because a preview that hides its gaps is just a 1.0 with better marketing:

  • No TLS. Bind is loopback by default; terminate TLS at a proxy.
  • No eviction. --maxmemory refuses memory-growing writes with -OOM at an RSS ceiling; nothing is evicted, and without it RAM exhaustion is an OOM kill.
  • -w N is N independent keyspaces, not a shared one. The server refuses to start with -w N > 1 unless --independent-workers is passed. Default is one worker.
  • Cluster mode is single-node. Slot migration and replication exist; production multi-node does not.
  • CUDA is source-build only. Prebuilt binaries are macOS arm64 and Linux CPU.
  • One maintainer, working evenings. Crash, desync and data-loss reports get attention first; feature requests may sit.

Correctness

The differential harness runs every command against a real redis-server and reports only disagreements. Current state: 1,071 wrong-type probes → 15 divergences, all of them the deliberate HLL fence, 0 desyncs; 757/757 on the correct-type matrix; dispatch sweep 1,485/1,485 probes across 292 commands and 5 argument shapes; Gate 1 115/115.

That harness found most of what 0.x fixed, including several bugs that returned a plausible wrong answer rather than an error — the class that no type-confusion sweep catches.

What the test program found (Sep 26–27)

Running every test file — not the 16 the old gate ran — surfaced these; each now has a test that failed before the fix:

  • Vector sets were one server-wide set. The key was ignored, re-VADD duplicated, and VSIM answered from other keys' elements. They are now one set per key with exact search.
  • FT.SEARCH filters were never applied. The documented FILTER @price:[10 50] ran unfiltered with no error; every documented form now filters, anything else is refused. Unrecognised query forms answer an error instead of []; score is the metric's distance instead of a quantized-space number; a multi-field HSET keeps the vector field readable.
  • Unknown command-line flags were silently accepted, so a typo in --requirepass started an unauthenticated server. They now refuse to start and suggest the nearest flag.
  • Containers were never freed. A key's list/hash/set/zset stayed allocated after DEL or after its last element was popped — ~1 GB of RSS over 60K ZADD/ZPOPMIN cycles on one key — and COPY shared the container between both keys.
  • Lists past 1,024 elements popped the wrong elements. Draining a large list from the right dropped 255 elements per segment (RPUSH 0..1499, RPOP answered 1022, 767, 511, …), and LPOP past the head side popped from the tail's end. The list tests drained by count, so neither was seen.
  • A binary-lane ATTEND_FINALIZE of a multi-layer session crashed the server; an explicit THRESHOLD 0 was ignored; a Lua RENAME left the new key pointing at freed memory.
  • Vector sets now survive a restart: VADD/VREM/VSETATTR are WAL-logged and SAVE/BGREWRITEAOF serialize them. TYPE on a vector set answered string from the fast path; it answers vectorset.
  • The HSET-ingest FT.OPTIMIZE never calibrated its quantizer, so components outside ±0.2 were clipped at ingest: fine for OpenAI-scale embeddings, wrong scores for anything larger (a raw N(0,1) vector scored ~1,134 against itself). Every build now calibrates one global range at mean ± 8σ of its own data. On the gate corpus that is the old ±0.2 and recall is unchanged (0.958). The calibration it borrowed turned out to take its square root with three Newton steps that only converge near variance 1, so every "3σ" range on embedding data had really been ~15σ.
  • The seven example clients under clients/ did not compile and sent an FT.SEARCH form the server never parsed, with 8-bit vectors; they are deleted. Any Redis client works — see the README.

Quantized vector indexes

From 2026-03-28 until this release, --turboquant and --nanoquant silently built plain INT8 while the startup banner said they were on, so every TurboQuant and NanoQuant number recorded in that window was an INT8 number. Both now really run. Measured on the gate dataset: PolarQuant (INT4) recall 0.965, TurboQuant (INT3+QJL) 0.953, NanoQuant (INT2) 0.46 — experimental, not the 0.94 the docs used to claim. Each keeps an FP32 re-rank copy, so none lowers total memory yet.


0.x — February to September 2026

~1,150 commits from the initial engine to the public export. The arc, by theme:

The engine (Feb–Apr)

Shared-nothing workers on raw pthreads, a Swiss-table hash map with SIMD probing, zero-allocation fast path for 28 commands, ziplist/quicklist lists, skip-list sorted sets. Four network tiers — kqueue, epoll, io_uring, AF_XDP — with the epoll/io_uring crossover measured per CPU class rather than assumed. HNSW vector search with SIMD distance kernels and INT8/INT4/INT3/INT2 quantization.

The AI substrate (Apr–Jul)

KV.PREFIX.* and the shared KV cache; ATTEND.* with native Metal SDPA; SSM.PREFIX.* for recurrent models; MOE.EXPERT.* expert paging; AI.SEMANTIC_CACHE, AI.ROUTE.*, RAG.*, AI.KNN_LM.*, NEURON.PKM.*. The substrate touches the shared keyspace zero times — the boundary is one-directional by design.

Durability (Jul)

WAL rotation with loud refusal at capacity (it used to return silently while the client held an +OK), a file-backed blob tier for multi-MB values, arena compaction at startup, aggregate durability for every keyspace type, and effect-logging so non-deterministic commands replay their resolved effect.

The correctness sweep (Aug)

The largest single body of work in 0.x, driven by the differential oracle. Bit order in the bitmap family was mirrored; LTRIM deleted whole lists past 1,024 entries; KEYS and SCAN MATCH ignored their pattern entirely, which made the recommended prefix-delete idiom delete the keyspace; XADD replaced any key with a new stream; equal-score zset members came back in reverse insertion order; INCRBY k abc returned success having added nothing. Dispatch-frame consumption was made structurally safe after being fixed eleven times one arm at a time.

Getting publishable (Sep)

Multi-worker keyspace semantics fenced behind an explicit flag; loopback bind by default; CONFIG SET stopped acknowledging writes it did not perform; the inference sidecar stopped blocking listen() for 30 seconds; --metal-attention made to work from a release tarball; FT.CREATE made to honour DISTANCE_METRIC.