fix lane: deepen a shallow checkout to the merge base before the pack #283
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.52) × (1 − Review Confidence (0.40)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 281 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: 100% · Reviewer familiarity: 10%
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.338
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #283"
general
weight: 0.35
askalf
Why
Every fix run with
FIX_REVIEW_VIAset has been refused since that setting went on: "review before the push: none (the change could not be packed: Node.js v22.x)". The run's checkout is made at depth 1, andfetchCommitfetches the merge base at depth 1 beside it.buildChangethen runsgit merge-base <merge base> <commit>; with the head's history cut at the head, there is no common ancestor, git exits 1 with nothing on stderr, and the pack child dies on an uncaught throw. The run kept only the last stderr line, which is node's version.The change
reviewBeforePushdeepens the start commit's history until the whole range from the merge base is there: the merge base an ancestor of the start commit, and no shallow boundary left among the commits the pack lists (a merge can reach the base by a short side while its other side is still cut), and the range holding exactly as many commits as GitHub'sahead_by(a cut in the merge base's own history can otherwise let in older commits the head and the merge base share); with noahead_bynothing short of the whole history shows that, so it is fetched whole.git fetch --deepenin steps of 16, 256 and 4096, then--unshallowas a last resort, and an error naming both commits if the range still is not whole. A failed fetch is a review error, as a failed pack is.reviewWindow: refused below the minimum, else its timeout) is read when the reviewer is about to start, after the fetches and the pack.packErrorreports a failed pack by its error line (Error: ...), falling back to the last line, the spawn error or the signal.ctx.remoteUrlwhen set (tests), else GitHub's, as before.Checks
fix.test.mjson Linux, Node 22: 537 pass, 0 fail. New: a depth-1 clone of a three-commit history, whose merge base sits two commits behind the head, is deepened, packed, reviewed and bundled for the push; a head that merges the base into a twenty-commit topic, deepened until every commit of the range is there (counted against the full repository); a topic from the root that merges a main fifty commits on, deepened until the range is exactly the pull request's commits (compared by id with the full repository), with and withoutahead_by; a count that matches while a commit of the range is still cut (deepened on until the range is whole); a pack that takes the run below the review's minimum (the reviewer is not started);reviewWindowat and below the minimum and above the cap;mergeBaseAndAheadwith and withoutahead_by;packErroron an uncaught throw, a single line, and a signal. The remotes arefile:URLs frompathToFileURL.Mutation pass, 7 mutants each undoing one piece (an ancestor taken as enough, no
ahead_bytaken as enough, the count, the cut inside the range, the deepening, the window read after the pack, the error line): all 7 fail a named check.