approve_plan
Approve or reject items in a proposed plan before execution. Saves approval flags and returns updated plan items.
Instructions
Set the approval flags on the proposed plan, then persist.
Use when: after ``propose_plan``/``get_plan`` you want to mark which items
should actually run. ``approve_all`` approves everything; otherwise
``approve_ids`` are approved and ``reject_ids`` un-approved (reject wins a
tie — the safer default). Idempotent. Then call ``execute_plan``. Related:
``propose_plan``, ``get_plan``, ``execute_plan``.
Side effects: rewrites ``.orchestrator/proposed_plan.json``; edits no code.
Returns ``{items: [...]}`` with updated flags, or ``{error}`` when no plan
exists to approve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a project that has a proposed plan. | |
| reject_ids | No | Ids to un-approve. An id in both lists is rejected. | |
| approve_all | No | Approve every item in the plan. | |
| approve_ids | No | Ids to approve (as shown by get_plan, e.g. 'P-001'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |