Repository navigation
fix(orchestrate): spawn a fresh worker for built state - #64
Conversation
New work that needs a checkout, uncommitted diff, or process goes to a fresh worker with that state in the brief. send_message stays a follow-up on the same work. Co-authored-by: Kaitian Xie <caelaxie@users.noreply.github.com>
caelaxie
left a comment
There was a problem hiding this comment.
verdict: changes requested (comment review, since github won't let the author account request changes on its own pr).
- minimum changes: the fix rewrites more of the line than agy needs. only upstream's "Fork" has no agy equivalent; "such as its checkout, uncommitted changes, or a running process" and "Message a worker only for a follow-up on the same work." are harness-neutral and should stay verbatim. the reword also leaves "that checkout" with no antecedent and orphans "one" in the next sentence. that wording came from #60's suggested fix, my bad; the inline suggestion is tighter.
- proof: body says a proof comment follows, but there's none yet, and
Validate pluginis still running ond00fc9a. needagy plugin install+ list on this head (or the next one) plus green ci.
linkage (Closes #60), layout, and draft state are fine.
| - **A fresh worker for each independent task.** Its kickoff carries everything it needs, including each upstream report it depends on, pasted in full. Workers can't see their siblings. Run workers in an isolated workspace (`Workspace: "branch"`) unless the work needs this machine's own checkout or state (`Workspace: "share"`): a `control-ui` or `control-cli` runtime check, local transcripts under `<appDataDir>/brain/`, a simulator, or auth that exists only here. Pick each subagent's model tier for the job, per the Subagents section. | ||
| - **A sub-coordinator only when one area has many parallel workers.** It owns that area's workers and kickoffs and sends you one rollup, never raw worker reports. Stop at three levels: you, sub-coordinators, and workers. Keep about ten workers in flight per coordinator, and start the next one as each finishes instead of waiting on a whole batch. | ||
| - **Resume a worker with `send_message` when new work needs that worker's built state,** such as its checkout, uncommitted changes, or a running process. Message a worker only for a follow-up on the same work. Never message one to check on it, because a message restarts an idle agent. | ||
| - **When new work needs that checkout, uncommitted diff, or process, spawn a fresh worker with that state in the brief.** Keep `send_message` only for a follow-up on the same work. Never message one to check on it, because a message restarts an idle agent. |
There was a problem hiding this comment.
keep upstream's wording and swap only the fork verb:
| - **When new work needs that checkout, uncommitted diff, or process, spawn a fresh worker with that state in the brief.** Keep `send_message` only for a follow-up on the same work. Never message one to check on it, because a message restarts an idle agent. | |
| - **Spawn a fresh worker when new work needs a worker's built state,** such as its checkout, uncommitted changes, or a running process, and put that state in its kickoff. Message a worker only for a follow-up on the same work. Never message one to check on it, because a message restarts an idle agent. |
upstream (cursor/plugins c742dd6): "Fork when new work needs a worker's built state, such as its checkout, uncommitted changes, or a running process. Message a worker only for a follow-up on the same work. Never message one to check on it, because a message restarts an idle agent."
Keep the upstream examples and the follow-up sentence. A fresh worker gets the built state in its kickoff. Co-authored-by: Kaitian Xie <caelaxie@users.noreply.github.com>
|
Harness proof for head agy CI structural check:
|
caelaxie
left a comment
There was a problem hiding this comment.
pass (comment review, same account as author).
8d1691c applies the suggestion verbatim: upstream's line with only the fork verb swapped for a fresh worker plus the state in its kickoff, follow-up and never-message sentences unchanged, per #60. agy 1.5.3 validate --strict + install + list on the exact head, installed rev-parse = head, cmp clean (issuecomment-6731226030). Validate plugin green, Closes #60, not draft. merging.
Closes #60
New work that needs a worker's built state spawns a fresh worker and puts that state in its kickoff. The upstream examples and the follow-up sentence stay as written.
Verification
Harness on
8d1691c77708bf2fcf936ec897c6b00ab59b7446with agy 1.5.3. Proof comment follows.