Skip to content

feat(threads): isolate contract for Best of N forks (#1223) - #1270

Merged
currentbits merged 1 commit into
mainfrom
coder/1223-bon-isolate-contract
Sep 20, 2026
Merged

currentbits merged 1 commit into
mainfrom
coder/1223-bon-isolate-contract

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Stack 1/3, based on main.

Adds the Best of N isolation contract only: ThreadForkOpts.isolate plus shared start-snapshot fields (leadSnapshotSha / branch / dirty), renderer preflight helpers in src/bestOfN.ts, and a move-menu label that treats a recorded start snapshot as distinct from a crew worker.

This PR does not change forkThread or the Best of N launch loop. isolate: true is documented and unit-tested as options, then honored in stack 2 and wired in stack 3.

Why

Issue #1223: each implementation candidate needs a declared isolated workspace and a committed start revision, separate from the merge/PR destination. Types and preflight have to exist before the service can fail closed.

Tests

  • test/bestOfN.test.ts — isolation error strings, fork opts reuse the first snapshot, snapshot parsing.

Follow-up

  • Stack 2: forkThread({ isolate: true }) fail-closed service + real-git fixture

  • Stack 3: Best of N launch path (fork all isolated candidates, then start)

  • PR created by the Grok agent

Add ThreadForkOpts.isolate plus shared start-snapshot fields, Best of N
preflight helpers, and distinguish a recorded start snapshot from a crew
worker in the move menu. Service launch is not wired yet.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-10T16:21:30.106884Z b702df8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@currentbits
currentbits merged commit a91c5a3 into main Sep 20, 2026
0 of 6 checks passed
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