Skip to content

fix(loop): find a blocked issue by its relationship, not by is:blocked - #82

Merged
Ardnived merged 1 commit into
mainfrom
claude/blocked-by-relationship
Sep 9, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/blocked-by-relationship

Conversation

@Ardnived

@Ardnived Ardnived commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Follow-on to #70, found by running it. The rest of that PR works; this one sentence of it did not.

is:blocked in issue search matches the blocked label, not the relationship. The first live sweep on SahajAtlasWeb returned #109 and #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.

repo:sydevs/SahajAtlasWeb is:issue is:open is:blocked
→ #109, #17      both label:blocked, both with zero dependencies
#195 → SahajCloud#695 open      not matched
#198 → SahajCloud#706 open      not matched

The fix

blockedBy on Issue is 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:

#163 blockedBy=SahajCloud#695 OPEN   labels=[]
#195 blockedBy=SahajCloud#695 OPEN   labels=[]
#198 blockedBy=SahajCloud#706 OPEN   labels=[]

#163 is 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-relationship gains the two-tries story, because is:blocked reads 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-journal excluded, and a GraphQL failure falling back to the label sweep.
  • claude plugin validate ./workflow --strict — ✓.

No skill or config change, so no version bump.

`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]>
@Ardnived
Ardnived merged commit e687baf into main Sep 9, 2026
2 checks passed
@Ardnived
Ardnived deleted the claude/blocked-by-relationship branch September 9, 2026 15:51
@sydevs-bot sydevs-bot moved this from Revising to Done in SYDevelopers Technical Roadmap Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant