Skip to content

ci: delete the clear-status workflow #147

Done

Description

@dan-petty

Problem

.github/workflows/clear-status.yml removes the status/* and owner/* labels when an issue closes. The roadmap Service of dan-petty/devops-cli does the same task, and it needs no file in this repository (dan-petty/devops-cli#4660, release v0.196.0). So two writers do one task, and each closed issue starts one more job on a runner.

Evidence

Source of dan-petty/devops-cli at commit 720344b04:

  • src/devops_cli/roadmap/status_sync.py: clear_closed_issues removes each label with the prefix status/ or owner/ from each closed issue. It keeps each other label.
  • src/devops_cli/roadmap/implement/implement_submit.py: each round of the row implement calls clear_closed_issues.
  • An issues.closed delivery makes the row due. The row also has an interval of 7 minutes, so it removes a label that a delivery missed.
  • openspec/specs/roadmap-item-labels/spec.md holds the requirement "A closed issue holds no Status and no Owner label".

Events of closed issues in this repository, where the Service removed a label before the workflow job did:

Issue Label Actor Time after the close
#90 status/in-review devops-cli-service[bot] 7 s
#94 status/in-review devops-cli-service[bot] 9 s
#97 status/in-review devops-cli-service[bot] 7 s

The template of dan-petty/github-workflows renders no clear-status.yml (checked at v0.1.0 and main), so copier update does not add the file again.

Change

Delete .github/workflows/clear-status.yml.

Acceptance criteria

  • The tree does not hold the file.
  • actionlint and zizmor --offline .github/workflows pass.
  • After the merge, close one issue that holds a status/* label and an owner/* label. devops-cli-service[bot] removes the two labels. If it does not, revert the change.

Alternatives check of 2026-11-30: not-applicable.
Class: ci, no model call.
Tool: none found.

Proposed design

Problem statement

.github/workflows/clear-status.yml removes the status/* and owner/* labels of a closed issue. The roadmap Service of dan-petty/devops-cli does the same task with no file in this repository. Two writers do one task, and each closed issue starts one more runner job. Delete the file. The Service is halted now, so the deletion waits for a live proof that the Service clears both label families.

Acceptance criteria

Requirement: Clear-status workflow deleted

The repository MUST NOT hold the file .github/workflows/clear-status.yml.

Scenario: The tree holds no clear-status workflow

  • WHEN git ls-files .github/workflows/clear-status.yml runs on the merged tree
  • THEN the command prints no path and exits with status 0.

Requirement: Workflows pass actionlint

Each file in .github/workflows MUST pass actionlint after the deletion.

Scenario: actionlint passes on the workflows

  • WHEN docker run --rm -v "$PWD:/src:ro" -w /src devtools:test actionlint runs
  • THEN the command exits with status 0 and prints no error.

Requirement: Workflows pass zizmor

Each file in .github/workflows MUST pass zizmor --offline after the deletion.

Scenario: zizmor passes on the workflows

  • WHEN docker run --rm -v "$PWD:/src:ro" -w /src ghcr.io/zizmorcore/zizmor:1.33.1@sha256:ecd3ffe6158de1322e05a044ed43749bee12b1dccb7e1a7859bc6ac4b2a1c516 --offline .github/workflows runs
  • THEN the command exits with status 0 and reports no finding.

Requirement: Pending a person after the merge

After the merge, the roadmap Service MUST remove a status/* label and an owner/* label from a closed issue.

Scenario: The Service clears the labels of a closed issue

  • WHEN a person closes one issue that holds a status/* label and an owner/* label
  • THEN devops-cli-service[bot] removes the two labels within 7 minutes, and the change is reverted if it does not.

Existing Tool Considered

The alternatives check in the issue body records not-applicable with Tool: none found, for class ci with no model call. The replacement for the deleted workflow is the roadmap Service of dan-petty/devops-cli (release v0.196.0): clear_closed_issues in src/devops_cli/roadmap/status_sync.py removes the status/* and owner/* labels of each closed issue. The change builds no code, so it has no written cost. The tool lacks a running Service now: dan-petty/devops-cli#7911 halts it, and no event shows that it removed an owner/* label. The proposal therefore deletes the file only after the Service removes owner/agent from closed issue #4.

Key questions

  • Which code removes the status/* and owner/* labels of a closed issue in this repository now?: .github/workflows/clear-status.yml is the only remover now. It runs on issues.closed, reads the labels of the issue at that time, and removes each label that starts with status/ or owner/. [sources: .github/workflows/clear-status.yml:7, .github/workflows/clear-status.yml:28]
  • Does this repository hold the source of the roadmap Service, or a record that it clears the two label families?: The repository holds no copy of the Service code. The labels file records that the workflow labels, such as status/*, come from devops-cli. The workflow comment records the rule of devops-cli ADR 0016: a closed issue holds no Status label and no claim. Refine cannot read the private Service repository, so the Service source stays with the citation in the body. The observed events fix(image): give the image the mise command #90, feat(image): add Python 3.15 #94 and feat(image): add ansible-lint #97 show that devops-cli-service[bot] removed status/in-review in 7 to 9 s, and no event shows an owner/* removal. [sources: .github/labels.yml:2, .github/workflows/clear-status.yml:3]
  • When does the repository delete .github/workflows/clear-status.yml?: Delete the file only after dan-petty/devops-cli#7911 closes and devops-cli-service[bot] removes owner/agent from closed issue chore: add the roadmap label file and the clear-status workflow #4. The reply of 2026-11-30 reports that the Service is halted since 03:27 UTC, and that owner/agent stayed on chore: add the roadmap label file and the clear-status workflow #4 at 17:58 UTC. The live proof needs no workflow, because a new label on a closed issue starts none. (best practice) [sources: .github/workflows/clear-status.yml:7, .github/labels.yml:2]
  • Which command proves that the workflows pass after the deletion?: The image workflow runs zizmor 1.33.1 from its official image at a pinned digest with --offline .github/workflows, because the devtools image has no zizmor. The same workflow runs actionlint in the devtools:test image, and test/tools.sh calls actionlint --version. The body names zizmor --offline .github/workflows, and the image workflow confirms that command. [sources: .github/workflows/image.yml:114, .github/workflows/image.yml:153, test/tools.sh:62]

Fit

Fits in one pull request.

Suspected block

The roadmap Service of dan-petty/devops-cli is halted by dan-petty/devops-cli#7911. Start the deletion when that issue closes and devops-cli-service[bot] removes owner/agent from closed issue #4.

Dependencies

None.

Activity

  1. added
    type/infra
    status/new
    value/medium
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
  3. added
    effort/low
    source/agent
    priority/p2-medium
    owner/agent
    on Nov 30, 2026
  4. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    I stopped this item before the deletion. No branch was pushed, and clear-status.yml stays.

    What holds

    What does not hold

    So clear-status.yml is now the only remover in this repository. If we delete it, closed issues keep their labels.

    When to start again

    1. fix(service): GitHub refused the identity and rounds stopped devops-cli#7911 is closed.
    2. devops-cli-service[bot] removed owner/agent from chore: add the roadmap label file and the clear-status workflow #4. This event is the missing proof. It needs no workflow, because a new label on a closed issue starts none.

    Then delete the file, as the body says. I leave the test label on #4 for step 2.

  5. removed
    owner/agent
    on Nov 30, 2026
  6. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    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

  7. added
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 30, 2026
  8. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    Agent note for pull request #154.

  9. added
    status/in-review
    and removed
    status/in-progress
    on Nov 30, 2026
  10. removed
    status/in-review
    owner/agent
    on Nov 30, 2026
  11. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    Agent note: the check after the merge passed. No revert is necessary.

    Pull request #154 merged at 21:38:50 UTC on 2026-11-30 and closed this issue at 21:38:51. devops-cli-service[bot] removed status/in-review at 21:48:06 and owner/agent at 21:48:30. The merge commit 2ee8adf holds no clear-status.yml.

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-mediumsource/agenttype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions