Skip to content

feat(roadmap): a stop sets status/blocked and a new runner image clears it once #2912

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.

A stopped item goes back to Ready, so it looks like an item that nobody has tried. The stop comment names the cause, but a list of issues does not. After a fix is released, a person must find out that the image rolled and comment implement: retry; on 2026-10-31 an agent compared image digests for the owner.

What should happen

  • On a stop the Service sets status/blocked (W2) and keeps the stop record with the runner image digest of the failed Job.
  • When the runner digest in the CronJob template differs from the digest of the stop, the Service clears the stop once and takes the item again. A second stop on the same digest waits for implement: retry. The comment text says which rule ran.
  • implement: retry from a person still clears a stop at once, and the three-round suspension of the failures ledger stays.

Evidence

Acceptance criteria

  • A stop sets status/blocked; a person's retry clears it.
  • A new digest clears a stop once; the same digest twice does not.
  • A test shows the Job is not created in a loop on one digest.
  • uv run devops ci passes.

Proposed design

Problem statement

When a runner Job stops, the item returns to Ready and looks untried. A person must notice the image rolled and comment implement: retry. The Service should set status/blocked on a stop, record the runner image digest, and auto-clear the stop once when the CronJob digest changes. A second stop on the same digest waits for a person's retry.

Acceptance criteria

Requirement: Stop sets blocked status

On a stop, the Service SHALL set the label status/blocked on the item and record the runner image digest in the stop comment.

Scenario: First stop on a free item

  • WHEN A runner Job stops and the item has no status/blocked label
  • THEN The item has the label status/blocked and the stop comment contains a line with the runner image digest

Requirement: Person retry clears block

A person's implement: retry comment SHALL clear the status/blocked label and resume the item regardless of digest.

Scenario: Retry after a block

  • WHEN A person comments implement: retry on an item that has status/blocked
  • THEN The item no longer has status/blocked and the Service takes the item again

Requirement: New digest clears stop once

When the CronJob template digest differs from the stored stop digest, the Service SHALL clear the stop once and take the item again.

Scenario: Digest changed since stop

  • WHEN The CronJob devops-cli-runner template digest differs from the digest in the stop record
  • THEN The Service removes status/blocked, posts a comment naming the digest-change rule, and creates a new runner Job

Requirement: Same digest does not auto-clear

When the CronJob template digest equals the stored stop digest, the Service SHALL NOT clear the stop or create a new runner Job.

Scenario: Digest unchanged since stop

  • WHEN The CronJob devops-cli-runner template digest equals the digest in the stop record
  • THEN The item keeps status/blocked and no new runner Job is created

Requirement: No loop on one digest

The Service SHALL NOT create a second runner Job for the same item when the digest has not changed since the last stop.

Scenario: Second stop on the same digest

  • WHEN A runner Job stops and the digest matches the previous stop's digest
  • THEN No new runner Job is created and the item waits for implement: retry

Requirement: CI passes

uv run devops ci SHALL pass on the branch that delivers this change.

Scenario: CI run on the branch

  • WHEN uv run devops ci is run on the delivery branch
  • THEN All checks pass with exit code 0

Existing Tool Considered

No check has run. No open, maintained tool covers the need to set a GitHub issue label on a Kubernetes Job stop and auto-clear it on a CronJob image digest change. The project builds its own code in the Service's implement job. Written cost: about 10,000 tokens to build, keep and fix the digest tracking, label change, and auto-clear logic until it matches a purpose-built tool, and about 2 to 3 days of elapsed time.

Key questions

  • Where is the runner image digest stored in the stop record?: In the stop comment as a structured line runner-digest: . The stop record is already a comment on the issue, and ADR 0001 makes GitHub the source of truth, so the digest lives in the issue, not in a Service-internal store. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md, CONTEXT.md]
    • Chosen: Structured line in the stop comment. The stop record is already a comment. Adding one line is minimal and keeps GitHub as the source of truth per ADR 0001.
    • Rejected: Field in the issue body job record. Would require parsing and rewriting the body on every stop. More complex than a comment line.
    • Rejected: Service-internal database. Violates ADR 0001: GitHub is the roadmap source of truth. A person cannot see the digest.
  • How does the Service read the current runner image digest?: From the CronJob devops-cli-runner template in the Kubernetes cluster. The Service already reads this CronJob to create runner Jobs. [sources: CONTEXT.md]
  • What happens on a second stop with the same digest?: The item stays blocked and waits for a person's implement: retry. This prevents an infinite create-stop loop on one digest. (best practice) [sources: CONTEXT.md]
    • Chosen: Stay blocked, wait for retry. Prevents an infinite loop. A person confirms the fix before retrying.
    • Rejected: Auto-retry with backoff. Risks an infinite loop and wastes runner resources on a known-bad digest.
  • Which label is set on a stop?: status/blocked. CONTEXT.md defines Blocked as an item waiting on something outside the roadmap. ADR 0016 says labels hold Status. [sources: CONTEXT.md, docs/adr/0001-github-is-the-roadmap-source.md]
  • Does implement: retry still clear a stop at once?: Yes. A person's implement: retry clears the stop regardless of digest. The three-round suspension of the failures ledger stays unchanged. [sources: CONTEXT.md]
  • What comment text does the Service post when it auto-clears a stop?: The comment names the rule that ran, for example: Cleared by digest change: -> . When the digest is unchanged, the comment says: Blocked: same digest as previous stop. Use implement: retry to clear. (best practice) [sources: CONTEXT.md]
    • Chosen: Comment names the rule and both digests. A person reading the issue sees which rule ran and can verify the digest change. Matches the body requirement that the comment text says which rule ran.
    • Rejected: Silent clear with no comment. A person cannot tell why the item resumed. Violates the body requirement.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    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: P2-Medium. It removes a manual step after each rollout but does not block a release or fix a data-loss defect.
    • Value: Medium. It stops a person from having to find and re-comment after every image rollout, saving repeated manual work.
    • Effort: Medium. It needs a label change, digest tracking, a one-time clear rule, a loop guard, and a test.
    • Related: feat(roadmap): Define one shared workflow for all roadmap actors #2908, which asks for a different change. Both share the roadmap workflow theme, but #2908 covers the full workflow (labels, claiming, digest clearing) while the candidate delivers only the status/blocked and one-time digest-clear behaviour.
  3. added
    priority/p2-medium
    on Oct 31, 2026
  4. added
    status/ready
    and removed
    status/new
    on Oct 31, 2026
  5. devops-cli-service commented on Oct 31, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 91a971e (see proposed design in issue body).

  6. added
    owner/agent
    status/in-review
    and removed
    status/ready
    on Oct 31, 2026
  7. removed
    status/in-review
    owner/agent
    on Nov 1, 2026
  8. added a commit that references this issue on Nov 1, 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/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions