2. Pair & Triad Programming

2.2 Isolated Shadow Workspaces

chinwag workspace list --colocated-jj

How chinwag pair and chinwag triad provision isolated colocated Shadow Jujutsu (jj) workspaces under standard Git with 0 index.lock collisions and 0ms automatic rebase.

2.2 Isolated Shadow Workspaces

chinwag workspace list --colocated-jj

Outcome Summary & Δ Velocity Proof: Standard Git branches and worktrees suffer .git/index.lock collisions and git stash / git rebase -i merge hell when multiple agents collaborate. Chinwag runs Shadow Jujutsu (jj git init --colocate) invisibly under standard Git so the Driver codes Unit N+1 while the Reviewer audits Unit N with 0 ms terminal wait. Your humans never have to learn Jujutsu, so your dev team gets the benefits of jj's fast diffs without even knowing it's there.


1. Git on the Outside, Jujutsu Superpowers Inside

In standard Git, if the Driver is halfway through Unit 2 when the Reviewer finds a bug in Unit 1, fixing Unit 1 requires git stash → git checkout → git rebase -i → manual conflict resolution.

In Jujutsu (jj), every working-copy change is automatically a first-class commit, and amending an earlier revision (Unit 1) automatically rebases in-flight descendant revisions (Unit 2) in milliseconds without disrupting the Driver's working copy:

$ chinwag pair start --driver @driver --reviewer @reviewer --task CHWG-412
✓ Initialized colocated JJ store (.jj/ + .git/)
✓ Provisioned JJ Workspace A (Driver):   .chinwag/workspaces/CHWG-412/driver
✓ Provisioned JJ Workspace B (Reviewer): .chinwag/workspaces/CHWG-412/reviewer (read-only lease)

2. Non-Blocking Pipelined Review Loop (0 ms Terminal Wait)

When the Driver finishes an atomic checkpoint (C_1), Chinwag snapshots the revision, verifies the remote review-branch receipt via independent git ls-remote (H1), wakes the Cross-Model Reviewer in Workspace B, and immediately advances the Driver to C_2 in Workspace A (0 ms wait):

[00:06:12] Workspace A (@driver):   Finalized Checkpoint C_1 (4e91c08) -> Advancing to C_2 (0ms wait)
[00:06:13] Hook H1 (git ls-remote): Verified remote receipt refs/chinwag/review/CHWG-412/c1 == 4e91c08
[00:06:13] Workspace B (@reviewer): Woken on immutable commit 4e91c08 (3,920-token packet · 15 credits)

3. Automatic 3-Way Triad Rebase (TriadCheckpointEventV1)

In a 3-seat Triad session (chinwag triad checkpoint), completing a micro-unit (<= 150 LOC) broadcasts a signed TriadCheckpointEventV1 (✓ed25519) and automatically rebases peer workspaces (jj rebase -d <new_commit_sha>) so all three seats stay synchronized against a single causal graph.

Verification Command

chinwag bus status --json