fix(lab): route Edit by target so draft.md reaches the in-memory draft
The CODING_TOOL_SHAPE dispatch sent EVERY Edit to runCodingShapeCall,
whose FS resolver cannot see the in-memory draft buffer (draft.md exists
only in requirementsState.draftMarkdown, never on disk). Every gen-7
Edit call therefore returned "File does not exist: draft.md" while the
DRAFT_EDIT handler sat shadowed behind the dispatch's early return -
dead code since the lever commit (6e841c9e) never touched the routing.
Real-path edits keep the FS text-ops surface; draft.md falls through to
the in-memory handler.
Regression test proves the full loop: a bodied generate_docx captures
the draft, Edit("draft.md") mutates it (ok:true, replacements:1), and
generate_docx without markdown renders the edited buffer.
Co-Authored-By: Claude <noreply@anthropic.com>
| Repository | eliziff/Beaver |
|---|---|
| Author | Eli Ziff <eliasziff@gmail.com> |
| Authored | |
| Parents | 5166859f |
| Stats | 2 files changed , +100 , -1 |
| Part of | Evaluation harness: Beaver-CAN and LegalBench-RAG adapters |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-68cce2b4.md
from inside the repo you want the change in.