Skip to content

fix(pr-pipeline): retry an invalid dependency verdict on the same head instead of holding for a person - #10825

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/dependency-invalid-fail
Oct 29, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/dependency-invalid-fail

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: friction-audit T5 cut

Summary

When the review-dependency lane's verdict or context failed validation (dependency-invalid), the pull request went to a person, even though nothing about it needs a person's decision. Routing it to a failing status alone would not have helped: the dependency dispatcher never retried a head the lane had stopped on, and a Dependabot head moves only when Dependabot pushes. So that route would leave the PR red and unlabeled with nobody told. This PR routes the reason to a failing status and makes the dispatcher retry the same head.

This PR touches hold_patterns paths in pr-require-checks.yml (escalation-routes.json, and the same lane scripts), so a person merges it.

Fix

  • escalation-routes.json: dependency-invalid now routes to fail, which posts a failing pr-unblock/review-dependency status and the lane-stopped comment, and adds no label.
  • apply-dependency-verdict.mjs: the verdict check's skip reason comes from stopSkip(escalationReason), so dependency-invalid posts lane-stopped. Every held reason still posts awaiting-human.
  • dependency-dispatch.mjs: when the newest verdict check is a lane stop, the dispatcher releases the head's earlier review-dependency checks. It does this through the stopRelease and releasedBy helpers in limit-stop.mjs, the ones dispatch.mjs uses. Retries stop once limits.limit-stops-per-head lane stops stand on the head. At that cap the dispatcher records the head and logs the same ::warning::. The no-model-turn release now goes through releasedBy and behaves as before.
  • Every other dependency-* reason still holds for a person. The rationale in report-escalation.test.sh now says why, ADR 0074 has a 2026-10-28 addendum, and pr-run-activity.md is updated. The changelog fragment is under .changes/pr-pipeline/.

Verification

  • node --test over .github/scripts/pr-unblock, .github/scripts/pr-merge, .github/actions/resolve-config and .github/scripts/apply-patch: 2466 pass, 0 fail. This includes the new dispatcher test (a retry under the cap, none at the cap, a warning, and the head recorded), which fails without the dependency-dispatch.mjs change. The no-model-turn tests are unchanged and pass.
  • bash .github/scripts/pr-unblock/report-escalation.test.sh: 801 ok, 0 not ok. dependency-invalid runs in the fail-route cases.
  • bash scripts/ci-lanes-pr-hold.test.sh: pass. pytest on test_babysit_risk.py and test_merge_holds_sync.py: 126 pass.
  • Left out: scripts/write-runner-never-rules.test.sh, which cannot run locally without .github/standards/runner-policy installed. This PR does not touch the workflow files it checks.

Related

🤖 Generated with Claude Code

…d instead of holding for a person

dependency-invalid is a lane malfunction (a verdict or context that failed
validation), so it now routes to a failing pr-unblock/review-dependency
status with no label. The verdict check skips lane-stopped, and
dependency-dispatch.mjs releases the head's earlier review-dependency
checks on it through limit-stop.mjs stopRelease and releasedBy, as
dispatch.mjs does, until limit-stops-per-head such stops stand on the
head; at the cap it records the head and warns. Every other
review-dependency reason still holds for a person.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 29, 2026 01:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T01:18:08.045821Z 092e8a5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 092e8a5cb7bcbfea227b9a8d372d2df80e84045d; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 8d69578cce2b2a59bac32afe13811c574f85372a: 0 finding(s), 0 as inline comments.

No findings. The only change since the last review (092e8a5) is one added blank line in docs/adr/0074-review-risky-dependabot-updates-in-a-model-job-and-act-in-a-scripted-job.md. It puts a paragraph break before the closing paragraph, "The verdict job's checks (Decision 3) and the dispatcher (Decision 4) are unchanged." The change has no behavioral surface, and the file matches none of the trusted-path globs. I read only the incremental diff. The rest of the pull request is unchanged since the earlier review, and I did not re-review it.

Nothing here spends credits or can cause a charge.

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 8d69578cce2b2a59bac32afe13811c574f85372a: 0 finding(s), 0 as inline comments.

Incremental security review of 8d69578, covering only the change since 092e8a5 in docs/adr/0074-review-risky-dependabot-updates-in-a-model-job-and-act-in-a-scripted-job.md.

The change adds one blank line before the closing paragraph of the ADR. It is prose-only formatting. It deletes, narrows or softens no standing instruction, and it touches no trust control, manifest or trusted path. I found no security issues, so there is nothing to hold.

The other files in the pull request are unchanged since 092e8a5 and were reviewed then.

critical-findings: 0

… paragraph

Without it the 2026-10-23 addendum's last paragraph renders inside the
list item above it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 0c235dd Oct 29, 2026
40 checks passed
@kyle-sexton
kyle-sexton deleted the fix/dependency-invalid-fail branch October 29, 2026 02:09
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 7, survived 0, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 100%; mutation score 100%.

File Killed Survived Timeout No coverage Invalid Not run
.github/scripts/pr-unblock/apply-dependency-verdict.mjs 1 0 0 0 0 0
.github/scripts/pr-unblock/dependency-dispatch.mjs 6 0 0 0 0 0

The run's summary has the full report.

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