pub fn needs_you_from(
state: CoderState,
question_pending: bool,
auth_outstanding: bool,
approval_kind: Option<ApprovalKind>,
) -> Option<NeedsYou>Expand description
Derive NeedsYou from the three facts that decide it. Split out from the
live registry so the table in docs/proposals/coder-board-wire-contract.md
§1 is directly testable without a daemon.
auth_outstanding means “an auth_required event is the latest unresolved
auth event” — the caller clears it on any subsequent non-auth event or state
change (see coder::rpc::AttentionState).