gsxdsm
7ed1c39a67
FN-9102: fix active runtime segment accounting
Prevent reopened tasks from double-counting closed execution segments while preserving pre-execution planning time.
- Clear the live execution anchor whenever a WIP segment is banked.
- Clamp legacy poisoned runtime values with separate execution and combined-work wall-clock ceilings.
- Cover cards, detail statistics, core totals, and planner metrics across WIP round trips and historical rows.
- Add a patch changeset for the published Fusion package.
Files changed:
.changeset/fn-9102-task-runtime-double-count.md | 7 ++
.../src/__tests__/reopen-semantics-by-role.test.ts | 95 ++++++++++++++--------
packages/core/src/tasks/task-timing.ts | 20 ++++-
.../core/src/workflows/default-workflow-hooks.ts | 14 +++-
.../app/components/__tests__/TaskCard.test.tsx | 27 ++++++
.../__tests__/TaskTokenStatsPanel.test.tsx | 27 ++++++
.../app/utils/__tests__/taskTiming.test.ts | 40 +++++++++
packages/dashboard/app/utils/taskTiming.ts | 28 +++++--
.../__tests__/task-planner-chat-metrics.test.ts | 28 +++++++
.../dashboard/src/task-planner-chat-metrics.ts | 22 ++++-
10 files changed, 260 insertions(+), 48 deletions(-)
Fusion-Task-Id: FN-9102
Fusion-Task-Lineage: 3b42e81f-4e11-4232-80f6-052f51b83f1c
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-08-15 13:39:24 -07:00
..
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-11 13:34:27 -07:00
2026-08-03 00:20:53 -07:00
2026-08-08 21:04:10 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-11 13:34:27 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-08 21:04:10 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-11 03:53:11 -07:00
2026-08-08 21:04:10 -07:00
2026-08-15 13:39:24 -07:00
2026-08-10 11:28:32 -07:00
2026-08-11 13:34:27 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-09 04:37:47 -07:00
2026-08-07 01:36:34 -07:00
2026-08-07 01:36:34 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-11 03:53:11 -07:00
2026-08-03 00:20:53 -07:00
2026-08-11 13:34:27 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00