Skip to content

feat(roadmap): an item has one owner, service, agent or human, and the jobs skip a claimed item #2910

Description

@dan-petty

What happened

The owner asked on 2026-10-31 for one issue workflow that is simple, clear, discrete, consistent and repeatable for the Service jobs, agentic coders and human developers. The plan and the owner's decisions are in the tracker issue. Decisions taken (the recommended defaults): add the label status/planned (amends ADR 0016); claim an item with labels owner/service, owner/agent and owner/human; a new runner image digest clears a stop once; any actor may claim an item, one at a time, a person's claim beats the Service's, and the Service never takes a claimed item.

On 2026-10-30 an agent and a person fixed #2656 and #2745 by hand while the implement job held their plans and branches. The Service has no way to know that someone else works on an item, and an agent or a person has no way to say so. devops repos worktrees add takes over a staged branch (#2657) but marks nothing.

What should happen

  • A label family owner/service, owner/agent and owner/human (declared in .github/labels.yml), at most one on an item.
  • devops roadmap claim <issue> --as agent|human and devops roadmap release <issue> set and clear the label. devops repos worktrees add claims the item for an agent when it makes the worktree. The Service claims an item (owner/service) when it starts a Job and releases it when the Job ends.
  • The stage and implement jobs skip an item that another owner holds, and say so in the plan output ("claimed by agent"). A person's claim beats the Service's: if a person claims an item that the Service holds, the running Job ends at its next group boundary and does not open a pull request over the person's work.
  • A claim older than a set number of days with no branch activity is shown by W7 and W10, never removed by a job.

Evidence

Acceptance criteria

  • claim and release set and clear the label, and refuse a second owner.
  • A test shows the Service skips an item with owner/human or owner/agent.
  • A test shows a person's claim stops a running Job at the group boundary.
  • worktrees add sets owner/agent.
  • uv run devops ci passes.

Proposed design

Problem statement

The Service, an agent, and a person work on the same roadmap items with no ownership signal. On 2026-10-30, an agent and a person fixed items by hand while the implement job held their plans and branches. This item adds a single-owner claim. Each actor knows who holds an item. The jobs skip items that another owner holds.

Acceptance criteria

Requirement: Owner labels declared

The labels owner/service, owner/agent, and owner/human SHALL be declared in .github/labels.yml.

Scenario: labels file contains owner family

  • WHEN .github/labels.yml is read
  • THEN it contains entries for owner/service, owner/agent, and owner/human

Requirement: Claim sets label

