graph_mutate
Atomically create or update project graph elements—blocks, decisions, links, chains, plans, checkpoints, scopes, and source refs—ensuring consistent changes.
Instructions
Atomically create or patch Blocks, project-scoped Decisions, global Links, Chain paths, independent Plans, atomic Checkpoints, Background scopes, Decision scopes, and source refs. Decisions are not Canvas Blocks and never enter Block/Chain/Plan coverage. A plain create_block records architecture only; use create_checkpoint in the same ChangeSet when a requirement, Plan, Chain gate, or explicit verification request makes the check necessary. Link kinds are flows_to, calls, reads, writes, depends_on, implements, validates, constrains, and supersedes. Keep each call small and provide expectedRevision for updates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| actor | No | ||
| planId | No | ||
| reason | Yes | ||
| gitHead | No | ||
| operations | Yes | ||
| projectRoot | No | ||
| chainScopeId | No | ||
| includeStructured | No |