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(console-api): honestly disclose dashboards/views SSE /_stream is unimplemented
xerj-org467706d33908
diff --git a/engine/crates/xerj-console-api/src/dashboards.rs b/engine/crates/xerj-console-api/src/dashboards.rsindex dcd70bf66..6d7457aa7 100644--- a/engine/crates/xerj-console-api/src/dashboards.rs+++ b/engine/crates/xerj-console-api/src/dashboards.rs@@ -6,9 +6,16 @@//! etag for optimistic concurrency; private dashboards skip that check//! since only the owner ever writes them.//!-//! SSE streaming (`/_stream`) lands in a follow-up commit so an SE-//! mid-call can see "another user just renamed this dashboard" without-//! polling. CRUD ships first because it's the bigger blocker.+//! Real-time push (SSE `/_stream`) is NOT implemented in this release:+//! there is no `/_stream` endpoint on dashboards or views, and none is+//! registered in the router. Concurrent edits are surfaced only on the+//! next read — an SE who wants to see "another user just renamed this+//! dashboard" must re-fetch (poll) rather than receive a live event.+//! The If-Match etag on writes still makes a stale update fail loudly+//! with 409 instead of silently clobbering, so correctness never+//! depends on live push; it only trades a lower-latency notification.+//! CRUD is complete and correct; live push is deferred (tracked in the+//! crate-level "Coming after RC" list in `lib.rs`).use axum::{extract::{Path, State},@@ -402,3 +409,27 @@ fn enforce_etag(headers: &HeaderMap, current_version: u64) -> ConsoleResult<()>))),}}++#[cfg(test)]+mod tests {+ /// Locks the module-doc disclosure that SSE live push (`/_stream`)+ /// is NOT implemented: no route registered by this crate may expose+ /// a `_stream` (server-sent-events) endpoint. If real-time push is+ /// ever added, this assertion fails on purpose so the disclosure at+ /// the top of this module — and the crate-level "Coming after RC"+ /// list in `lib.rs` — is updated in the same change instead of+ /// silently drifting out of date.+ #[test]+ fn no_sse_stream_endpoint_is_registered() {+ let offenders: Vec<&str> = crate::router::known_routes()+ .iter()+ .copied()+ .filter(|route| route.contains("_stream"))+ .collect();+ assert!(+ offenders.is_empty(),+ "module doc states SSE /_stream is not implemented, \+ but these routes exist: {offenders:?}"+ );+ }+}