Repository navigation
fix(loop): find a blocked issue by its relationship, not by is:blocked - #82
Merged
Merged
Conversation
`is:blocked` in issue search matches the `blocked` LABEL, not the relationship. The first live sweep returned the two tickets that already carried the label and none of the four that needed it — a search that could only find what it was not looking for. The relationship is reachable through GraphQL alone, as `blockedBy` on `Issue`. One paginated query per repo returns every open issue with its labels and its blockers. Against the live repo it also found a fifth ticket nobody had named, SahajAtlasWeb#163. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-on to #70, found by running it. The rest of that PR works; this one sentence of it did not.
is:blockedin issue search matches theblockedlabel, not the relationship. The first live sweep on SahajAtlasWeb returned#109and#17— the two tickets that already carried the label — and none of#195,#198,#163, which have open blockers and no label. A search that could only ever find what it was not looking for.The fix
blockedByonIssueis reachable through GraphQL, and only GraphQL. One paginated query per repo returns every open issue with its labels and its blockers, so the sweeper can name exactly the issues GitHub calls blocked that we have not labelled:#163is new — nobody had named it, in #70 or in the three journal entries before it.The query is wrapped: if it ever cannot answer, the label sweep above it is still the guarantee, and a test covers that path. Cost is one GraphQL call per repo per pass, replacing one REST search.
docs/why.md#blocked-follows-the-relationshipgains the two-tries story, becauseis:blockedreads exactly like the right qualifier and is not.Test results
node --test dispatcher/test/*.test.mjs— 56 pass. The sweep test now drives the GraphQL shape: three unlabelled blocked issues found, the labelled one not swept twice, a closed-only blocker and a dependency-free issue ignored,ops-journalexcluded, and a GraphQL failure falling back to the label sweep.claude plugin validate ./workflow --strict— ✓.No skill or config change, so no version bump.