Skip to content

feat(roadmap): onboard writes the labels file and the status workflow #3753

Open

Description

@devops-cli-service

Update 2026-11-26 (infra move): devops repos onboard (#6773) replaced devops roadmap onboard. It adds a missing .github/labels.yml from the template of dan-petty/infra, creates the labels and sets the main ruleset. clear-status.yml is not needed (#6802). The Copier template of the 2026-11-11 comment is templates/repository of dan-petty/infra, not project-kit/ here. Not seen as done: removal of the old .github/roadmap.toml files. #6773 flagged this item: a person should narrow or close it.


Split from #1359.

Part 2 of #1359. devops roadmap onboard reports that .github/labels.yml and .github/workflows/clear-status.yml are missing, and prints the reason. No command writes the two files, so a person copies them by hand from another repository. The protected-branch rule of the first-backlog findings is part of this work too. This part is deferred because #1359 delivers part 1 only: the rows and the label creation. This part also sets a branch rule, and a branch rule is a repository setting that only a person changes (AGENTS.md). Acceptance criteria: - devops roadmap onboard --confirm writes .github/labels.yml when the file is absent, with the type/*, scope/* and roadmap labels of the reference file. - --confirm writes .github/workflows/clear-status.yml when the file is absent, with the workflow of this repository. - The command never overwrites an existing file; it lists the file and keeps it. - The protected-branch rule of the default branch is a printed step for a person, and no command sends a branch-protection request. - A second --confirm sends no write. - docs/roadmap/onboard.md describes the two writes and the printed branch step.

Proposed design

Problem statement

devops repos onboard (#6773) now writes .github/labels.yml from the templates/repository template of dan-petty/infra. It creates the labels and sets the main ruleset. clear-status.yml is not needed (#6802). The old .github/roadmap.toml file remains in managed repositories, and no code reads it. This change makes devops repos onboard --confirm remove that file and report it.

Acceptance criteria

Requirement: Remove old roadmap config

devops repos onboard --confirm SHALL remove .github/roadmap.toml when the file exists.

Scenario: Existing old roadmap config

  • WHEN a scratch git repository holds .github/roadmap.toml and the operator runs devops repos onboard --confirm
  • THEN the file is absent and the output names the removed path

Requirement: Keep old roadmap config without confirm

The command MUST keep .github/roadmap.toml when --confirm is absent.

Scenario: Run without confirm

  • WHEN a scratch git repository holds .github/roadmap.toml and the operator runs devops repos onboard
  • THEN the file stays and the output names the path

Requirement: No write request for removal

The command MUST remove the file in the working tree and send no GitHub write request for the removal.

Scenario: Fake client records no write

  • WHEN the operator runs devops repos onboard --confirm on a scratch git repository with .github/roadmap.toml
  • THEN the fake client records no write request and the file is absent from the working tree

Requirement: Second run reports no removal

A second devops repos onboard --confirm SHALL report no removal and change no file.

Scenario: Second confirmed run

  • WHEN the operator runs devops repos onboard --confirm twice in a row
  • THEN the second run reports no removal and the working tree is unchanged

Requirement: Onboard page states the removal

docs/repos/onboard.md SHALL state that devops repos onboard --confirm removes .github/roadmap.toml.

Scenario: Onboard page content

  • WHEN the docs test reads docs/repos/onboard.md
  • THEN the page names .github/roadmap.toml and states that --confirm removes it

Requirement: Pending a person after the merge

A person SHALL run devops repos onboard --confirm on each managed repository that holds .github/roadmap.toml after the merge.

Scenario: Post-merge cleanup

  • WHEN the change is on main and a person runs the command on a managed repository with .github/roadmap.toml
  • THEN the command reports the removal, and the person commits the removed file

Existing Tool Considered

No alternatives check has run. The open, maintained Copier (9.19.1, MIT) renders the templates/repository template of dan-petty/infra, which devops repos onboard (#6773) uses for .github/labels.yml. Copier does not remove an obsolete file. The proposal adds one removal step to devops repos onboard. The step is about 20 lines and its tests. It costs about 10,000 tokens to build, about 2,000 tokens a year to keep and fix, and about 1 hour elapsed.

Key questions

  • Which command onboards a repository now?: devops repos onboard onboards a repository. It replaced devops roadmap onboard (feat(repos): onboard a repository with one command #6773). [sources: docs/ROADMAP_WORKFLOW.md, docs/repos/onboard.md]
  • What does the command do with an existing .github/roadmap.toml?: The command removes the file in the working tree on --confirm and reports the path. It sends no GitHub write request for the removal. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, AGENTS.md]
    • Chosen: Remove in the working tree on --confirm. The file is obsolete, and a person reviews the diff before a commit.
    • Rejected: Delete through the GitHub contents API. The write needs a branch and a commit, and the operator cannot review the content first.
    • Rejected: Keep the file and report it only. The obsolete file stays in each repository.
  • Where does the onboarding documentation live?: docs/repos/onboard.md holds the onboarding page. [sources: docs/ROADMAP_WORKFLOW.md]
  • Does the change write .github/workflows/clear-status.yml?: No. clear-status.yml is not needed (feat(roadmap): the Service removes the labels of a closed issue #6802). The Service clears the status labels. [sources: docs/ROADMAP_WORKFLOW.md]
  • Does the change send a branch-protection request?: No. devops repos onboard sets the main ruleset, and this change adds no branch-protection request. [sources: docs/ROADMAP_WORKFLOW.md, docs/adr/0004-ci-is-the-authoritative-gate.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 Nov 6, 2026
  2. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    ContributorAuthor

    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 copy step but a workaround exists.
    • Value: Medium. It saves a person from copying two files by hand into each new repository.
    • Effort: Medium. It writes two files, guards against overwrite, prints a branch step, and updates docs.
    • Related: feat(roadmap): onboard writes labels.yml and clear-status.yml from --from #3742, which asks for a different change. Both extend devops roadmap onboard to write .github/labels.yml and .github/workflows/clear-status.yml, but 3742 uses --from while the candidate uses --confirm and adds the printed branch-rule step.
  3. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 72c52c6. A bot opened the item, so a review of the issue and of the proposal must approve it first. The review found the defects below. A person edits the body to answer them. The next refine round looks at the item again only after a body edit.

    • false_premise at existing_tool: The plan states that no tool exists, but it also states that no alternatives check has run. The claim has no support. Evidence: "No alternatives check has run. No open, maintained tool writes both files into an existing repository."
    • false_premise at key_questions: The plan names ADR 0014, but its source is docs/adr/0004-ci-is-the-authoritative-gate.md. Evidence: "ADR 0014 fixes the checks of the main ruleset"
  4. dan-petty commented on Nov 11, 2026

    @dan-petty
    Owner

    Scope from the generalization plan (2026-11-11)

    This item is now the project kit of the tracker #4627. Its new scope: "onboard renders the project kit with Copier".

    Problem

    #3742 and this item plan one-time copies with no update flow, so the copies drift again. 6 of the 6 other repositories hold the same old labels.yml. 6 of 6 hold an orphan .github/roadmap.toml that no code reads since #2435. 0 of 6 hold .devops/roadmap.toml or openspec/. 5 of 6 have no AGENTS.md. devops-cli does not render its own AGENTS.md from the template that it ships (11 against 14 rules).

    Proposed solution

    Existing tool considered

    Copier gives the render (copier copy), the update flow with a three-way merge (copier update) and the version check (copier check-update). A one-time copy has no update flow. Cost: about 150 lines plus the kit files, about 450,000 tokens and 4 hours to build.

    Acceptance criteria

    • A test renders the kit with the answers of a Rust repository and gives no Python fact in AGENTS.md.
    • A test on a scratch git repository: onboard --confirm opens 1 pull request, and a second run sends no write.
    • A test: the kit row reads outdated when copier check-update exits 2.
    • git ls-files src/devops_cli/templates/AGENTS.md.j2 gives nothing, and the kit holds the only AGENTS template.
    • After the owner merges the first kit pull request in one repository, copier update from a newer tag gives a pull request with only the template diff.

    Dependencies

    #4635, #4641 and #4652.

  5. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

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/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions