update: keep the serving build when an update build fails #28
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.41) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.41 · 210 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · 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.320
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #28"
general
weight: 0.35
devin-ai-integration[bot]
Summary
Stops a failed update from leaving the app dead — the failure mode behind the last two server outages.
apply()built into.nextin place; when the build failed and the rollback rebuild also failed, the repo was left with no production build, sonext startdied ("Could not find a production build"). Nowapply()first parks the currently-serving build at.next.prev, andrestoreServed()puts it back whenever no new build could be produced — a failed update still leaves a startable server running the previous version.Also:
rmSyncs.nextbefore building, which is newly safe (the parked copy survives) and clears staged partials / a poisoned build cache.dump-start.cmd(on the laptop, not versioned) got a matching belt: if.next/BUILD_IDis missing at start time it runsnpm run buildonce beforenext startinstead of starting a dead server.Link to Devin session: https://app.devin.ai/sessions/45b39ec377b74ce683bf060e7eb9d383
Open in Devin Desktop: https://app.devin.ai/desktop/session/45b39ec377b74ce683bf060e7eb9d383?variant=devin
Requested by: @hsk-victor
<!-- devin-review-badge-begin -->
---
🟢 Devin fixed the finding · Follow Devin's work
<a href="https://app.devin.ai/review/hsk-victor/dump/pull/28" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a><!-- devin-review-badge-end -->