Repository navigation
session: run workers act as their task; task rows name their worker; clock starts and report turns read right - #2069
Merged
Merged
Conversation
…clock starts and report turns read right Run workers (tasks that joined shared work) carried no CODEAF_AGENT_DID and were recorded as the folder they typed in; each now acts as <did>#w<n>. Task notices and app tasks carry worker, so an app can release what a task held when it ends. A proposal its clock started closes with Withdrawal.started before its turn is handed the yes, so the receipt no longer races the task update. An owed landing's receipt shows the outcome, not the person's question.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t both ends Co-Authored-By: Claude Opus 5.5 <[email protected]>
santoshkumarradha
marked this pull request as ready for review
November 2, 2026 17:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Four engine-side defects read off a real session (a canvas manager handing frames to parallel tasks).
Run workers act as their task. Tasks that join shared work run as run workers (
internal/runBashWorker →session.NewBeltWorker), built outside the conversation's tree, so they carried noCODEAF_AGENT_DIDand a tool recorded them as the folder they typed in (cwd:<canvas>/work), indistinguishable from the manager. The run now carries the conversation's DID (RunSpec.AgentDID) and each worker acts as<did>#w<n>, n being the row's number (a part split off under a task acts as that task).Task rows name their worker.
TaskNotice.Worker/ appTask.workeris the<did>#w<n>the task's commands carry. The engine cannot reach the desk's canvas store, so an app releases what it keeps under that name when the task ends (done, failed, your_call, declined or withdrawn).A clock-started proposal no longer reads "No longer needed". The clock closed the proposal's question on the question lane while the task's update travelled the task lane, and the app read whichever came first. The clock now withdraws the question itself with
Withdrawal.startedbefore handing the turn its yes, and the app's receipt reads that word:Started on its own after Ns.A report turn no longer repeats the person. An owed landing's wake message is the person's question above the run's outcome (the model needs the question). Its receipt was drawn whole, so the person appeared to have said it twice. The receipt now shows the outcome; the model still reads both.
Tests: new focused tests in
internal/session,internal/runandcmd/codeaf; the run-worker and report-turn tests fail on the pre-fix code.