Skip to content

session: run workers act as their task; task rows name their worker; clock starts and report turns read right - #2069

Merged
santoshkumarradha merged 7 commits into
app/v3from
lane/engine-workers
Nov 3, 2026
Merged

santoshkumarradha merged 7 commits into
app/v3from
lane/engine-workers

Conversation

@santoshkumarradha

@santoshkumarradha santoshkumarradha commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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/run BashWorker → session.NewBeltWorker), built outside the conversation's tree, so they carried no CODEAF_AGENT_DID and 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 / app Task.worker is 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.started before 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/run and cmd/codeaf; the run-worker and report-turn tests fail on the pre-fix code.

agentfield-bot and others added 6 commits October 30, 2026 09:04
…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.
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 2, 2026 17:36
@santoshkumarradha
santoshkumarradha merged commit 2f02530 into app/v3 Nov 3, 2026
@santoshkumarradha
santoshkumarradha deleted the lane/engine-workers branch November 3, 2026 10:54
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