AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
docs(air-gapped): SIGTERM to the process group does not clean the tree
xerj-org5719efb66f9e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0bc86dfef..528e8f31a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -61,9 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0bytes likewise. How often depends on load and on how the client frames anddrains — measurements on two machines differed in both directions, so treatthe hazard as real and the frequency as unpredictable rather than as a rate.- Tracked as [#485](https://github.com/xerj-org/xerj/issues/485) — every other- caveat in this release is numbered and this one, the most operationally- actionable of them, was not.+ Tracked as [#485](https://github.com/xerj-org/xerj/issues/485).If you control the client, chunk at 256 bytes or above.XERJ has such a path: `auth_middleware` is an axum layer, so a request that@@ -688,7 +686,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.043 alias documents lucene published are still in the catalog: the barrierstopped counting them, it does not delete them.- This does **not** close #360. The third abort the issue reports — `catalog+ This is not what closed #360 — that closed `completed` on 2026-08-15 via #407. The third abort the issue reports — `catalogread-back for ds:… disagrees with the sealed generation projection`, whichended the full `apache/lucene` run after 1,073s before this change and 663safter it — reproduces on this branch and is not an autoindex defect:@@ -955,7 +953,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0`term` on an analysed field in a serving path.Two things this change does **not** do. It does not touch the other half of- #362's thread — `case_insensitive` accepted and silently dropped on+ #423 (which consolidated #362, closed `not_planned` for that reason) — `case_insensitive` accepted and silently dropped on`prefix`/`wildcard` — so the issue's headline symptom survives:`{"term":{"title":"TestSegmentReader.java"}}` still answers `1` while`{"prefix":{"title":"TestSeg"}}` answers `0`. And it is not the narrower fixdiff --git a/docs/recipes/air-gapped-deployment.md b/docs/recipes/air-gapped-deployment.mdindex 3dfbe1034..1296104c6 100644--- a/docs/recipes/air-gapped-deployment.md+++ b/docs/recipes/air-gapped-deployment.md@@ -115,12 +115,16 @@ written into `STAGE` in the enclave block below, because that one is spelled outrather than derived.The extracted tree is removed by the `trap` on every exit this block can take-after the `cd` — success, `set -e`, a failed digest, and a hangup, `SIGTERM` or-Ctrl-C, because bash runs an `EXIT` trap when a non-interactive shell is killed-by a fatal signal. Only the archive and its `.sha256` should cross the airgap,-so that no unverified binary travels beside the verified one. What genuinely-survives is `SIGKILL`, an OOM kill and power loss, and what survives then is a-*half-extracted* tree — so if the block did not print its `staged …` line, look+after the `cd` — success, `set -e`, a failed digest, and a dropped session,+because bash runs an `EXIT` trap when a non-interactive shell is killed by a+fatal signal. `SIGTERM` delivered to the whole process group is the exception+and the one worth knowing: `timeout`, a CI runner, an Ansible task and a+systemd unit all signal the group, so `rm -rf` is killed alongside the shell+and the tree survives — measured 10 times out of 10, with the trap entered and+interrupted mid-delete in 8 of them. Only the archive and its `.sha256` should cross the airgap,+so that no unverified binary travels beside the verified one. What else+survives is `SIGKILL`, an OOM kill and power loss, and what survives in all of+these cases is a *half-extracted* tree — so if the block did not print its `staged …` line, lookbefore transferring.Three earlier versions of this paragraph were wrong, and each is worth knowingdiff --git a/landing/docs/recipes/air-gapped-deployment.html b/landing/docs/recipes/air-gapped-deployment.htmlindex cc3d88c14..636937b0c 100644--- a/landing/docs/recipes/air-gapped-deployment.html+++ b/landing/docs/recipes/air-gapped-deployment.html@@ -109,7 +109,7 @@"$STAGE/xerj" --versionecho "staged $ASSET ($want) in $OUT")</pre>- <p>The checksum proves archive integrity against the digest published beside it in the same release; it is not a signature, provenance statement, or attestation. <code class="inline">"$STAGE/xerj" --version</code> executes the staged binary, so the staging host must match the target platform; drop that line, or stage a different target by changing <code class="inline">TARGET</code> here <strong>and</strong> the triple spelled out in the enclave block below. The extracted tree is removed by the <code class="inline">trap</code> on every exit this block can take after the <code class="inline">cd</code> — success, <code class="inline">set -e</code>, a failed digest, and a hangup, <code class="inline">SIGTERM</code> or Ctrl-C, because bash runs an <code class="inline">EXIT</code> trap when a non-interactive shell is killed by a fatal signal. Only the archive and its <code class="inline">.sha256</code> should cross the airgap, so that no unverified binary travels beside the verified one. What genuinely survives is <code class="inline">SIGKILL</code>, an OOM kill and power loss, and what survives then is a <em>half-extracted</em> tree — so if the block did not print its <code class="inline">staged …</code> line, look before transferring. The trap body is <code class="inline">"$STAGE"</code> — relative to the directory the block already entered — and is installed before <code class="inline">tar</code>: an earlier version derived it from <code class="inline">$OUT</code> after the <code class="inline">cd</code>, which silently cleaned nothing when <code class="inline">OUT</code> was a relative path.</p>+ <p>The checksum proves archive integrity against the digest published beside it in the same release; it is not a signature, provenance statement, or attestation. <code class="inline">"$STAGE/xerj" --version</code> executes the staged binary, so the staging host must match the target platform; drop that line, or stage a different target by changing <code class="inline">TARGET</code> here <strong>and</strong> the triple spelled out in the enclave block below. The extracted tree is removed by the <code class="inline">trap</code> on every exit this block can take after the <code class="inline">cd</code> — success, <code class="inline">set -e</code>, a failed digest, and a dropped session, because bash runs an <code class="inline">EXIT</code> trap when a non-interactive shell is killed by a fatal signal. <code class="inline">SIGTERM</code> delivered to the whole process group is the exception and the one worth knowing: <code class="inline">timeout</code>, a CI runner, an Ansible task and a systemd unit all signal the group, so <code class="inline">rm -rf</code> is killed alongside the shell and the tree survives — measured 10 times out of 10, with the trap entered and interrupted mid-delete in 8 of them. Only the archive and its <code class="inline">.sha256</code> should cross the airgap, so that no unverified binary travels beside the verified one. What else survives is <code class="inline">SIGKILL</code>, an OOM kill and power loss, and what survives in all of these cases is a <em>half-extracted</em> tree — so if the block did not print its <code class="inline">staged …</code> line, look before transferring. The trap body is <code class="inline">"$STAGE"</code> — relative to the directory the block already entered — and is installed before <code class="inline">tar</code>: an earlier version derived it from <code class="inline">$OUT</code> after the <code class="inline">cd</code>, which silently cleaned nothing when <code class="inline">OUT</code> was a relative path.</p><p><strong>Transfer <code class="inline">$OUT</code> itself and land it in the enclave at <code class="inline">/opt/xerj-staging</code></strong>, so the archive sits at <code class="inline">/opt/xerj-staging/release/</code> — the fixed path the enclave blocks read. Then set the same approved <code class="inline">TAG</code> and verify before extracting:</p><pre class="code">(set -eu