Skip to content

feat(roadmap): intake links a candidate it files from --source as a sub-issue of that issue #2035

Description

@dan-petty

Friction

When devops roadmap intake --source <issue> files a part of a tracking issue, the new issue has no link to its parent on GitHub. A person or an agent then links each part by hand. On 2026-10-23 an agent linked 14 split parts as sub-issues one at a time.

Evidence

#1985 made intake skip the --source issue and every issue with sub-issues as duplicate targets. Its task file names this as the third, optional remedy of #1985, not delivered there. GitHub's REST API adds a sub-issue with POST /repos/{owner}/{repo}/issues/{n}/sub_issues and the child's REST id.

Proposed remedy

  • After intake files a candidate whose --source is an issue of the same repository, add the filed issue as a sub-issue of that issue.
  • Add the write to the store protocol, the GitHub store and the in-memory store, and list it in the dry-run plan.
  • Change the docstring rule "Intake writes to no issue but the candidate" to name this one extra write.

Proposed design

Problem statement

When devops roadmap intake --source files a candidate split from a tracking issue, the new issue has no sub-issue link to its parent on GitHub. A person or agent must then link each part by hand. On 2026-10-23 an agent linked 14 split parts one at a time. This issue adds the sub-issue link automatically at file time so that no manual linking is needed.

Acceptance criteria

  • Criterion 1: After intake files a candidate whose --source is an issue of the same repository, the filed issue is added as a sub-issue of the --source issue.
    Verification: Run devops roadmap intake --source with a valid --source issue in the same repository. Confirm the new issue appears as a sub-issue of the --source issue on GitHub.
  • Criterion 2: The store protocol defines a method to add a sub-issue link between two issues.
    Verification: Inspect the store protocol definition. Confirm a new method for adding a sub-issue is present with the expected parameters.
  • Criterion 3: The GitHub store implements the sub-issue method using POST /repos/{owner}/{repo}/issues/{n}/sub_issues with the child's REST id.
    Verification: Inspect the GitHub store implementation. Confirm the API call targets the sub-issues endpoint and passes the child issue's REST id.
  • Criterion 4: The in-memory store implements the sub-issue method.
    Verification: Inspect the in-memory store implementation. Confirm the method is present and records the sub-issue relationship.
  • Criterion 5: The dry-run plan lists the sub-issue write as an action.
    Verification: Run intake with --dry-run and a valid --source. Confirm the output plan includes the sub-issue link as a listed write.
  • Criterion 6: The intake docstring rule that previously stated "Intake writes to no issue but the candidate" is updated to name the sub-issue write as an allowed extra write.
    Verification: Read the intake module docstring. Confirm it names the sub-issue write as the one extra write permitted.

Key questions

  • Should the sub-issue link be created only when --source is an issue of the same repository?: Yes. The link is added only when the --source issue belongs to the same repository as the filed candidate. (proposed)
  • Should the sub-issue write appear in the dry-run plan?: Yes. The dry-run plan lists the sub-issue write as an action alongside other writes. (proposed)

Open questions

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/feature
    scope/roadmap
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Priority: P2-Medium. This is a usability improvement that reduces manual work but does not block progress or fix a regression.
    • Value: Medium. The change helps agents avoid repetitive manual linking tasks when splitting issues, improving workflow efficiency.
    • Effort: Medium. The change requires adding new functionality to store protocols and the GitHub store, which is more complex than a simple update but not extremely involved.
    • Related: fix(roadmap): intake judges a split part a duplicate of the issue that its --source names, so the part gets no issue #1985, which asks for a different change. Both items deal with intake and the --source flag but the candidate proposes to link split parts as sub-issues while #1985 prevents such parts from being filed at all.
  3. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Refine cannot set this item to Ready at bb46660 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

  4. added
    priority/p2-medium
    status/new
    value/medium
    effort/medium
    on Oct 28, 2026
  5. removed
    status/new
    on Oct 31, 2026
  6. added a commit that references this issue on Oct 31, 2026
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

    effort/mediumpriority/p2-mediumscope/roadmaptype/featurevalue/medium

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions