Repository navigation
Description
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.tomland the operator runsdevops 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.tomland the operator runsdevops 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 --confirmon 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 --confirmtwice 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.tomland states that--confirmremoves 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
mainand 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 onboardonboards a repository. It replaceddevops 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--confirmand 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.mdholds the onboarding page. [sources: docs/ROADMAP_WORKFLOW.md] - Does the change write
.github/workflows/clear-status.yml?: No.clear-status.ymlis 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 onboardsets themainruleset, 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
devops-cli-service commentedon Nov 6, 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 copy step but a workaround exists.It saves a person from copying two files by hand into each new repository.It writes two files, guards against overwrite, prints a branch step, and updates docs.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.devops-cli-service commentedon Nov 7, 2026
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_premiseat 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_premiseat key_questions: The plan names ADR 0014, but its source isdocs/adr/0004-ci-is-the-authoritative-gate.md. Evidence: "ADR 0014 fixes the checks of themainruleset"dan-petty commentedon Nov 11, 2026
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.tomlthat no code reads since #2435. 0 of 6 hold.devops/roadmap.tomloropenspec/. 5 of 6 have noAGENTS.md. devops-cli does not render its ownAGENTS.mdfrom the template that it ships (11 against 14 rules).Proposed solution
project-kit/of the devops-cli repository (copier.ymlwith_subdirectory), versioned by the release tags. Copier (9.19.1, MIT) runs as atools.locktool, not as a runtime dependency.AGENTS.md(moved fromsrc/devops_cli/templates/AGENTS.md.j2) and the 3 pointer stubs,.devops/roadmap.tomlwith the toolchain preset (feat(roadmap): a toolchain preset sets the implement checks #4635, feat(k8s): toolchain presets and runner tools for each language #4648),openspec/config.yamlandopenspec/specs/, and the skeleton of the project labels (scope/*from an answer, after refactor(roadmap): the package declares the workflow labels #4652).config.yamlfrom the kit.clear-status.ymlis not in the kit._skip_if_existskeeps anAGENTS.mdthat exists. The vibes file stays.devops roadmap onboard --confirmdetects the answers, runscopier copyin a clone, deletes.github/roadmap.toml, and opens one pull request with the protected-branch rule of feat(roadmap): onboard writes labels.yml and clear-status.yml from --from #3742.kitrunscopier check-update --quiet. Exit code 2 means that a newer kit exists.devops ai agentsrenders the same kit file, so one template remains (fix(ai): devops ai agents detects the project manifest #4641).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
AGENTS.md.onboard --confirmopens 1 pull request, and a second run sends no write.kitrow readsoutdatedwhencopier check-updateexits 2.git ls-files src/devops_cli/templates/AGENTS.md.j2gives nothing, and the kit holds the only AGENTS template.copier updatefrom a newer tag gives a pull request with only the template diff.Dependencies
#4635, #4641 and #4652.
devops-cli-service commentedon Nov 26, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.