# Questions in a decomposition

Put every question of a `question` step to the user **verbatim**, with its options and assumption, then `tkt plan answer <dcmp> --answers - --answered-by user --out step.json` (`{"q1-1": "<option or free text>"}`).

Never answer yourself: `--answered-by agent` and `--accept-assumptions` only on the user's say. Round 1 comes before any write, round 2 after the gate.

## Details

- Step `{id: "question-<n>", round, questions: [{id, text, options[], assumption, affects[]}], answered[]}`. Round 1: slice questions (`q1-<n>`), answers reach writes as `inputs.answers`; round 2: write questions, then `placementUnsure` units (`inline`/`sibling`), `q2-<n>`.
- JSON or YAML (`yes` stays text); options match ignoring case and spaces; partial answers keep the step (open ones + `answered[]`); open-round ids may be resent. Stored `{value, answeredBy: user|agent|assumption, by, at}`; `--accept-assumptions` closes the rest.
- Unknown, empty or closed-round id: `ERR_DECOMPOSITION_SUBMIT_INVALID`, no strike; wrong step: `ERR_DECOMPOSITION_STEP_MISMATCH`; `--answers` without `--answered-by`: exit 2. A terminal without `--answers` prompts (number = option, Enter = assumption); server stores need `--answers` or `--accept-assumptions`. Exit 0 with questions open too.
- A round-2 answer unlike its assumption rewrites the units it `affects`; their new questions stay assumptions. Notes `Planned by dcmp-… (method …); answers: q1-1="…" (user); assumptions accepted: q2-1="…"` (epic: all; digested). Permissions: `"ask": ["Bash(tkt plan answer:*)", "Bash(tkt plan apply:*)"]`.

## Commands on this page

- [`tkt plan answer`](/en/docs/reference/commands/plan.md#tkt-plan-answer): Answer a question step with the user's answers; prints the next step (exit 0, also while questions stay open)
