Skip to content

chore(loop): read Relationships directly once the MCP tools are reachable #3

Closed

Description

@Ardnived

Summary

The loop determines whether a ticket is blocked by grepping a Blocked by: <url> line from the issue body, because no GitHub MCP tool exposes Relationships (REST: dependencies). This is a workaround for a platform gap, not a design choice. When the dependency tools become reachable from a routine, the loop should read them directly and the body line should stop being load-bearing.

Why the workaround exists

github/github-mcp-server already ships issue_dependency_read and issue_dependency_write (PR #2839 — full read/write, cross-repo), gated behind the issue_dependencies feature flag. That flag is in AllowedFeatureFlags, so it is user-toggleable in principle. Every route to enabling it from a Claude routine was tested and all are closed:

Route Fails at
Repo .mcp.json, multi-repo routine Config never read — session root is /home/user, repos are subdirectories
Repo .mcp.json, single-repo routine Config is read, then Dynamic Client Registration rejected (HTTP 403): sessions are bound to their configured repositories
Routine mcp_connections headers: Extra inputs are not permitted; connector_uuid required
claude.ai custom connector + X-MCP-Features The header name x-mcp-features isn't approved
claude.ai custom connector + /insiders URL path Automatic client registration isn't supported (DCR unsupported for this endpoint)
curl https://api.github.com/... with GH_TOKEN 403 on every endpoint; the proxy declines rather than substituting

Full detail in docs/routine-setup.md § "Issue Relationships are unreachable from a routine".

The cost of leaving it

Relationships are set correctly and are authoritative locally — the GitHub UI graph works, and draft-ticket / cross-repo-issue set them properly. The gap is only that a cloud run cannot read them, so the body line is the sole signal it has.

That makes a silent failure possible: a blocker recorded only in the Relationships panel is invisible to the loop, and the ticket gets picked up as ready and implemented against a shape that does not exist yet. The skills currently guard against this by treating the body line as mandatory, which relies on discipline rather than on the system.

How to detect that it is fixed

From a routine session:

ToolSearch: select:mcp__github__issue_dependency_read,mcp__github__issue_dependency_write

Today: No matching deferred tools found. When those resolve, this ticket is actionable. Worth re-probing after any GitHub MCP release, or if Anthropic adds approved headers or connector support for custom MCP servers.

Approach

  1. Confirm both tools resolve and work against a known pair — sydevs/SahajAtlasWeb#171 is blocked by sydevs/SahajCloud#632.
  2. loop-run rung 3: replace the body-line grep with issue_dependency_read / get_blocked_by, resolving each result's state.
  3. implement-issue step 3: same, for the cloud branch. The local gh api .../dependencies/blocked_by path stays as is.
  4. triage-issue: demote the Blocked by: line from mandatory to optional — it is still useful prose for human readers, just no longer the machine-readable source of truth.
  5. cross-repo-issue: same demotion.
  6. loop-config.json: set relationships.cloudReadable to true and drop bodyMarker.
  7. Existing tickets keep their body lines; no migration needed.

Acceptance criteria

  • loop-run determines blocked-ness from the dependency tools, not from body text
  • A ticket blocked only via the Relationships panel (no body line) is correctly skipped by a cloud run
  • triage-issue and cross-repo-issue no longer describe the body line as load-bearing
  • docs/routine-setup.md records how the gap closed, replacing the table of failed routes

Verification checklist

  • In a routine, select:mcp__github__issue_dependency_read resolves
  • issue_dependency_read on sydevs/SahajAtlasWeb#171 / get_blocked_by returns sydevs/SahajCloud#632
  • Remove the Blocked by: line from a test ticket that has a real open blocker, then run /workflow:loop-run --dry-run and confirm rung 3 still skips it
  • claude plugin validate ./workflow --strict passes

Notes

Re-check: 2026-10-02 — mirrors the live Hold Until field, which is where the park lives

Blocked on GitHub/Anthropic, not on us — there is nothing to implement until the tools appear. Filed so the workaround has an owner and an exit condition rather than quietly becoming permanent.

Activity

  1. added theissue type on Aug 28, 2026
  2. Ardnived commented on Sep 8, 2026

    @Ardnived
    ContributorAuthor

    Parked until 2026-10-02 (migrated from the retired Hold Until field). The loop mentions @Ardnived when that date passes.

  3. 4 remaining items

  4. added
    bot:working
    on Oct 3, 2026
  5. sydevs-bot commented on Oct 3, 2026

    @sydevs-bot
    Contributor

    🤖 no session running

    recent dispatches
    • 21:31Z answer · attempt 1 · session · done
    • 21:31Z answer · attempt 1 · session

    Written by the sydevs dispatcher. Sessions never edit this comment.

  6. sydevs-bot commented on Oct 3, 2026

    @sydevs-bot
    Contributor

    Not parked — an answer run never writes fields. @sydevs-bot revise does, or you can set it yourself.

    The park is the Hold Until field. It still reads 2026-10-02, which passed, so the dispatcher posted the unblock above at 03:43Z. Re-dating that one field re-parks the ticket. Nothing else is needed.

    Set it to 2026-11-02. A calendar month lands on 2026-11-03, one day past issueFields.holdUntil.maxHorizonDays of 30, so 2026-11-02 is the longest park available.

    I corrected one line in ## Notes. It said the park had migrated off a retired Hold Until field. The field is load-bearing (docs/why.md#a-date-belongs-in-a-date-field), and it was the live source all along. The Re-check: date beside it is only a mirror — update it when you set the field, or leave it, since the field wins.

    🤖 Written by the sydevs autonomous loop — see what this is


    Generated by Claude Code

  7. added and removed
    bot:working
    on Oct 3, 2026
  8. added a commit that references this issue on Oct 13, 2026
  9. Ardnived commented on Oct 28, 2026

    @Ardnived
    ContributorAuthor

    Closing as completed: the dispatcher reads native Relationships directly (gather, decide and sweep), landed in #70 and #82. Sessions still can't read them over MCP; that is a separate gap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    Low

    Hold Until

    Nov 15, 2026

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions