fix(deep-research): return results in ResearchNotes, not write_file - #286
Merged
cdgamarose-nv merged 1 commit intoJun 25, 2026
Conversation
The researcher worker is instructed (research.py format_research_request): "Do not call write_file or edit_file; run_research_batch will persist the returned ResearchNotes under /shared/." But the research skills told the agent to persist artifacts to /shared via write_file -- a contradicted instruction, since persistence is automatic from the returned ResearchNotes. Reword the persistence step in data-table-analysis, lightweight-calculation, and forecast-analysis to: include the result in your returned ResearchNotes (e.g. a ResearchFinding's evidence / narrative_notes); do not call write_file/edit_file. The separate, correct rule that sandbox code uses /workspace and cannot touch /shared is unchanged. (image-processing carries the same fix in PR NVIDIA-AI-Blueprints#285; chart-generation in PR NVIDIA-AI-Blueprints#280 needs it too -- flagged to its author.) Validation: uv run pytest tests/aiq_agent/agents/deep_researcher/test_deepagents_runtime.py (18 passed); grep confirms write_file now appears only as "do not call write_file". Signed-off-by: Zhongxuan Wang <daniewang@nvidia.com>
|
Caution Review failedAn error occurred during the review process. Please try again later. WalkthroughThe research skill docs now direct computed outputs and compact inputs to ChangesResearch output contract updates
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Tools execution failed with the following error: Failed to run tools: Ping-pong health check failed Comment |
4 of 5 tasks
zhongxuanwang-nv
marked this pull request as ready for review
June 25, 2026 01:38
cdgamarose-nv
approved these changes
Jun 25, 2026
cdgamarose-nv
left a comment
Collaborator
There was a problem hiding this comment.
Good catch, thank you!
Collaborator
|
/ok to test 289319e |
5 tasks done
This was referenced Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Fixes a contradicted instruction in the deep researcher's
research/sandbox skills.The researcher worker is told via
research.py(format_research_request):…and
_persist_research_notesdoes exactly that automatically. But three skillsinstructed the agent to persist artifacts to
/sharedviawrite_file—data-table-analysis,lightweight-calculation, andforecast-analysis— i.e. aninstruction the researcher is explicitly told not to follow.
This reword changes each skill's persistence step to "include the result in your
returned
ResearchNotes(e.g. aResearchFinding'sevidence/narrative_notes); donot call
write_file/edit_file." The separate, still-correct rule that sandboxcode uses
/workspaceand cannot touch/sharedis unchanged.The same conflict exists in two in-flight skills, fixed/flagged separately:
image-processingcarries this fix in #285;chart-generationin #280 still needs it(flagged to its author).
Validation
git commit -s.Where should reviewers start?
research/data-table-analysis/SKILL.md(steps 5) vstools/research.py:46(
format_research_request) — the reworded persistence step now matches what theresearcher is actually told to do.
Related Issues
Summary by CodeRabbit