pub struct WorkAttentionMachine;Implementations§
Source§impl WorkAttentionMachine
impl WorkAttentionMachine
pub fn pause( binding: WorkAttentionBinding, expected_revision: u64, until: Option<DateTime<Utc>>, now: DateTime<Utc>, ) -> Result<WorkAttentionBinding, WorkGraphError>
pub fn resume( binding: WorkAttentionBinding, expected_revision: u64, now: DateTime<Utc>, ) -> Result<WorkAttentionBinding, WorkGraphError>
pub fn stop( binding: WorkAttentionBinding, expected_revision: u64, now: DateTime<Utc>, ) -> Result<WorkAttentionBinding, WorkGraphError>
Sourcepub fn classify_eligibility_at(
binding: &WorkAttentionBinding,
now: DateTime<Utc>,
) -> Result<bool, WorkGraphError>
pub fn classify_eligibility_at( binding: &WorkAttentionBinding, now: DateTime<Utc>, ) -> Result<bool, WorkGraphError>
Resolve attention-projection eligibility for the binding at now.
The shell extracts only the raw wall-clock now (a pure observation) and
drives the canonical WorkAttentionLifecycleMachine’s
ClassifyAttentionEligibility input over the recovered binding state. The
machine owns the eligibility POLICY — including the Paused deadline-elapsed
rule (paused_until <= now) — and emits the verdict; this function only
mirrors the emitted AttentionEligibilityClassified.eligible. It fails
closed (returns Err) if the machine refuses to classify or emits no
verdict; it decides nothing.
Resolve the projected attention authority for the binding.
The shell extracts only the raw binding facts (mode,
delegated_authority) and drives the canonical
WorkAttentionLifecycleMachine’s ClassifyAttentionAuthority input over
the recovered binding state. The machine owns the COMPLETE per-stance
tool-admission POLICY (which stances may read, add evidence, release,
update, block, create, link, close their own review item, or
close-if-policy-allows) and emits the capability verdict; this function
mirrors the emitted AttentionAuthorityClassified capability bits. Fails
closed.
Trait Implementations§
Source§impl Clone for WorkAttentionMachine
impl Clone for WorkAttentionMachine
Source§fn clone(&self) -> WorkAttentionMachine
fn clone(&self) -> WorkAttentionMachine
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more