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.

fix(autoindex): keep the new flag out of the generation digest, and fix the last two build sites

xerj-org3e7e8d94cf03
diff --git a/engine/crates/xerj-autoindex/src/generation_catalog.rs b/engine/crates/xerj-autoindex/src/generation_catalog.rs
index 75bd4119a..11b8c05d8 100644
--- a/engine/crates/xerj-autoindex/src/generation_catalog.rs
+++ b/engine/crates/xerj-autoindex/src/generation_catalog.rs
@@ -392,7 +392,6 @@ mod tests {
url: "http://engine".into(),
prefix: "ax".into(),
follow_symlinks: false,
- follow_symlinks_outside_root: false,
chunker_identity: "prepared-records-v1".into(),
embedding_identity_sha256: "a".repeat(64),
embedding_backend: "lexical".into(),
diff --git a/engine/crates/xerj-autoindex/src/generation_catalog_http_tests.rs b/engine/crates/xerj-autoindex/src/generation_catalog_http_tests.rs
index 37e800e1e..f485819d5 100644
--- a/engine/crates/xerj-autoindex/src/generation_catalog_http_tests.rs
+++ b/engine/crates/xerj-autoindex/src/generation_catalog_http_tests.rs
@@ -137,7 +137,6 @@ fn execution(generation_id: &str) -> ExecutionIdentity {
url: "http://engine".into(),
prefix: "ax".into(),
follow_symlinks: false,
- follow_symlinks_outside_root: false,
chunker_identity: "prepared-records-v1".into(),
embedding_identity_sha256: "a".repeat(64),
embedding_backend: "lexical".into(),
diff --git a/engine/crates/xerj-autoindex/src/lib.rs b/engine/crates/xerj-autoindex/src/lib.rs
index ddf25fa55..c28cad739 100644
--- a/engine/crates/xerj-autoindex/src/lib.rs
+++ b/engine/crates/xerj-autoindex/src/lib.rs
@@ -543,7 +543,6 @@ fn begin_non_graph_generation(
url: cfg.url.clone(),
prefix: cfg.prefix.clone(),
follow_symlinks: cfg.follow_symlinks,
- follow_symlinks_outside_root: cfg.follow_symlinks_outside_root,
chunker_identity,
embedding_identity_sha256: identity.identity_sha256,
embedding_backend: identity.backend,
@@ -3155,8 +3154,6 @@ pub fn run_index_report(cfg: IndexCfg) -> Result<(i32, Option<Value>)> {
&& expected.url == cfg.url
&& expected.prefix == cfg.prefix
&& expected.follow_symlinks == cfg.follow_symlinks
- && expected.follow_symlinks_outside_root
- == cfg.follow_symlinks_outside_root
&& expected.chunker_identity == prepared_records_identity(&cfg)?
&& !expected.graph_enabled
&& expected.brain == "disabled"
diff --git a/engine/crates/xerj-autoindex/src/state.rs b/engine/crates/xerj-autoindex/src/state.rs
index 7362e21f2..af21df0bf 100644
--- a/engine/crates/xerj-autoindex/src/state.rs
+++ b/engine/crates/xerj-autoindex/src/state.rs
@@ -1466,7 +1466,6 @@ mod sync_journal_tests {
url: "url".into(),
prefix: "prefix".into(),
follow_symlinks: false,
- follow_symlinks_outside_root: false,
chunker_identity: "chunker-v1".into(),
embedding_identity_sha256: "a".repeat(64),
embedding_backend: "lexical".into(),
diff --git a/engine/crates/xerj-autoindex/src/sync.rs b/engine/crates/xerj-autoindex/src/sync.rs
index 580cd838f..83aeac88b 100644
--- a/engine/crates/xerj-autoindex/src/sync.rs
+++ b/engine/crates/xerj-autoindex/src/sync.rs
@@ -115,11 +115,6 @@ pub struct ExecutionIdentity {
pub url: String,
pub prefix: String,
pub follow_symlinks: bool,
- /// `--follow-symlinks-outside-root`. Defaulted for journals written before
- /// the flag existed: those runs refused out-of-root targets, which is what
- /// `false` means, so an old journal reads back as the run it actually was.
- #[serde(default)]
- pub follow_symlinks_outside_root: bool,
pub chunker_identity: String,
/// Opaque, server-authenticated identity of the exact embedding execution
/// space. Autoindex must never synthesize model/tokenizer labels.
@@ -1752,7 +1747,6 @@ mod tests {
url: "url".into(),
prefix: "prefix".into(),
follow_symlinks: false,
- follow_symlinks_outside_root: false,
chunker_identity: "chunker-v1".into(),
embedding_identity_sha256: "a".repeat(64),
embedding_backend: "lexical".into(),
diff --git a/engine/crates/xerj-autoindex/src/sync_executor.rs b/engine/crates/xerj-autoindex/src/sync_executor.rs
index f4a3a2ced..48316b171 100644
--- a/engine/crates/xerj-autoindex/src/sync_executor.rs
+++ b/engine/crates/xerj-autoindex/src/sync_executor.rs
@@ -1992,7 +1992,6 @@ mod tests {
url: "http://engine".into(),
prefix: "ax".into(),
follow_symlinks: false,
- follow_symlinks_outside_root: false,
chunker_identity: "chunker-v1".into(),
embedding_identity_sha256: "a".repeat(64),
embedding_backend: "lexical".into(),
diff --git a/engine/crates/xerj-server/src/brain.rs b/engine/crates/xerj-server/src/brain.rs
index 44dfd73bc..77cbbb0a6 100644
--- a/engine/crates/xerj-server/src/brain.rs
+++ b/engine/crates/xerj-server/src/brain.rs
@@ -573,6 +573,7 @@ fn index_cfg(cfg: &BrainCfg, brain: &str, api_key: Option<String>) -> IndexCfg {
state_dir: None,
fresh: cfg.fresh,
follow_symlinks: false,
+ follow_symlinks_outside_root: false,
stub_globs: Vec::new(),
// `xerj brain` composes autoindex, so it inherits its ignore rules
// rather than inventing its own: build output does not belong in a