Skip to content

G10 Orchestrator state, handoff and session hooks as a fork feature #851

Open

Description

@scuttletoby

Part of #834.

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.

🤖 Generated with Claude Code

Activity

  1. scuttletoby commented on Nov 22, 2026

    @scuttletoby
    OwnerAuthor

    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

  2. scuttletoby commented on Nov 28, 2026

    @scuttletoby
    OwnerAuthor

    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.

    🤖 Generated with Claude Code

  3. added
    area:agents
    size:big
    type:feature
    on Nov 29, 2026
  4. scuttletoby commented on Nov 29, 2026

    @scuttletoby
    OwnerAuthor

    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.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentssize:bigtype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions