Graph Movement
Graph movement commands support reusable planning templates and multi-repo demos.
They are powerful enough to change graph shape, so treat them as planned operations with receipts.
Common surfaces include:
mdkg graph clone --helpmdkg graph fork --helpmdkg graph import-template --helpmdkg fix ids --helpId policy
Section titled “Id policy”- Preserve ids when moving a graph into a separate repository.
- Rewrite ids when importing a template into the same graph.
- Preserve links during rewrite.
- Prefer explicit
--dry-runreceipts before--apply.
Selected goal policy
Section titled “Selected goal policy”When importing a template that should become active work, use an explicit start goal.
mdkg graph import-template ./template --start-goal goal-1 --select-goal --dry-run --jsonmdkg graph import-template ./template --start-goal goal-1 --select-goal --apply --jsonThe selected imported goal should activate cleanly and competing local active root goals should pause. Import should not leave multiple active root goals.
Branch repair
Section titled “Branch repair”When separate branches create the same numeric ids, repair should keep the main-branch ids stable and rewrite the incoming ids with link preservation.
Use repair planning before apply:
mdkg fix plan --jsonmdkg fix ids --base-ref main --dry-run --jsonmdkg fix ids --base-ref main --apply --jsonDo not use graph movement commands to bypass review. Validate after every apply.