Skip to content

feat(workspace-jj): fan-flames dual-topology handling + DAG reshape#41

Merged
muloka merged 1 commit intomainfrom
push-dual-topo
Mar 20, 2026
Merged

feat(workspace-jj): fan-flames dual-topology handling + DAG reshape#41
muloka merged 1 commit intomainfrom
push-dual-topo

Conversation

@muloka
Copy link
Copy Markdown
Owner

@muloka muloka commented Mar 20, 2026

Summary

Updates fan-flames to handle both DAG topologies that emerge from concurrent jj workspaces:

  • Pattern A (auto-chained): Subagents see each other's commits and chain linearly. Content is already merged — skip squash, optionally jj parallelize for clean history.
  • Pattern B (independent branches): Each subagent created a change off the shared parent. Squash each into @ with conflict handling.

Adds topology detection logic and a DAG reshape reference (jj parallelize, jj new with multiple parents, jj absorb).

Key insight from testing + community research: content is what matters; topology is presentation. The chain-first approach is strictly more flexible.

Test plan

  • Run fan-flames with 3+ tasks — verify topology detection works for both patterns
  • If chained: verify content is correct without squash
  • If branched: verify squash fan-in works
  • Verify jj parallelize reshapes chain into siblings (optional)

🤖 Generated with Claude Code

…eference

- Detect auto-chained vs independent branch topology after fan-out
- Pattern A (chained): content already merged, skip squash, optionally jj parallelize
- Pattern B (branched): squash each change into @ with conflict handling
- Add DAG topology reference: jj parallelize, jj new multi-parent, jj absorb
- Content is what matters; topology is presentation
@muloka muloka merged commit 173d111 into main Mar 20, 2026
1 check passed
@muloka muloka deleted the push-dual-topo branch March 20, 2026 02:04
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