huskies: merge 1066
This commit is contained in:
@@ -13,6 +13,15 @@ use crate::pipeline_state::Stage;
|
||||
use crate::slog;
|
||||
use crate::slog_warn;
|
||||
|
||||
/// Reconcile: re-populate the CostRollup register from disk for all known stories.
|
||||
///
|
||||
/// Idempotent — `init_from_disk` scans all existing token-usage JSONL files and
|
||||
/// overwrites the in-memory register. Called by the periodic reconciler so that
|
||||
/// a Lagged event can never leave a story with a stale or absent cost entry.
|
||||
pub(crate) fn reconcile_cost_rollup(project_root: &Path) {
|
||||
crate::service::agents::cost_rollup::init_from_disk(project_root);
|
||||
}
|
||||
|
||||
/// Spawn a background task that maintains the CostRollup register.
|
||||
///
|
||||
/// On every terminal stage transition (Done, Archived, Abandoned, Superseded,
|
||||
|
||||
Reference in New Issue
Block a user