ActionPlan Schema
Canonical JSON schema is stored at:
docs/contracts/action_plan.schema.json
Top-level
summary: stringactions: array of 1..20 action objects
Action kinds
readwritelist(path/glob/limitoptional)search(queryrequired;path/glob/limitoptional)runemit
Emit action fields
event_typemessageblocking- optional
payload
Example
{
"summary": "add one test",
"actions": [
{"kind": "read", "path": "tests/test_parser.py"},
{"kind": "list", "path": "src", "glob": "**/*.py", "limit": 100},
{"kind": "search", "query": "RunStepService", "path": "src", "glob": "**/*.py", "limit": 20},
{"kind": "write", "path": "tests/test_parser.py", "content": "..."},
{"kind": "run", "command": "pytest tests/test_parser.py"}
]
}
Ready-to-run examples
examples/action_plans/read_only.jsonexamples/action_plans/write_file.jsonexamples/action_plans/run_tests.jsonexamples/action_plans/mixed_step.jsonexamples/action_plans/list_files.jsonexamples/action_plans/search_text.json
hexi plan-check --file examples/action_plans/mixed_step.json
hexi apply --plan examples/action_plans/mixed_step.json --task "ActionPlan debug run"