Plan or execute an adaptive verified task
smart-taskTurn a goal into a schema-aware plan, preview or execute a typed workflow under step, tool-call, and time budgets, with verified assertions and explicit recovery branches.
Instructions
DETERMINISTIC ADAPTIVE ORCHESTRATOR. Turn a goal into a schema-aware plan, preview an explicit typed workflow, or execute it one tool at a time under hard step, tool-call, and wall-clock budgets. Inputs may safely reference prior outputs with exact $steps.. references. Mutations require allowMutations=true and an identical mutating action is never retried. Semantic postconditions are delegated to the read-only assert-state tool and count as verified only when it returns explicit boolean truth. Handled failures may be diagnosed by the read-only explain-failure tool and can activate only named recoverWith branches supplied by the caller. The result includes an evidence timeline, consumed budgets, confidence, unresolved assertions, recovery advice, and a continuation plan. This tool contains no LLM: omitted steps produce deterministic rankTools/matchWorkflows suggestions and leave required arguments blank instead of guessing them. Signature: { goal: string, mode: any?, steps: {{ type: any?, id: string, phase: "observe" | "act" | "verify"?, tool: string, input: any?, assertions: any?, recoverWith: any?, onFailure: any? }}?, fallbacks: any?, successAssertions: any?, finalRecoverWith: any?, allowMutations: any?, budgets: any? }. Phase: orchestrate; cost=medium; idempotency=contextual-write. Requires: explicit-mutation-approval. Produces: grounded-evidence, schema-aware plan, evidence timeline, assertion truth, completion confidence, continuation plan. Verify with: assert-state. Safety: MUTATING; writes live game/client state, may invoke multiple registered tools, mutating nested tools require allowMutations=true. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | Concrete outcome the workflow must prove. | |
| mode | No | Plan ranks tools, preview validates explicit steps, and execute invokes tools. | plan |
| steps | No | Explicit ordered workflow. Omit it for deterministic schema-aware planning. | |
| budgets | No | Optional validated input for budgets. | |
| fallbacks | No | Named recovery branches; only a step's recoverWith list can activate one. | |
| allowMutations | No | User approval gate for every tool whose contract mutates state. | |
| finalRecoverWith | No | Explicit branches available if goal-level assertions fail. | |
| successAssertions | No | Goal-level assertions evaluated after the main workflow. |