# Changelog All notable changes to SirixDB are documented in this file. A pull request does not write its entry here: it adds one fragment file under [`changelog.d/`](changelog.d/README.md), and the release collects the fragments into this file. ## [Unreleased] ### Added - **Encoded sorted projection chunks** — sorted views pack byte-addressable numeric columns and prefix rows into encoded chunks. The [sorted-view format](docs/DISK_FORMAT.md#encoded-sorted-views) defines their inline or referenced placement. Edits split or merge local ranges; directory metadata shares a bounded point-read cache budget, and scans retain complete HOT pages. Exact single-group bounds can answer queries without fetching a separate summary. This replaces the old sorted-view storage format; old directory and bounds versions are rejected. - **Index-routed projection queries** — projection scans can consume index-selected rows, with grouped computed aggregates and column-side joins. The SH1 loader now declares business resource projections. Admission, count semantics and fallbacks are specified in [Index-routed row source](docs/INDEX_ROUTED_ROW_SOURCE.md). - **Unchanged commits skip index-catalogue serialization.** Shared resource sessions cache catalogue lookups and parsed definitions. See the [catalogue persistence rules](docs/ARCHITECTURE.md#index-catalogues) and [commit work budgets](bundles/sirix-core/src/test/java/io/sirix/budget/README.md). - **Projection maintenance carries eligible unchanged rows over.** Eligibility, witness probes and re-extraction fallbacks are specified in [incremental maintenance](docs/PROJECTION_INDEX_INCREMENTAL_MAINTENANCE.md#51-unchanged-rows-are-carried-over). - **Projection tail appends extract only new rows.** Eligibility and fallback rules are described in [incremental maintenance](docs/PROJECTION_INDEX_INCREMENTAL_MAINTENANCE.md#9-tail-insert). - **Closing a committed writer skips redundant data-file forces.** The durability conditions are owned by [FileChannelWriter](bundles/sirix-core/src/main/java/io/sirix/io/filechannel/FileChannelWriter.java) and guarded by `CommitReinstantiationWorkBudgetTest`. - **Open projection row-group tails** — append-only commits retain base column segments and store new rows as referenced side pages. Every reader resolves the merged group; completion and other edits fold it atomically. A bounded writer-seeded merge memo avoids replaying the tail on the next commit. See `docs/PROJECTION_INDEX_INCREMENTAL_MAINTENANCE.md`. - **Projection indexes (experimental, analytical)** are maintained **incrementally** by the transactions that touch the record set: inserts, updates, deletes and moves resolve each dirty record through exact locators or a bounded fence probe and rewrite only the touched persistent units (row groups, order/fence chunks, Bloom chunks, set summaries, dictionary radix paths). There is no dirty-record cliff, no whole-index rebuild, and no update-time invalidation — an unattributable or corrupt touched unit fails the owning transaction (rollback-only) instead of silently degrading the index. Column lookup is by the declared path relative to the record set, so nested columns sharing a trailing name with another path are accepted. See `docs/PROJECTION_INDEXES.md` and `docs/PROJECTION_INDEX_INCREMENTAL_MAINTENANCE.md`. - **Load-time projection builds** — `BasicJsonDBStore#create(collection, resource, reader|parser, ProjectionSpec)` catalogues a projection on the still-empty resource and lets the load fill it, so a load plus its projection is ONE pass instead of a shred followed by a full `jn:create-projection-index` walk. Until the load's final commit the projection's metadata slot holds the stale tombstone, so an interrupted load leaves queries on the generic pipeline rather than on a half-filled index. See `docs/PROJECTION_INDEXES.md`. - **Sorted projection views** — a projection may declare sort columns (`ProjectionSortedSpec`, a `ProjectionSpec` for load-time builds, or the optional fifth argument of `jn:create-projection-index`) and then keeps every projected record ordered by them, like a table's `ORDER BY` key. A grouped extremum whose string equality filter covers a leading run of those columns is answered from that key range; commits maintain the view per touched leaf. Projection indexes built by this code cannot be opened by earlier releases; downgrading means dropping and rebuilding them. See `docs/PROJECTION_READ_PERFORMANCE.md` and the Compatibility section of `docs/DISK_FORMAT.md`. - **Bulk JSON loaders for fresh resources** — `BulkJsonTreeAssembler` (sequential) and `ParallelBulkJsonImporter` (feeder scan + worker page builders + ordered adoption, for corpora whose top level is an array; NDJSON rides `NdjsonAsArrayInputStream`). Both build trees structurally identical to cursor-based insertion, enforced by a full-field differential oracle, and refuse up front what they do not reproduce faithfully (`hashType` other than `NONE`, stored DeweyIDs, node history, a non-empty target). Path statistics are **built during the load** by both loaders, through the very accumulator the cursor path defers through, so the arms cannot drift. (A resource written WITH path statistics now carries the versioned `PathStats` record, a one-directional format break recorded in `docs/DISK_FORMAT.md`.) The parallel importer **maintains PATH, CAS and NAME definitions and armed projection builds in the load's single pass** — the workers extract each family's tuples from the primitives they already hold and the coordinator drains them into the families' ordinary bulk loaders; a catalogued projection with no armed load-time build is refused rather than silently left unmaintained, and valid-time interval maintenance is the one family that still refuses. API, scope, verification, tuning and measured numbers: `docs/BULK_IMPORT.md`. - **Asynchronous durable commits** (`AfterCommitState.KEEP_OPEN_ASYNC_COMMIT`) — the middle ground between synchronous auto-commits and the async pre-flush: every threshold crossing creates a real, durable, queryable revision, but the durability barriers (index-catalogue fsync, buffered-tail flush, data force, uber-beacon writes) run on a background thread while the transaction keeps inserting into the next epoch. Depth-1 pipeline with backpressure; readers see a revision exactly when it hardens (durable-before-visible); a hardening failure poisons the transaction. FILE_CHANNEL backend, count-based auto-commit only. See `docs/ASYNC_COMMIT_DESIGN.md`. - `BasicJsonDBStore.Builder#useAsyncFlushForImports` — bulk imports (e.g. `jn:store`) now use the asynchronous background pre-flush by **default** on the FILE_CHANNEL and MEMORY_MAPPED backends (the latter is the store's default on 64-bit Linux/macOS; both append through the file-channel writer): one semantically meaningful revision per import instead of parser-progress checkpoint revisions, with leaf serialization and I/O overlapped with parsing (parallel double-buffered background flush) and memory still bounded by `numberOfNodesBeforeAutoCommit`. Crash-durability semantics change accordingly: nothing of an in-flight import is durable until its single final commit (the sync mode's checkpoint revisions each survived a crash). Pages whose serialization spills overlong records into OverflowPages are exempted from the background flush and committed by the final recursive commit (their durable image needs the overflow disk keys). Pass `false` (or `-Dsirix.import.asyncFlush=false`) to restore synchronous intermediate auto-commits; `-Dsirix.asyncFlush.parallelism` sizes the shared background-serialization pool. - **Work-budget tests** — performance regression tests that run in the ordinary suites and fail when a load or query starts doing materially more *work*, which a result check cannot see because the answer is unchanged. They capture the engine's own counters around one operation (`WorkCapture`, `EngineWorkCounters`, `QueryWorkCounters`) and assert a budget on them; they assert no wall-clock time, so they are exact on any CI machine and a broken budget names the path that grew. Covered: projection queries keep their route (value-count summary, column slices, sorted view) and read no more leaves than it needs; a sorted view over an optional aggregate field declines a range after one walk without declining clean ranges of the same view; a projection bulk load spills and keeps its pinned pages bounded on `FILE_CHANNEL` and `MEMORY_MAPPED`; a batched page read coalesces and covers its region once. `NativeImageDowncallConfigTest` guards the `-Pnative.preinitializeDowncalls` build configuration (it builds no image, so it cannot measure one). Each budget was proven by putting the guarded defect back. See `bundles/sirix-core/src/test/java/io/sirix/budget/README.md` and `docs/VERIFICATION.md`. - **Always-on batch-read counters** — `FileChannelReader.runCount()`, `runSpanBytes()`, `runFallbacks()` and the new `runSingletons()` (batch members read one page at a time). The first three were previously counted only under `-Dsirix.projDiag` and readable only as a formatted string; each event is at least one positional read, so counting is free at that granularity. A batch that stops coalescing returns the same bytes, so these are the only way to tell. They are process-wide running totals read as a difference across an operation, never reset in place. - **Equality membership planning for semi/anti-joins** — a single-equality `empty(...)`, `exists(...)` or `some ... satisfies ...` predicate over an independent inner relation is planned as one lazily built hash lookup that every outer row probes, instead of a nested pipeline that reopens the inner relation per outer row. Keys are 64-bit integers, codepoint strings or JSON `null`; every other domain (floating/decimal promotion, mixed domains, NaN) keeps the original compiled predicate, so value-comparison semantics are unchanged. `sdb:explain` names the physical operator (`HashMembershipJoin`), and `-Dsirix.optimizer.hashMembership=false` restores the previous plan for diagnostics. See `docs/QUERY_MEMBERSHIP_OPTIMIZATION.md`. ### Changed - **Node hashes are off by default.** Newly created Java, query-store and CLI resources now match REST's `NONE` default. Existing resources retain their persisted hash kind and need no migration. Callers relying on subtree hashes, stored descendant counts, hash-optimized diffs or REST `ETag`/`If-Match` must explicitly enable hashing; see [configuration, capabilities and erasure consequences](docs/ERASURE_PREPARATION.md). - **The hash-based diff shortcut is the resource's decision.** `DiffFactory.Builder.hashKind` defaults to the diffed resource's own hash kind, and the diff forces the full comparison when the resource stores no hashes, whatever the caller passed. Forcing `hashKind(NONE)` on a hashed resource still suppresses the shortcut. - **The pool allocators are removed.** `FrameSlotAllocator` is the only off-heap allocator on every platform, so page frames, derived caches, scratch buffers and group-by working memory are charged to one budget. `-Dsirix.allocator` may be left unset or set to `frame`; `pool`, `windowspool` and any other value now fail at the allocator's first use instead of selecting one. See [cache budgets](docs/operations.md#4-cache-budgets). - **Half-open bitemporal validity** — `jn:open-bitemporal` includes `validFrom == V` and excludes `validTo == V`. Exact indexed slices count keys and construct objects on demand; exceptional records and unindexed resources use the same half-open predicate. SH1 calls the public function directly. `jn:valid-at` and explicit two-argument scans retain closed containment. - **A database has one owning process and shared state across local handles.** Opens take an exclusive OS lock; independently closeable handles share revision and catalogue state while preserving user attribution. See the [ownership and lifecycle rules](docs/operations.md#10-known-limitations-and-operational-caveats). - **CAS and VALIDTIME posting chunks** now use append-only deltas and referenced folded payloads. The authoritative key layout, marker encoding, integrity checks, and format replacement policy are in [On-disk format](docs/DISK_FORMAT.md#cas-and-validtime-posting-chunks). - **Versioned HOT projection reads** resolve explicitly requested slots from guarded raw fragments, retain bounded resolved-slot mini pages, and promote repeated point demand to complete leaves. The index-metadata record, resolved by every serving decision and every commit, is read this way instead of reconstructing its whole leaf. Compact fragment decoding avoids writable frames, and reconstruction copies packed values directly. Small HOT byte-key searches use allocation-free machine-word lanes. Persisted formats, versioning, and work-budget bounds are unchanged; point reads are included in the work counters. See `docs/PROJECTION_READ_PERFORMANCE.md`. - **A join whose where clause mixes an equality with a general comparison is keyed on the equality.** Brackit's predicate pull-up stacks the selections below a binding in an order that no longer follows the where clause, and its join recognition keys the join on whichever join-capable comparison heads that chain — for `where $c.pid eq $p.id and xs:dateTime($p.vf) lt xs:dateTime($c.vt)` the trailing inequality, a general-comparison join that emits close to the cross product. `JoinKeyPreferenceStage`, installed directly before Brackit's join recognition, reorders such a chain so the key is the equality that recognition would reach first and whose plan compiles (a hash join), and so every predicate referencing no earlier binding filters the join's build side. It applies to every `for`- and `let`-bound chain; a chain whose key is already a qualifying equality, and one with no eligible equality at all, keep the plan they had. The result set is unchanged, the dynamic errors are not: a conjunct pushed to the build side is evaluated on rows that never join and can raise there, and one moved behind the join sees only joined pairs — XQuery leaves the evaluation order of where-clause conjuncts to the implementation. `-Dsirix.optimizer.joinKeyPreference=false` leaves the stage out of the pipeline. The javadoc of `JoinKeyPreferenceWalker` states which equalities qualify. - **Wide projection string columns serve through windowed leaf loads** instead of whole-column eager materialization. A projection whose worst-case resident size exceeds `-Dsirix.projection.eagerMaterializeBytes` (default: the smaller of half the projection cache budget and a quarter of the heap) is served from bounded 128-leaf windows, and a column fill that would exceed the budget declines — the query re-enters the windowed whole-leaf route where one exists, otherwise the record path answers. A decline is a routing decision, not a corruption signal, so the index stays valid. Whole-column materialization is unchanged below the budget. See `docs/PROJECTION_INDEXES.md`. - **A projection abandoned mid-load reports unconditionally.** The one silent load-degradation — a resource-wide value dictionary breaching its byte budget, which abandons the projection while the load still succeeds — now prints `[proj] PROJECTION ABANDONED` on stderr with the quantity that breached the budget (the shipped log configuration discards the warning), and the stale tombstone records a machine-readable `StaleReason` plus its remedy. The reason rides previously reserved flag bits, so the `PIXM` wire format is unchanged for existing tombstones (`docs/DISK_FORMAT.md`). - **JSON revision-diff sidecars carry an integrity envelope** (`sirix-diff-format`, `operation-count`, `operations-sha256`). Readers (`jn:diff`, the REST diff handler, multi-revision resource copy) validate identity, count and digest before use and fall back to recomputing the authoritative diff otherwise; sidecars written without those fields are not accepted by this build. The REST diff response shape is unchanged — the envelope fields are internal and stripped before serving. See `docs/DISK_FORMAT.md`. - **Breaking rename:** the async intermediate "commit" is now called what it is — an async flush. `AfterCommitState.KEEP_OPEN_ASYNC` → `KEEP_OPEN_ASYNC_FLUSH`, `StorageEngineWriter.asyncIntermediateCommit()` → `asyncFlush()`, `awaitPendingAsyncCommit()` → `awaitPendingAsyncFlush()`. The mechanism creates no revision and no commit record; the old names asserted otherwise. ### Fixed - **`xn:store` authorizes CREATE at the query function**, as `xn:load` and `jn:store` do. The REST API already refused it through its store decorators; embedders relying on the query-function check were not covered ([write-up](docs/postmortems/xml-store-create-authorization.md), #1473). - **`sirix-shell -iqf` runs query scripts** — the option now takes a file (or `-` for stdin), runs its blank-line separated queries in one session, reports failing queries and continues, and exits with -1 if any query failed. LF and CRLF scripts yield the same query text on every platform; other separator characters remain query content. Before, it could not run any query ([write-up](docs/postmortems/shell-query-script-mode.md), #1470). - **`xn:store` stores a single node under the given resource name** on creation, recreation and append, including singleton sequences, as `xn:load` and `jn:store` do; before, creation and singleton sequences stored the document under an automatic name ([write-up](docs/postmortems/xml-store-resource-name.md), #1471). - **The shell returns to its prompt after any query failure, and failed updates no longer leak** — a store failure such as opening a missing resource used to end `sirix-shell`; it is now reported with an error code (`bit:BIDY0300` for non-query failures) and the next prompt follows. Embedded line terminators are escaped in reports while debug diagnostics retain the original messages. Empty submissions also keep both interactive modes open until EOF or interrupt. A failed query's pending updates are discarded instead of being committed by the next updating query, and `SirixQueryContext` rolls back and closes the writers a failed update application opened, so later queries neither commit partial changes nor meet a rollback-only writer. Retained JSON update targets also discard memoized values from a rolled-back apply ([write-up](docs/postmortems/shell-query-failure-recovery.md), #1430). - **A HOT index range could start past its lower bound** — `HOTTrieReader.lowerBound` and `upperBound` returned the first entry of the leaf an absent search key was routed to even when the key sorted below that leaf and earlier leaves held keys in range, so a scan from such a bound silently dropped them: a CAS string index over `b0000` to `b1999` answered `title >= "a9999"` with 200 of the 2,000 titles. Partial-key routing reads only discriminative bits and says nothing about the leaves before the routed one; the first position of that leaf now takes the same walk to the affected subtree as the last, and a search key that is a leaf's first key followed only by zero bytes no longer fails the seek. Present since `1.0.0-alpha6` ([#1427](https://github.com/sirixdb/sirix/issues/1427), [postmortem](docs/postmortems/2026-11-hot-lower-bound-below-leaf.md)). - **A HOT in-place merge could interleave two sibling ranges** — the writer decides between merging a key into the leaf its descent reached and branching above it by comparing the key's mismatch bit with the deepest spine node's least significant discriminative bit only. A sibling leaf that holds keys on both sides of bits the block discriminates on for other children (a shape the writer's own Direction-1 sub-inserts build) can own a range the routed leaf's new extreme reaches into, so the key routed to one child and sorted inside another child's range; merged in place, the two ranges interleaved, range scans would return keys out of order, and the next structural insert through the block found no well-formed frontier candidate at any level and failed closed. Found by a new seeded, property-based structural test (`HOTStructuralPropertyTest`) that drives every HOT index kind — CAS, PATH, NAME, VALIDTIME and the projection slot store with its segment side map — with generated put, remove, bulk-posting, commit, revert and cold-reopen streams, every seed run under all four versioning types, and shrinks a failing case to a replayable stream; the shape appeared on a projection store after 770 ordinary writes. The default lane checks the full structure and reference answers after every stream operation, including completed bulk operations and successful reverts, at every commit, and for every historical revision on cold reopen. [Verification](docs/VERIFICATION.md#running-the-layers) owns the default and heavy lane cadences and their commands. The merge arm now proves, before the merge, that the key keeps the spine's order — the question every branch placement already asks — and hands a key that would cross a neighbour to the complete-frontier splice, counted by `MERGE_SPINE_ORDER_DELEGATED`; a key inside its leaf's range pays two comparisons and no walk. The same test found a second placement that trusted the same assumption: when a leaf whose keys span a bit the block does not discriminate on yet is split at that bit (the strand discharge, or a merge-path overflow) and folded into its parent, `addEntry` gave the next sibling a zero in the new column, so where that sibling was told apart from the leaf only by a bit below the split bit the β = 1 half was published past it with partials out of order; the writer's post-publication scope validator caught it and the insert failed closed (a CAS index, 221 ordinary writes). The shared integrate pre-check now declines such a fresh-bit fold at every level of the cascade, counted by `FRESH_BIT_FOLD_NOT_ADJACENT`, and the complete frontier re-encodes the block. A third placement, recorded as an open gap when the full-node branch decomposition landed, is closed: the Direction-1 sub-insert into a freshly compressed split half measured the trie condition before the sub-insert, and a leaf whose keys spanned the half's most significant bit came back from the sub-insert as a node on that very bit, so the re-split half was published contradicting it (I11, fail-stop on the key's own route). The arm now declines when the key and the affected child's extremes span a bit at or above the half's most significant bit, counted by `DIRECTION_ONE_SPLIT_ABOVE_HALF`, unless the child is a leaf certain to store the key in place — which needs a free slot, free bytes *and* a common prefix the key keeps, since a key that shortens that prefix grows every resident entry and makes the leaf split after all. `HOTOrderingGuardTest` pins both overflows, by count and by bytes, each failing without the decline. **Both are constructed states, not constructed streams:** a bounded search with the property generator — 36 seeded heavy streams of 8,000 work units each over the PATH, CAS and NAME indexes, plus longer 25,000-unit ones, reaching tries of height 6 and taking the Direction-1 arm dozens of times per stream — produced no put stream that reaches the shape, so its reachability from ordinary writes remains unproven and the guard is kept as a cheap decline to the complete frontier. In the same splice, a replacing split whose dropped boundary entry owned projection segment-page references used to throw and poison the transaction (a referenced blob replaced by an inline value that overflows its leaf still owns its page at that moment); those references are now carried onto the key's fresh leaf, counted by `FRONTIER_SPLIT_CARRIED_OWNER_SIDE_REFERENCES`; a constructed projection trie reaches the split through a refused cascade and fails without the carry. Results, on-disk format, revision visibility and write granularity are unchanged; answers change only where an insert previously failed or a range scan would have been out of order. Specified in `docs/HOT_INDEX_SPECIFICATION.md` §4.5.1, §4.5.2, §4.5.3 and §4.5.4. - **A HOT leaf-page rebuild could write past its page** — inserting a key that shortens a leaf's common prefix rewrites every resident entry with the reclaimed prefix bytes, and that rewrite was performed without checking that the grown entries still fit the 64 KiB page. Loading a JSON resource with a declared valid-time index failed mid-load with `IndexOutOfBoundsException: Range [64580, 64580 + 1165) out of bounds for length 65536` out of `HOTLeafPage.rebuildForShorterPrefix`. The rebuilt image is now sized before anything is written and the shrink is refused when the rebuilt entries plus the pending entry do not fit, leaving the page exactly as it was so the caller takes its ordinary "leaf is full" path (split, skipped consolidation merge, multi-page half). Results, on-disk format, revision visibility and write granularity are unchanged. Specified in `docs/HOT_INDEX_SPECIFICATION.md` §3.2.2. - **A HOT structural insert could place part of a leaf's key range past a sibling** — a HOT node's mask is shared by all its branches, so a bit one branch discriminates on is an unused, zero column for every child elsewhere, and a multi-value leaf there may hold keys on both sides of it. Two handlers assumed it could not. Folding such a leaf's split into the node inserted its upper half at that half's partial-key position, which lies past any sibling told apart by a less significant bit: the children were no longer ordered by first key, and that sibling's keys were routed to the inserted child. The complete-frontier splice, which takes over when a fold is declined, built its block around sides the block's own bits cut through: it gave up on a side straddling the block's most significant bit and did not look at the second bit at all, where a straddling side's keys are routed to the new key's leaf. Loading a JSON resource with a declared valid-time index at 100,000 records stopped with `IllegalStateException: HOT published structural splice is malformed (first: I8-children-sorted-by-firstkey …)`, raised by the writer's own validation, so nothing was published in that state. The fold is now declined unless the upper half lands beside its slot, and the complete-frontier splice splits a side where a bit of its block cuts through it, so that every child of the block is one-sided on the bits of its path. A leaf overflow whose fold is declined at a parent the cascade would fold into rather than nest under has no second placement of its own, so it is now discharged through that same complete-frontier splice: the parent's subtree is split immediately before the key and the key gets its own leaf. When the overflow was a byte overflow on a key the leaf already holds, that leaf carries the merged value and the split drops the stale entry; side-reference ownership and refusal behavior are specified in [HOT index specification §4.5.2](docs/HOT_INDEX_SPECIFICATION.md#452-merge-path). Further into the same load, splitting a full node published a half that broke the trie condition (I11) against its own child: a half keeps only the bits that still vary within it, so a child that sat safely below the node's most significant bit can sit above the half's. Only the half the new key joins was checked and lies on the key's route, so the other went out unseen, committed, and stopped the load three publications later with `HOT published structural path is malformed`, when an insert was first routed through it. A full-node decomposition, and the integrate cascade behind it, are now declined when a half would break the condition. The merge path's own capacity cascade is pre-checked with the same predicate, at both of its entries to the integration: an ancestor that would publish such a half, and one that would refuse the fold outright because the cascaded split bit's straddle partial is taken or would not land beside the slot, both hand the overflow to the complete-frontier splice before anything is allocated. Only where the cascade would fold — a parent taller than the split keeps nesting the halves under a node of their own, which touches no block. Current full-node candidate checks and the remaining cascade limit are specified in [the integration and branch paths](docs/HOT_INDEX_SPECIFICATION.md#453-integrate-propagating-a-binode). A failed index write on the merge path's split arm poisons the transaction exactly as it always did — before, inside or after the integration — because the key's document node is already written there while its index entry is not, so a caller that caught the failure and committed would hold a document with no posting. The new routing takes no exception to that rule: the overflow handed to the complete-frontier splice, a split the handler could not construct, a fault while the halves are retired and a failure inside the integration itself are all covered by it. The two pre-checks are believed to make a failure inside the integration unreachable, and no test exercises one. The 100,000-record valid-time correction stream the regression test replays (25 publications, 1,080,574 index-writer operations) never starts a merge-path capacity cascade, so both entries are covered by constructed scenarios instead, each of which fails without its own pre-check. Current cascade coverage is recorded in [the integration path](docs/HOT_INDEX_SPECIFICATION.md#453-integrate-propagating-a-binode). The Direction-1 re-split guard and its constructed regressions are specified in [the branch path](docs/HOT_INDEX_SPECIFICATION.md#454-branch-path); reachability of that shape from ordinary writes remains unproven. The same wrong assumption about routing held at three further placements, all found by the SH1 bitemporal benchmark on the experimental sorted-encoded-chunks prototype. A branch handler placed the key inside the subtree the sparse-partial descent chose, and the pair-leaf handler kept the descended leaf's slot while the key became that slot's new maximum — in both cases moving an extreme past a neighbour no handler had compared it against, since each handler proves only the node it rebuilds well-formed and an ancestor sees that subtree solely through its extremes. The benchmark's one-operation-per-commit load stopped at commit 121,582 on the branch placement with `HOT published structural path is malformed`, raised by the writer's own route validation, so again nothing wrong was committed. Every branch placement, the pair handler, the strand discharge and a sub-insert into a freshly compressed split half now prove that the key keeps the spine's order on the side its extreme moves, before anything is allocated, and hand the insert to the complete-frontier splice when it does not; a companion check proves the key stays on its own side of the boundary a full node's two halves become, at both branch decompositions of a full node, since only the half the key joins is examined afterwards. Third, the splice's own persistent split compressed each boundary slice plainly, and a compressed slice keeps only the columns that vary within it, so it could drop a column above a child's own most significant bit and break the trie condition (I11) against that child: the candidate was rejected as malformed although a canonical block over the very same children existed, and because every level of the retry splits the same boundary child at the same point, the whole splice could decline and the insert fail. Such a slice is now rebuilt as a canonical block over its ordered children, and a slice for which no block exists at all declines the candidate and retires every page it built, so the rebuild can never abort an insert: the splice goes on to the wider frontier and the higher levels exactly as it does for any other declined candidate. All three defects are reachable in this writer by construction and each regression fixture fails without its own guard, but the key streams that exposed them were captured on a prototype whose leaf layouts have not landed, so no production key stream is known to reach them. Results, on-disk format, revision visibility, write granularity and the validation itself are unchanged; answers change only where an insert previously failed. Specified in `docs/HOT_INDEX_SPECIFICATION.md` §4.5.2–§4.5.4, §4.5.6 and §4.5.7. - **A HOT structural insert could lose a key with every invariant intact** — when a full node's most significant bit splits it 1:31, the new key's half comes back bare, as the node's *own* child reference. Folding the key into that half published the fold by re-pointing that reference, and it already names the unfolded child in the transaction log, where registration stops at any reference that carries an identity: the folded page was never logged. The writer, which resolves the log first, and the commit both kept the unfolded child, so the key was absent from the revision that was committed while the trie stayed well-formed. No invariant, validator or detector over the trie can see that, because nothing in the trie is wrong; in a valid-time index it shows only as a record answered over part of its span, by the store that kept its other endpoint. The folded page is now published under a fresh `PageReference`, with the split's BiNode rebuilt around it, so registration reaches it and the commit carries it. A fold into such a half is also declined when the half is already at `MAX_NODE_ENTRIES` — a half the split compressed always has room, a lone child sized by its own inserts need not — and the complete structural frontier places the key instead, where the fold previously assembled a 33-child node and failed the put with `MultiNode must have 1-32 children`. As defense in depth, a structural put now re-reads its own key on the route the transaction log resolves; a route that does not produce it throws and marks the transaction rollback-only (`STRUCTURAL_PUT_NOT_READABLE`), so a publication the log cannot carry fails at the put instead of answering wrongly later. On-disk format, revision visibility and write granularity are unchanged; answers change only where a key was previously lost. Specified in `docs/HOT_INDEX_SPECIFICATION.md` §4.5.4 case 2 and §4.8. - **A join swapped so its indexed side drives it kept the old comparison direction** — Rule 5 of index decomposition (`IndexDecompositionStage.applyRule5`) exchanges a join's two inputs so the indexed side becomes the driving side, but a join's comparison is stated relative to the operand order: child 0 supplies the left operand. Exchanging the inputs alone left the comparison pointing the old way, so the join evaluated the mirrored predicate (`b lt a` where the query asked for `a lt b`) and silently answered with the wrong rows; equality joins were unaffected. The swap now reverses the comparison together with the inputs. The operand-order invariant is specified in the Rule 5 section of `docs/cost-based-optimizer-design.md`, and `QueryPlan.joinComparison()` exposes the operator so plan tests can assert it. ## [1.0.0-beta7] — 2026-07-15 ### Fixed - **Every write transaction leaked its three writer file descriptors** (#1109) — `NodeStorageEngineWriter.close()` never closed the underlying storage writer, and the storage-engine reader deliberately skips its page reader for write transactions, so nobody closed the `FileChannelWriter`: the buffered-data, SYNC-revisions and DSYNC-beacon channels leaked per commit until the GC's channel cleaner happened to reclaim them. Long-running, auto-committing workloads leaked 3 descriptors per commit and hit sporadic `Too many open files` failures. The writer is now closed when the page write transaction closes. - **Optimizer walkers closed the shared database on every compile** (#1109) — the CAS/path index walker and the valid-time index walker closed the store's *cached* collection (which closes the whole database and evicts it from the store) and potentially the cached shared resource session after every compiled query. Besides the churn, a transient I/O failure during the forced reopen was silently swallowed and disabled the VALIDTIME index rewrite for that compile — the source of the flaky `windows-latest` `ValidTimeIndexOptimizerRewriteTest` failures. The walkers now borrow the store-owned objects, close only the transactions they open, and log resolution failures. - **Unbounded reader file-descriptor growth** (#1109) — `FileChannelStorage.createReader()` opened two fresh `FileChannel`s per reader while read-only transactions stay cached in their session, so descriptor usage grew with every query evaluated against a long-lived session. Readers now share a striped, lazily-opened, reference-counted channel pool (up to `min(availableProcessors, 8)` pairs per storage, closed when the last borrowing reader closes): serial workloads keep the previous footprint, concurrent readers are capped at the stripe count, idle sessions hold zero descriptors, and striping keeps positional reads uncontended on Windows. As a side effect the valid-time optimizer gate test dropped from ~8 minutes to ~30 seconds. ## [1.0.0-beta6] — 2026-07-11 ### Added - **macOS and Windows support** — the Umbra-style off-heap frame-slot allocator now runs on all three platforms via a `VirtualMemory` SPI (POSIX `mmap` on Linux/macOS, `VirtualAlloc` reserve/commit with guaranteed-zero decommit-recommit reuse on Windows); the legacy Windows pool allocator stays reachable via `-Dsirix.allocator=windowspool` for rollback. Cross-platform CI lanes (macOS, Windows) back the claim; known limitation: crash-recovery re-initialization with `MEMORY_MAPPED` storage is unsupported on Windows (see `docs/KNOWN_LIMITATIONS.md`). ### Fixed - **Path-summary corruption on nested-array removal** (#1099) — removing an array element whose subtree held the only references to nested `__array__` path entries left stale in-memory references; a later `removeField` in the same transaction crashed with `Failed to move to nodeKey: N`. Cursor fast paths now validate in-memory references against the authoritative node mapping, and a removed subtree root that is a plain array releases its own `__array__` path entry (previously leaked). - **RevisionEpochTracker poisoning on double-close** (#1102) — a concurrent or reentrant transaction close deregistered its epoch ticket twice, permanently corrupting the tracker's free stack so no further transactions could be opened in the process. Tickets are now generation-tagged and ABA-safe, deregistration is idempotent, and both close paths run exactly once via a CAS latch. - **Large values crashed the commit** (#1076) — string values beyond the largest slotted-page size class (~512 KB) failed with `IndexOutOfBoundsException` instead of diverting to an overflow page; multi-megabyte values now round-trip (regression-tested at 200 KB, 600 KB and 2 MB). - **LZ4 decompression buffer leak** (#1074) — the allocator-owned output buffer leaked when the native decompression call itself threw; repeated corrupt reads could drain the frame-slot budget into an `OutOfMemoryError`. - macOS startup failure of the off-heap allocator (`__errno_location` binding, Linux-only mmap flags) fixed; allocator symbols bind lazily and per-OS. ## [1.0.0-beta5] — 2026-07-07 ### Fixed - The standalone launchers generated by `installDist`/`distZip` (`sirix-shell`, `sirix-cli`, `sirix-mcp`) now bake in the required JVM flags; previously `sirix-query` shipped none and `sirix-mcp` lacked `--add-modules=jdk.incubator.vector`, so any write operation (e.g. `jn:store`) crashed with `NoClassDefFoundError: jdk/incubator/vector/Vector`. - `sirix-shell` starts the interactive REPL when stdin is a terminal instead of requiring the undocumented `-iq` flag (piped input still executes as a single query), and Control-D/Control-C exit the shell cleanly instead of printing `Error: null` with a non-zero exit code. - README quick-start corrections: the JSONiq field-access example uses `$$.name` (the previous `.name` failed to parse), the update example no longer produces an object with a duplicate key, and the `sirix-shell` transcript matches the actual prompt and empty-line query termination. [JSONiq update patterns](https://sirix.io/docs/jsoniq-update-patterns.html) covers inserts, deletes, and replacements in nested objects and arrays, and how they affect revisions. ## [1.0.0-beta4] — 2026-06-19 ### Changed - Bumped brackit to `1.0-alpha7`, fixing the sequence functions (`fn:subsequence`/`reverse`/`remove`/`insert-before`) over JSON arrays and objects. ## [1.0.0-beta3] — 2026-06-19 ### Added - **Valid-time interval index** — a persistent HOT-backed Relational-Interval-Tree that accelerates `jn:valid-at` / `jn:open-bitemporal` with an `O(h)` point stab, plus a CAS-index narrowing path and a linear-scan fallback. Bumped brackit to `1.0-alpha6`. ## [1.0.0-beta2] — 2026-06-13 ### Changed - Version bump and packaging fixes. ## [1.0.0-beta1] — 2026-06-12 ### Added - **V0 on-disk format** with write-through (preallocated, buffered-beacon) commits. - **Typed, fail-closed vectorized analytics** — a columnar group-by/aggregate path that lands within a small factor of DuckDB at 100M records. ### Fixed - Durability and operational hardening across core, query, and the REST API; the REST read/query hot path no longer serializes concurrent requests (unordered `executeBlocking`). ## [1.0.0-alpha11 – alpha22] — 2026-06-04 … 2026-06-10 A rapid correctness, durability, and performance hardening series on the way to beta. Highlights: ### Fixed - **Serializer correctness** — invalid JSON on single-named-scalar projections; unescaped object keys; number round-trip (exponent-without-dot, overflow, subnormal). (alpha12–alpha14, alpha21) - **Query semantics** — int/double comparison (`XPTY0004`) over mixed-numeric fields via brackit; a predicate-over-unwrapped-array optimizer that destructively returned empty; `jn:open`/`xn:open` before the first revision now returns an empty sequence. (alpha14, alpha16, alpha19) - **Latency** — node-history/query latency (event-loop blocking + an uncached history path); array-unbox `O(n²)`. (alpha20) - **Durability / IO** — streaming-shredder back-pressure deadlock; flaky `UberPageCorruptionTest` (page data-length bounded to the file size); Docker fat-jar glob for versioned release builds. (alpha15, alpha21, alpha11) See the [GitHub releases](https://github.com/sirixdb/sirix/releases) for full per-version notes. ## [1.0.0-alpha10] The first 1.0 alpha series — the API is stabilizing toward a production 1.0 release. ### Added - **MCP Server** — Model Context Protocol server module for AI agent integration, with all 13 tool handlers wired to the SirixDB API - **Vector Embeddings** — HNSW index for semantic search, with tombstone deletion, query-time efSearch tuning, and serialization versioning - **Cost-Based Query Optimizer** — Multi-milestone optimizer with PathSummary statistics, selectivity estimation, cardinality propagation, predicate pushdown, DPhyp join ordering, and cost-driven pipeline routing - **Columnar Vectorized Execution** — Zero-copy columnar extraction with late materialization, SIMD filters, ColumnBatch pipeline, and Mesh data structure for join fusion - **`sdb:explain()` function** — Inspect query plans from JSONiq - **Comprehensive JSON test suite** — 199 tests across 14 files - **Fuzz tests** — Structural correctness fuzz tests for JSON mutations, DeltaVarIntCodec, DeweyIDEncoder, and PageLayout ### Changed - **HOT (Height Optimized Trie)** — PEXT-routed HOTLeafPage with prefix compression, zero-alloc MSDB, compact-first splits, atomic split+insert - **Removed heavy dependencies** — Eliminated Guava, Dagger, Checker Framework, lz4-java, snappy-java, and brownies-collections - **CI pipeline** — Parallelized test jobs and native image tests with matrix strategy - **Code quality** — Replaced all star imports with explicit imports project-wide ### Fixed - Production-readiness hardening across cost-based optimizer, HOT implementation, and MCP server - UberPage dual-beacon fallback for corruption recovery - Resource cleanup: try-with-resources for read-only transactions, defensive cleanup in snapshots - Lock leak prevention, bounds checks, and input validation audit - FSST compressed-domain comparison fixes and thread-safe extractors ## [0.11.0] — Previous Release ### Highlights - Bitemporal query support with `jn:valid-at()`, `jn:open-bitemporal()`, and valid time configuration - Sliding snapshot page versioning strategy - Native binary builds via GraalVM (sirix-cli, sirix-shell, REST API server) - Interactive JSONiq/XQuery shell (sirix-shell) - Kotlin CLI with full database operations - REST API with Keycloak OAuth2/OpenID Connect authentication - Merkle hash tree verification for tamper detection - Path, CAS, and Name indexes --- For the full commit history, see [GitHub Commits](https://github.com/sirixdb/sirix/commits/main).