Skip to content

session branching/forking — try approach B without losing approach A #210

Closed

Description

@ajianaz

Summary

Feature-research ring 2 (2026-10-06, validated: storage.rs only carries an architecture comment "branching = siblings" — no implementation; deferred since B3). Session trees: tole branch <id> / --fork start a new leaf from any prior entry; tole sessions --tree shows the shape. pi (tole's design source) ships this as /tree navigation.

Why

Chat-first value: iterate on an approach without destroying its history. Mission-mode value (0.7.0): fork a stalled mission and try another path from the same checkpoint. Perfect fit with write-once JSONL — a branch is just a new parent-pointer on new entries; the old lineage is never mutated.

Design sketch

  • New entries carry an optional parent-entry pointer (entry format extension, back-compat: absent = linear).
  • Folding/readers follow the active lineage; cross-branch reads are out of scope v1.
  • Resume targets a branch head; sessions lists heads with their lineage depth.

Acceptance

  • Branch/fork from any settled entry; tree view; resume-branch-head
  • Replay + tool-state hydration (todo list) correct per branch
  • Docs + CHANGELOG same-PR

Activity

  1. added
    enhancement
    on Oct 6, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions