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): the staging blocks get the same subshell as the enclave block
xerj-org0ac5630f193d
diff --git a/docs/recipes/air-gapped-deployment.md b/docs/recipes/air-gapped-deployment.mdindex 8135b1e36..243cf6186 100644--- a/docs/recipes/air-gapped-deployment.md+++ b/docs/recipes/air-gapped-deployment.md@@ -20,9 +20,10 @@ an optional, separately staged path.The running node makes no telemetry, update-check, or license-activation call.Release-download analytics are a property of the connected website/GitHub-staging surface, not of a running XERJ process. The installer also downloads a-release archive and its checksum from GitHub; an offline operator must stage-those files before entering the enclave.+staging surface, not of a running XERJ process. Getting the software at all+means downloading a release archive and its checksum from GitHub, which is why+section 1 below runs on a connected machine: an offline operator must stage+those two files before entering the enclave.## Defaults and boundaries@@ -39,10 +40,13 @@ those files before entering the enclave.| Runtime telemetry/update/license activation | None | No outbound call is made by the running binary for these purposes |This is a statement of defaults, not a claim that every browser UI request is-offline. **The bundled Console has three external Google Fonts link elements-(two preconnects and one stylesheet; stylesheet may fetch additional font files).**-Blocked requests fall back to system fonts. The engine and APIs-continue to work.+offline. **The bundled Console is three embedded documents — `index.html`,+`login.html`, and `setup.html`, served under `/_xerj-console/` — and each one+carries the same three external Google Fonts link elements (two preconnects and+one stylesheet; the stylesheet may fetch additional font files), so nine in+total.** An operator rewriting that HTML has to patch all three; `login.html`+and `setup.html` are the two a browser reaches first. Blocked requests fall back+to system fonts. The engine and APIs continue to work.This procedure does not claim that egress was measured here. If your policyrequires that boundary, apply an egress-deny rule and inspect firewall/log@@ -59,26 +63,26 @@ the version without the `v` prefix, target triple, and extension. The matchingThe following stages the Linux x86_64 musl archive only.```bash-set -eu--: "${TAG:?set TAG to an operator-approved vX.Y.Z release tag}"-if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]; then- echo "TAG must match vX.Y.Z with optional prerelease/build metadata: $TAG" >&2- exit 2-fi-VERSION="${TAG#v}"-TARGET="x86_64-unknown-linux-musl"-EXT="tar.gz"-STAGE="xerj-${VERSION}-${TARGET}"-ASSET="${STAGE}.${EXT}"-BASE="https://github.com/xerj-org/xerj/releases/download/${TAG}"-OUT="${OUT:-$PWD/xerj-airgap-${VERSION}-${TARGET}}"--mkdir -p "$OUT/release"-curl -fL --retry 3 -o "$OUT/release/$ASSET" "$BASE/$ASSET"-curl -fL --retry 3 -o "$OUT/release/$ASSET.sha256" "$BASE/$ASSET.sha256"-(+ set -eu++ : "${TAG:?set TAG to an operator-approved vX.Y.Z release tag}"+ if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]; then+ echo "TAG must match vX.Y.Z with optional prerelease/build metadata: $TAG" >&2+ exit 2+ fi+ VERSION="${TAG#v}"+ TARGET="x86_64-unknown-linux-musl"+ EXT="tar.gz"+ STAGE="xerj-${VERSION}-${TARGET}"+ ASSET="${STAGE}.${EXT}"+ BASE="https://github.com/xerj-org/xerj/releases/download/${TAG}"+ OUT="${OUT:-$PWD/xerj-airgap-${VERSION}-${TARGET}}"++ mkdir -p "$OUT/release"+ curl -fL --retry 3 -o "$OUT/release/$ASSET" "$BASE/$ASSET"+ curl -fL --retry 3 -o "$OUT/release/$ASSET.sha256" "$BASE/$ASSET.sha256"+cd "$OUT/release"want="$(sha256sum "$ASSET" | cut -d ' ' -f 1)"if [[ ! "$want" =~ ^[0-9a-f]{64}$ ]]; then@@ -87,9 +91,12 @@ curl -fL --retry 3 -o "$OUT/release/$ASSET.sha256" "$BASE/$ASSET.sha256"fiLC_ALL=C grep -qxF -e "$want $ASSET" -e "$want *$ASSET" \< <(tr -d '\r' < "$ASSET.sha256")+tar -xzf "$ASSET"test -x "$STAGE/xerj""$STAGE/xerj" --version+ rm -rf "$STAGE"+ echo "staged $ASSET ($want) in $OUT")```@@ -99,8 +106,20 @@ independent signature, provenance statement, or attestation. If your policyrequires signed releases or an external attestation, obtain and verify thatevidence separately; `.sha256` alone does not provide it.-After transfer, set the same approved `TAG` in the enclave and verify before-extracting:+`"$STAGE/xerj" --version` executes the staged binary, so this block wants a+staging host of the same platform as the target — Linux x86_64 for the archive+above. On any other staging host that one line fails, the block stops, and+nothing is staged; drop it, or set `TARGET` to the triple you are actually+staging. The extracted tree is removed either way: only the archive and its+`.sha256` should cross the airgap, so that no unverified binary travels beside+the verified one.++**Transfer `$OUT` itself, and land it in the enclave at `/opt/xerj-staging`**,+so that the archive is at `/opt/xerj-staging/release/` — that is the path the+enclave blocks below read, and they are written as fixed paths on purpose, so+that a mistyped variable cannot silently point the install at somewhere else.++Then set the same approved `TAG` in the enclave and verify before extracting:```bash(@@ -139,8 +158,10 @@ extracting:)```-Three details here are load-bearing, and each replaces something that looked-right and was not.+Seven details here are load-bearing, and each replaces something that looked+right and was not. The count has been wrong before: rounds of review added+paragraphs without touching the number above them, so if you add an eighth,+change this sentence in the same commit.**The digest is computed here and the file is searched for it, not the other wayround.** `sha256sum -c` reads the filename out of the `.sha256` — a file that@@ -160,7 +181,14 @@ checksum file written on Windows.**`set -eu` is inside the subshell.** At the top of the block it kills theoperator's login shell on a bad digest — actively harmful over a serial console,where the natural recovery is to re-paste without it, which is the fail-open-form. Inside, a failure ends the subshell and the operator keeps their session.+form: with errexit gone, a failed `grep -qxF` no longer stops `tar -xzf`, and+the block extracts and runs the archive it just refused. Inside, a failure ends+the subshell and the operator keeps their session, so that pressure never+arises. Every block on this page that decides something now has its `set -eu`+inside its own parentheses; the two that must leave variables behind for a later+paste — the verification blocks in section 4 — carry no `set -eu` at all, and+use `curl -fsS`, which reports its own failures without arming errexit in the+operator's session.**The archive is copied once, then hashed and extracted from that copy.** Thisis the defect eight earlier versions of this recipe shared without noticing.@@ -256,6 +284,12 @@ written to `/var/lib/xerj/admin.key` with restrictive permissions.sudo -u xerj /opt/xerj/bin/xerj --config /etc/xerj/xerj.toml```+This runs in the foreground and stops when you log out, so it is a first-start+check rather than a deployment. Section 4 needs the node reachable while you+type into a shell: use a second terminal, or supervise it. The unit file is in+[Operations](../../landing/docs/operations.html); this page deliberately does+not carry a second copy of it to drift out of date.+Keep the listener on loopback. A network-facing listener requires the separateproduction TLS/auth procedure; this recipe does not teach a cleartext opt-out.@@ -266,24 +300,28 @@ machine, download the three files consumed by the built-in loader and checksumthem for the transfer:```bash-set -eu--: "${OUT:?run section 1 in this shell first, or set OUT to the staging directory}"-MODEL="$OUT/model/all-MiniLM-L6-v2"-mkdir -p "$MODEL"-for FILE in config.json tokenizer.json model.safetensors; do- curl -fL --retry 3 -o "$MODEL/$FILE" \- "https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/$FILE"-done(+ set -eu++ : "${OUT:?set OUT to the staging directory section 1 printed}"+ MODEL="$OUT/model/all-MiniLM-L6-v2"+ mkdir -p "$MODEL"+ for FILE in config.json tokenizer.json model.safetensors; do+ curl -fL --retry 3 -o "$MODEL/$FILE" \+ "https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/$FILE"+ donecd "$MODEL"sha256sum config.json tokenizer.json model.safetensors > ../model.sha256+ echo "staged all-MiniLM-L6-v2 in $MODEL")```-Transfer `OUT/model` with the release. Verify it inside the enclave before-installing anything — the same fail-closed rule as section 1, and the reason-the check is a command here rather than a sentence:+Section 1 runs in a subshell, so `OUT` does not survive it — set `OUT` here to+the path that block printed. Transfer `$OUT/model` with the release, in the same+`/opt/xerj-staging` directory, so that the files land at+`/opt/xerj-staging/model/`. Verify them inside the enclave before installing+anything — the same fail-closed rule as section 1, and the reason the check is a+command here rather than a sentence:```bash(@@ -340,8 +378,6 @@ documentation was live-tested against a disconnected firewall. They verify theactual binary and local files in your enclave.```bash-set -eu-XERJ=/opt/xerj/bin/xerjDATA=/var/lib/xerjKEY="$(sudo cat "$DATA/admin.key")"@@ -358,8 +394,6 @@ local lexical embedder and needs zero model files; assert that it returns`_id` `1`.```bash-set -eu-curl -fsS -X PUT "http://127.0.0.1:9200/offline-demo" \-H "Authorization: ApiKey $KEY" -H 'Content-Type: application/json' \-d '{"mappings":{"properties":{"body":{"type":"semantic_text"}}}}'@@ -400,8 +434,6 @@ data directory is reused. Inspect and remove that overlay before an offline runif the directory is not fresh:```bash-set -eu-curl -fsS -H "Authorization: ApiKey $KEY" \http://127.0.0.1:9200/_xerj/wal_tapcurl -fsS -X DELETE -H "Authorization: ApiKey $KEY" \@@ -420,11 +452,13 @@ creates an external listener or silently uploads corpus data.- XERJ does not independently checksum the Hugging Face model files today.Stage and verify them according to your organization's model-supply-chainpolicy.-- The bundled Console falls back to system fonts, but its three external Google- Fonts link elements remain browser egress attempts unless your deployment- removes or rewrites that HTML; stylesheet may fetch additional font files.+- The bundled Console falls back to system fonts, but its nine external Google+ Fonts link elements — three in each of `index.html`, `login.html`, and+ `setup.html` — remain browser egress attempts unless your deployment removes+ or rewrites all three documents; the stylesheet may fetch additional font+ files.- This page does not claim a live disconnected-firewall run or measured browser- egress. The procedure is traced to the config, neural loader, installer, and+ egress. The procedure is traced to the config, neural loader, andrelease workflow; execute those checks in your target environment.Related references:diff --git a/landing/docs/recipes/air-gapped-deployment.html b/landing/docs/recipes/air-gapped-deployment.htmlindex 32e453970..8c84e8e25 100644--- a/landing/docs/recipes/air-gapped-deployment.html+++ b/landing/docs/recipes/air-gapped-deployment.html@@ -51,7 +51,7 @@<h1>Run XERJ fully offline — air-gapped deployment</h1><p><strong>Goal:</strong> follow this short Linux x86_64-musl procedure: stage one operator-approved release, install it as an unprivileged service, and keep the node on loopback. The base path is lexical and needs no model files; neural embedding is optional.</p>- <blockquote><p>This recipe is traced to the release workflow, installer, embedding loader, and configuration defaults. It is not a claim that an egress-disabled enclave run was live-tested. Execute the final firewall and operational checks in your own target environment.</p></blockquote>+ <blockquote><p>This recipe is traced to the release workflow, embedding loader, and configuration defaults. It is not a claim that an egress-disabled enclave run was live-tested. Execute the final firewall and operational checks in your own target environment.</p></blockquote><h2>Runtime boundary</h2><ul>@@ -69,31 +69,31 @@<tr><td>autoindex / MCP</td><td>Localhost defaults</td><td>Local clients; they do not create a public listener or silently upload corpus data.</td></tr><tr><td>Runtime telemetry, updates, license activation</td><td>None</td><td>The running binary makes no calls for these purposes.</td></tr></tbody></table>- <p>The bundled Console has three external Google Fonts link elements (two preconnects and one stylesheet; stylesheet may fetch additional font files). Blocked requests fall back to system fonts.</p>+ <p>The bundled Console is three embedded documents — <code class="inline">index.html</code>, <code class="inline">login.html</code>, and <code class="inline">setup.html</code>, served under <code class="inline">/_xerj-console/</code> — and each carries the same three external Google Fonts link elements (two preconnects and one stylesheet; the stylesheet may fetch additional font files), so nine in total. Rewriting that HTML means patching all three. Blocked requests fall back to system fonts.</p><p>This procedure does not claim that egress was measured here. If policy requires that boundary, apply an egress-deny rule and inspect firewall/log counters during acceptance.</p><h2>1. Stage an approved release</h2><p>Run this on a connected staging machine. Set <code class="inline">TAG</code> to the operator-approved <code class="inline">vX.Y.Z</code> release tag before running; there is no moving release alias here. This procedure stages the Linux x86_64 musl archive only. The matching <code class="inline">.sha256</code> is a separate per-archive asset.</p>-<pre class="code">set -eu+<pre class="code">(+ set -eu-: "${TAG:?set TAG to an operator-approved vX.Y.Z release tag}"-if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]; then- echo "TAG must match vX.Y.Z with optional prerelease/build metadata: $TAG" >&2- exit 2-fi-VERSION="${TAG#v}"-TARGET="x86_64-unknown-linux-musl"-EXT="tar.gz"-STAGE="xerj-${VERSION}-${TARGET}"-ASSET="${STAGE}.${EXT}"-BASE="https://github.com/xerj-org/xerj/releases/download/${TAG}"-OUT="${OUT:-$PWD/xerj-airgap-${VERSION}-${TARGET}}"+ : "${TAG:?set TAG to an operator-approved vX.Y.Z release tag}"+ if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]; then+ echo "TAG must match vX.Y.Z with optional prerelease/build metadata: $TAG" >&2+ exit 2+ fi+ VERSION="${TAG#v}"+ TARGET="x86_64-unknown-linux-musl"+ EXT="tar.gz"+ STAGE="xerj-${VERSION}-${TARGET}"+ ASSET="${STAGE}.${EXT}"+ BASE="https://github.com/xerj-org/xerj/releases/download/${TAG}"+ OUT="${OUT:-$PWD/xerj-airgap-${VERSION}-${TARGET}}"-mkdir -p "$OUT/release"-curl -fL --retry 3 -o "$OUT/release/$ASSET" "$BASE/$ASSET"-curl -fL --retry 3 -o "$OUT/release/$ASSET.sha256" "$BASE/$ASSET.sha256"+ mkdir -p "$OUT/release"+ curl -fL --retry 3 -o "$OUT/release/$ASSET" "$BASE/$ASSET"+ curl -fL --retry 3 -o "$OUT/release/$ASSET.sha256" "$BASE/$ASSET.sha256"-(cd "$OUT/release"want="$(sha256sum "$ASSET" | cut -d ' ' -f 1)"if [[ ! "$want" =~ ^[0-9a-f]{64}$ ]]; then@@ -102,11 +102,15 @@ curl -fL --retry 3 -o "$OUT/release/$ASSET.sha256" "$BASE/$ASSET.sha256"fiLC_ALL=C grep -qxF -e "$want $ASSET" -e "$want *$ASSET" \< <(tr -d '\r' < "$ASSET.sha256")+tar -xzf "$ASSET"test -x "$STAGE/xerj""$STAGE/xerj" --version+ rm -rf "$STAGE"+ echo "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. After transfer, set the same approved <code class="inline">TAG</code> and verify before extracting:</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 change <code class="inline">TARGET</code> otherwise. The extracted tree is removed so that only the archive and its <code class="inline">.sha256</code> cross the airgap.</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@@ -144,7 +148,7 @@ curl -fL --retry 3 -o "$OUT/release/$ASSET.sha256" "$BASE/$ASSET.sha256"<p><strong>The archive is copied once, then hashed and extracted from that copy.</strong> Earlier versions opened it twice at the staging path — once by <code class="inline">sha256sum</code>, once by <code class="inline">tar</code> — and anyone who can write there swaps the file between the two opens. <strong>Everything runs inside the subshell under <code class="inline">set -eu</code>, including the <code class="inline">TAG</code> guard.</strong> Bash does not terminate an <em>interactive</em> shell when a <code class="inline">${var:?}</code> expansion fails, so with the guard outside the block a paste printed its message and carried on with an empty version — and an attacker who can write the staging directory need only leave a file of that name beside the approved one. A subshell is not interactive, so the guard ends the block. <strong>The work directory must be writable by you and renameable by nobody else.</strong> The default sticky <code class="inline">/tmp</code> is exactly right; if yours is not, <code class="inline">install -d -m 0700 "$HOME/xerj-verify"</code> and point <code class="inline">TMPDIR</code> there. This page once advised a <em>root-owned</em> directory: root ownership was never the problem (<code class="inline">/tmp</code> is root-owned), a directory you cannot write is — <code class="inline">mktemp</code> then fails, and with that failure unchecked the advice was itself the trigger.</p><h2>2. Configure the base lexical node</h2>- <p>Create the service account first, then install only the staged binary. No model directory is needed for lexical mode:</p>+ <p>The service account and directories were created by the block above, alongside the install; the ownership shown there is an example, so use the equivalent account-management command for your target image. No model directory is needed for lexical mode.</p><p>Create <code class="inline">/etc/xerj/xerj.toml</code> with the complete base configuration. Explicit lexical mode and an empty endpoint keep this path model-free:</p><pre class="code">[server]bind_address = "127.0.0.1"@@ -159,24 +163,25 @@ mode = "lexical"default_endpoint = ""default_model = ""</pre><pre class="code">sudo -u xerj /opt/xerj/bin/xerj --config /etc/xerj/xerj.toml</pre>- <p>Start it as <code class="inline">xerj</code>. On first start the authenticated admin key is written to <code class="inline">/var/lib/xerj/admin.key</code>. Keep the listener on loopback; a network-facing listener needs the production TLS/auth procedure.</p>+ <p>Start it as <code class="inline">xerj</code>. On first start the authenticated admin key is written to <code class="inline">/var/lib/xerj/admin.key</code>. Keep the listener on loopback; a network-facing listener needs the production TLS/auth procedure. This command runs in the foreground and stops at logout, so it is a first-start check rather than a deployment — section 4 needs the node reachable from a shell, so use a second terminal or the unit file in <a href="/docs/operations.html">Operations</a>.</p><h2>3. Optional neural model</h2><p>Only when neural semantics are needed, stage the three loader files on the connected machine:</p>-<pre class="code">set -eu+<pre class="code">(+ set -eu-: "${OUT:?run section 1 in this shell first, or set OUT to the staging directory}"-MODEL="$OUT/model/all-MiniLM-L6-v2"-mkdir -p "$MODEL"-for FILE in config.json tokenizer.json model.safetensors; do- curl -fL --retry 3 -o "$MODEL/$FILE" \- "https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/$FILE"-done-(+ : "${OUT:?set OUT to the staging directory section 1 printed}"+ MODEL="$OUT/model/all-MiniLM-L6-v2"+ mkdir -p "$MODEL"+ for FILE in config.json tokenizer.json model.safetensors; do+ curl -fL --retry 3 -o "$MODEL/$FILE" \+ "https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/$FILE"+ donecd "$MODEL"sha256sum config.json tokenizer.json model.safetensors > ../model.sha256+ echo "staged all-MiniLM-L6-v2 in $MODEL")</pre>- <p>Transfer <code class="inline">OUT/model</code> with the release. Verify it inside the enclave before installing anything — the same fail-closed rule as section 1, and the reason the check is a command here rather than a sentence:</p>+ <p>Section 1 runs in a subshell, so <code class="inline">OUT</code> does not survive it — set it here to the path that block printed. Transfer <code class="inline">$OUT/model</code> with the release, in the same <code class="inline">/opt/xerj-staging</code> directory. Verify it inside the enclave before installing anything — the same fail-closed rule as section 1, and the reason the check is a command here rather than a sentence:</p><pre class="code">(set -eu@@ -203,27 +208,23 @@ done/opt/xerj/models/all-MiniLM-L6-v2/echo "installed all-MiniLM-L6-v2")</pre>- <p><code class="inline">model.sha256</code> names all three files, so a transfer that dropped or truncated one fails this check rather than installing a partial model. Then install the files:</p>- <p>Replace only the embedding block with:</p>+ <p><code class="inline">model.sha256</code> names all three files, so a transfer that dropped or truncated one fails this check rather than installing a partial model. As in section 1, the block that verifies is the block that installs, so a failed check leaves nothing behind for a later paste to pick up. Replace only the embedding block with:</p><pre class="code">[embedding]mode = "neural"local_model_dir = "/opt/xerj/models/all-MiniLM-L6-v2"</pre><p>XERJ does not independently verify model checksums; the transferred digest is an operator check, not a XERJ signature. Omit this section and all model assets for lexical search.</p><h2>4. Authenticate local clients and verify</h2>-<pre class="code">set -eu--XERJ=/opt/xerj/bin/xerj+<pre class="code">XERJ=/opt/xerj/bin/xerjDATA=/var/lib/xerjKEY="$(sudo cat "$DATA/admin.key")"export XERJ_API_KEY="$KEY"+"$XERJ" --versioncurl -fsS -H "Authorization: ApiKey $KEY" \http://127.0.0.1:9200/_cluster/health</pre><p>With the lexical node running, this semantic query uses the local lexical embedder and needs zero model files. Assert that it returns <code class="inline">_id</code> <code class="inline">1</code>:</p>-<pre class="code">set -eu--curl -fsS -X PUT "http://127.0.0.1:9200/offline-demo" \+<pre class="code">curl -fsS -X PUT "http://127.0.0.1:9200/offline-demo" \-H "Authorization: ApiKey $KEY" -H 'Content-Type: application/json' \-d '{"mappings":{"properties":{"body":{"type":"semantic_text"}}}}'curl -fsS -X POST "http://127.0.0.1:9200/offline-demo/_doc/1?refresh=true" \@@ -242,17 +243,17 @@ curl -fsS -X POST "http://127.0.0.1:9200/offline-demo/_search" \<h2>Existing data directories and local clients</h2><p>WAL tap is disabled by default, but <code class="inline">PUT /_xerj/wal_tap</code> persists a runtime overlay and reapplies it over TOML on restart. Inspect and remove an old overlay before reusing a data directory:</p>-<pre class="code">set -eu--curl -fsS -H "Authorization: ApiKey $KEY" http://127.0.0.1:9200/_xerj/wal_tap-curl -fsS -X DELETE -H "Authorization: ApiKey $KEY" http://127.0.0.1:9200/_xerj/wal_tap</pre>+<pre class="code">curl -fsS -H "Authorization: ApiKey $KEY" \+ http://127.0.0.1:9200/_xerj/wal_tap+curl -fsS -X DELETE -H "Authorization: ApiKey $KEY" \+ http://127.0.0.1:9200/_xerj/wal_tap</pre><p>Cluster mode remains disabled unless explicitly enabled and supplied a shared <code class="inline">cluster.auth_secret</code>. <code class="inline">xerj mcp</code> is a local stdio client to <code class="inline">XERJ_URL</code>; <code class="inline">xerj autoindex</code> also defaults to the local ES-compatible endpoint. Neither creates an external listener or silently uploads corpus data.</p><h2>What this recipe does not promise</h2><ul><li>Release <code class="inline">.sha256</code> files provide integrity, not signing or attestation.</li><li>XERJ does not independently checksum the Hugging Face model files.</li>- <li>The Console falls back to system fonts, but its three external Google Fonts link elements remain browser egress attempts unless deployment removes or rewrites that HTML; stylesheet may fetch additional font files.</li>+ <li>The Console falls back to system fonts, but its nine external Google Fonts link elements — three in each of <code class="inline">index.html</code>, <code class="inline">login.html</code>, and <code class="inline">setup.html</code> — remain browser egress attempts unless deployment removes or rewrites all three documents; the stylesheet may fetch additional font files.</li><li>This is a traced procedure, not a live disconnected-firewall run or measured browser-egress claim.</li></ul><p>Related: <a href="/docs/operations.html">production operations</a>, <a href="/docs/config.html">configuration reference</a>, <a href="https://github.com/xerj-org/xerj/blob/main/docs/EXPERIMENTAL_ONNX.md">experimental ONNX backend</a>, and <a href="https://github.com/xerj-org/xerj/blob/main/metrics/README.md">metrics privacy posture</a>.</p>