Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(test): rename test files to remove redundant "observability" prefix

Steven Enamakel7a60acebcae3
diff --git a/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs b/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs
index 7c3a4709f9..3e79cc91ee 100644
--- a/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs
+++ b/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs
@@ -263,63 +263,6 @@ fn wallet_not_configured_sentinel_is_ascii_lowercase() {
);
}
-/// Sentry TAURI-RUST-QWW (#5164): a memory-store identifier rejection is
-/// deterministic in the caller's own input, so it repeats at the caller's
-/// retry rate (3,055 events / 1 user / 1 day) without carrying new signal.
-/// Every rejection wording the store emits must classify as
-/// `MemoryIdentifierRejected`, including the retired PII wording that
-/// pre-#5164 cores still send.
-
-#[test]
-fn classifies_memory_identifier_rejections_as_expected() {
- for msg in [
- "document namespace/key cannot contain secrets",
- "document namespace/key cannot contain personal identifiers",
- "document key cannot be empty",
- "kv key cannot contain secrets",
- "kv namespace/key cannot contain secrets",
- "episodic session_id/role cannot contain secrets",
- // The stringified RPC re-report shape that reaches the dispatcher.
- "openhuman.memory_store failed: document namespace/key cannot contain secrets",
- ] {
- assert_eq!(
- expected_error_kind(msg),
- Some(ExpectedErrorKind::MemoryIdentifierRejected),
- "must classify as MemoryIdentifierRejected: {msg}"
- );
- }
- // Full demotion path (classifier -> report arm) must not panic.
- report_error_or_expected(
- "document namespace/key cannot contain secrets",
- "rpc",
- "openhuman.memory_store",
- &[],
- );
-}
-
-/// Guard against over-suppression: a real failure on the same memory write
-/// path — SQLite, embeddings, the markdown sidecar — carries none of the
-/// rejection wording and MUST still reach Sentry (stay `None`). Nor may a
-/// bare "cannot contain secrets" from an unrelated domain borrow the
-/// memory-store demotion.
-
-#[test]
-fn does_not_classify_real_memory_write_failures_as_identifier_rejections() {
- for msg in [
- "upsert memory_docs: database is locked",
- "insert vector chunk: disk I/O error",
- "lookup existing document_id: no such table: memory_docs",
- "write_markdown_doc: permission denied",
- "webhook payload cannot contain secrets",
- ] {
- assert_ne!(
- expected_error_kind(msg),
- Some(ExpectedErrorKind::MemoryIdentifierRejected),
- "must NOT classify as MemoryIdentifierRejected: {msg}"
- );
- }
-}
-
/// Guard against over-suppression: an MCP transport failure that is NOT the
/// typed 401 (a 500, or a generic "unauthorized" with no MCP anchor) MUST
/// still reach Sentry (stay `None`) so a real defect isn't blinded.
diff --git a/crates/openhuman-core/src/core/observability_error_classification_network_tests.rs b/crates/openhuman-core/src/core/observability_error_classification_network_tests.rs
index 5b0b24a173..573d208f17 100644
--- a/crates/openhuman-core/src/core/observability_error_classification_network_tests.rs
+++ b/crates/openhuman-core/src/core/observability_error_classification_network_tests.rs
@@ -1,20 +1,13 @@
use super::*;
#[test]
-fn does_not_classify_unrelated_breaker_messages() {
- // Generic "circuit breaker open" without the `[memory_tree]` anchor
- // must not be silenced — other domains may use the same phrase for
- // real bugs that need to reach Sentry.
+fn does_not_classify_generic_breaker_messages() {
+ // A generic "circuit breaker open" must not be silenced: other domains
+ // may use the same phrase for real bugs that need to reach Sentry.
assert_eq!(
expected_error_kind("provider reliability: circuit breaker open for openai"),
None
);
- // The `[memory_tree]` tag alone is not enough — must co-occur with
- // the `circuit breaker open` substring.
- assert_eq!(
- expected_error_kind("[memory_tree] failed to run schema DDL: disk full"),
- None
- );
}
#[test]
diff --git a/crates/openhuman-core/src/core/observability_error_classification_provider_tests.rs b/crates/openhuman-core/src/core/observability_error_classification_provider_tests.rs
index ed5d34a119..fa51f942c8 100644
--- a/crates/openhuman-core/src/core/observability_error_classification_provider_tests.rs
+++ b/crates/openhuman-core/src/core/observability_error_classification_provider_tests.rs
@@ -367,10 +367,6 @@ fn does_not_classify_unrelated_empty_response_phrases() {
// channels/bus.rs:185 — channel-inbound graceful fallback (routes
// through report_error_or_expected; subject is "agent", not "model").
"[channel-inbound] agent returned empty response — finalizing draft with fallback",
- // memory/query/walk.rs:292 — debug-level memory walk, not a failure.
- "[memory_tree_walk] turn=3 LLM gave up (empty response)",
- // learning/reflection.rs:576 — reflection skip, not a failure.
- "[learning] reflection skipped (empty response — gate off or local AI unavailable)",
// agent/session_host/turn.rs:811 — "provider returned an empty
// final response" uses subject "provider", not "model"; must not match.
"[agent_loop] provider returned an empty final response (i=2, no text, no tool calls)",
@@ -383,31 +379,6 @@ fn does_not_classify_unrelated_empty_response_phrases() {
}
}
-#[test]
-fn classifies_memory_store_breaker_open() {
- // TAURI-RUST-52X (~455 events on self-hosted Sentry): the chunk-store
- // per-path circuit breaker tripped after consecutive SQLite init
- // failures. The Windows wire shape is wrapped by
- // `memory_tree::tree::rpc::pipeline_status_rpc`'s `chunk aggregates: …`
- // context so the substring matcher must survive that prefix.
- for raw in [
- // Canonical wire shape from `get_or_init_connection`.
- "[memory_tree] circuit breaker open for /home/u/.openhuman/workspace/memory_tree/chunks.db: too many consecutive init failures",
- // Canonical wire shape wrapped by the RPC handler's
- // `format!("chunk aggregates: {e:#}")` context.
- r"chunk aggregates: [memory_tree] circuit breaker open for C:\Users\u\.openhuman\users\6a09\workspace\memory_tree\chunks.db: too many consecutive init failures",
- // Wrapped further by the JSON-RPC dispatch layer before reaching
- // `report_error_or_expected`.
- r"rpc.invoke_method failed: chunk aggregates: [memory_tree] circuit breaker open for /home/u/.openhuman/workspace/memory_tree/chunks.db: too many consecutive init failures",
- ] {
- assert_eq!(
- expected_error_kind(raw),
- Some(ExpectedErrorKind::MemoryStoreBreakerOpen),
- "should classify memory-store breaker-open: {raw}"
- );
- }
-}
-
#[test]
fn classifies_disk_full_errors() {
for raw in [