You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
G10 Orchestrator state, handoff and session hooks as a fork feature #851
area:agentsOrchestration, slots, delegate, handoff, wake-ups, model policy, review rulessize:bigMulti-part feature, design, research or audit (usually has sub-issues)type:featureNew behaviour or capability
Problem: the orchestrator's live state (what is running, waiting and queued), its handoff to another account, the session-start summary and the compaction instructions live in one project's scripts and in private hand-kept files. A new orchestrator, or one after compaction, depends on those files being right.
Done when: the fork's handoff feature holds the orchestrator state (generated from the live threads, PRs and waits wherever possible, not hand-kept); session-start and compaction hooks come from a fork kit with per-project text in config; an account handoff is one command.
A bug carried over from a consumer project, for the session hooks part (worth doing first, it is small):
Session hooks fire in other projects' worktrees. The consumer project's session-start summary hook and its compaction-instructions hook match every folder under the shared worktrees directory by a folder glob. So that project's summary and compaction rules also fire in other projects' worktrees (seen in this fork's worktrees).
Wanted in the kit: a hook fires only for its own project's checkouts, matched by the repository's remote or a marker file, never by a folder glob; the per-project text comes from config. Tests: a worktree of another project gets nothing; a linked worktree of the right project gets the text; a folder with no git repository gets nothing.
State question: a worktree whose remote changed, a worktree being removed while the hook runs, and old hook entries left from the glob version.
Feature shape, from a review of which written orchestrator rules should become code:
The server builds the orchestrator state from live threads, linked PRs, waits and queue items.
A PR that a child links is watched for its parent automatically, with no watch call.
Today the state is a log of 766 lines kept by hand, with lines like "watching four PRs". Doing the #888 rounds and the blocked-PR wake (#880) first removes most of what that log holds.
Working on the feature-shape item of 11-28 "a PR that a child links is watched for its parent automatically, with no watch call", part 1 (local children): when a delegate_task child on this machine links a pull request (link_pull_request, or one it created), the server starts upstream's pull request watch on the child's parent thread, once per child and PR, unless the parent already has that PR on its own list (its watch, or its own unwatch, wins). A fork setting turns it off. A child on a linked machine is part 2. One fork PR, fork-owned files only.
area:agentsOrchestration, slots, delegate, handoff, wake-ups, model policy, review rulessize:bigMulti-part feature, design, research or audit (usually has sub-issues)type:featureNew behaviour or capability
Activity
scuttletoby commentedon Nov 22, 2026
A bug carried over from a consumer project, for the session hooks part (worth doing first, it is small):
Session hooks fire in other projects' worktrees. The consumer project's session-start summary hook and its compaction-instructions hook match every folder under the shared worktrees directory by a folder glob. So that project's summary and compaction rules also fire in other projects' worktrees (seen in this fork's worktrees).
Wanted in the kit: a hook fires only for its own project's checkouts, matched by the repository's remote or a marker file, never by a folder glob; the per-project text comes from config. Tests: a worktree of another project gets nothing; a linked worktree of the right project gets the text; a folder with no git repository gets nothing.
State question: a worktree whose remote changed, a worktree being removed while the hook runs, and old hook entries left from the glob version.
🤖 Generated with Claude Code
scuttletoby commentedon Nov 28, 2026
Feature shape, from a review of which written orchestrator rules should become code:
Today the state is a log of 766 lines kept by hand, with lines like "watching four PRs". Doing the #888 rounds and the blocked-PR wake (#880) first removes most of what that log holds.
🤖 Generated with Claude Code
scuttletoby commentedon Nov 29, 2026
Working on the feature-shape item of 11-28 "a PR that a child links is watched for its parent automatically, with no watch call", part 1 (local children): when a
delegate_taskchild on this machine links a pull request (link_pull_request, or one it created), the server starts upstream's pull request watch on the child's parent thread, once per child and PR, unless the parent already has that PR on its own list (its watch, or its own unwatch, wins). A fork setting turns it off. A child on a linked machine is part 2. One fork PR, fork-owned files only.🤖 Generated with Claude Code
fork: a PR a delegated child links is watched for its parent (#851)
fork: a PR a delegated child links is watched for its parent (#851) (#…