Deep Review errors
Common error signatures
Failures in deep_review typically fall into three categories, corresponding to the three subagents the workflow coordinates:
- Input errors —
execute()receives apathargument that is missing, empty, or points to a location the process cannot read. These fail early, before any subagent is launched. - Subagent coordination errors — one or more of the
security-reviewer,quality-reviewer, ortest-gap-reviewersubagents fails to return findings. The consolidated report may be incomplete or the workflow may raise an exception during synthesis. - Result errors —
execute()returns aWorkflowResultthat is missing expected sections (Security,Quality,Test Gaps,Suggestions,Summary), which indicates a failure during the final consolidation step.
Where errors originate
All errors originate in DeepReviewAgentSDKWorkflow.execute(), defined in src/attune/workflows/deep_review.py. The method orchestrates three subagents sequentially and then synthesizes their output. A failure in any subagent propagates through execute() to the caller.
When you read a traceback, locate the frame inside execute() first — it tells you whether the failure occurred during subagent dispatch or during consolidation.
How to diagnose
-
Identify which subagent failed. The workflow runs
security-reviewer,quality-reviewer, andtest-gap-revieweras distinct passes. A traceback that names one of these subagent identifiers points to a domain-specific failure rather than a setup problem. -
Verify the
pathargument.execute()takespathas a keyword argument. Confirm the path exists, is readable, and resolves to the directory or file you intend to review. An unreadable or nonexistent path will prevent all three subagents from producing findings. -
Check whether the report is partially populated. If
execute()returns aWorkflowResultbut sections are empty or absent, one subagent completed while another did not. Compare which ofSecurity,Quality, andTest Gapsare present to narrow down which subagent produced no output. -
Enable
DEBUG-level logging before re-running. The orchestrator logs state transitions between subagent passes. Raising the log level toDEBUGshows you the findings each subagent returned before consolidation, making it possible to see where the output diverges from what you expect.
Source files
src/attune/workflows/deep_review.py
Tags: review, security, quality, tests, comprehensive-review