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.

release: fix the two CI failures on the rc.80 cut PR

xerj-org2627e2188725
diff --git a/.github/scripts/release-notes-gate.sh b/.github/scripts/release-notes-gate.sh
index 051406347..db70668b8 100755
--- a/.github/scripts/release-notes-gate.sh
+++ b/.github/scripts/release-notes-gate.sh
@@ -179,7 +179,7 @@ else
case "$state" in
closed) pass "#$n closed (cited under ### Fixed)" ;;
open)
- if printf '%s\n' "$entry" | grep -qiE "$MARKERS"; then
+ if printf '%s\n' "$entry" | grep -iE "$MARKERS" >/dev/null; then
pass "#$n open, and the entry says what remains open"
else
fail "#$n is OPEN but its ### Fixed entry claims it whole (the rc.18 #361 drift) - close the issue, or say in the entry what remains open: ${entry:0:100}..."
@@ -208,11 +208,15 @@ elif [ -n "$SECTION" ]; then
fail "found no PR-numbered merges in $PREV_TAG..HEAD - wrong window or the parse broke; fix the gate, do not merge around it"
fi
for n in $merged_prs; do
- if printf '%s\n' "$exempt" | grep -qx "$n"; then
+ # grep reads to EOF (no -q): under `set -o pipefail`, a -q that exits on
+ # first match closes the pipe while printf is still writing, and the
+ # EPIPE turns a SUCCESSFUL match into a pipeline failure. CI hit exactly
+ # that on 7 cited PRs before this comment existed.
+ if printf '%s\n' "$exempt" | grep -x "$n" >/dev/null; then
note "PR #$n on the notes-exempt list"
continue
fi
- if printf '%s\n' "$SECTION" | grep -qE "#$n([^0-9]|\$)|/(pull|issues)/$n([^0-9]|\$)"; then
+ if printf '%s\n' "$SECTION" | grep -E "#$n([^0-9]|\$)|/(pull|issues)/$n([^0-9]|\$)" >/dev/null; then
pass "PR #$n cited in [$VERSION]"
continue
fi
@@ -224,7 +228,7 @@ elif [ -n "$SECTION" ]; then
--jq '.data.repository.pullRequest.closingIssuesReferences.nodes[].number' 2>/dev/null)" || closing=""
cited_via=""
for i in $closing; do
- if printf '%s\n' "$SECTION" | grep -qE "#$i([^0-9]|\$)|/(pull|issues)/$i([^0-9]|\$)"; then
+ if printf '%s\n' "$SECTION" | grep -E "#$i([^0-9]|\$)|/(pull|issues)/$i([^0-9]|\$)" >/dev/null; then
cited_via="$i"; break
fi
done
diff --git a/content/answers/does-xerj-support-s3-alerting-plugins.md b/content/answers/does-xerj-support-s3-alerting-plugins.md
index 65eaea19c..0eaebfd2a 100644
--- a/content/answers/does-xerj-support-s3-alerting-plugins.md
+++ b/content/answers/does-xerj-support-s3-alerting-plugins.md
@@ -34,9 +34,9 @@ evidence:
- claim: "The source side is implemented: xerj autoindex s3://bucket/prefix lists a prefix and streams each changed object into a local mirror — the mirrored object bytes land on local disk under the state directory."
source: "docs/OBJECT_STORAGE.md"
- claim: "Since v1.0.0-rc.80, PUT /_watcher/watch/{id} either accepts a watch it will evaluate (interval trigger, one-index input.search, condition.xerj_decide, index_alert action — a background task prefilters with the watch's query, runs /_decide per rendered question, writes .xerj_alert_fires on a non-abstaining win at >= p_min) or refuses the body with a 501 naming what is not evaluated. An earlier version of this claim said no code evaluates a stored watch — true before rc.80, false since."
- source: "engine/crates/xerj-api/src/es_compat.rs (PR #1082)"
+ source: "engine/crates/xerj-api/src/es_compat.rs"
- claim: ".xerj_alert_fires is written by the _watcher evaluator since rc.80 (fire records carry the RAW decide confidence plus p_cal when a calibration is fitted); .xerj_alert_rules still has no writer — the console does not author watches."
- source: "engine/crates/xerj-console-api/src/indices.rs, PR #1082"
+ source: "engine/crates/xerj-console-api/src/indices.rs"
- claim: "Ingest transforms are built-in native Rust plugins; xerj-wasm has no wasmtime dependency and no wasm feature."
source: "engine/crates/xerj-wasm/Cargo.toml"
- claim: "The xerj-logs crate is compiled in as a dependency and is not wired: it has zero call sites in non-test code."