Skip to content
Français

Answer questions and approve recipe work

Handle durable approvals and agent questions in a terminal or from another application.

Start with the checkpoint and approval from Save and resume a recipe. Pending requests and accepted answers survive process restarts.

Run without --json to handle questions automatically when stdin and stderr are terminals. For the saved example, resume its existing run:

npx outpost recipe resume --file recipe.yaml --config outpost.yaml \
  --run-id reviewed-change

The CLI shows saved evidence, offers approval or rejection and asks for a reason. Leaving pending is the default. A single allowed actor is selected automatically; several actors offer a choice. Actor selection declares a trusted local identity, not a login.

Ctrl+C keeps the request pending. Resume presents it again without replaying completed turns. Signed gates still require an external signature proof.

For automation, use --no-interactive or --json. Read the saved request IDs from the report and write a WorkflowDecision to decision.json, including an authorized actor and reason. Signed gates also require their original proof.

npx outpost recipe decide --file recipe.yaml --config outpost.yaml \
  --run-id reviewed-change --decision decision.json --json

A service accepting decisions must authenticate its callers before supplying trusted actor metadata. A client-provided actor name alone is not authentication. See signed approvals for verifier setup.

Use the Git configuration and writer role from agent setup, prepare its Codex image, and keep the checkpoint stores declaration. Add this item under tasks in the checkpointed recipe. The agent must support portable conversation capture and resume.

- key: clarify
  interactive:
    repository: ./project
    sandboxProvider: { type: docker, image: outpost-codex:dev }
    agent: { $ref: agents.writer }
    brief: Clarify the requested change before implementing it.
    actors: [maintainer]

Interactive tasks retain their named workspace and release the sandbox before presenting a question. With a terminal, the CLI collects answers and continues the saved conversation. See InteractiveAgentTaskOptions for the complete contract.

For a headless client, write a WorkflowAnswer with the saved execution, task and request IDs, actor and answer value, then submit it:

npx outpost recipe answer --file recipe.yaml --config outpost.yaml \
  --run-id reviewed-change --answer answer.json --json

--interactive --json explicitly combines terminal prompts on stderr with one final JSON report on stdout. The CLI reference lists actor and interaction flags.