Skip to content

armgit / xerj

Public Imported from GitHub
0

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.

feat: arm decide-local in the default feature set (rc.80 gate finding)

xerj-org82778b07cdf1
diff --git a/engine/crates/xerj-api/Cargo.toml b/engine/crates/xerj-api/Cargo.toml
index edd24f1cd..5cd543d8c 100644
--- a/engine/crates/xerj-api/Cargo.toml
+++ b/engine/crates/xerj-api/Cargo.toml
@@ -12,10 +12,11 @@ authors.workspace = true
neural = ["xerj-engine/neural"]
# Local zero-shot decision head (issue #1057): tier 2 of the System One
# decide ladder, answering /v1/systemone and /_decide when the history
-# index has no support. Mirrors how `neural` is gated — off by default,
-# enabled by whoever links this crate (the xerj-server wiring is a
-# follow-up). Also arms the `judge` stage's model arm (issue #1060): the
-# same loader, the same model directory, the same loaded copy.
+# index has no support. Mirrors how `neural` is gated — enabled by whoever
+# links this crate; since rc.80 the shipped binary turns it on through
+# `xerj-server`'s default feature set (runtime stays opt-in via
+# `--decide-mode local`). Also arms the `judge` stage's model arm (issue
+# #1060): the same loader, the same model directory, the same loaded copy.
decide-local = ["dep:xerj-ai", "xerj-ai/decide-local", "xerj-rerank/judge-local"]
onnx-experimental = ["xerj-engine/onnx-experimental"]
diff --git a/engine/crates/xerj-server/Cargo.toml b/engine/crates/xerj-server/Cargo.toml
index ad2c11ac8..13b64ae2e 100644
--- a/engine/crates/xerj-server/Cargo.toml
+++ b/engine/crates/xerj-server/Cargo.toml
@@ -66,15 +66,20 @@ prost.workspace = true
# use — no special build, no separate binary. Build with
# `--no-default-features` for a slimmer binary without the neural backend
# (the lexical + proxy backends still work).
-default = ["neural"]
+default = ["neural", "decide-local"]
neural = ["xerj-engine/neural"]
onnx-experimental = ["xerj-engine/onnx-experimental"]
-# Tier-2 local decide head (issue #1057): off by default, matching how
-# xerj-api gates it — the shipped default keeps today's history-vote-only
-# decide contract and adds nothing to the build. Arming the tier at runtime
-# needs this feature AND `--decide-mode local --decide-model-dir <path>`
-# (or XERJ_DECIDE_MODE/XERJ_DECIDE_MODEL_DIR); a default build asked for
-# `--decide-mode local` boots on the history vote and says exactly that.
+# Tier-2 local decide head (issue #1057), ON by default since rc.80: the
+# rc.80 gate measurement (PR #1088) caught the stock release binary arming
+# nothing for `--decide-mode local` — release.yml builds default features,
+# and this feature was off, so tier 2 existed only in from-source builds.
+# Default-on matches the batteries-included rule one comment up, costs no
+# new dependency (the candle/tokenizers crates it names are already in the
+# default build via `neural`) and adds no egress path (no hf-hub; the
+# published inventory is unchanged). The tier stays OPT-IN at runtime:
+# `--decide-mode local --decide-model-dir <path>` (or
+# XERJ_DECIDE_MODE/XERJ_DECIDE_MODEL_DIR); without it a node boots on the
+# history vote exactly as before. `--no-default-features` still drops it.
decide-local = ["xerj-api/decide-local"]
# Diagnostic-only profiling. It is excluded from all shipped feature sets:
# jemalloc profiling changes allocator fast paths and pprof installs SIGPROF.