validate_plan
Checks a planning workspace before code is written by running modularity-delta and surprise analysis, plus architecture policy rules when present, to catch structural issues early.
Instructions
Validate a planning workspace before writing code. Always runs the Louvain modularity delta gate and surprise analysis. Unless skip_policy_rules is true, it also applies explicit .graphenium/policy.json rules when present.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plan_id": "<plan_id>"
},
"name": "validate_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | The workspace plan identifier to validate. | |
| skip_policy_rules | No | When true, skip explicit architecture policy rules and run only the Louvain modularity delta gate. Default false. | |
| surprise_threshold | No | Surprise threshold used to flag structurally surprising planned edges (default 5.0). | |
| modularity_tolerance | No | Maximum allowed modularity drop for the delta gate (default -0.02). |