8000 fix(budget): bind the worker past a session-context line; seed the story's output.md (run 18) by adeelahmad · Pull Request #29 · adeelahmad/aloop · GitHub
[go: up one dir, main page]

Skip to content
{"props":{"contextRegion":{"crumbs":[{"crumb_type":"user","label":"adeelahmad","is_root":false,"href":"/adeelahmad"},{"crumb_type":"repository","label":"aloop","is_root":false,"href":"/adeelahmad/aloop"}],"localNavigation":[{"id":"code","icon":"code","label":"Code","href":"/adeelahmad/aloop","selectedLinks":["repo_source","repo_downloads","repo_commits","repo_releases","repo_tags","repo_branches","repo_packages","repo_deployments","repo_attestations"],"popoverTarget":false,"commandId":"repositories:go-to-code","reactNav":{"appTarget":"code-view","anchor":"code-view-repo-link"},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"issues","icon":"issue-opened","label":"Issues","href":"/adeelahmad/aloop/issues","selectedLinks":["repo_issues","repo_labels","repo_milestones"],"count":0,"popoverTarget":false,"commandId":"repositories:go-to-issues","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"pull-requests","icon":"git-pull-request","label":"Pull requests","href":"/adeelahmad/aloop/pulls","selectedLinks":["repo_pulls","checks"],"count":5,"popoverTarget":false,"commandId":"repositories:go-to-pull-requests","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"actions","icon":"play","label":"Actions","href":"/adeelahmad/aloop/actions","selectedLinks":["repo_actions"],"popoverTarget":false,"commandId":"repositories:go-to-actions","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"projects","icon":"table","label":"Projects","href":"/adeelahmad/aloop/projects","selectedLinks":["repo_projects","new_repo_project","repo_project"],"popoverTarget":false,"commandId":"repositories:go-to-projects","reactNav":{"appTarget":"repo","anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"security-and-quality","icon":"shield","label":"Security and quality","href":"/adeelahmad/aloop/security","selectedLinks":["security","overview","alerts","policy","token_scanning","code_scanning"],"count":0,"popoverTarget":false,"commandId":"repositories:go-to-security","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}},{"id":"insights","icon":"graph","label":"Insights","href":"/adeelahmad/aloop/pulse","selectedLinks":["repo_graphs","repo_contributors","dependency_graph","dependabot_updates","pulse","people","community"],"popoverTarget":false,"commandId":"repositories:go-to-insights","reactNav":{"appTarget":null,"anchor":null},"turboNav":{"frame":"repo-content-turbo-frame"}}],"localNavigationUpdateChannel":null,"selectedLink":"repo_pulls"},"owner":null,"headerLogo":{"href":"/","aria-label":"Homepage "},"notifications":{"indicatorMode":"disabled","websocketChannel":null,"fetchIndicatorSrc":"/notifications/indicator","fetchIndicatorEnabled":false},"issues":{"href":"/issues"},"pulls":{"href":"/pulls"},"contributedRepos":{"href":"/repos"},"copilot":{"show":false,"showAgentsButton":false,"showRelaunchAnnouncement":false,"copilotChatUrl":null,"copilotApiUrl":"https://api.githubcopilot.com"},"search":{"show":true,"showCommandPalette":false,"isSearchPage":false,"isJumpToSearch":false,"searchContext":{"scope":"repo:adeelahmad/aloop","current_repo_name":"aloop","current_repo_nwo":"adeelahmad/aloop","user_id":"adeelahmad"}},"commandPalette":null,"enterpriseBar":{"show":false},"globalTransactionalMessage":[],"payloadsUrl":"/_global-navigation/payloads.json?can_toggle_site_admin_and_employee_status=0\u0026is_admin_mode_on=0\u0026is_ui_opted_out=0\u0026show_ui_opt_out=0\u0026v=8","contextRegionUrl":"/_global-navigation/context-region.json"}}

fix(budget): bind the worker past a session-context line; seed the story's output.md (run 18) - #29

Merged
adeelahmad merged 2 commits into
masterfrom
claude/project-thread-qerfr9
Oct 18, 2026
Merged

adeelahmad merged 2 commits into
masterfrom
claude/project-thread-qerfr9

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Before: in live run 18 the first RED worker's selfcheck blocked "STORY_DIR unset" because Claude Code now prepends a session-context attachment line to the sub-agent transcript and budget read only the first user line for the dispatch TASK_ID. A RED worker then created a story's output.md with a bare cat >> and was blocked twice for the missing type: output frontmatter. One RED touched src/lib.rs because the supervisor's mandate told it to shim there.

After: budget reads on to the first transcript line naming a TASK_ID, and budget hook pre seeds the story's output.md with its frontmatter (story taken from init.md) before the worker's first tool call, never touching an existing file. SKILL.md's RED stage tells the supervisor that a mandate names tests/common/mod.rs as the shims' home, never a src/ 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() in plugin/bin/budget called after copy_contract on both the worker and observe paths; host_task_id keeps scanning instead of returning on the first user line. Test-first: scripts/test/budget-roles.test.py case 6 reproduces both failures (red before, 6/6 after). make ci: 58/58.


Generated by Claude Code

…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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC
@adeelahmad
adeelahmad merged commit b93e6fd into master Oct 18, 2026
4 checks passed
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 <noreply@anthropic.com>
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0