pub enum NextAction {
Triage,
Answer,
Pr,
ReviewPr,
Accept,
Open,
Do,
Redispatch,
Dispatch,
}Expand description
The verb a task’s queue row asks of the human (DESIGN.md §3), derived from state × fields rather than stored.
Variants§
Triage
An untriaged proposal: accept, park, or reject it.
Answer
A question is waiting; answering it unblocks the work.
Pr
A review task with a branch and no tracked PR: open one from its done-time summary.
ReviewPr
A review task whose PR is open: review it there.
Accept
A review task with nothing to push — an investigation, a triage, an audit whose whole product is its completion summary: read the report and close it out.
Open
A review task in a checkout no pull request can be opened from: read the
diff in a local viewer. Never derived from state alone — a caller that
knows the checkout degrades NextAction::Pr to it.
Do
A ready human-only task: only the human can execute it.
Redispatch
A stalled task: its dispatch died, restart it with the prior session’s context.
Dispatch
A ready task an agent can take: hand it to one.
Implementations§
Source§impl NextAction
impl NextAction
pub fn as_str(self) -> &'static str
Sourcepub fn without_pull_requests(self) -> NextAction
pub fn without_pull_requests(self) -> NextAction
The same verb in a checkout that cannot take a pull request (DESIGN.md
§8): pr there is a recommendation that can only fail, so it degrades
to the local review path the operator does have. Every other verb is
forge-independent and passes through. Pure — whether a given checkout
can take a pull request is decided in the voro crate, which owns the
git and gh seams, and handed here.
Trait Implementations§
Source§impl Clone for NextAction
impl Clone for NextAction
Source§fn clone(&self) -> NextAction
fn clone(&self) -> NextAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for NextAction
Source§impl Debug for NextAction
impl Debug for NextAction
Source§impl Display for NextAction
impl Display for NextAction
impl Eq for NextAction
Source§impl Hash for NextAction
impl Hash for NextAction
Source§impl PartialEq for NextAction
impl PartialEq for NextAction
impl StructuralPartialEq for NextAction
Auto Trait Implementations§
impl Freeze for NextAction
impl RefUnwindSafe for NextAction
impl Send for NextAction
impl Sync for NextAction
impl Unpin for NextAction
impl UnsafeUnpin for NextAction
impl UnwindSafe for NextAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.