Reconcile the task_text_path carrier contract with implement-loop's inline task-text handoff #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The implement-loop agent definitions document a file-based task-text carrier that the workflow script does not implement. Both sides are in this repo and disagree:
What the agent docs say.
implement/agents/implementer.md:57defines a carrier fieldtask_text_path— "Absolute path to a file (typically/tmp/iter-<iter_id>/task-<N>.md) containing the verbatim task block extracted from the plan. Read this file as your first action." — and calls this row "the authoritative definition". The field recurs atimplement/agents/implementer.md:129andimplement/agents/implementer.md:256-258(a Red Flags entry about the file "attask_text_path").implement/agents/spec-reviewer.md:68mirrors it ("The same file the implementer received … Read this file as your first action"),implement/agents/spec-reviewer.md:72keys a refusal path on "task_text_pathis missing", andimplement/agents/spec-reviewer.md:90and:155instruct reading that file.What the script does.
implement/workflows/implement-loop.jsnever writes such a file and passes no such field. The verbatim task text is inlined directly into each dispatch prompt asTASK ${task.id} — ${task.title}\n${task.text}: implementer atimplement/workflows/implement-loop.js:841, spec-reviewer at:869, quality re-loop at:882and:999.grep -n task_text_path implement/workflows/implement-loop.jsreturns nothing.Effect. Both agents are instructed to perform a first action that can never succeed (read a file that is never written); spec-reviewer's documented missing-
task_text_pathrefusal branch is nominally always live. In practice the agents evidently fall back to the inlined task text and the loop works, but the documented carrier contract and the actual mechanism have diverged, and the docs' authority claim points at a mechanism that does not exist.Resolution is one of two directions: the script writes the per-task file and passes its path, or the agent docs document the inline-prompt carrier as the actual contract.