Skip to content

(CODUX-142) Align weighted progress with canonical coding-stage precedence - #2857

Merged
numnx merged 1 commit into
feature/CODUX-204-sprint-progressfrom
task/feature-codux-20-t05-codex-f052f2fb-mrfre4bw
Jul 11, 2026
Merged

(CODUX-142) Align weighted progress with canonical coding-stage precedence#2857
numnx merged 1 commit into
feature/CODUX-204-sprint-progressfrom
task/feature-codux-20-t05-codex-f052f2fb-mrfre4bw

Conversation

@numnx

@numnx numnx commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

🧩 Task: Align weighted progress with canonical coding-stage precedence

Automated task PR opened by Code UX for T05.

📋 Summary

Sprint: Sprint 204 · Sprint Progress · Task: T05

Expose live weighted sprint completion using task lifecycle stages and coding tool-call telemetry, preserve raw completed-task counts, and refresh/render fractional progress accurately across the dashboard and documentation.

🤖 Model & Provider

Provider Codex CLI
Model gpt-5.6-sol

⏱️ Timing

Started 2026-07-11 02:42:12 UTC
Finished 2026-07-11 02:45:02 UTC
Duration 2m 49s

📊 Token Usage

Metric Value
Input tokens 43,066
Cached input tokens 719,360
Output tokens 4,926
Total tokens 767,352
Invocations 1
Tool calls 21
Active time 2m 26s

Included usage estimate (subscription/local login): $0.72

✅ QA Review

⏳ QA review runs after this PR is opened. Check the task card in the dashboard for the outcome once it lands.

📝 Full Task Prompt
## Objective
Correct the weighted sprint progress calculator so stale merge metadata cannot advance tasks that are still in the canonical coding stage.

## Scope
- `src/domain/sprint/sprint-progress.ts`
- `tests/backend/domain/sprint/sprint-progress.test.ts`

## Requirements
1. Normalize task status before evaluating merge state.
2. Treat `pending`/`PENDING` as 0% regardless of stale `isMerged`, merge-indicator, or telemetry values.
3. Treat `in_progress`/`RUNNING` as unfinished coding and calculate only clamped task-coding tool-call progress, ignoring stale `isMerged` and merge indicators.
4. Preserve the existing `coding_completed`, post-coding gate, settled merge-indicator, and completed-task behavior.
5. Add regression tests covering pending and running tasks with stale `CI` and merged metadata, including partial tool-call progress for running tasks.
6. Do not modify lifecycle transitions, database schema, or repository aggregation behavior.

## Verification
- Run `pnpm exec vitest run tests/backend/domain/sprint/sprint-progress.test.ts tests/backend/repositories/project-management-repository.test.ts`.
- Run `pnpm run typecheck`.
- Run `pnpm run typecheck:dashboard`.
🌿 Branch Info

Base: feature/CODUX-204-sprint-progress
Head: task/feature-codux-20-t05-codex-f052f2fb-mrfre4bw


🤖 Generated by Code UX

@numnx
numnx merged commit 4b65bb1 into feature/CODUX-204-sprint-progress Jul 11, 2026
4 checks passed
@numnx
numnx deleted the task/feature-codux-20-t05-codex-f052f2fb-mrfre4bw branch July 11, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant