Skip to content

refactor: extract fork/merge into a tape sidecar - #291

Draft
PsiACE wants to merge 4 commits into
mainfrom
experiment/forkmerge-sidecar
Draft

refactor: extract fork/merge into a tape sidecar#291
PsiACE wants to merge 4 commits into
mainfrom
experiment/forkmerge-sidecar

Conversation

@PsiACE

@PsiACE PsiACE commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Move fork/merge out of Tape and Agent into a builtin sidecar. Callers explicitly decide whether to merge or discard a fork.

Plain TapeStore
    └── Session Tape
          ├── spill sidecar
          └── forkmerge sidecar
plain tape
    └── fork()
          ├── merge()   → persist main and spill writes
          └── discard() → drop isolated writes

Behavior

  • Normal and concurrent channel turns merge when their streams finish.
  • Inherited and named subagents merge on success.
  • Temporary and failed subagent runs are discarded.
  • Inherited and temporary subagents can read the active parent context.

Verification

  • Ruff
  • mypy
  • pytest: 300 passed
  • Documentation build
  • Manual runtime checks for bub run, subagent session modes, and concurrent Telegram turns

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 23, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bub 0038d96 Commit Preview URL

Branch Preview URL
Aug 24 2026, 02:47 PM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant