Skip to content

feat(roadmap): a release comments the version and the deploy time on each issue it carries #2917

Closed

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.

After a merge the owner learns that a fix is live from the images, the release pull request and Argo CD, in three places. On 2026-10-31 an agent compared digests to say when a retry was safe.

What should happen

  • When a release pull request merges, the Service comments once on each closed issue in its changelog: "Released in ", and when the Service and runner image digests of that release are rolled in the cluster, one more comment: "Live since ". The version comes from release-please's output (agents never anticipate a version), the digests from the CronJob template and the Deployment.
  • It is read-only toward releases: no edit of release files, tags or the changelog.

Evidence

  • RELEASE_CYCLE.md, the release workflow, the CronJob and Deployment digests.

Acceptance criteria

  • A test replays a release with two closed issues and checks one "Released" comment each and no duplicate on a second round.
  • The "Live since" comment waits for the digests, and a test shows it.
  • No release file is written.
  • uv run devops ci passes.

Proposed design

Problem statement

The owner learns a fix is live from three places: the images, the release pull request, and Argo CD. This issue adds a Service job that comments the version on each issue in the release changelog when the release pull request merges. It then comments the deploy time on each issue when the Service and runner image digests roll in the cluster. The job is read-only toward releases.

Acceptance criteria

Requirement: Released comment on each issue

The Service SHALL comment 'Released in ' on each closed issue in the release changelog when the release pull request merges.

Scenario: Two issues in changelog

  • WHEN A release pull request with two closed issues in its changelog merges
  • THEN Each issue has exactly one 'Released in ' comment

Requirement: No duplicate comment

The Service SHALL NOT post a second 'Released in ' comment on an issue that already has one.

Scenario: Second round replay

  • WHEN The Service processes the same release a second time
  • THEN No new comment is posted on any issue

Requirement: Live since waits for digests

The Service SHALL NOT comment 'Live since ' on an issue until the Service and runner image digests of that release are present in the cluster.

Scenario: Digest not yet rolled

  • WHEN The release merges but the digests are not yet in the CronJob template or Deployment
  • THEN No 'Live since' comment is posted

Requirement: Live since after digest roll

The Service SHALL comment 'Live since ' on each issue once the Service and runner image digests of that release are present in the cluster.

Scenario: Digest rolled

  • WHEN The digests of the release are present in the CronJob template and Deployment
  • THEN Each issue has exactly one 'Live since ' comment

Requirement: Read-only toward releases

The Service SHALL NOT write to any release file, tag, or changelog entry.

Scenario: Release files unchanged

  • WHEN The Service processes a release
  • THEN No release file, tag, or changelog entry is modified

Existing Tool Considered

No check has run. No open, maintained tool covers this need. The project builds its own code in the Service. The written cost: approximately 5000 tokens to build the job and its tests, approximately 1000 tokens per fix cycle, and the elapsed time of one Service round to verify.

