lbb_branch
Create new branches from an existing branch, or merge a child branch back to its parent with SHACL validation and conflict detection.
Instructions
Branch lifecycle. Actions: create (fork a new branch off from_branch — the tool's branch argument names the NEW branch) and merge (validate-then-merge: replay from_branch's post-fork commits onto the scoped target branch — its fork parent — as ONE commit with event ids preserved; SHACL-validates the would-be merged state first and refuses with the report on violations; a fact superseded on the target after the fork wins over the branch's version, reported as a supersedure_race conflict; delete_source consumes the merged branch).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | No | Graph to target; defaults to the connection's graph | |
| action | Yes | create = fork a new branch; merge = replay a child branch onto its fork parent | |
| branch | No | Branch to target; defaults to the connection's branch | |
| validate | No | merge only: refuse on SHACL violations of the would-be merged state (default true) | |
| from_branch | Yes | create: the branch to fork from; merge: the child branch whose commits are replayed | |
| delete_source | No | merge only: delete every object under the merged branch after success |