Repository navigation
Description
Problem
After the previous issue a plan knows which issue depends on which, but on GitHub the published issues are unrelated: a person or an external tool reading the repository cannot see the order.
Goal
When a plan is published, each issue that has prerequisites is linked on GitHub as blocked by them, using GitHub's issue dependencies.
Acceptance criteria
- After all issues of a plan exist, publication adds a "blocked by" relationship on GitHub from each issue to each of its prerequisite issues. Links are added in a second pass, because a prerequisite may be created after its dependant.
- Both publication paths do this through one shared helper: the REST finalize path (GitHub App installation credential) and MCP
publish_plan(the caller's credential). - The step is idempotent: resuming or repeating a publication does not fail on a link that already exists and does not duplicate it.
- Linking is best effort. A failure (missing permission, API unavailable, feature not enabled for the repository) never fails the publication or leaves the plan in a partial state; it is recorded per link in the publication result and logged, and
get_planshows which links were not created. - Whatever identifier the GitHub API needs beyond the issue number is captured from the issue creation response or looked up, and is not required to already be stored for plans published earlier.
- A plan without dependencies makes no additional GitHub calls.
- Sub-issue links are created only when the plan has a parent tracking issue to attach to. Plans have none today, so this issue creates "blocked by" links only and documents that.
- The docs say which GitHub permission the links need and what happens without it.
- Tests cover: links created for a small graph, a prerequisite published after its dependant, resume after a partial publication, an API failure that leaves the publication successful, and no calls for a plan without dependencies.
Out of scope
- Reading dependencies back from GitHub, or reacting to links edited on GitHub.
- New webhook subscriptions.
Implementation
Key files: packages/api/mcp/toolsPlanning.ts (publish_plan: issue POST with the <!-- propr-mcp:… --> marker, partial state, final write), packages/api/mcp/planPublication.ts (findMarkedIssue, publication lease), packages/core/src/services/taskExecutionService.ts (executeDraft loop and final update), packages/core/src/services/githubIssueService.ts (createGitHubIssue reads only number, html_url, title from the response; processTaskAndCreateIssue), packages/shared/src/githubAppManifest.ts (GITHUB_APP_PERMISSIONS: issues write is already requested).
Check the current GitHub REST documentation for issue dependencies (the "blocked by" endpoints under /repos/{owner}/{repo}/issues/{issue_number}/dependencies) before writing the calls: confirm the exact route, the identifier it takes and the responses for an existing link. Do not guess the API from memory. No code in the repository calls it today.
Tests to follow: packages/api/test/mcpPublishPlan.test.ts (fake principal.github.request route table, fault helpers rejectQueryOnce / recordAttempt), packages/api/test/mcpWorkflows.test.ts. Verify with the standard commands (test:prepare, typecheck, changed tests, eslint --max-warnings 0 per touched package).
Activity
propr-dev commentedon Nov 12, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-53471/claude-opus-5-5-sync-plan-dependencies-to-20261112-1727-c573470-epic-scheduler-primitives-nrjissue-3471-20261112-1727-claude-opus-5-5-c57🔍 Track Task Execution