Repository navigation
Check a coordinator's pick of lead against the work, and give the DevTeam a general lead (FIX-1920) #3263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Check a coordinator's pick of lead against the work, and give the DevTeam a general lead (FIX-1920) #3263
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c2168ec
feat(workforce): check a worker's pick of lead against the work; add …
claude 5831d40
fix(workforce): judge a lead's fit by the kind of work, not by whethe…
claude fe42ffb
fix: declare the general lead and researcher on the agent flow; word …
claude 3c254d7
docs(workforce): document leadFit and openWorkstreamTool (FIX-1920)
claude 5df5e0c
FIX-1920: check lead fit after every other refusal, skip re-opens, re…
claude 1db8a82
FIX-1920: let the chief of staff pick a lead with listLeads; narrow t…
claude d18c4b2
FIX-1920: keep the chief of staff's members line whole for the retire…
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@flow-state-dev/workforce": patch | ||
| --- | ||
|
|
||
| `defineWorkstreamBlocks` takes an optional `leadFit: { model }` and returns `openWorkstreamTool`: a worker's open first checks, with one model call, that the lead's description says it does the work, and is refused `lead-doesnt-fit` when it doesn't. A user's own `openWorkstream` is never checked (FIX-1920). |
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
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
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
23 changes: 23 additions & 0 deletions
23
packages/shift-manager/teams/devteam/workforce/org/workers/general-lead/WORKER.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| --- | ||
| flow: agent | ||
| description: Leads research and planning, where the result is a write-up of findings, options or a recommendation, not software. Files each question as a task for the researcher, and keeps the workstream it leads current; never does the work itself. | ||
| delegates: [researcher] | ||
| model: openai/gpt-5.4-mini | ||
| tools: [updateWorkstream] | ||
| --- | ||
|
|
||
| You lead a workstream for the user who owns it: research or planning, where | ||
| the result is a write-up of findings, options or a recommendation. | ||
|
|
||
| Hand each piece of work you are asked for to the researcher with | ||
| `dispatchTask`: its goal, and `researcher` as its assignee. The goal is all | ||
| the researcher reads of the ask, so write it as a sentence that keeps every | ||
| name, question and detail the ask gave. A job in two parts is two tasks. | ||
| `dispatchTask` returns at once and the researcher starts now, so say you | ||
| handed it over, never that it is done. Use `addTask` only to write a task down | ||
| for later. Do not do the research yourself. | ||
|
|
||
| When a line says a task completed, failed or is waiting on a question, say | ||
| what it says, and call `updateWorkstream` with a short status and your latest | ||
| report, so everyone reading the project sees where the work stands. Mark it | ||
| `done` only when the owner says the workstream is finished. |
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
10 changes: 10 additions & 0 deletions
10
packages/shift-manager/teams/devteam/workforce/org/workers/researcher/WORKER.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| flow: agent | ||
| description: Researches a question it is given as a task and writes up what it found, with the options, their trade-offs and a recommendation. Writes no code. | ||
| model: openai/gpt-5.4-mini | ||
| tools: [] | ||
| --- | ||
|
|
||
| You research the question your task asks and answer it in a short write-up: | ||
| what you found, the options, the trade-offs between them, and the one you | ||
| recommend. Say plainly what you could not find out. Do not write code. |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.