{"record":{"id":"b63642791359029e","repo":"tinyhumansai/openhuman","slug":"payload-summarizer-invoke-in-parent-does-not-suppo","errorCode":null,"errorMessage":"payload summarizer invoke_in_parent does not support file prompt source: {path}","messagePattern":"payload summarizer invoke_in_parent does not support file prompt source: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/tinyagents/payload_summarizer.rs","lineNumber":381,"sourceCode":"            // AGENTS.md layers are intentionally excluded from the payload\n            // summarizer. This is a narrow internal utility that condenses an\n            // oversized tool payload into a summary — it does no project work in\n            // the action directory, so standing project instructions are pure\n            // noise here and would waste the tight token budget this summary\n            // path is trying to reclaim. Unlike the user-facing agents it also\n            // builds its dynamic prompt directly (not via\n            // `SystemPromptBuilder::from_dynamic`), so it is deliberately outside\n            // the AGENTS.md injection contract that the main + sub-agent prompt\n            // paths honour.\n            agents_md_global: None,\n            agents_md_local: None,\n        };\n\n        let system_prompt = match &self.definition.system_prompt {\n            PromptSource::Dynamic(build) => build(&prompt_ctx)?,\n            PromptSource::Inline(prompt) => prompt.clone(),\n            PromptSource::File { path } => {\n                return Err(anyhow!(\n                    \"payload summarizer invoke_in_parent does not support file prompt source: {path}\"\n                ));\n            }\n        };\n        Ok(subagent_runner::append_subagent_role_contract(\n            system_prompt,\n            &self.definition.id,\n        ))\n    }\n\n    fn handle_summarizer_result(\n        &self,\n        tool_name: &str,\n        raw: &str,\n        started: std::time::Instant,\n        outcome: Result<String>,\n    ) -> Result<Option<SummarizedPayload>> {\n        match outcome {","sourceCodeStart":363,"sourceCodeEnd":399,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/tinyagents/payload_summarizer.rs#L363-L399","documentation":"The payload summarizer's invoke_in_parent path received a file-based prompt source, which it does not support. This utility is deliberately narrow — it condenses one oversized tool payload within a tight token budget, builds its prompt directly (not via SystemPromptBuilder::from_dynamic), and intentionally excludes AGENTS.md layers; file prompt sources are out of scope and rejected rather than silently mis-summarized.","triggerScenarios":"Thrown at src/openhuman/agent/tinyagents/payload_summarizer.rs:381 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass an inline text prompt to the payload summarizer instead of a file path","If file-sourced summarization is needed, read the file at the caller and submit its contents inline","Extend the summarizer's parent-invoke surface deliberately if file sources become a real requirement"],"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"}