The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(core): add observability error classification network tests
Steven Enamakel1cae4d7feb58
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.rsindex 21d621b62d..5b0b24a173 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,45 +1,5 @@use super::*;-#[test]-fn classifies_subconscious_schema_unavailable_errors() {- for raw in [- // SQLITE_IOERR_SHMMAP (4618) — the original escalating issue (#3231).- "failed to run subconscious schema DDL: disk I/O error: Error code 4618: I/O error within the xShmMap method (trying to open a new shared-memory segment)",- // SQLITE_CANTOPEN (14) — sibling variant from the user report.- "failed to run subconscious schema DDL: unable to open database file: Error code 14: Unable to open the database file",- // Failure surfaced at the open step rather than the DDL step.- "failed to open subconscious DB: /home/u/.openhuman/subconscious/subconscious.db: unable to open the database file",- // Wrapped in outer RPC context — classifier runs on the full chain.- "rpc.invoke_method failed: failed to run subconscious schema DDL: disk I/O error: Error code 4618",- ] {- assert_eq!(- expected_error_kind(raw),- Some(ExpectedErrorKind::SubconsciousSchemaUnavailable),- "should classify subconscious schema DB-unavailable: {raw}"- );- }-}--#[test]-fn does_not_classify_subconscious_lock_or_unrelated_open_failures() {- for raw in [- // Transient busy/locked is retried by the store and, if persistent,- // is a real contention signal — must NOT be demoted here.- "failed to run subconscious schema DDL: database is locked",- // Cant-open text without the subconscious envelope must not match.- "failed to open memory DB: unable to open the database file",- // Subconscious envelope but a non-FS error (e.g. malformed SQL) stays- // a real bug worth reporting.- "failed to run subconscious schema DDL: near \"CREAT\": syntax error",- ] {- assert_ne!(- expected_error_kind(raw),- Some(ExpectedErrorKind::SubconsciousSchemaUnavailable),- "must not classify as subconscious schema unavailable: {raw}"- );- }-}-#[test]fn does_not_classify_unrelated_breaker_messages() {// Generic "circuit breaker open" without the `[memory_tree]` anchor