Repository navigation
fix(budget): bind the worker past a session-context line; seed the story's output.md (run 18) - #29
Merged
Merged
Conversation
…ory's output.md Live run 18 (v0.12.0): the first RED self-check blocked "STORY_DIR unset" because Claude Code now prepends a session-context attachment (renderedRole "user") to the sub-agent transcript and `host_task_id` read only the first "user" line for TASK_ID. It now reads on to the first line naming one. A RED worker's `cat >>` then created a story's output.md without its frontmatter and self-checked twice against it: `budget hook pre` now seeds output.md with `type: output` (story from init.md) before the worker's first tool call, never touching an existing file. Both covered by a new budget-roles test case (6/6). SKILL.md: a RED mandate names tests/common/mod.rs as the shims' home, never src/ (one gate-red-verify block per run 14–18). ROADMAP M0.8 records run 18 (13/13, 21m21s, $1.03, 6 wakes, 2 plugin reads, 6 blocks); OVERVIEW and CHANGELOG updated. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC
…it-on-main gate)
adeelahmad
pushed a commit
that referenced
this pull request
Oct 18, 2026
…n 19 (the other thread's run 18 landed first)
adeelahmad
pushed a commit
that referenced
this pull request
Oct 18, 2026
…anded in #29 first) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV
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.
Requested by Adeel · project thread
Before: in live run 18 the first RED worker's
selfcheckblocked "STORY_DIR unset" because Claude Code now prepends a session-context attachment line to the sub-agent transcript andbudgetread only the firstuserline for the dispatchTASK_ID. A RED worker then created a story'soutput.mdwith a barecat >>and was blocked twice for the missingtype: outputfrontmatter. One RED touchedsrc/lib.rsbecause the supervisor's mandate told it to shim there.After:
budgetreads on to the first transcript line naming aTASK_ID, andbudget hook preseeds the story'soutput.mdwith its frontmatter (story taken frominit.md) before the worker's first tool call, never touching an existing file. SKILL.md's RED stage tells the supervisor that a mandate namestests/common/mod.rsas the shims' home, never asrc/path. ROADMAP M0.8 records run 18 (13/13, 21m21s, $1.03, 6 wakes, 2 plugin-source reads, 6 blocks); OVERVIEW and CHANGELOG updated.How: a new
seed_output()inplugin/bin/budgetcalled aftercopy_contracton both the worker and observe paths;host_task_idkeeps scanning instead of returning on the firstuserline. Test-first:scripts/test/budget-roles.test.pycase 6 reproduces both failures (red before, 6/6 after).make ci: 58/58.Generated by Claude Code