Skip to content

Agent-created threads: record an owner, and make the sidebar, archive and promote follow it #751

Closed

Description

@lastobelus

Problem

An orchestrator thread starts other threads to do its work: in its own project, in other projects, and in other environments. Many of them end up as top-level sidebar rows with no link back to the thread that made them, and they stay behind after the orchestrator is finished and archived. The owner's rule is: "I only want to see top-level threads in the sidebar that I expect to see, because I specifically asked for them (or created them myself)."

PR #749 repaired the stored creator for historical threads. This issue tracks the behaviour change for new ones.

Model

Every agent-created thread records an owner thread (environment-qualified) unless the user asked for a top-level thread. The sidebar, archive and promote all follow that one record.

Ownership is not retroactive: threads that existed before this work keep their current placement and lifecycle. #749 records where they came from; it does not make them owned.

Vocabulary

Term Meaning
task Owned, short-lived work the user does not expect to look at
child thread Owned, interactive thread whose lifecycle is tied to its orchestrator
top-level thread Independent sidebar root; created only when the user asks for one
group thread Empty thread that exists only to hold other threads
promote X Release X from its owner so it becomes a top-level thread
wrap up Finish an orchestrator: archive what it owns, ask about the rest

"Delegated" and "launched" name how a thread runs. They are separate from where it is placed.

Decisions

  • Owned threads never appear as sidebar roots.
  • Same project in another environment: nested under the orchestrator.
  • Another project: a collapsed group in the destination project, labelled with the orchestrator and linking back to it. The sidebar derives the group from ownership; it is not a stored thread. No true cross-project nesting for now.
  • Group threads carry a stored marker. First UI: italic title with the agent-created icon before the name, like persistent threads.
  • Archiving an orchestrator archives its tasks everywhere. It asks before archiving child threads the user has typed in.
  • A thread the user types in stays owned until they say "promote".
  • Projects an agent registers only as throwaway workspace for a run are marked temporary, hidden, and removed at wrap-up.
  • A task delegated to another environment may ask for its own worktree when its base is a branch or commit that environment can fetch.
  • Archive changes stay in the fork-owned archive planner and contracts so upstream changes do not collide with them.

Pull requests

Follow-ups carried from #749

  • Backfill prompted batch-created threads that have no creation record, only where exact evidence exists.
  • Revisit worktree suspension once new launches write the stored creator origin (part of B).
  • Remove the unused historical evidence index in a later migration.
  • Add coverage for pruned atomic launch receipts, conflicting scheduled-task markers, conflicting exact launch messages, and unpruned keyed creation records.

Activity

  1. added 15 commits that reference this issue on Nov 19, 2026
    5636a80
    6c8f2e5
    67188a4
    99d0975
    370bf7c
    2e772a1
    96871f7
    25d08f8
    5f71806
    cd2b4d8
    67bfab7
    89907b9
    43321c6
    7ead5df
    f78a4f3
  2. 123 remaining items

  3. added 13 commits that reference this issue on Nov 20, 2026
    c62f270
    a961508
    6fc2fc5
    9396106
    cd03547
    7035bb9
    6b36558
    c304863
    9dcd92c
    953c243
    dea186a
    2e8714c
    3d386d7
  4. lastobelus commented on Nov 20, 2026

    @lastobelus
    OwnerAuthor

    All items are merged on lastcode/main: A #752, B #753, C #762, D1 #763, D2 #764, D3 #771, D4 #772 and #786, E #761, F #754, G #768.

    Related changes that landed alongside:

    Not done, left as follow-ups:

    Ownership is not retroactive: threads created before #753 keep their old placement and archive behaviour.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions