fix(backlog): a reopened node stops binding its dead PR #3915
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.39) × (1 − Review Confidence (0.31)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 263 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 55% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.334
Real PR Conversation Timeline
1 comments
"Review active on #3915"
general
weight: 0.35
chatgpt-codex-connector[bot]
Summary
Reopening a node left its completed PR stamped as the primary, so the store kept deriving in_review over the rung status reopen had just written, the patch door held every later status move, and the stop gate's PR selector pinned a dead PR forever. Two fixes, one root cause: reopen now demotes the completed PR into additional_prs with its recorded outcome, and the selector age-gates its unstamped-row lift so an older unstamped row is history, never live work.
Changes
crates/fno-agents/src/backlog/workflows.rs:clear_completion_fieldsmoves the completed primary PR intoadditional_prs(preserving number, url, and the recorded merge_status) and clears the top-level scalars; idempotent across a reopen of a reopen, and a nulladditional_prsnormalizes to an array.crates/fno-agents/src/loopcheck/pr_read.rs:manifest_node_pr_selectorcomputes the newest stamped-terminal number and lifts an unstamped row above the stamped rows only when its number is greater than every stamp; attached rows that predate the newest stamp sort as history, so a merged currentpr_numberpins the gate again.ideastatus after it.Test Plan
Test delta
| Language | Added | Removed | Net |
|---|---:|---:|---:|
| Python | 1 | 0 | 1 |
| Rust | 2 | 0 | 2 |
| Shell | 0 | 0 | 0 |
| Total | 3 | 0 | +3 |
Audited owners: crates/fno-agents/src/backlog/workflows.rs (no cut: the two added tests guard distinct contracts, demotion with its recorded stamp and null-array normalization, and the neighboring reopen tests keep their own contracts)
Review
Reviewed at 024cac8a9f: 1 rounds, 0 findings disposed.
Fixes x-4ba0