Repository navigation
Description
Update 2026-11-26 (infra move): devops repos onboard (ADR 0035) replaced devops roadmap onboard.
The module is src/devops_cli/github/onboard/. The project kit is the Copier template of dan-petty/infra (templates/repository/).
Problem or Motivation
Owner decision 1 (2026-11-11): all Service rows, stage and implement too, run on all 7 repositories, with no row allowlist. A row in a repository that lacks a project-management dependency fails or does wrong work:
- 0 of the 6 other repositories hold
openspec/config.yaml, so the stage holds their items (fix(roadmap): stage holds an item where openspec is not set up #4629). - 0 of 6 hold
.devops/roadmap.toml, so implement uses theneutralpreset. - 5 of 6 have no
AGENTS.md, so the planners and implement get only the generic rules (feat(roadmap): planners and implement read the target AGENTS.md #4650). - 6 of 6 hold an old hand copy of
labels.yml, and homelab lacksstatus/planned,owner/*andplan/*on GitHub (refactor(roadmap): the package declares the workflow labels #4652). - 6 of 6 hold an orphan
.github/roadmap.tomlthat no code reads since feat(roadmap): labels and milestones hold each item's status, priority, value and effort, and no roadmap job reads or writes the project board #2435.
devops repos onboard (#6773) finds these, but only when a person runs it. No Service row runs the check, so a missing dependency shows only as a failed job.
Proposed Solution & Architectural Design
- Add a Service row
onboardfor each repository inservice.repos. It runs the read-only rows ofdevops repos onboardatorigin/<default>:profile(.devops/roadmap.tomlnames a known preset),openspec(feat(roadmap): onboard sets up openspec in a repository #3770),kit(copier check-update, feat(roadmap): onboard writes the labels file and the status workflow #3753), the workflow labels (refactor(roadmap): the package declares the workflow labels #4652),AGENTS.md, the toolchain preset of the detected languages (feat(k8s): toolchain presets and runner tools for each language #4648), the webhook (feat(roadmap): onboard checks the webhook of a repository #3772) and the RAG index (feat(roadmap): onboard checks and starts the rag ingestion #3771). - When a row is missing, the row starts the onboarding in that repository:
- It opens one onboarding issue in the repository that lists each missing dependency and each step that only a person can do (for example, create the webhook and its secret). It updates that issue, and does not open a second one.
- It runs the write path of
devops repos onboard --confirm: it creates the missing labels through REST, and opens one pull request that renders the project kit (feat(roadmap): onboard writes the labels file and the status workflow #3753) with the detected answers. The pull request never overwrites a file that exists (_skip_if_exists, owner decision 7).
- Status-label clearing needs no file in the repository (feat(service): clear status labels when an issue closes #4660, owner decision 6). The row checks only that the webhook sends the
issuesevents. - A second round with no change sends no write.
- The owner merges each onboarding pull request, as for every Service pull request.
Target Subsystem
SDLC, Git & PR Governance (the Service rows and src/devops_cli/github/onboard/).
Existing Tool Considered
Copier (copier copy and copier check-update) gives the files and finds an old kit. The GitHub REST API creates the labels, the issue and the pull request. GitHub template repositories work only when a repository is created, and the Probot Settings app needs a file in each repository first. Cost of the row: about 120 lines and 5 tests, about 400,000 tokens and 4 hours to build, about 10,000 tokens a month to keep.
Acceptance Criteria
- A test with the git and HTTP fakes: for a repository with no
openspec/config.yaml, the row opens 1 onboarding issue and 1 pull request, and a second round sends no write. - A test: for a repository where every row is present, the row sends no write.
- A test: the onboarding issue lists each missing dependency and each step for a person, and no secret.
-
uv run devops roadmap explain <n> --repo <owner/name>names the onboarding issue when the stage holds an item for a missing dependency. - After the rollout, each of the 6 other repositories has 1 open onboarding pull request or every row present.
Dependencies
#4629, #4652, #4660, #4648, #3753 (the kit) and #3775 (the onboarding pipeline, with #3770, #3771 and #3772).
Source: #4627
Alternatives check of 2026-11-26: in-use.
The repository already uses this tool.
Tool: copier-org/copier (https://github.com/copier-org/copier), MIT, last activity 2026-11-25, maintained.
Reason: Searches found Copier, the template renderer the issue already names for the kit, with skip_if_exists to keep existing files and check-update to find a stale copy; it covers only the kit render, not the dependency checks or GitHub writes.
Covers:
- Renders the project kit from a template with detected answers
- Skips files that already exist via
skip_if_exists - Finds a missing or stale kit copy
Lacks:
- Checks for profile, OpenSpec, AGENTS.md, labels, toolchain, webhook, RAG index
- Creates labels through REST and opens the onboarding issue and pull request
- Once-only guard, person-step list and the Service row with the explain link
Proposed design
Problem statement
Owner decision 1 runs every Service row on all 7 repositories. Six of the 6 other repositories lack the project files and labels that the rows need. The stage holds their items, implement uses the neutral preset, and the workflow labels are missing. devops repos onboard finds and writes these, but only when a person runs it. The change adds a Service row that runs the read-only onboarding rows for each repository. The row opens one onboarding issue, creates the missing labels and opens one template pull request.
Acceptance criteria
Requirement: Onboard row runs for each managed repository
The Service SHALL run the onboard row once for each repository in service.repos in each round.
Scenario: A round with two managed repositories
- WHEN the due table runs the
onboardrow withservice.reposset to two repositories and the git and HTTP fakes - THEN the row runs once for each repository and the outcome holds one report for each repository.
Requirement: Report names a missing project file
The onboard row SHALL name each missing dependency that the read-only rows of onboard_repository find.
Scenario: A default branch with no openspec/config.yaml
- WHEN the
onboardrow runs with the git fake whose default branch lacksopenspec/config.yamland the template holds the file - THEN the report names
openspec/config.yamlas a missing dependency.
Requirement: Missing dependency opens one onboarding issue
The onboard row SHALL open one onboarding issue in a repository when a read-only row is missing and no open issue holds the onboarding marker.
Scenario: A repository with no open onboarding issue
- WHEN the row finds a missing row and the HTTP fake returns no open issue with the onboarding marker
- THEN the fake GitHub gets 1
POST /repos/{repo}/issues.
Requirement: Later round updates the one onboarding issue
The onboard row SHALL update the open onboarding issue when the missing rows change and MUST NOT open a second issue.
Scenario: A second round with a changed missing row
- WHEN the row runs again and the missing rows differ from the body of the open onboarding issue
- THEN the fake GitHub gets 1
PATCH /repos/{repo}/issues/{n}and noPOST /repos/{repo}/issues.
Requirement: Issue lists dependencies and person steps and no secret
The onboarding issue body MUST list each missing dependency and each step that only a person can do, and MUST hold no secret value.
Scenario: An issue for two missing rows and one person step
- WHEN the row writes the onboarding issue with the HTTP fake
- THEN the body names the 2 missing rows and the person step, and holds no token, key or secret value.
Requirement: Write path creates labels and one template pull request
The onboard row SHALL run the write path of onboard_repository with confirm=True, create each missing workflow label through REST and open one draft template pull request.
Scenario: A repository with missing labels and no template pull request
- WHEN the row runs the write path with the HTTP fake
- THEN the fake GitHub gets one
POST /repos/{repo}/labelsfor each missing label and 1POST /repos/{repo}/pullswhose body holdsdraft: true.
Requirement: Template pull request adds only missing files
The template pull request MUST NOT overwrite a file that the default branch holds with other text.
Scenario: A default branch that holds AGENTS.md with other text
- WHEN the row opens the template pull request and the default branch holds
AGENTS.mdwith other text - THEN the commit on the template branch holds no
AGENTS.mdpath and the report listsAGENTS.mdas kept.
Requirement: The row does not poll the template pull request checks
The onboard row MUST NOT read or wait for the check runs of the template pull request.
Scenario: A template pull request with no check answer
- WHEN the row runs the write path with the HTTP fake and the fake returns no check run for the head
- THEN the row returns with the draft pull request open and sends no request to the check runs or the commit status of the head.
Requirement: The row changes no repository setting and merges nothing
The onboard row MUST NOT write a repository setting, a ruleset or a merge.
Scenario: A baseline that differs in a setting and in the ruleset
- WHEN the row runs the write path with the HTTP fake and the baseline differs in a repository setting and in the
mainruleset - THEN the fake GitHub gets no
PATCH /repos/{repo}, no ruleset request and no merge mutation.
Requirement: A complete repository sends no write
The onboard row SHALL send no write when every read-only row is present.
Scenario: A repository where every row is present
- WHEN the row runs with the HTTP fake and every read-only row is present
- THEN the fake GitHub gets no POST, PATCH, PUT or DELETE request.
Requirement: Second round with no change sends no write
The onboard row SHALL send no write on a second round when no row changed.
Scenario: A second round with the same rows
- WHEN the row runs a second time and the missing rows equal the body of the open onboarding issue
- THEN the fake GitHub gets no POST, PATCH, PUT or DELETE request.
Requirement: explain names the onboarding issue
devops roadmap explain SHALL name the open onboarding issue of the repository when the stage holds an item for a missing dependency.
Scenario: The stage holds an item for a missing openspec/config.yaml
- WHEN the explain command runs with a fake store that holds a held item and an open onboarding issue
- THEN the output holds the number of the open onboarding issue.
Requirement: Pending a person after the merge
After the merge, a person MUST merge each onboarding pull request and MUST confirm that each repository in service.repos has every read-only row present or 1 open onboarding pull request.
Scenario: The live rollout check
- WHEN a person runs
uv run devops repos onboard --confirmin a repository ofservice.reposafter the merge - THEN the command reports each read-only row present, or the repository holds 1 open onboarding pull request that the person merges.
Existing Tool Considered
Alternatives check of 2026-11-26: in-use. The tool is copier-org/copier (MIT, maintained). The block of the check in the issue body lists what Copier covers and what it lacks. The change builds no renderer: the row runs the copier program through onboard_repository (src/devops_cli/github/onboard/run.py). The row adds the parts that Copier lacks: the read-only dependency checks, the label writes through REST, the one onboarding issue, the one template pull request, the once-only guard and the explain link. Written cost of the row: about 120 lines and 5 tests, about 400,000 tokens and 4 hours to build, and about 10,000 tokens a month to keep.
Key questions
- Which command already owns the onboarding rows, and does the change add a second onboarding module?:
devops repos onboardowns the rows (ADR 0035).onboard_repositoryinsrc/devops_cli/github/onboard/run.pyruns them withOnboardOptions(src/devops_cli/github/onboard/model.py:95). The change adds no second onboarding module: theonboardService row callsonboard_repository. The kit is a Copier template of dan-petty/infra, and the command reads its ref at run time. [sources: src/devops_cli/github/onboard/run.py, src/devops_cli/github/onboard/model.py:95, src/devops_cli/github/onboard/service_rows.py, docs/repos/onboard.md] - Where does the
onboardService row live?: Add aJobRownamedonboardtoSTATUS_LANE_ROWSinsrc/devops_cli/roadmap/run.py:1211. The row callsonboard_repositoryonce for each repository inservice.repos. (best practice) [sources: src/devops_cli/roadmap/run.py:1211, src/devops_cli/roadmap/run.py:263, src/devops_cli/github/onboard/run.py, docs/repos/onboard.md]- Chosen: A
JobRowinSTATUS_LANE_ROWSthat callsonboard_repository. The due table already runs each row for each repository, andonboard_repositoryis the one code path of the command. - Rejected: A second onboarding module under
src/devops_cli/roadmap/. It copies the rows ofonboard_repository, and the two copies drift. - Rejected: A subprocess call of
devops repos onboard. The row holds the session and the settings in process, and the call gives the same result with more failure modes.
- Chosen: A
- Which writes does the row make, and does it wait for the checks of the pull request?: The label row and the template pull request row only, with
confirm=Trueand no check wait. A person changes a repository setting and merges a pull request (AGENTS.md). (best practice) [sources: AGENTS.md, src/devops_cli/github/onboard/model.py:95, src/devops_cli/github/onboard/template_pr.py, docs/repos/onboard.md]- Chosen: The labels and the template pull request, with no check wait. These two writes start the onboarding, and the round never blocks on the checks of the pull request.
- Rejected: Every row with
confirm=True. It writes repository settings and merges a pull request, which only a person does. - Rejected: Plan only. It creates no label and no pull request, which the issue requires.
- Rejected: The labels and the template pull request, with a check wait. The round blocks for each repository, and the lane runs its rows in order.
- How does the row keep one onboarding issue and one template pull request across rounds?: The issue body holds a fixed hidden marker, and the row updates the one open issue that holds it. The row finds the template pull request by its fixed branch (
src/devops_cli/github/onboard/template_pr.py). A round with no change writes nothing. (best practice) [sources: src/devops_cli/github/onboard/template_pr.py, CONTEXT.md, docs/repos/onboard.md]- Chosen: A fixed marker in the issue body and the fixed template branch. GitHub state is the first marker of a roadmap step, and the template branch is already the one open pull request of the command.
- Rejected: A state file in the repository. The repositories lack the project files, and the issue says the status clear needs no file in the repository.
- Rejected: A Valkey key alone. A due mark has a TTL and is never the only copy of a decision.
- Which tool renders the project kit, and what keeps a file that exists?: The
copierprogram, run byonboard_repository. The template pull request keeps a file that exists because_file_statescompares each rendered file with the default branch and adds only a path that the branch lacks. (best practice) [sources: docs/repos/onboard.md, src/devops_cli/github/onboard/template_pr.py, src/devops_cli/github/onboard/baseline.py]- Chosen: The
copierprogram with the_file_statesguard. The project already runs the program, and the guard keeps each file that the default branch holds. - Rejected: Import the Copier library. The library needs the GPL3
jinja2-ansible-filters, which the project refuses. - Rejected: A hand-written renderer. It rebuilds what Copier already does and must track the kit by hand.
- Rejected: GitHub template repositories. They work only when a repository is created, and the 6 repositories exist.
- Chosen: The
- How does
devops roadmap explainname the onboarding issue?:explainreads the one open issue of the repository with the onboarding marker through the store and prints its number beside the hold reason. It writes nothing and calls no model. (best practice) [sources: src/devops_cli/roadmap/explain.py, src/devops_cli/commands/roadmap.py, src/devops_cli/roadmap/run.py:1211]- Chosen: Read the open onboarding issue by the marker.
explainalready reads GitHub through the store and writes nothing. - Rejected: Print no issue number. The issue requires that
explainnames the onboarding issue.
- Chosen: Read the open onboarding issue by the marker.
- What does the row do when a read-only row cannot read the baseline, such as a runner with no
copierprogram?: It lists thenot readablerow and the person stepuv tool install copierin the onboarding issue, and sends no write. It does not fail the row. (best practice) [sources: docs/repos/onboard.md, src/devops_cli/github/onboard/model.py:95]- Chosen: An issue with the person step and no write. The issue exists because a missing dependency shows only as a failed job, and the read that fails has a step that a person does.
- Rejected: Fail the row. It repeats the failure that the issue removes, and no issue tells the person what to do.
- Rejected: Skip the repository with no issue. A person would see nothing about the repository.
- What does the row do for a missing dependency that no onboarding row writes?: It lists the dependency as a person step in the onboarding issue. The row writes no file to the default branch, because
RouteWriterrefuses a route that its table does not hold. (best practice) [sources: src/devops_cli/github/onboard/routes.py:4, src/devops_cli/github/onboard/routes.py:401, docs/repos/onboard.md]- Chosen: A person step in the onboarding issue. The row sends every write through
RouteWriter, and a person adds the file to the template. - Rejected: Write the file to the default branch.
RouteWriterrefuses a route that its table does not hold. - Rejected: Ignore the file. The item stays held with no step that ends the hold.
- Chosen: A person step in the onboarding issue. The row sends every write through
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 11, 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.A planned feature from an owner decision that enables automated onboarding, not a blocking defect.Prevents failed Service jobs in 6 repositories and automates a multi-step manual process.The body estimates about 120 lines, 5 tests, and 4 hours to build.Both add onboard rows for a repository, but #3770 is one row (openspec setup) while the candidate is the Service row that runs all rows and starts the write path.fix(roadmap): stage holds an item where openspec is not set up (#4749)
devops-cli-service commentedon Nov 14, 2026
Alternatives check: in-use
Reason: Searches for a tool that detects and repairs the missing per-repository dependencies found nothing that does the whole job; the closest is Copier, the maintained MIT project-template tool that the issue itself names and that the existing
devops roadmap onboardrows already run (copier check-update). Copier covers rendering the project kit's files and finding an out-of-date copy, but not the other missing dependencies, the GitHub label/issue/PR writes, or the Service row, so the issue still has to be built.The item already names this tool.
Tool: copier-org/copier (https://github.com/copier-org/copier)
Covers:
copier copy), which is the write path the row needs for the project kitcopier check-update), which the issue lists as an existing read-only row_skip_if_exists), matching the rule that the pull request never overwrites a fileLacks:
.devops/roadmap.tomlpreset,openspec/config.yaml,AGENTS.md, the workflow labels, the toolchain preset, the webhook or the RAG indexservice.repos, and nodevops roadmap explainlink to the onboarding issueTools considered:
Searches run:
Sources:
Checked on 2026-11-13. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 14, 2026
Refine cannot set this item to Ready at 0410772 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
src/devops_cli/roadmap/onboard.py,src/devops_cli/roadmap/workflow_labels.py.devops-cli-service commentedon Nov 14, 2026
Refine cannot set this item to Ready at d95f4c0 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 26, 2026
Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.
devops-cli-service commentedon Nov 29, 2026
Released in v0.248.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.248.0
devops-cli-service commentedon Nov 29, 2026
Live since 2026-11-29 16:50 UTC