An agent that needs a decision asks, with the options it offers and what each does; the answer is signed by the person with the key of their own sign-in, and grants nothing: the asker acts on it under its own roles. A question that does not wait needs a default and a deadline, at which the forge records the default and the asker goes on with it. Options are numbered from 1.
Usage
af ask [OPTIONS] --to <TO> --option <OPTIONS> <QUESTION>Arguments
-
<QUESTION>The question, on its own: what must be decided
Options
-
--task <TASK>The task it is about
-
--change <CHANGE>The change it is about, by the id
af logshows: who may read the question is who may read the restricted folders the change touches -
--to <TO>Whom:
person:EMAIL(or an actor id in hex),team:NAME, orkind:NAMEfor the agents of an agent kind (af kind list): one of them answers -
--option <OPTIONS>An option,
LABEL=what choosing it does; repeat for two to eight -
--recommend <RECOMMEND>The option you recommend, by its number from 1
-
--manyAn answer may choose several options
-
--free-textAn answer may be in words
-
--context <CONTEXT>Why it matters
-
--no-waitDo not stop until it is answered: needs –default and –deadline
-
--default <DEFAULT>The option you go on with at the deadline, by its number from 1
-
--deadline <DEADLINE>How long from now,
30s,15m,2hor3d -
--orgThe organization’s own intents instead of the repository’s
Global options
Every af command also takes the global options.
Examples
af ask --task 7 --to team:release --option "small=keep the parser" --option "fast=switch to the generated one" --recommend 1 "Which parser?"
af ask --task 7 --to person:ada@example.com --option "yes=ship it" --option "no=hold" --no-wait --default 2 --deadline 2h "Ship today?"