queue_decision
Queue a decision for human review by providing options, recommendation, and urgency. Define context, smallest input needed, and proposed subtasks to materialize upon approval. Replaces automated decision patterns.
Instructions
Queue a decision for human review. Writes to the real decisions table (not the knowledge graph). Replaces the autopilot pattern of calling add_learning with entry_type=decision and a 'DECISION NEEDED:' title prefix. Resolves via resolve_decision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | No | Plan that owns this decision. Required if node_id is not provided. | |
| node_id | No | Task that prompted the decision. If provided, plan_id is inferred. | |
| title | Yes | User-facing decision title | |
| context | Yes | Background — why this matters, what is at stake | |
| options | No | Concrete options to choose between | |
| recommendation | No | Agent's preferred option with one-line reasoning | |
| smallest_input_needed | Yes | Explicit ask for human, e.g. 'approve|defer' | |
| urgency | No | normal | |
| goal_id | No | Optional goal this decision serves | |
| proposed_subtasks | No | Tasks to materialize if the human approves. Agents propose; humans steer structure. On resolve_decision(action='approve'), these are atomically created under the given parent_id and their IDs are returned. |