add_planned_symbol
Register intended symbols and dependency edges in a virtual planning workspace to declare architecture before coding; automatic policy checks block forbidden dependencies.
Instructions
Register an intended new or modified symbol and its dependency edges in a virtual planning workspace. Use this tool to declare your architectural design before writing code. Do NOT use mutate_graph (which modifies the physical index) for planned changes. Prerequisites: You must first call create_planning_workspace to obtain a valid plan_id. Side effects: This is an in-memory mutation that adds a virtual node to the specified workspace. It automatically runs pre-flight policy checks; if the proposed symbol or its dependencies violate .graphenium/policy.json rules (for example, forbidden dependencies), the tool returns a PRE_FLIGHT_VIOLATION error and blocks the registration. If the target_symbol does not exist, the tool returns an error and records nothing. Duplicate calls for the same symbol are idempotent. Returns a success confirmation or a structural violation error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Label for the new planned symbol | |
| plan_id | Yes | Planning workspace ID | |
| relation | Yes | Relation type (calls, depends_on, implements, etc.) | |
| file_path | Yes | File path where the symbol will be added | |
| target_symbol | Yes | ID or label of the existing node to link to |