Repository navigation
workstreams v5 F-tasks: running means a doer is at work; a comment never reopens; Send back (engine) - #2690
Merged
Conversation
…ver reopens; Send back Live use (L1 F5, L2 #4 and #8, L4 B6 and F3) on b8cb272. - factory.Released and factory.StartAll no longer flip an Afi or chat task to running. The org server's tick leaves a released task up next with "Ready to start: X is done", and start_all names the ready tasks and writes nothing. Whoever wakes the doer sets running; on the desk that is Start (Personal) and, for an organization, nothing yet, so the task waits in Up next and its owner can Mark done or Stop. - factory.Note: a comment or a post never changes a task's state. - ApplyPatch: Send back, state up_next on a done task by someone other than its owner or with a state_reason, is allowed to anyone who edits; the thread and state_reason read "Sent back by <name>: <why>". - The manual (organization-workstream-tasks.md) and PROTOCOL.md say so. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
added a commit
that referenced
this pull request
Nov 16, 2026
… all starts a batch Since #2690 Start all on the org server names the ready tasks and starts none. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
added a commit
that referenced
this pull request
Nov 16, 2026
… all starts a batch Since #2690 Start all on the org server names the ready tasks and starts none. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
added a commit
that referenced
this pull request
Nov 16, 2026
… all starts a batch Since #2690 Start all on the org server names the ready tasks and starts none. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
ZeroPoint95
pushed a commit
that referenced
this pull request
Nov 24, 2026
…ver reopens; Send back (engine) (#2690) * workstreams v5 F-tasks: running means a doer is at work; a comment never reopens; Send back Live use (L1 F5, L2 #4 and #8, L4 B6 and F3) on b8cb272. - factory.Released and factory.StartAll no longer flip an Afi or chat task to running. The org server's tick leaves a released task up next with "Ready to start: X is done", and start_all names the ready tasks and writes nothing. Whoever wakes the doer sets running; on the desk that is Start (Personal) and, for an organization, nothing yet, so the task waits in Up next and its owner can Mark done or Stop. - factory.Note: a comment or a post never changes a task's state. - ApplyPatch: Send back, state up_next on a done task by someone other than its owner or with a state_reason, is allowed to anyone who edits; the thread and state_reason read "Sent back by <name>: <why>". - The manual (organization-workstream-tasks.md) and PROTOCOL.md say so. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]> * changes: 2690 a workstream task is running only while something does it Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]> --------- Co-authored-by: CodeAF <[email protected]>
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.
Fix lane F-tasks (Workstreams v5, live use), engine and org-server half. The desk half is Agent-Field/codeaf-desk#481. I reproduced each fix on
origin/santosh/workb8cb272 first:ReleasedandStartAllsetTaskRunning, andNotereopened a done task.What changed
factory.Releasedno longer flips an Afi or chat task torunning. On the server, a tick leaves the released taskup_nextand untouched, and its thread gains "Ready to start: X is done".factory.StartAllandPOST .../tasks/start_allname the group's ready tasks. They write nothing and publish nothing.running. On a Personal workstream that is the desk's Start. On an organization nothing can wake the server's agent yet, so the desk shows no Start. The task waits in Up next, and its owner can Mark done or Stop it.factory.Note. A comment or a post never changes a task's state.ApplyPatch,state: up_nexton a done task counts as Send back when someone other than the owner sets it, or when it comes with astate_reason. Anyone who edits may do it, including on a person task. The thread line andstate_reasonread "Sent back by : ", and the owner's next tick clears it._task_update,_task_commentand_tasks_start_allare described as above.internal/manual/chat/organization-workstream-tasks.mdreplaces "replying reopens it" with Send back. It also gains four sections, in the asker's words:state_reasonalready exists. SPEC §2.2's "Replying on a done task reopens it" no longer holds: Send back replaces it.Proof
internal/factory:TestACommentOnADoneTaskNeverReopensIt,TestSendBackReopensADoneTaskAndSaysWhoAndWhy,TestStartAllNamesAGroupsReadyTasksAndStartsNone, and the tick test, which now expects the released task to stay up next.internal/factory/serve, over the wire:TestACommentNeverReopensADoneTaskAndSendBackDoes,TestStartAllNamesTheGroupOverTheWireAndStartsNone, and the tick test, which now checks the "Ready to start" line.make pr-ready BASE=origin/santosh/work.