Problem
4 of 10 analyzed review agent runs failed writing to /sandbox/workspace/output/agent-result.json because the directory did not exist. The LLM then debugged, created the directory, and retried — wasting 1-2 minutes of wall-clock time on ~40% of runs.
Proposed fix
Add mkdir -p "$FULLSEND_OUTPUT_DIR" to scripts/pre-review.sh so the output directory exists before the agent starts.
Notes
This fix may already exist on the feat/2207-effort-gating branch (PR #646). If so, this issue can be closed once that PR merges, or the fix can be cherry-picked independently.
Context
Split from #836 (review agent wall-clock time reduction).
Problem
4 of 10 analyzed review agent runs failed writing to
/sandbox/workspace/output/agent-result.jsonbecause the directory did not exist. The LLM then debugged, created the directory, and retried — wasting 1-2 minutes of wall-clock time on ~40% of runs.Proposed fix
Add
mkdir -p "$FULLSEND_OUTPUT_DIR"toscripts/pre-review.shso the output directory exists before the agent starts.Notes
This fix may already exist on the
feat/2207-effort-gatingbranch (PR #646). If so, this issue can be closed once that PR merges, or the fix can be cherry-picked independently.Context
Split from #836 (review agent wall-clock time reduction).