fn quote_for_turn(
turn: &Value,
prompt: &str,
prompt_at_ms: Option<u64>,
already_filed: bool,
) -> StringExpand description
The operator’s own words for a card, or nothing when they can’t be tied to the task. A task carries a quote only when all of these hold, so a quote is never a guess:
- the turn’s own first trigger is a message the operator typed (not a broadcast, a jekt, a schedule, or a message that only joined the turn);
- the pane stored that message as its last prompt at the start of this turn (
prompt_at_ms), not an earlier one, since a pane keeps its last prompt that has a goal in it across turns and a nudge (“yes”) does not replace it; - no other task was filed by this agent since the turn started (
already_filed): a second task of a turn is a follow-up or a sweep, not what the message asked.