devops roadmap claim --as agent|human SHALL set the matching owner/* label on the issue.

Scenario: claim as agent

  • WHEN devops roadmap claim 123 --as agent is run
  • THEN the issue has the owner/agent label

Requirement: Release clears label

devops roadmap release SHALL remove the owner/* label from the issue.

Scenario: release a claimed issue

  • WHEN devops roadmap release 123 is run on an issue with owner/agent
  • THEN the issue has no owner/* label

Requirement: Refuse second owner

devops roadmap claim SHALL refuse to set a second owner/* label when one is already present.

Scenario: claim when already claimed

  • WHEN devops roadmap claim 123 --as human is run on an issue that has owner/agent
  • THEN the command exits with an error and the issue keeps owner/agent

Requirement: Worktrees add claims

devops repos worktrees add SHALL set owner/agent on the item when it makes the worktree.

Scenario: worktrees add sets owner

  • WHEN devops repos worktrees add is run for an item
  • THEN the item has the owner/agent label

Requirement: Service claims on start

The Service SHALL set owner/service on an item when it starts a Job for that item.

Scenario: service claims item

  • WHEN the Service starts a Job for an item
  • THEN the item has the owner/service label

Requirement: Service releases on end

The Service SHALL remove owner/service from an item when its Job ends.

Scenario: service releases item

  • WHEN the Service Job for an item ends
  • THEN the item has no owner/service label

Requirement: Stage skips claimed

The stage job SHALL skip an item that has an owner/agent or owner/human label and say so in the plan output.

Scenario: stage skips human-claimed

  • WHEN the stage job processes an item with owner/human
  • THEN the item is skipped and the plan output says claimed by human

Requirement: Implement skips claimed

The implement job SHALL skip an item that has an owner/agent or owner/human label and say so in the plan output.

Scenario: implement skips agent-claimed

  • WHEN the implement job processes an item with owner/agent
  • THEN the item is skipped and the plan output says claimed by agent

Requirement: Person claim stops Service

A person's claim SHALL cause a running Service Job to end at its next group boundary without opening a pull request.

Scenario: person claim stops job

  • WHEN a person claims an item that the Service holds and the Job reaches its next group boundary
  • THEN the Job ends and no pull request is opened

Requirement: Stale claim display

W7 and W10 SHALL show a claim older than the set number of days with no branch activity, and no job SHALL remove it.

Scenario: stale claim shown

  • WHEN W7 or W10 renders an item with a claim older than the threshold and no branch activity
  • THEN the claim is shown as stale and no job removes it

Requirement: CI passes

uv run devops ci SHALL pass.

Scenario: CI passes

  • WHEN uv run devops ci is run
  • THEN all checks pass

Existing Tool Considered

No check has run. This is custom code for the devops-cli roadmap system. No open tool provides a claim mechanism that integrates with GitHub issue labels, the devops-cli Service Job lifecycle, and the stage and implement job skip logic. Written cost: 5000 to 7000 tokens to build, 500 to 1000 tokens per related change to keep, 200 to 500 tokens per fix, 1 to 2 days elapsed.

Key questions

  • Which label family holds the owner of an item?: The owner/* family: owner/service, owner/agent, owner/human. At most one label of the family is on an item. This matches the existing status/, priority/, value/, effort/ pattern. (best practice) [sources: .github/labels.yml, docs/adr/0001-github-is-the-roadmap-source.md]
    • Rejected: owner/* label family. Matches the existing label family pattern in .github/labels.yml and the ADR 0016 model where labels hold item fields.
    • Rejected: Issue body field. ADR 0016 moves fields to labels. A body field would break the label-based model and add a parse step.
    • Rejected: Separate database or API field. ADR 0001 makes GitHub the source of truth. A separate store adds a sync path and a new failure mode.
  • How does an actor claim or release an item?: devops roadmap claim --as agent|human sets the label. devops roadmap release clears it. The commands validate the one-owner rule. (best practice) [sources: CONTEXT.md]
    • Rejected: devops roadmap claim and release commands. Follows the existing devops CLI pattern. An actor runs one command. The command validates the one-owner rule.
    • Rejected: GitHub API calls only. No validation of the one-owner rule. No integration with worktrees add. An actor must know the API.
    • Rejected: Webhook or bot trigger. Adds a new service path. The CLI is the existing interface for actors.
  • When does the Service claim and release an item?: The Service sets owner/service when it starts a Job for the item and removes it when the Job ends. One claim per Job. (best practice) [sources: CONTEXT.md]
    • Rejected: Job start and end. One claim per Job. Simple to reason about. The Service creates one Job per item and creates no second Job while one runs.
    • Rejected: Per task group. Multiple claims per Job. Harder to track. No benefit over Job-level scope.
    • Rejected: Per step. Too granular. A step is one task group. Job-level is the right scope.
  • What happens when a person claims an item that the Service holds?: The person's claim wins. The running Job ends at its next group boundary and does not open a pull request over the person's work. (best practice) [sources: CONTEXT.md]
    • Rejected: Person wins, Job stops at group boundary. Protects the person's work. The group boundary is a natural stop point between task groups.
    • Rejected: Service wins, person waits. The person's work is lost. The body explicitly rejects this.
    • Rejected: Last write wins. Non-deterministic. A person could lose to a Service that re-claims.
  • What is a group boundary in the implement job?: The point between two task groups. The implement job runs one step per task group, and a group boundary is the transition between two steps. [sources: CONTEXT.md]

Open questions

  • What is the set number of days for a stale claim? (missing verified source)
  • What are W7 and W10? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/high
    effort/medium
    on Oct 31, 2026
  2. dan-petty commented on Oct 31, 2026

    @dan-petty
    OwnerAuthor

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

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P1-High. Active conflicts between Service jobs and human work already caused lost work on #2656 and #2745.
    • Value: High. Prevents the Service from overwriting work that a person or agent holds, enabling safe parallel development.
    • Effort: Medium. Requires CLI commands, label logic, job skip checks, boundary-stop behaviour, and tests across multiple files.
    • Related: feat(roadmap): Define one shared workflow for all roadmap actors #2908, which asks for a different change. Both define the one-issue workflow; 2908 is the umbrella tracker, the candidate is the claim/release mechanism within it.
  3. added
    priority/p1-high
    on Oct 31, 2026
  4. devops-cli-service commented on Oct 31, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at a361419 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.

    • What is the set number of days for a stale claim? (missing verified source)
    • What are W7 and W10? (missing verified source)
  5. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Oct 31, 2026
  6. removed
    status/in-review
    on Oct 31, 2026
  7. 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/p1-highscope/roadmapsource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions