Skip to content

test(service): verify status label removal on a live repository #6563

Open

Description

@devops-cli-service

Update 2026-11-26 (infra move): clear-status.yml is deleted (#6802): the Service itself removes the labels, in a round of row implement (7-minute interval, so wait more than 5 minutes). devops roadmap onboard is now devops repos onboard <owner>/<name> --plan --only 12 (webhook row 12).


Split from #4660.

Problem: The offline tests prove the router and the status sweep. They do not prove that the deployed Service clears a label on a real repository. The live check needs a person, a deployed Service, and a managed repository whose issues webhook is installed (#3772). Why deferred: Only a person with access to a managed repository and a deployed Service can close a test issue and read it after 5 minutes. The offline proposal cannot run this check. Acceptance criteria: - [ ] A person closes a test issue in one managed repository whose issues webhook is installed. The issue holds status/ready, owner/agent, priority/p2-medium and type/bug. - [ ] After the Service rolls out and 5 minutes pass, the issue holds no status/ready and no owner/agent label. - [ ] The issue still holds priority/p2-medium and type/bug. - [ ] The person records the repository, the issue number and the time of the check in the issue.

Proposed design

Problem statement

Do not implement code for this issue: only a person with a deployed Service and a managed repository can run the live check. The offline tests prove the router and the status sweep, but they do not prove that a closed test issue on a real repository ends with no status/ready and no owner/agent label. The managed repository's .github/workflows/clear-status.yml removes the status/* and owner/* labels when the issue closes, and the deployed Service's next 5-minute sweep must not write them back. The check also proves that priority/p2-medium and type/bug stay. No code change can prove this offline.

Acceptance criteria

Requirement: Onboard the managed repository

The managed repository MUST pass the webhook prerequisite of the roadmap before the live check starts.

Scenario: Check the webhook row

  • WHEN The person runs uv run devops repos onboard <owner>/<name> --plan --only 12 before the live check.
  • THEN The output shows row 12 webhook as present.

Requirement: Clear status labels on close

The closed test issue MUST hold no status/ready and no owner/agent label after the clear-status workflow runs and the Service's next sweep passes.

Scenario: Close a labeled test issue

  • WHEN A person adds status/ready, owner/agent, priority/p2-medium and type/bug to a test issue with uv run devops gh issue edit <number> --add-label status/ready --add-label owner/agent --add-label priority/p2-medium --add-label type/bug --repo <owner>/<name>, closes it with uv run devops gh issue close <number> --reason completed --repo <owner>/<name>, and kubectl -n devops rollout status deployment/roadmap-service completes.
  • THEN After 5 minutes, uv run devops gh issue view <number> --repo <owner>/<name> shows a Labels: line with neither status/ready nor owner/agent.

Requirement: Keep priority and type labels

The closed test issue MUST keep priority/p2-medium and type/bug.

Scenario: Read labels after the sweep

  • WHEN The person runs uv run devops gh issue view <number> --repo <owner>/<name> 5 minutes after the close.
  • THEN The Labels: line still shows priority/p2-medium and type/bug.

Requirement: Record the live check

The person SHALL record the repository, the issue number and the time of the live check in the issue body.

Scenario: Record the live check

  • WHEN The person runs uv run devops gh issue edit <number> --body '<repository> #<number> <UTC time>' --repo <owner>/<name> after the check.
  • THEN uv run devops gh issue view <number> --repo <owner>/<name> shows the repository, the issue number and the check time in the body.

Existing Tool Considered

No alternatives check has run. GitHub CLI (gh, https://cli.github.com/manual/gh_issue_close) is open and maintained. It covers the close and the label read, and the project's devops gh issue close, devops gh issue view and devops gh issue edit wrap it because AGENTS.md rule 7 forbids bare gh. It does not cover the live check itself: only a person with a managed repository and a deployed Service can close an issue and read it after 5 minutes. The proposal builds no code, so it has no build or upkeep cost.

Key questions

  • Which prerequisite does the live check need before it can run?: A managed repository whose issues webhook is installed. uv run devops roadmap onboard --repo <owner>/<name> --plan proves it: row 7 webhook is present and no row is missing. feat(roadmap): onboard checks the webhook of a repository #3772 added row 7, so the check is already built and needs no separate dependency. [sources: docs/roadmap/onboard.md:15, openspec/specs/roadmap-onboard/spec.md:9, docs/guidelines/production-readiness.md:38, openspec/changes/archive/2026-11-14-3772-check-the-repository-webhook-on-onboarding/proposal.md:9]
  • Which code removes the labels of a closed issue, and can the Service write them back?: The managed repository's .github/workflows/clear-status.yml removes every status/* and owner/* label when an issue closes. The Service's status sweep writes only an open item that holds Ready or Planned, so it does not write a closed issue. The 5-minute wait lets the next sweep pass. [sources: .github/workflows/clear-status.yml:3, .github/workflows/clear-status.yml:8, src/devops_cli/roadmap/status_sync.py:21, docs/ROADMAP_WORKFLOW.md:119]
  • How long does the check wait after the Service rolls out?: 5 minutes, the interval of the Service's reconcile sweep; the wait lets the sweep that follows the close pass. [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:56, CONTEXT.md:158]
  • How does the person read the labels after the sweep?: Run uv run devops gh issue view <number> --repo <owner>/<name>. It prints a Labels: line with every label, and AGENTS.md rule 7 sends GitHub reads through devops gh. (best practice) [sources: docs/commands/gh.md:534, openspec/specs/gh-issues-view/spec.md:9, AGENTS.md:13, src/devops_cli/github/issues.py:279]
    • Chosen: devops gh issue view. It is the project's paced read and prints the labels; AGENTS.md rule 7 forbids bare gh.
    • Rejected: gh issue view --json labels. It is a bare gh command, which AGENTS.md rule 7 forbids.
    • Rejected: GitHub REST API with curl. It needs token handling and more steps for the same read.
  • How does the person close the test issue?: Run uv run devops gh issue close <number> --reason completed --repo <owner>/<name>. It closes the issue with the reason in one paced command. (best practice) [sources: docs/commands/gh.md:631, openspec/specs/gh-issues-close/spec.md:9, AGENTS.md:13]
    • Chosen: devops gh issue close. It is the project's paced close with a reason, and AGENTS.md rule 7 forbids bare gh.
    • Rejected: gh issue close. It is a bare gh command, which AGENTS.md rule 7 forbids.
    • Rejected: GitHub web interface. It adds manual steps and no command record.
  • How does the person put the four labels on the test issue?: Run uv run devops gh issue edit <number> --add-label status/ready --add-label owner/agent --add-label priority/p2-medium --add-label type/bug --repo <owner>/<name>. The command resolves the labels and sends one paced edit. (best practice) [sources: docs/commands/gh.md:603, AGENTS.md:13]
    • Chosen: devops gh issue edit. It is the project's paced label edit, and AGENTS.md rule 7 forbids bare gh.
    • Rejected: gh issue edit. It is a bare gh command, which AGENTS.md rule 7 forbids.
    • Rejected: GitHub web interface. It adds manual steps and no command record.
  • How does the person record the repository, the issue number and the time in the issue?: Run uv run devops gh issue edit <number> --body '<repository> #<number> <UTC time>' --repo <owner>/<name> after the check, and read it back with uv run devops gh issue view <number> --repo <owner>/<name>. Both commands are paced by devops gh, as AGENTS.md rule 7 requires. (best practice) [sources: docs/commands/gh.md:603, docs/commands/gh.md:534, AGENTS.md:13]
    • Chosen: devops gh issue edit body. It records the check in the issue with a project command, and devops gh issue view reads it back.
    • Rejected: gh issue comment. It is a bare gh command, which AGENTS.md rule 7 forbids.
    • Rejected: devops gh issue close --comment-file. It refuses an issue that is already closed, so it cannot record the check after the wait.
  • How does the person confirm that the Service rolled out?: Run kubectl -n devops rollout status deployment/roadmap-service; the project's deployment spec uses that command for a release of the Service. (best practice) [sources: openspec/specs/roadmap-service-deployment/spec.md:208, openspec/changes/archive/2026-11-17-6107-service-surge-release/specs/roadmap-service-deployment/spec.md:17]
    • Chosen: kubectl rollout status. It is the project's documented live check for a release of the Service.
    • Rejected: Read the pod logs. It has no deterministic completion, so the person cannot tell when the rollout ended.

Fit

Fits in one pull request.

Suspected block

A person with access to a managed repository whose issues webhook is installed and to a deployed Service must run the live check.

Dependencies

None.

Activity

  1. added
    type/test
    on Nov 20, 2026
  2. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    ContributorAuthor
  3. added
    source/agent
    status/new
    value/medium
    effort/low
    scope/service
    priority/p2-medium
    on Nov 20, 2026
  4. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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/lowpriority/p2-mediumscope/servicesource/agentstatus/newtype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions