{"record":{"id":"9d5970cac070ad22","repo":"tinyhumansai/openhuman","slug":"memory-store-raw-chunks-limit-must-be-between-1-a","errorCode":null,"errorMessage":"memory_store_raw_chunks: limit must be between 1 and 1000","messagePattern":"memory_store_raw_chunks: limit must be between 1 and 1000","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/tools/raw_store/raw_chunks.rs","lineNumber":87,"sourceCode":"        let parsed: Args = serde_json::from_value(args)\n            .map_err(|e| anyhow::anyhow!(\"invalid arguments for memory_store_raw_chunks: {e}\"))?;\n        log::debug!(\n            \"[tool][memory_store] raw_chunks source_kind={:?} owner={:?} tags={:?} limit={:?}\",\n            parsed.source_kind,\n            parsed.owner,\n            parsed.tags_all_of,\n            parsed.limit\n        );\n        let source_kind = match parsed.source_kind.as_deref() {\n            Some(s) => Some(\n                SourceKind::parse(s)\n                    .map_err(|e| anyhow::anyhow!(\"memory_store_raw_chunks: {e}\"))?,\n            ),\n            None => None,\n        };\n        if let Some(limit) = parsed.limit {\n            if !(1..=1000).contains(&limit) {\n                return Err(anyhow::anyhow!(\n                    \"memory_store_raw_chunks: limit must be between 1 and 1000\"\n                ));\n            }\n        }\n        // The per-profile memory-source gate is applied inside `list_chunks`\n        // (before the row limit). None = unrestricted.\n        let query = ChunkQuery {\n            source_kind,\n            source_id: parsed.source_id,\n            owner: parsed.owner,\n            since_ms: parsed.since_ms,\n            until_ms: parsed.until_ms,\n            limit: parsed.limit,\n            offset: None,\n            exclude_dropped: false,\n        };\n        let guard = active_memory_guard()\n            .await","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/tools/raw_store/raw_chunks.rs#L69-L105","documentation":"Range validation in the memory_store_raw_chunks tool's execute: the `limit` argument, if provided, was outside 1–1000 (the schema declares minimum 1, maximum 1000). Fires after deserialization and SourceKind parsing, before the driver query; re-issue with a limit in range or omit it for the default 100.","triggerScenarios":"Thrown at src/openhuman/memory/tools/raw_store/raw_chunks.rs:87 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set limit between 1 and 1000 (default 100)","Omit limit to use the default"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}