# human-in-the-loop Approvals (M6). Generated by `make records` from the decisions whose `topic` (or `also`) is this one; edit the decisions, not this page. ## Current ### Approvals and questions - **The master holds approval and question steps** (D283, planned (M6)): `approve` and `ask` declare an `ask` task with its question, answer schema, approvers and timeout. When ready it waits on the master for an answer, without running Python or occupying a worker or watcher slot. - **Approval and question answers have typed outputs** (D284, planned (M6)): `approve` produces a yes-or-no answer; `ask` accepts a `Literal`, `Enum`, dataclass or pydantic model. The answer is the step's output and the master validates it against its schema. - **A rejected approval has the Rejected outcome** (D285, planned (M6)): A no answer ends an approval with `Rejected`. `.on(Rejected)` branches on it, while tasks downstream through plain `>>` are skipped. - **Approvers default to users who may trigger the DAG** (D286, planned (M6)): Anyone who may trigger the DAG can answer by default. `approvers` narrows access to users or groups, and `four_eyes=True` excludes the run's initiator. - **Questions time out with the TimedOut outcome** (D287, planned (M6)): An ask step uses its `timeout`, or `[ask] default_timeout` when absent. The default is seven days; expiration produces `TimedOut`. - **Pending questions appear in the UI, CLI and notifications** (D288, planned (M6)): The UI has a Waiting for you list, badge and task-panel answer form; the CLI provides `schedr runs answer`. A `WAITING_FOR_ANSWER` notification is sent through configured channels, with email linking to the task. - **Answers are final and recorded in the command log** (D289, planned (M6)): Each answer records who answered, when, what they answered and an optional comment in the command log. The task panel shows the record; an answer is final. ## Replaced None. ## Where in code None named by the decisions yet. ## Open None. Details and edge cases, with the reasons; read them before changing this: - archive/PROJECT.md: Human in the loop (M6)