Skip to content

feat: cross-rig support for beads-creation-expansion#1

Draft
sfncore wants to merge 2 commits intoXexr:mainfrom
sfncore:feat/cross-rig-beads-creation
Draft

feat: cross-rig support for beads-creation-expansion#1
sfncore wants to merge 2 commits intoXexr:mainfrom
sfncore:feat/cross-rig-beads-creation

Conversation

@sfncore
Copy link

@sfncore sfncore commented Mar 5, 2026

Summary

  • Adds cross-rig awareness to the beads-creation-expansion formula
  • Tasks are created in their target rig's beads DB based on file paths in the plan
  • Single-rig projects are unaffected — cross-rig mode is auto-detected from the coverage matrix

What changed

The formula's draft step now extracts a Target Rig per task by parsing file paths (e.g., node0/mayor/rig/src/... → node0). The execute step groups tasks by rig and runs bd create from each rig's beads path. Cross-rig blocking deps use full prefixed bead IDs (e.g., pe-abc blocks no-xyz). Integration branches are created per-rig.

The completeness review agent also checks rig assignments match file paths.

Motivation

When a project spans multiple rigs (e.g., petals + node0 + lora_forge), the old formula created ALL beads in one rig with that rig's prefix. This meant node0 tasks had pe- prefix and lived in petals' DB — wrong rig's witness/refinery/polecats couldn't work them natively. Required manual migration after the fact.

Test plan

  • Single-rig project: verify no behavioral change (no Target Rig column → same behavior)
  • Cross-rig project: verify tasks created in correct rig DBs with correct prefixes
  • Cross-rig deps: verify bd dep add works across rig boundaries
  • Integration branches: verify one per rig with tasks

🤖 Generated with Claude Code

The formula now detects cross-rig projects (where tasks target different
rigs based on file paths) and creates beads in the correct rig's DB.

Changes:
- Draft step: rig detection from file paths, Target Rig field per issue
- Execute step: group tasks by rig, cd to rig beads path before bd create
- Cross-rig deps use full bead IDs with prefix
- Integration branches created per-rig
- Review pass checks rig assignment correctness
- Report includes rig column in all tables

Single-rig projects are unaffected — cross-rig detection is opt-in based
on whether tasks have different target rigs in the coverage matrix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Each secondary rig now gets a local epic before task creation, enabling
--parent to work natively and gt mq integration create to operate without
manual branch creation. Updated report template with Local Epics mapping
table and Integration Branches table to reflect the new workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants