Repository navigation
workstreams: a task starts by itself when what it waits on is done (E2 #7) - #2736
Merged
Merged
Conversation
santoshkumarradha
added a commit
that referenced
this pull request
Nov 17, 2026
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
force-pushed
the
fix/x9-auto-start
branch
from
November 17, 2026 15:11
f9219d4 to
b8705ff
Compare
santoshkumarradha
added a commit
that referenced
this pull request
Nov 17, 2026
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
force-pushed
the
fix/x9-auto-start
branch
from
November 17, 2026 17:00
b8705ff to
e0c191d
Compare
santoshkumarradha
added a commit
that referenced
this pull request
Nov 17, 2026
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
force-pushed
the
fix/x9-auto-start
branch
2 times, most recently
from
November 17, 2026 18:27
7f1a83b to
2c060cf
Compare
santoshkumarradha
added a commit
that referenced
this pull request
Nov 17, 2026
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Member
Author
|
Local proof on head
|
santoshkumarradha
added a commit
that referenced
this pull request
Nov 17, 2026
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
force-pushed
the
fix/x9-auto-start
branch
from
November 17, 2026 18:43
2c060cf to
5475997
Compare
…#7) Owner decision 1 (2026-11-17). On an organization's server, the write that finishes the last thing an Afi task waited on starts that task, with the rights of whoever finished the work, unless the task says "Waits for you to start", belongs to a plan nobody has started, or its owner turned "Start tasks when what they wait on is done" off. A started plan is consent for the whole plan. Tasks carry `starts` (owner or steward) and read back `starts_when_ready`; /v1/me/work keeps each person's choice. Hello word org_task_starts. Manual pages, Afi's tool docs and PROTOCOL.md updated. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
force-pushed
the
fix/x9-auto-start
branch
from
November 17, 2026 18:57
5475997 to
6d3ebf8
Compare
Member
Author
|
Local proof (owner policy: local tests, then merge): Full proof on
Clean rebase onto #2766 → head |
ZeroPoint95
pushed a commit
that referenced
this pull request
Nov 24, 2026
…#7) (#2736) Tasks start by themselves when what they wait on is done (owner decisions 2026-11-17, 1; E2 #7). Assisted-by: CodeAF 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.
Fixes E2 #7 (
~/work/workstreams-v5/live2/E2-final/FINDINGS.md), engine half, per owner decision 1 (2026-11-17). Desk half: Agent-Field/codeaf-desk (fix/x9-auto-start).Before: after the plan's Start, every Afi task a finished task released sat at "Ready to start: … is done" until someone pressed its own Start, and Afi told people the plan was "still waiting on your Start".
Now, on an organization's server (hello word
org_task_starts):startReleased,workstream_task_autostart.go), with the rights of whoever finished the work. Its thread says "Started: <title> is done".factory.StartsBySelf): the task's ownstarts(when_ready/by_hand) wins; a plan (batch ≥ 5) nobody started waits for its Start; a started plan is consent for all of it; otherwise the owner's "Start tasks when what they wait on is done" (on unless turned off).startsis set with the ordinary task PATCH by the owner or whoever looks after the workstream (403 otherwise, 422 for an unknown word); every Afi/chat task reads backstarts_when_ready.GET/PUT /v1/me/work(factory.org_work,factory.org_work_set) keep each person's default inwork-prefs.json.Manual law:
organization-workstream-tasks.mdgains "tasks start by themselves automatically…" and its Start/plan sections are corrected;workstream-chats-and-tools.md;ws_task_create's description and the orgws_tasksbrief (starts) so Afi stops saying a started plan waits on a Start; two new manual probes; PROTOCOL.md; change entryws-tasks-start-by-themselves.md.Tests (fail before the fix):
TestAReleasedAfiTaskStartsByItselfOnTheServer,TestATaskThatWaitsForYouStaysReady,TestAnUnstartedPlanAndAPersonsTaskDoNotStartByThemselves. Existing wake/release tests unchanged and green.Proof:
flock /tmp/codeaf-prready-queue.lock make pr-ready BASE=origin/santosh/work(result posted below once the queue reaches it).🤖 Generated with Claude Code