You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(pm-stack): flow analytics computation — time-in-status + weekly throughput per project/epic, JSON-first with stated windows #4829
Part of #1281 (WIP limits + flow analytics, epic #1184 wave 2) — step 2 of the split recorded by triage task 6839 on 2026-11-03. Step 1 (WIP caps + violation flags) stays on #1281 itself; step 3 (chart rendering) is a separate issue that depends on this one.
Goal
Compute flow analytics from the history the pm-stack aggregator already accumulates, and expose them machine-first: time-in-status per item and weekly throughput (items completed per week), per project and per epic, with the computation window stated on every result.
Scope
A flow-analytics computation in pm-stack/aggregator over snapshot history (src/snapshots.ts / src/snapshot-records.ts). Coordinate with aggregator: capture item history for forecasting and flow calculations #3981 (item-history capture for forecasting/flow): reuse its history seam if it has landed; do not introduce a duplicate flow store.
Tests over fixture snapshots covering: a complete window, a gappy window (gap flagged, not zero-filled), and zero-completion weeks preserved as zero only when coverage is complete.
Time-in-status and weekly throughput are computed per project and per epic from snapshot/item history, with the computation window stated in the JSON output.
JSON twins are machine-first and covered by fixture-snapshot tests, including the gap and zero-completion cases above.
No number is presented without its window and coverage state.
Activity
dezren39 commentedon Nov 3, 2026
🤖 Agent note · filed by triage split
dezren39 commentedon Nov 3, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 3, 2026
🤖 Agent note · blocked · packet defect
97 remaining items
dezren39 commentedon Nov 11, 2026
🤖 Agent note · picked up
queue/6953-4829-flow-analytics.dezren39 commentedon Nov 11, 2026
🤖 Agent note · picked up
src/flow-analytics.ts(time-in-status + weekly throughput per project/epic over the aggregator: capture item history for forecasting and flow calculations #3981 item-history store, chain/honesty rules matchingweeklyTransitions) and theGET /api/flow-analytics.jsontwin beside/api/forecasts.json. Fixture tests intest/flow-analytics-4829.test.tscover complete/gappy windows, unavailable cutoffs, preserved zero weeks, and the issues-only throughput unit.deriveEpicEtaaggregator(forecast): capped resampling trials are recorded as completions, publishing optimistic P50/P80 dates #6386 timeout) and the 24 tsc errors reproduce identically on pristine current main (pre-existing, none in touched files). Remaining: CI on PR feat(pm-stack): flow analytics computation + JSON twin (#4829) #8373, then merge and close issue feat(pm-stack): flow analytics computation — time-in-status + weekly throughput per project/epic, JSON-first with stated windows #4829.dezren39 commentedon Nov 11, 2026
🤖 Agent note · parked
queue/6953-4829-flow-analyticsand intended worktree/home/user/git/fleet/6953first. No PR was opened by this run.fix(aggregator): preserve explicit unassigned completion membership i…
Merge pull request #8373 from developing-today/queue/6953-4829-flow-a…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done — fixed_merged
groupAtin pm-stack/aggregator/src/flow-analytics.ts now distinguishes a missing observation (undefined) from explicit unassigned membership (group: null), so a completion at a cutoff where the item is unassigned is credited to the unassigned group, not its previous parent; regression test added, thread replied to (4532808788) and resolved. Tests at the new head: bun test test/flow-analytics-4829.test.ts 7/7 pass on the laptop; tsc --noEmit shows no errors in the touched files (24 pre-existing errors elsewhere unchanged). PR feat(pm-stack): flow analytics computation + JSON twin (#4829) #8373 MERGED 2026-11-11T01:32:00Z, merge commit 43372e3; PR checks were QUEUED in the fleet Actions backlog at merge (merge under the standing authority — CI runs on main). Issue feat(pm-stack): flow analytics computation — time-in-status + weekly throughput per project/epic, JSON-first with stated windows #4829 CLOSED by the merge.Merge pull request #8410 from developing-today/queue/6955-4830-flow-c…