Skip to content

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

chore(documents): shorten spreadsheet import unavailable message

Steven Enamakel4aa4c91bf096
diff --git a/crates/openhuman-core/src/memory/README.md b/crates/openhuman-core/src/memory/README.md
index c15a42a4a1..c3aa964f2c 100644
--- a/crates/openhuman-core/src/memory/README.md
+++ b/crates/openhuman-core/src/memory/README.md
@@ -203,10 +203,12 @@ filed by what they read. The [TinyDocs memory converter](../modules/documents/me
streams PDF, DOCX and PPTX to the configured module when the `documents`
feature is on, then `NativeConverter` handles text, markdown, HTML and code.
XLSX remains recognized by the import route but is temporarily refused before
-module loading while a safe TinyMemory release is pending; it cannot fall
-through to a native parser. The host carries only the bus contract and current
-config; it has no local office parser fallback. Every successful ingest queues
-a belief build of the source's scope.
+module loading until fixed Calamine dependencies are verified in both the
+published TinyMemory and TinyDocs artifacts (tracked by
+[`tinyhumansai/tinymemory#293`](https://github.com/tinyhumansai/tinymemory/issues/293));
+it cannot fall through to a native parser. The host carries only the bus
+contract and current config; it has no local office parser fallback. Every
+successful ingest queues a belief build of the source's scope.
Sources ([`sources/`](./sources/)) are the `[[memory.sources]]` registry in `config.toml`:
a folder, a file, a web page, a GitHub repository or an RSS feed, plus how
diff --git a/crates/openhuman-core/src/modules/documents.rs b/crates/openhuman-core/src/modules/documents.rs
index 5141b568f4..db438dfc44 100644
--- a/crates/openhuman-core/src/modules/documents.rs
+++ b/crates/openhuman-core/src/modules/documents.rs
@@ -37,11 +37,8 @@ use crate::config::Config;
/// Registry id of the module these calls go to.
const MODULE_ID: &str = "tinydocs";
-/// Temporary host-side stop while the published TinyMemory spreadsheet parser
-/// is being repaired. Keep the wire format recognized so callers cannot fall
-/// through to a different parser.
-const SPREADSHEET_IMPORT_UNAVAILABLE: &str =
- "spreadsheet imports are temporarily unavailable pending a safe TinyMemory release";
+/// User-facing reason for the temporary host-side spreadsheet import stop.
+const SPREADSHEET_IMPORT_UNAVAILABLE: &str = "spreadsheet imports are temporarily unavailable";
/// How much of a held document to pull per `ReadOutput`.
///
@@ -378,7 +375,7 @@ mod tests;
/// Extract structured document sections using the published intake contract.
/// XLSX is recognized by the contract but temporarily refused before loading
-/// the module while the published TinyMemory parser is repaired.
+/// the module while the published parser dependencies are being repaired.
pub async fn extract_document(
config: &Config,
document: &[u8],
@@ -404,7 +401,7 @@ pub async fn extract_document(
/// Convert a streamed PDF, Word document, or presentation to complete
/// normalized Markdown. XLSX is temporarily refused before loading the module
-/// while the published TinyMemory parser is repaired.
+/// while the published parser dependencies are being repaired.
///
/// Unlike [`extract_document`], this operation preserves the full text needed
/// for memory persistence and returns it through the module's bounded held
diff --git a/crates/openhuman-core/src/modules/documents/memory_converter.rs b/crates/openhuman-core/src/modules/documents/memory_converter.rs
index 6306595e40..f8a139612e 100644
--- a/crates/openhuman-core/src/modules/documents/memory_converter.rs
+++ b/crates/openhuman-core/src/modules/documents/memory_converter.rs
@@ -4,7 +4,8 @@
//! with TinyMemory's native converter; PDF, DOCX and PPTX are extracted by the
//! configured TinyDocs module, with no host-side parser fallback. XLSX remains
//! routed here to prevent native fallback, but the host refuses spreadsheet
-//! imports until a safe TinyMemory release is available.
+//! imports pending verified fixed Calamine dependencies in the published
+//! TinyMemory and TinyDocs artifacts (tracked by TinyMemory#293).
use crate::config::Config;
use tinymemory_integrations::documents::ConverterChain;
diff --git a/crates/openhuman-core/src/modules/documents/memory_converter_tests.rs b/crates/openhuman-core/src/modules/documents/memory_converter_tests.rs
index c7bef63a53..05f814953a 100644
--- a/crates/openhuman-core/src/modules/documents/memory_converter_tests.rs
+++ b/crates/openhuman-core/src/modules/documents/memory_converter_tests.rs
@@ -268,7 +268,7 @@ async fn spreadsheet_memory_import_is_refused_before_loading_tinydocs() {
assert!(
matches!(error, Error::Converter { ref converter, ref message }
if converter == "tinydocs"
- && message == "spreadsheet imports are temporarily unavailable pending a safe TinyMemory release"),
+ && message == "spreadsheet imports are temporarily unavailable"),
"spreadsheet import should fail with the temporary typed-unavailable reason, got {error}"
);
}
diff --git a/crates/openhuman-core/src/modules/documents_tests.rs b/crates/openhuman-core/src/modules/documents_tests.rs
index 30fbc9b795..2598bcc00b 100644
--- a/crates/openhuman-core/src/modules/documents_tests.rs
+++ b/crates/openhuman-core/src/modules/documents_tests.rs
@@ -157,7 +157,7 @@ async fn a_disabled_host_reports_unavailable_without_starting_a_broker() {
async fn spreadsheet_markdown_conversion_is_unavailable_before_loading_the_document_module() {
let mut config = offline_config();
config.modules.enabled = false;
- let expected = "spreadsheet imports are temporarily unavailable pending a safe TinyMemory release";
+ let expected = "spreadsheet imports are temporarily unavailable";
assert!(matches!(
super::convert_markdown(&config, tinydocs_bus::DocumentFormat::Xlsx, b"workbook")
@@ -170,7 +170,7 @@ async fn spreadsheet_markdown_conversion_is_unavailable_before_loading_the_docum
async fn spreadsheet_structured_extraction_is_unavailable_before_loading_the_document_module() {
let mut config = offline_config();
config.modules.enabled = false;
- let expected = "spreadsheet imports are temporarily unavailable pending a safe TinyMemory release";
+ let expected = "spreadsheet imports are temporarily unavailable";
let extraction = tinydocs_bus::ExtractDocumentSpec::new(tinydocs_bus::DocumentFormat::Xlsx);
assert!(matches!(
super::extract_document(&config, b"workbook", &extraction).await,