Repository navigation
fix(pr-pipeline): write blocked-by edges for blockers the issue body names - #10183
Conversation
…names
Admission reads only native blocked-by edges, and intake's apply-verdict
wrote edges only for the triage model's `Blocked by:` line. An issue whose
body named its blocker in text ("Blocked by: #8753") got no edge, was
admitted, and the issue lane handed it back to a person.
apply-verdict now also parses the body (edges.mjs textBlockers): a line
starting with Blocked by or Depends on, and list items under such a
heading, with #<n> and this repository's issue URLs; code, HTML comments,
quotes, cross-repository references and pull request URLs name nothing.
At most 10 candidates per issue go to the existing writeEdges, which
checks each is an open issue here, skips edges already there, and misses
and rolls back on 403, 429 or 5xx. Escalated verdicts write them too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security issues found in the incremental change (6313818..fb2af10). The change only affects the text of one
critical-findings: 0 |
|
claude-review reviewed Incremental review of
No hold applies. The change touches no trusted path, billing or security surface. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eddbf687c4
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… link targets A missed blocked-by edge on an escalated verdict no longer fails the job or claims a held-back status: ready; missedAnnotation takes the ready state. A Markdown link in the issue body counts as its target alone, so a #N label on a link to another repository names no local issue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… warning A reference-style Markdown link counts as its definition's target, like an inline link. The missed-edge warning says "a verdict that is not ready", since a flagged verdict reaches that branch as well as an escalation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ockers-native-edges
…ning On a verdict that is not ready, the missed-edge warning said work-unblock "does not see these blockers" even when an edge was written and its rollback failed, which leaves a partial set work-unblock does read. The not-ready warning now carries the same partial-set clause as the ready one when an edge stayed written, and says work-unblock does not see the blockers not written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No related issue: owner rule 2026-10-26 (human only for intent, design or HIGH/CRITICAL security); admission bounced issues whose blockers were named only in text
Refs: #8994
Refs: #8989
Summary
Admission reads blockers only from native blocked-by edges. Intake's apply-verdict wrote edges only for the triage model's
Blocked by:line, so an issue whose body named its blocker in text (Blocked by: #8753) had no edge. It was admitted, and the issue lane handed it back to a person. Examples: #8994 (open blocker #8753, run 40233438204) and #8989 (open blocker #7613, run 40232047026).Fix
edges.mjsgetstextBlockers(body, repository). Candidates come from lines that start withBlocked byorDepends on(an optional list marker or bold is allowed), and from list items under aBlocked byorDepends onheading. Each such line can name#<n>and this repository's issue URLs. The parser ignores fenced and inline code, HTML comments,>quotes,owner/repo#<n>, other repositories' URLs, pull request URLs,none, and mentions in ordinary prose. It returns at most 10 distinct numbers per issue.apply-verdict.mjsmerges these candidates with the verdict's own list and passes them to the existingwriteEdges. That function already checks that each number is an open issue in this repository and not a pull request, skips edges that already exist, and on a 403, 429 or 5xx records a miss, deletes the edges the run wrote, holds backstatus: ready, and emits an annotation. Edges are written on escalated verdicts too, so a person who later addsagent-readyby hand still finds them. An untrusted-provenance verdict or label writes none. GETs keepcreateGitHub's bounded retry. No POST retry was added: a 5xx POST that GitHub did apply would come back 422 on a retry and fall out of the rollback list. The hourly triage sweep retries the run instead.issues: writegrant (docs/conventions/pr-pipeline.yaml,apply-verdictdeclares "writes blocked-by edges").Verification
node --testover.github/scripts/intake-triage,.github/scripts/work-unblock,.github/scripts/work-resolve-issue/check-blockers.test.mjs,.github/scripts/maintenance-audit-lane-runsand.github/actions/resolve-config: 1460 pass, 0 fail.runtests fail. The fifth is the untrusted guard, which passes either way..claude/hooks/check-affected-pre-push.sh --git-hookexits 0.Related
agent-readylabel added by hand to an issue that intake never triaged after this change. The issue lane'sadmitjob reads with a GITHUB_TOKEN that has onlyissues: read, so it cannot write edges without a permission change.admission-deferredfrom before this change. work-unblock re-admits them on native edges alone, and its declared scope does not include edge writes. Re-triage (the hourly sweep, or a release) writes their edges.🤖 Generated with Claude Code