tinyhumansai/openhuman · error · anyhow::Error

memory_store_raw_chunks: memory driver does not support the

Error message

memory_store_raw_chunks: memory driver does not support the chunk family

What it means

The bound driver lacks the chunk family (as_chunks() is None), so the constructed ChunkQuery cannot be dispatched. The per-profile memory-source gate lives inside list_chunks; this error is purely driver capability.

Source

Thrown at src/openhuman/memory/tools/raw_store/raw_chunks.rs:110

        // The per-profile memory-source gate is applied inside `list_chunks`
        // (before the row limit). None = unrestricted.
        let query = ChunkQuery {
            source_kind,
            source_id: parsed.source_id,
            owner: parsed.owner,
            since_ms: parsed.since_ms,
            until_ms: parsed.until_ms,
            limit: parsed.limit,
            offset: None,
            exclude_dropped: false,
        };
        let guard = active_memory_guard()
            .await
            .map_err(|e| anyhow::anyhow!("memory_store_raw_chunks: {e}"))?;
        let mut rows = guard
            .as_chunks()
            .ok_or_else(|| {
                anyhow::anyhow!(
                    "memory_store_raw_chunks: memory driver does not support the chunk family"
                )
            })?
            .list_chunks(&query, None)
            .await?;
        if let Some(required) = parsed.tags_all_of.as_ref() {
            if !required.is_empty() {
                rows.retain(|c| {
                    required
                        .iter()
                        .all(|t| c.metadata.tags.iter().any(|ct| ct == t))
                });
            }
        }
        log::debug!(
            "[tool][memory_store] raw_chunks returning rows={}",
            rows.len()
        );

View on GitHub (pinned to 7491200858)

Solutions

  1. Bind a chunk-capable driver
  2. Check why the active driver lacks MemoryChunks
  3. Use a different retrieval mode supported by the driver
Defensive patterns

Strategy: type-guard

When it happens

Trigger: Thrown at src/openhuman/memory/tools/raw_store/raw_chunks.rs:110 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/011a0c2142f4c1ff. Report an issue: GitHub.