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: file the ten-item program to 1.0 (discussion #1054) across ROADMAP/CHANGELOG
xerj-org9efa78f24a1a
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3950b43cf..841c45c69 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -18,6 +18,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0that section's issue links against the live tracker at every cut), and thecorpus-hub and mail-ingest lines state the closed statuses (PR[#1053](https://github.com/xerj-org/xerj/pull/1053)).+- Filed the ten-item program to the first official release+ ([discussion #1054](https://github.com/xerj-org/xerj/discussions/1054)) as+ issues #1055–#1064 with acceptance criteria, measured gates, and code refs+ verified against the tree (two ref paths corrected; the plan's rc.78 targets+ slid to rc.79 — rc.78 shipped before the discussion posted); created+ milestones rc.79/rc.80/v1.1.0 and labels (mcp, agents, autoindex, search,+ systemone, zero-token, roadmap); stood up the pinned plan tracker+ [#1065](https://github.com/xerj-org/xerj/issues/1065); rolled ROADMAP's+ *In flight* and GA-program sections to match and pointed the two zero-token+ items it subsumes at their new trackers (PR+ [#1066](https://github.com/xerj-org/xerj/pull/1066)).## [1.0.0-rc.78] - 2026-09-29diff --git a/ROADMAP.md b/ROADMAP.mdindex 383c42147..e7f124520 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -9,6 +9,7 @@ Last reviewed: 2026-09-29 (against `v1.0.0-rc.78` and `main`). Statuses trace to- **This file** is authoritative. If any other surface disagrees with it, this file wins — and that disagreement is a bug worth an issue.- **[Milestones](https://github.com/xerj-org/xerj/milestones)** — the release-by-release view. Every open issue is triaged onto a milestone; the next RC's milestone is the short-term roadmap.- **[Project board](https://github.com/users/xerj-org/projects/1)** — live status of every open item.+- **[Pinned plan tracker #1065](https://github.com/xerj-org/xerj/issues/1065)** — the working index of the ten-item program to 1.0 ([discussion #1054](https://github.com/xerj-org/xerj/discussions/1054)). This file remains authoritative; the tracker indexes the filed issues.## Shipping today (for context)@@ -85,12 +86,22 @@ of this file (PR [#1036](https://github.com/xerj-org/xerj/pull/1036)), andthe site work — corner brand and blog endings (PR[#1045](https://github.com/xerj-org/xerj/pull/1045)).-**In flight for rc.79:** nothing. The rc.78 milestone's three riders —-[#1030](https://github.com/xerj-org/xerj/issues/1030) (its records half-shipped in rc.78; the pre-indexed half is descoped, see the corpus-hub item-below) and the two defects the shortlist carried — were closed the same day-as the cut, 2026-09-29, and nothing has been filed since; the tracker is-empty.+**In flight for rc.79:** the first five items of the ten-item program to 1.0+posted in [discussion #1054](https://github.com/xerj-org/xerj/discussions/1054)+("Improvement plan till first official release", 2026-09-30) and indexed in the+pinned [plan tracker #1065](https://github.com/xerj-org/xerj/issues/1065):+[#1055](https://github.com/xerj-org/xerj/issues/1055) (`xerj_map` — the+catalog as an MCP tool), [#1056](https://github.com/xerj-org/xerj/issues/1056)+(`POST /_ask` + `xerj_plan` — prompt in, validated DSL out),+[#1057](https://github.com/xerj-org/xerj/issues/1057) (local zero-shot+decision head, tier 2 of System One), [#1058](https://github.com/xerj-org/xerj/issues/1058)+(`max_tokens` on every MCP search tool), and+[#1059](https://github.com/xerj-org/xerj/issues/1059) (stemming by default+for profiler-marked semantic fields). The plan targeted the first and last of+those at rc.78 — which was cut and published eight minutes before the+discussion posted — so they slide to rc.79. The rc.78-milestone riders those+replaced were closed the same day as the cut (2026-09-29), so this program is+the whole of what is open.**Open defects.** None — the tracker was emptied the same day as the rc.78cut. The last two defects with code consequences, #1031 (a source file that@@ -117,6 +128,8 @@ that is the tracking cadence now.The 1.0 bar: **every public claim verified against the release binary, and every input either honoured or refused loudly.** The gate list, each item an issue:+**The program to the first official release** ([discussion #1054](https://github.com/xerj-org/xerj/discussions/1054), 2026-09-30; filed 2026-09-30 as ten issues indexed in [tracker #1065](https://github.com/xerj-org/xerj/issues/1065)): **rc.79** — `xerj_map` ([#1055](https://github.com/xerj-org/xerj/issues/1055)), `/_ask` + `xerj_plan` ([#1056](https://github.com/xerj-org/xerj/issues/1056)), the local zero-shot decision head ([#1057](https://github.com/xerj-org/xerj/issues/1057)), MCP `max_tokens` ([#1058](https://github.com/xerj-org/xerj/issues/1058)), stemming by default ([#1059](https://github.com/xerj-org/xerj/issues/1059)); **rc.80** — self-judged hits ([#1060](https://github.com/xerj-org/xerj/issues/1060)), the decision cache flywheel ([#1061](https://github.com/xerj-org/xerj/issues/1061)), real `_watcher` detections ([#1062](https://github.com/xerj-org/xerj/issues/1062)), the calibration layer ([#1063](https://github.com/xerj-org/xerj/issues/1063)); **v1.1.0** — the open `xerj-decide` model ([#1064](https://github.com/xerj-org/xerj/issues/1064)). Every item carries a measured gate that binds at ship time (e.g. #1056's ≥ 200-pair result-set F1 ≥ 0.9; #1060 must beat hybrid 0.699 SciFact / 0.345 NFCorpus beyond the run spread or it does not ship; #1062's wrong-and-confident rate ≤ 5 % at p ≥ 0.8), and the packaging rule for all ten is a `benchmarks/<name>` directory with raw results plus a blog post with the losses left in.+- **Close the accepted-and-ignored class** (the [#204](https://github.com/xerj-org/xerj/issues/204) umbrella closed once its members carried their own tracking; PR [#258](https://github.com/xerj-org/xerj/pull/258) carried one pass of the sweep and is merged). Known members still open: `nested` `inner_hits` unparsed; `random_sampler`'s ignored `probability`; `weighted_avg` returning HTTP 200 with an error buried in the aggregations body instead of a 400 (the 400 is part of #258). **Retired from this list:** `nested` `score_mode`, which was parsed-then-ignored until [#862](https://github.com/xerj-org/xerj/pull/862) made a nested query roll its matching children's scores into the parent per `score_mode` (rc.71).- **Security hardening backlog** — cargo-audit and fuzzing landed in CI with rc.16 ([#207](https://github.com/xerj-org/xerj/issues/207) closed); the deferred TLS/auth/symlink hardening items from the Phase-2 security backlog remain.- **The mixed read-under-write p99 gap** — the 4 benchmark losses out of 85 measured comparisons, all the same root cause (reads landing on the live memtable under writer pressure). Written up in [`demo/playbooks/MIXED_READ_UNDER_WRITE_FINDING_2026-07-08.md`](./demo/playbooks/MIXED_READ_UNDER_WRITE_FINDING_2026-07-08.md); the candidate fix is a visibility/parity-mode design decision, not a micro-optimisation, and it stays on the GA gate until fixed or explicitly descoped with the benchmark loss kept public.@@ -129,7 +142,7 @@ The 1.0 bar: **every public claim verified against the release binary, and every**Stage 1 — all of it merged and released in v1.0.0-rc.75** (each landed as its own PR; the status lines below name the release that carries each item):-- **Judged search — a rerank stage.** Retrieve with BM25 or `hybrid`, then have a second stage re-judge the top *N* before the page is returned. *On `main` since rc.75:* the opt-in `rerank` block on `_search`, inert until an operator configures a key; a LOCAL cross-encoder provider was measured and did NOT beat the shipped hybrid (SciFact 0.7021 hybrid vs 0.7186 local-base, interval spanning zero; NFCorpus 0.3445 vs 0.3597 local-small), so it stays opt-in and unmerged. *Before rc.75:* the ES `rescore` block (query rescorer) and the `hybrid` query type with `rrf|linear`; there is no rerank stage. *History:* branch `feat/rerank-stage` — a `rerank` block on `_search` that hands the top hits to an external relevance judge, opt-in per request and inert until an operator configures a key. It is the only *search-time* feature that would send document text off the machine — proxy embeddings (`[embedding] default_endpoint`) send it at write time and the WAL tap replays writes to an external `_bulk` endpoint, both operator-configured and off by default ([every outbound connection](./docs/RERANK.md#every-way-data-leaves-a-xerj-node)) — which is exactly why a *local* judge is on this list. *The bar for a local model is a measured one.* On the BEIR test splits with the opt-in neural embedder (`--embed-mode neural`, all-MiniLM-L6-v2, CPU) the shipped `hybrid` RRF query is already the best arm we have — nDCG@10 **0.699–0.704 on SciFact and 0.345 on NFCorpus** over three runs, against 0.657 / 0.302 for BM25 alone, 0.676 / 0.329 for vectors alone, and 0.686 / 0.332 for "BM25 top-30 re-ordered by the same bi-encoder", which is *worse* than hybrid on both. So re-ordering with the embedder we already ship is not worth building, and **a local cross-encoder ships only if it beats 0.699 / 0.345 on the same harness, by more than the run-to-run spread** ([`benchmarks/neural-path-triage/`](./benchmarks/neural-path-triage/)). Those figures are with the neural embedder; the default embedder is lexical feature hashing and was not part of this run. The hybrid figure was the only arm that did not reproduce — 0.6993, 0.7023 and 0.7044 on SciFact across three runs of unchanged indices — because tied RRF scores were ordered by a per-process hash seed; [#940](https://github.com/xerj-org/xerj/issues/940) closed that on 2026-09-21 (tied fused scores no longer ordered by HashMap iteration), and the spread above is the pre-fix measurement. The 0.699 / 0.345 bar stands until re-measured on the deterministic path — a gain inside a spread that no longer exists is still not a gain until you show it.+- **Judged search — a rerank stage.** Retrieve with BM25 or `hybrid`, then have a second stage re-judge the top *N* before the page is returned. *On `main` since rc.75:* the opt-in `rerank` block on `_search`, inert until an operator configures a key; a LOCAL cross-encoder provider was measured and did NOT beat the shipped hybrid (SciFact 0.7021 hybrid vs 0.7186 local-base, interval spanning zero; NFCorpus 0.3445 vs 0.3597 local-small), so it stays opt-in and unmerged. *Before rc.75:* the ES `rescore` block (query rescorer) and the `hybrid` query type with `rrf|linear`; there is no rerank stage. *History:* branch `feat/rerank-stage` — a `rerank` block on `_search` that hands the top hits to an external relevance judge, opt-in per request and inert until an operator configures a key. It is the only *search-time* feature that would send document text off the machine — proxy embeddings (`[embedding] default_endpoint`) send it at write time and the WAL tap replays writes to an external `_bulk` endpoint, both operator-configured and off by default ([every outbound connection](./docs/RERANK.md#every-way-data-leaves-a-xerj-node)) — which is exactly why a *local* judge is on this list. *The bar for a local model is a measured one.* On the BEIR test splits with the opt-in neural embedder (`--embed-mode neural`, all-MiniLM-L6-v2, CPU) the shipped `hybrid` RRF query is already the best arm we have — nDCG@10 **0.699–0.704 on SciFact and 0.345 on NFCorpus** over three runs, against 0.657 / 0.302 for BM25 alone, 0.676 / 0.329 for vectors alone, and 0.686 / 0.332 for "BM25 top-30 re-ordered by the same bi-encoder", which is *worse* than hybrid on both. So re-ordering with the embedder we already ship is not worth building, and **a local cross-encoder ships only if it beats 0.699 / 0.345 on the same harness, by more than the run-to-run spread** ([`benchmarks/neural-path-triage/`](./benchmarks/neural-path-triage/)). Those figures are with the neural embedder; the default embedder is lexical feature hashing and was not part of this run. The hybrid figure was the only arm that did not reproduce — 0.6993, 0.7023 and 0.7044 on SciFact across three runs of unchanged indices — because tied RRF scores were ordered by a per-process hash seed; [#940](https://github.com/xerj-org/xerj/issues/940) closed that on 2026-09-21 (tied fused scores no longer ordered by HashMap iteration), and the spread above is the pre-fix measurement. The 0.699 / 0.345 bar stands until re-measured on the deterministic path — a gain inside a spread that no longer exists is still not a gain until you show it. *The next attempt on that bar is tracked as [#1060](https://github.com/xerj-org/xerj/issues/1060) (rc.80, plan item 4 of [discussion #1054](https://github.com/xerj-org/xerj/discussions/1054)): a local self-judge scoring `_p_relevant` per hit — same gate, loses-does-not-ship rule included.*- **Share links and a guest reading room.** Hand one person a link to one corpus or one document, read-only, without creating them an account. *On `main` since rc.75:* `xerj share` with scoped, expiring links, a guest reading room, and a `--tunnel` mode that names Cloudflare as a reader of the traffic. *Before rc.75:* nothing — there was no share or guest code in the tree, and reading a corpus needs an account session or an API key. *History:* branches `feat/share-links` (scoped, expiring links; a share can never name a system index) and `feat/console-corpus-reader` (the corpus browser and the reader the link opens) carried the work before it landed; pre-merge, their commits were marked unverified by their authors.- **Mail ingest.** *Shipped in rc.75:* `xerj autoindex` extracts `.eml` / MIME messages — headers, body, and attachments indexed as their own records ([#921](https://github.com/xerj-org/xerj/pull/921)) — and, since [#949](https://github.com/xerj-org/xerj/pull/949), streams `mbox` mailboxes and extracted Google Takeout exports (archives are never opened) and writes `replies_to` / `attachment_of` edges from the mail headers. Measured on a synthetic mailbox only; ingest memory remains the practical limit — [#948](https://github.com/xerj-org/xerj/issues/948)'s unbounded memtable retention is fixed by [#1002](https://github.com/xerj-org/xerj/pull/1002) (rc.77: variant-C retention ~677 → ~108 MB; the 300M run now fits its 8 GiB cap at 7,963.6 MiB, breaker engagements 178 → 2), and what remains is bounded per-segment cache retention until merge (issue [#1032](https://github.com/xerj-org/xerj/issues/1032), closed as deferred-not-fixed on 2026-09-29; the defect record under *Next release* carries its status).- **`autoindex` resilience.** *Fixed in rc.75* ([#934](https://github.com/xerj-org/xerj/pull/934)): one refused dataset no longer aborts the run, an over-size catalog is split, a throttling node is waited out for 600 s, and `--fresh` adopts old state. Before it: one dataset the server refused aborted the whole run ([#929](https://github.com/xerj-org/xerj/issues/929)), the `--no-graph` progress line is indistinguishable from a hang ([#931](https://github.com/xerj-org/xerj/issues/931)), and `xc-index.sh --fresh` fails on a previously indexed corpus ([#930](https://github.com/xerj-org/xerj/issues/930)). *History:* PR [#934](https://github.com/xerj-org/xerj/pull/934) (`fix/autoindex-resilience`) carried the fix. It is on this list because every later item assumes a folder can be indexed unattended.@@ -142,7 +155,7 @@ The 1.0 bar: **every public claim verified against the release binary, and every**Stage 2 — planned; the status lines say what exists today, which in most cases is less than the API surface suggests:**-- **Semantic detections.** A standing question over incoming documents: a cheap `percolate` prefilter selects candidates, a typed judgment decides (a small closed set of outcomes, not free text), and an alert carries a **calibrated probability** — calibrated meaning measured on held-out labelled data and published with its reliability curve, or not shipped. *Today:* the `percolate` query is real — stored queries are matched against a supplied document. There is **no alerting**: `PUT /_watcher/watch/{id}` stores the body in memory, answers `"condition":{"met":true}`, and no scheduler ever evaluates a watch (`es_compat.rs`, `put_watch`); the console's `.xerj_alert_rules` and `.xerj_alert_fires` indices have schemas and are created at bootstrap, and no evaluator reads them (`xerj-console-api/src/indices.rs`). Before anything new is built, `_watcher` must either run watches or refuse them — it is an accepted-and-ignored surface today.+- **Semantic detections.** A standing question over incoming documents: a cheap `percolate` prefilter selects candidates, a typed judgment decides (a small closed set of outcomes, not free text), and an alert carries a **calibrated probability** — calibrated meaning measured on held-out labelled data and published with its reliability curve, or not shipped. *Today:* the `percolate` query is real — stored queries are matched against a supplied document. There is **no alerting**: `PUT /_watcher/watch/{id}` stores the body in memory, answers `"condition":{"met":true}`, and no scheduler ever evaluates a watch (`es_compat.rs`, `put_watch`); the console's `.xerj_alert_rules` and `.xerj_alert_fires` indices have schemas and are created at bootstrap, and no evaluator reads them (`xerj-console-api/src/indices.rs`). Before anything new is built, `_watcher` must either run watches or refuse them — it is an accepted-and-ignored surface today. *Now tracked as [#1062](https://github.com/xerj-org/xerj/issues/1062) (rc.80, plan item 7 of [discussion #1054](https://github.com/xerj-org/xerj/discussions/1054)): evaluate or 501, percolate → decide → fire, ingest-time labels via `/_decide`, with the calibration layer of [#1063](https://github.com/xerj-org/xerj/issues/1063) behind the published p.*- **A real object-storage backend.** *Done in rc.77:* [#965](https://github.com/xerj-org/xerj/issues/965) wired the segment path to object storage — `storage.backend = "s3"` packs each segment family into one immutable ZBM1 bundle object with `snapshot.json` as the publication point, merges publish before retiring inputs, and a fresh node adopts the bucket (see *Shipping today* for the full statement). The client (`s3.rs`, real S3-compatible: Cloudflare R2, MinIO, AWS S3), the read-through segment cache, per-request cost accounting by billing class and the stop-don't-warn budget had landed in rc.75. Separately, `xerj autoindex s3://bucket/prefix` reads documents OUT of a bucket, which is a source, not a home.- **A block index mode for logs.** An index mode for log-shaped data that stores rows in time-partitioned columnar blocks and skips whole blocks by their min/max metadata, instead of building a per-term inverted index over every field. *Today:* the `xerj-logs` crate implements that design (columnar encoding, log-template extraction, time-range queries with block skipping, retention), is compiled into `xerj-engine` and `xerj-server` as a dependency, and is **called from no non-test code**. Log-shaped analytics run through the general columnar segment format and the aggregation suite. Wire it behind an explicit index setting and measure it against the general path on the same data, or remove it — the *Log-analytics data path* theme below is this same item.- **User-code ingest plugins.** *Today:* the ingest pipeline's transforms are built-in native Rust plugins — rename, drop, add, JSON parse, timestamp parse, PII redaction, grok, route — and they do run on `_bulk`. The crate is named `xerj-wasm`, but **the wasmtime backend is not in the tree**: there is no `wasmtime` dependency and no `wasm` feature, only a note that one could be added behind the same trait. Planned: a sandboxed runtime for user-supplied transforms with fuel and memory limits and no ambient filesystem or network access. Until then the refusal rule holds: a pipeline naming a processor this build does not implement is stored as unrunnable and every ingest through it is refused, never quietly run as a shorter pipeline.