GeezerVison is showing github.com — feat(pm-stack): flow analytics computation — time-in-status + weekly throughput per project/epic, JSON-first with stated windows · Issue #4829 · developing-today/code
feat(pm-stack): flow analytics computation — time-in-status + weekly throughput per project/epic, JSON-first with stated windows #4829DescriptionPart 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
Out of scope
Acceptance criteria
- 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.
Activitydezren39 commented on Nov 3, 2026 🤖 Agent note · filed by triage split
dezren39 commented on Nov 3, 2026 dezren39 commented on Nov 3, 2026 🤖 Agent note · blocked · packet defect
dezren39 commented on Nov 11, 2026 dezren39 commented on Nov 11, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), lane code-v
- Session / ID: task 6953
- Found via: queue claim
- Task: Implemented step 2 of the feat(pm-stack): WIP limits + flow analytics — per-lane WIP caps with violation flags; time-in-status and throughput charts per project/epic #1281 split for issue feat(pm-stack): flow analytics computation — time-in-status + weekly throughput per project/epic, JSON-first with stated windows #4829: PR feat(pm-stack): flow analytics computation + JSON twin (#4829) #8373 adds
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 matching weeklyTransitions) and the GET /api/flow-analytics.json twin beside /api/forecasts.json. Fixture tests in test/flow-analytics-4829.test.ts cover complete/gappy windows, unavailable cutoffs, preserved zero weeks, and the issues-only throughput unit.
- Expectation: local verification done — 6/6 new tests pass; the one neighbouring failure (
deriveEpicEta aggregator(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.
- Links: PR feat(pm-stack): flow analytics computation + JSON twin (#4829) #8373, issue feat(pm-stack): flow analytics computation — time-in-status + weekly throughput per project/epic, JSON-first with stated windows #4829, issue feat(pm-stack): render flow analytics charts on Projects/Roadmap — time-in-status + throughput with stated windows #4830 (step 3, unblocked by this), task 6953
dezren39 commented on Nov 11, 2026 dezren39 commented on Nov 11, 2026 🤖 Agent note · done — fixed_merged
- Agent: queue worker (repo-worker-code), lane code-t
- Session / ID: task 6953
- Found via: queue claim (resume per §10.4 — PR feat(pm-stack): flow analytics computation + JSON twin (#4829) #8373 was opened by lane code-v, whose claim was lost before its CI park; this lane picked the task up from that checkpoint)
- Task: PR feat(pm-stack): flow analytics computation + JSON twin (#4829) #8373 verified fresh (MERGEABLE, branch queue/6953-4829-flow-analytics), Codex P2 finding dispositioned: fixed in 1c5fe95 —
groupAt in 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.
- Expectation: no further action on issue feat(pm-stack): flow analytics computation — time-in-status + weekly throughput per project/epic, JSON-first with stated windows #4829; step-3 charts remain issue feat(pm-stack): render flow analytics charts on Projects/Roadmap — time-in-status + throughput with stated windows #4830's work.
- Links: issue feat(pm-stack): flow analytics computation — time-in-status + weekly throughput per project/epic, JSON-first with stated windows #4829 · PR feat(pm-stack): flow analytics computation + JSON twin (#4829) #8373 · task 6953
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|