Key questions

  • How does the Service detect the release pull request merge?: The Service uses its existing webhook and polling infrastructure. A pull_request event with action closed and merged true, where the title matches the release-please pattern, triggers the job. (best practice) [sources: RELEASE_CYCLE.md, docs/adr/0003-polling-is-how-the-roadmap-sees-changes.md]
    • Chosen: Webhook and poll for pull_request closed/merged. The Service already has this infrastructure. ADR 0003 establishes polling as the source of truth with webhooks cutting latency.
    • Rejected: Watch the GitHub release object. The release is created after the merge, but the changelog is in the PR body. The PR event is earlier and carries the data needed.
    • Rejected: Poll the CHANGELOG.md file. This would require reading a file that release-please writes. The PR body already holds the changelog section and is the event the Service already sees.
  • How does the Service find the issue numbers in the changelog?: The Service parses the release pull request body for issue references in the form (#NNNN). release-please writes these references into the changelog section. (best practice) [sources: RELEASE_CYCLE.md]
    • Chosen: Parse issue references from the PR body. release-please writes the changelog section with (#NNNN) references into the PR body. This is the data the Service already receives in the webhook event.
    • Rejected: Read CHANGELOG.md from the repository. This adds a file read and a commit fetch. The PR body already holds the same data.
    • Rejected: Query the GitHub API for issues closed in the release. This is less precise. The changelog section names exactly which issues the release carries.
  • How does the Service detect that the image digests have rolled in the cluster?: The Service polls the CronJob template and the Deployment in the cluster. It checks that the image digest of the Service container and the runner container match the digest of the release tag. (best practice) [sources: RELEASE_CYCLE.md]
    • Chosen: Poll the CronJob and Deployment for the release digest. The body states the digests come from the CronJob template and the Deployment. Argo CD Image Updater sets them. Polling is the pattern the Service already uses.
    • Rejected: Watch Argo CD events. Argo CD does not emit a webhook for digest updates that the Service can subscribe to. Polling the cluster objects is simpler and uses the existing pattern.
  • How does the Service ensure it comments only once per issue per release?: Before posting, the Service lists the comments on the issue. If a comment starting with 'Released in' or 'Live since' already exists for that version, it skips the post. (proposed)
    • Chosen: Check existing comments before posting. This is idempotent. A second round of the Service sees the comment and skips. No extra state is stored.
    • Rejected: Store a record of posted comments in the Service state. This adds a state store and a cleanup path. Checking the issue comments is simpler and self-healing.
  • Which Service lane runs this job?: The status lane. It calls no model, which matches the lane's existing rows (metrics, implement, stage_ready). (best practice) [sources: CONTEXT.md]
    • Chosen: Status lane. The job reads the PR body, posts comments, and polls the cluster. It calls no model. The status lane is for rows that call no model.
    • Rejected: Model lane. The model lane runs refinement, staging, and the alternatives check, which call the devops-background model. This job needs no model.
    • Rejected: Triage lane. The triage lane runs intake on the fast devops-triage model. This job is not intake.
  • Where does the version string come from?: The version comes from the release pull request title, which release-please sets. The body states that agents never anticipate a version. [sources: RELEASE_CYCLE.md]

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 three-place check but does not block delivery.
    • Value: Medium. The owner learns a fix is live from one comment instead of three sources.
    • Effort: Medium. It needs release-please parsing, digest polling, Argo CD status, comment logic and two tests.
    • Related: feat(roadmap): Define one shared workflow for all roadmap actors #2908, which asks for a different change. Both serve the single issue workflow umbrella, but 2908 defines the workflow shape while the candidate adds release and live-status comments.
  3. added
    priority/p2-medium
    on Oct 31, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 1, 2026
  5. devops-cli-service commented on Nov 1, 2026

    @devops-cli-service
    Contributor

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

  6. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    Staged: branch feat/2917-a-release-comments-the-version-and, draft pull request #3175. The pull request plans the item and closes no issue.

    The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:

    1. placeholder: 3837 tokens

    The plan run made 8 model request(s), and used 360021 input tokens and 1138 output tokens. The tool calls, in order:

    1. list_files({"directory":"src/devops"})
    2. search_code({"text":"release-please"})
    3. list_files({"directory":""})
    4. search_code({"text":"roadmap"})
    5. list_files({"directory":"src/devops_cli/roadmap"})
    6. list_files({"directory":"openspec/specs"})
    7. list_files({"directory":"src/devops"})
    8. search_code({"text":"stage_ready"})
    9. list_files({"directory":""})
    10. list_files({"directory":"src"})
    11. search_code({"text":"stage_ready"})
  7. added 2 commits that reference this issue on Nov 2, 2026
  8. added
    status/planned
    and removed
    status/ready
    on Nov 2, 2026
  9. added
    status/in-progress
    status/in-review
    and removed
    status/planned
    status/in-progress
    on Nov 3, 2026
  10. removed
    status/in-review
    on Nov 3, 2026
  11. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-03 13:34 UTC

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