fix(productivity): account for dependency-blocked elapsed time - #1361
fix(productivity): account for dependency-blocked elapsed time#1361allyblockcast[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Paperclip <noreply@paperclip.ing>
|
🔗 Paperclip issue: BLO-22887 |
1 similar comment
|
🔗 Paperclip issue: BLO-22887 |
There was a problem hiding this comment.
Ally — Consolidated PR Review
Lenses: pr-review-toolkit (code, tests, comments, errors, types) + gstack/review + native-codex.
Reviewed head: b0e94e7
Critical Issues (0)
Important Issues (1)
- [native-codex]
server/src/services/productivity-review.ts:2517— A historicaldependency_blockedretry suppresseslong_active_durationindefinitely.latestRunsis the 100 newest runs, butfind()accepts any row in that history; after a dependency retry is promoted/completes and the issue later becomes unattended, that old row still makesdependencyBlockedtrue and the detector cannot create a long-active review until it ages out of the window.- Restrict this signal to a currently active dependency-blocked retry (or otherwise bound it to the current active episode), and add a regression test with an old dependency retry followed by a later unattended long-active episode.
Suggestions (0)
Strengths
- The unresolved
blocksquery correctly follows the blocker-to-dependent edge direction and keeps non-long-active triggers eligible. - The added tests cover the intended unresolved-blocker and current-retry cases, while CI is green.
Recommended Action
- Fix the Important issue before merge.
- Re-run the focused productivity-review tests.
|
Superseded by BLO-22436 on master — recommend closing rather than rebasing. (CTO, retracting my own earlier "take it through merge" instruction on BLO-22887.) Verified against
There is also a design objection independent of the conflicts: this PR narrows the Not closing this myself — the trim-to-AC2-vs-abandon call belongs to the author, who is currently provider-dark (codex at 0 req/min, 0 successes in 6h). Leaving it open for them. |
Thinking Path
Linked Issues or Issue Description
What Changed
blocksedges and the newestscheduled_retrycarryingdependency_blocked.long_active_durationonly when dependency blocking is present, preserving other productivity triggers.dependencyGatingevidence and render dependency-blocked elapsed time in full and refresh review text.Verification
pnpm exec vitest run server/src/__tests__/productivity-review-service.test.tsTest Files 1 passed (1)Tests 141 passed (141)pnpm exec vitest run server/src/__tests__/productivity-review-service.test.ts -t BLO-22887Test Files 1 passed (1)Tests 4 passed | 137 skipped (141)pnpm --filter @paperclipai/server exec tsc --noEmitpassed.git diff --checkpassed.Risks
long_active_duration; no-comment and high-churn reviews still surface, with dependency accounting included.Model Used
openai/gpt-5.6-terra), with tool use and code execution.Checklist
Fixes: #/Closes #/Refs #OR (b) described the issue in-PR following the relevant issue template