Skip to main content

Tracker

Trait Tracker 

Source
pub trait Tracker: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn health_check<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn sync_to_project<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _id: &'life1 ExternalId,
        _status: Status,
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn reconcile_project_statuses<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn sync_estimate_to_project<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _id: &'life1 ExternalId,
        _estimate: u8,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn get_project_item_estimates<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _issue_node_ids: &'life1 [String],
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Expand description

The tracker itself: its name, health and project board

Required Methods§

Source

fn name(&self) -> &str

Human-readable name (e.g. “github”, “linear”, “jira”)

Source

fn health_check<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if connected and authenticated.

Provided Methods§

Source

fn sync_to_project<'life0, 'life1, 'async_trait>( &'life0 self, _id: &'life1 ExternalId, _status: Status, ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Sync a task to the project board (if configured).

Called when a task is first ingested to ensure it appears on the project board immediately, not just when status changes later. Returns Some(node_id) if the item was added/updated on the project board, or None if project sync is not configured or failed. Default is a no-op returning None; GitHub backend implements project board sync.

Source

fn reconcile_project_statuses<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Repair project display state from authoritative external labels. Called by periodic and webhook-triggered sync, independent of ingestion. Does not transition tasks or dispatch agents. Default is a no-op.

Source

fn sync_estimate_to_project<'life0, 'life1, 'async_trait>( &'life0 self, _id: &'life1 ExternalId, _estimate: u8, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Sync a task’s estimate to the project board Estimate field.

Called after the router assigns an estimate to a task (via store_route). Writes the estimate value to GitHub Projects V2 so humans can see it on the board. Default is a no-op; GitHub backend implements estimate project sync.

Source

fn get_project_item_estimates<'life0, 'life1, 'async_trait>( &'life0 self, _issue_node_ids: &'life1 [String], ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Batch-fetch project item estimates for a list of issue node IDs.

Returns a map from issue node ID → estimate value (0 if not set). Used during ingestion to populate tasks.estimate from GitHub Projects when the orch estimate is still 0. Default returns an empty map; GitHub backend implements batch estimate fetch.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§