Repository navigation
Description
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: retryfrom a person still clears a stop at once, and the three-round suspension of the failures ledger stays.
Evidence
- fix(security): the subprocess environment guard accepts LESS, which makes less run a program #2735 and fix(security): the subprocess environment guard accepts GH_TELEMETRY_ENDPOINT_URL, which sends gh telemetry to a caller URL #2739 stopped on 2026-10-31 on causes that the next release fixed; the owner commented
implement: retryafter the rollout.
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 cipasses.
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/blockedlabel - THEN The item has the label
status/blockedand 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: retryon an item that hasstatus/blocked - THEN The item no longer has
status/blockedand 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-runnertemplate 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-runnertemplate digest equals the digest in the stop record - THEN The item keeps
status/blockedand 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 ciis 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-runnertemplate 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: retrystill clear a stop at once?: Yes. A person'simplement: retryclears 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
dan-petty commentedon Oct 31, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It removes a manual step after each rollout but does not block a release or fix a data-loss defect.It stops a person from having to find and re-comment after every image rollout, saving repeated manual work.It needs a label change, digest tracking, a one-time clear rule, a loop guard, and a test.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.feat(roadmap): the Service sets the status label and adds Planned (#2931
devops-cli-service commentedon Oct 31, 2026
Status set to Ready at 91a971e (see proposed design in issue body).
chore(main): release 0.37.0 (#2964)