Skip to content

refactor(fan-flames): eliminate dual isolation — orchestrator-managed jj workspaces#54

Merged
muloka merged 1 commit into
mainfrom
refactor-fan-flames-v3-workspace-isolation
Apr 10, 2026
Merged

refactor(fan-flames): eliminate dual isolation — orchestrator-managed jj workspaces#54
muloka merged 1 commit into
mainfrom
refactor-fan-flames-v3-workspace-isolation

Conversation

@muloka

@muloka muloka commented Apr 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove isolation: "worktree" from fan-flames dispatch — the orchestrator now creates jj workspaces directly via jj workspace add and agents cd into them, eliminating the nondeterministic dual isolation (Claude Code worktree + jj workspace hook) that caused mixed Pattern A/B/C within single waves
  • Promote integrity check to primary gate in COLLECT phase — catches cd failures before review wastes cycles, replacing the former Pattern C edge-case handler
  • Add wave-end workspace sweep — handles orphaned (BLOCKED/CRASHED) and leaked (WORKSPACE_LEAK) workspaces to prevent /tmp directory leaks
  • Retain Pattern A/C detection as safety net with annotations clarifying they are defense-in-depth, not expected to trigger

Test plan

  • Run fan-flames on a multi-task plan and verify all tasks produce Pattern B (independent branches)
  • Verify jj squash no longer returns "Nothing changed" for any task
  • Verify workspace cleanup sweep reports preserved workspaces for blocked tasks
  • Confirm no WorktreeRemove or stale hook references remain in the skill

🤖 Generated with Claude Code

… jj workspaces

Remove isolation: "worktree" from fan-flames dispatch. The orchestrator now
creates jj workspaces directly and agents cd into them, eliminating the
nondeterministic dual isolation (Claude Code worktree + jj workspace hook)
that caused mixed Pattern A/B/C within single waves.

Changes:
- FAN OUT: orchestrator creates workspaces via jj workspace add, agents
  dispatched without isolation flag, cd + verify as first action
- COLLECT: integrity check promoted from edge-case handler to primary gate
- REVIEW: wave-end sweep for orphaned/leaked workspaces
- FAN IN: Pattern A/C retained as safety net with annotations
- Workspace lifecycle: orchestrator owns full create/destroy, hooks uninvolved
@muloka muloka merged commit 4e96950 into main Apr 10, 2026
1 check passed
@muloka muloka deleted the refactor-fan-flames-v3-workspace-isolation branch April 10, 2026 20:00
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