Skip to content

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

fix(doctor): use driver-neutral text in check_memory_tree_db diagnostics\n\nWhen chunks.db is absent but the driver probe returns Ok, the old messages\n"DB not yet created" and "DB accessible at <same path>" contradict each\nother and imply SQLite is required. Separate the two concerns:\n\n- SQLite-artifact warn: "legacy SQLite artifact is absent: <path>"\n- Driver-probe ok: "memory driver accessible (N chunks); SQLite artifact: <path>"\n\nThe doc comment already used "legacy SQLite file" for this artifact;\nthe message text now matches. Update the missing-file test assertion to\nmatch the revised string.\n

shanu11b1599b67e6
diff --git a/src/openhuman/platform/doctor/core.rs b/src/openhuman/platform/doctor/core.rs
index 128ad9e9ae..d8a6493960 100644
--- a/src/openhuman/platform/doctor/core.rs
+++ b/src/openhuman/platform/doctor/core.rs
@@ -848,10 +848,7 @@ fn check_memory_tree_db(
if !db_path.exists() {
items.push(DiagnosticItem::warn(
cat,
- format!(
- "DB not yet created (first ingest will initialise it): {}",
- db_path.display()
- ),
+ format!("legacy SQLite artifact is absent: {}", db_path.display()),
));
}
@@ -868,7 +865,10 @@ fn check_memory_tree_db(
);
items.push(DiagnosticItem::ok(
cat,
- format!("DB accessible at {} ({count} chunks)", db_path.display()),
+ format!(
+ "memory driver accessible ({count} chunks); SQLite artifact: {}",
+ db_path.display()
+ ),
));
}
Err(err) => {
diff --git a/src/openhuman/platform/doctor/core_tests.rs b/src/openhuman/platform/doctor/core_tests.rs
index 6369ce454e..a8b7966c84 100644
--- a/src/openhuman/platform/doctor/core_tests.rs
+++ b/src/openhuman/platform/doctor/core_tests.rs
@@ -88,12 +88,13 @@ fn check_memory_tree_db_warns_when_db_missing() {
let mut items = vec![];
check_memory_tree_db(&cfg, &Ok(7), &mut items);
- // Warn item for the missing file.
+ // Warn item for the missing file (driver-neutral: describes the SQLite
+ // artifact as absent, not the driver as broken).
assert!(
items
.iter()
- .any(|i| i.severity == Severity::Warn && i.message.contains("not yet created")),
- "expected a 'not yet created' warn item; got: {items:?}",
+ .any(|i| i.severity == Severity::Warn && i.message.contains("absent")),
+ "expected a 'legacy SQLite artifact is absent' warn item; got: {items:?}",
);
// Driver probe result is surfaced regardless of file absence.
assert!(