Repository navigation
Description
Problem
A person who adds a repository to the roadmap Service finds out what is missing one failure at a time: a job fails, the person reads the log, fixes one thing, and waits for the next failure. The work is spread over many issues, with no order and no single owner of the whole path. This item tracks the path. Its sub-issues deliver the parts.
Expected
One command, devops roadmap onboard [--repo owner/name] [--confirm], takes a repository from "added" to "managed". It checks every prerequisite, does what is safe to do, opens one pull request for the files, and prints each step that only a person can do. A second run changes nothing.
The pipeline, in order
| Step | What | Issue |
|---|---|---|
| 1. Check | One row for each prerequisite, each present, missing or not readable with the reason. Create the missing labels. |
#1359 |
| 2. GitHub files | .github/labels.yml and .github/workflows/clear-status.yml, through a pull request when the default branch is protected. |
#3742 |
| 3. GitHub webhook | A row for the webhook of the Service router. Printed step only. | #3772 |
| 4. OpenSpec | openspec/config.yaml from a generic template, and openspec/specs/, in the same pull request as step 2. |
#3770 |
| 5. RAG ingestion | The repository is in the pass, its points are in both collections under owner/name, and the schedule covers it. The first pass runs for that repository. |
#3771, with #1389 (the pass) and #1653 (the schedule) |
| 6. Check again | Every row reads present, or has a printed step for a person. |
#1359 |
devops pr create must also open a pull request in a repository that has no OpenSpec folder yet (#3767), because step 4 starts there.
Steps that stay with a person (the command prints them)
- Turn on issues, and the rules of the default branch: repository settings.
- Install the App on the repository: the installation page.
- Create the webhook and its secret, and
devops config set service.webhook_secrets. - Add the repository to
service.reposinconfig.yaml, thendevops k8s deploy-stack. The command never writesconfig.yaml. - Merge the onboarding pull request.
Acceptance criteria
- On a scratch repository that has none of the prerequisites, one
devops roadmap onboard --confirmends with every rowpresentor with a printed step for a person. A test runs this with the git and HTTP fakes. - A second run sends no write.
-
--dry-runmakes no request (it lists the requests that it would make). -
docs/roadmap/onboard.mddescribes the whole path in the order above, and names each step that stays with a person. - Each sub-issue above is closed.
Existing tool considered
The pipeline is one command that uses the parts above; it adds no scheduler or workflow engine. The openspec CLI is used where it fits (#3770).
Possible duplicates (a person decides; nothing is closed here)
- feat(roadmap): onboard writes labels.yml and clear-status.yml from --from #3742 and feat(roadmap): onboard writes the labels file and the status workflow #3753 both describe part 2 of feat(roadmap): onboard checks a repository for the roadmap jobs #1359 (write the labels file and the status workflow).
- feat(k8s): Add an Argo workflow to keep the RAG index current #1653 and feat(k8s): Keep the RAG index current on poll and push #3589 have the same title (the Argo workflow that keeps the RAG index current).
Related
#1359, #3742, #3753, #3767, #3770, #3771, #3772, #1389, #1653, #3589.
Alternatives check of 2026-11-25: in-use.
The repository already uses this tool.
Tool: cli/cli (https://github.com/cli/cli), MIT, last activity 2026-11-24, maintained.
Reason: Searches and repository facts found the gh CLI, which already does the GitHub-side writes of the pipeline, but nothing open runs the ordered prerequisite check, the dry-run plan, the RAG pass and idempotent orchestration in one command.
Covers:
- Creates the missing labels from a labels file
- Opens one pull request with the repository files
- Reads repository settings and webhook state through the API
Lacks:
- No ordered pipeline with present, missing or not readable rows
- No request-plan dry run that lists writes and person steps
- No RAG ingestion into both collections under owner/name
- No idempotent orchestration across labels, pull request and RAG
Proposed design
Problem statement
A person who adds a repository to the roadmap Service finds each missing prerequisite one failure at a time. The work has no order and no single owner. This change completes the existing devops roadmap onboard command. The command checks every prerequisite, creates the missing labels, opens one pull request with the repository files, runs the first RAG pass, and prints each step that stays with a person. A second run sends no write.
Acceptance criteria
Requirement: Onboarding reports every prerequisite
devops roadmap onboard SHALL print one row for each prerequisite in pipeline order, and each row SHALL read present, missing or not readable with a reason.
Scenario: Missing labels on a scratch repository
- WHEN the fake repository has no labels and the command runs without
--confirm - THEN the labels row reads
missing, names the absent labels, and the fake records no write request
Requirement: Onboarding creates the missing labels
devops roadmap onboard --confirm SHALL create each missing label of .github/labels.yml through the create-only onboarding path and SHALL NOT patch or delete an existing label.
Scenario: Create labels on a scratch repository
- WHEN the fake repository has no labels and the command runs with
--confirm - THEN the fake repository receives the labels of
.github/labels.ymland the labels row readspresent
Requirement: Onboarding opens one pull request for the repository files
devops roadmap onboard --confirm SHALL open one pull request with devops pr create that adds .github/labels.yml, .github/workflows/clear-status.yml, openspec/config.yaml and a spec under openspec/specs/, and SHALL NOT push to the default branch.
Scenario: Protected default branch with no OpenSpec folder
- WHEN the fake repository has a protected default branch and no OpenSpec folder, and the command runs with
--confirm - THEN the fake records one pull request with those four paths and no push to the default branch
Requirement: Onboarding prints the webhook step
devops roadmap onboard SHALL print a person step for the Service webhook and its secret, and SHALL NOT create the webhook.
Scenario: Webhook is absent
- WHEN the fake repository has no Service webhook and the command runs with
--confirm - THEN the webhook row reads
missing, the output names the webhook secret anddevops config set service.webhook_secrets, and the fake records no webhook write
Requirement: Onboarding runs the first RAG pass
devops roadmap onboard --confirm SHALL run the existing devops ai rag ingest pass for the repository when service.repos lists it, and SHALL print the service.repos step when it does not.
Scenario: RAG state is absent and service.repos lists the repository
- WHEN the fake RAG service holds no entry for the repository,
service.reposlistsowner/name, and the command runs with--confirm - THEN the fake records one ingest run for
owner/name, both the code and docs collections hold its points, and the RAG row readspresent
Requirement: Onboarding never writes service configuration
devops roadmap onboard SHALL NOT write config.yaml and SHALL print the service.repos edit and the devops k8s deploy-stack step for a person.
Scenario: Repository is absent from service.repos
- WHEN the fake configuration has no entry for the repository and the command runs with
--confirm - THEN
config.yamlis unchanged and the output prints theservice.reposedit and thedevops k8s deploy-stackstep
Requirement: Onboarding is idempotent
A second devops roadmap onboard --confirm SHALL send no write request.
Scenario: Second run after a successful first run
- WHEN the command runs with
--confirma second time on the same fake repository - THEN the fake records zero write requests
Requirement: Onboarding dry run sends no request
devops roadmap onboard --dry-run SHALL send no request and SHALL list every request that a confirm run would send.
Scenario: Dry run on a scratch repository
- WHEN the command runs with
--dry-runon a fake repository with missing prerequisites - THEN the fake records zero requests and the output lists the label, pull request and RAG requests and the person steps of a confirm run
Requirement: Onboarding ends with present rows or person steps
devops roadmap onboard --confirm SHALL end with every row present or with a printed step for a person.
Scenario: Scratch repository with no prerequisites
- WHEN the command runs with
--confirmon a fake repository that has no prerequisites - THEN every row reads
presentor has a printed person step, and no row readsmissingornot readablewithout a printed step
Requirement: Onboarding selects the repository
devops roadmap onboard SHALL use --repo owner/name when given and SHALL default to the repository of the current checkout.
Scenario: Repository override
- WHEN the command runs with
--repo owner/namein a checkout of another repository - THEN every request names
owner/nameand no request names the checkout repository
Requirement: Onboarding prints every person step
devops roadmap onboard SHALL print each step that only a person can do: repository settings, App installation, the Service webhook and its secret, the service.repos edit with devops k8s deploy-stack, and the merge of the onboarding pull request.
Scenario: Person steps on a scratch repository
- WHEN the fake repository has no prerequisites and the command runs with
--confirm - THEN the output names each person step and the command changes no repository setting and installs no App
Requirement: Onboarding documentation describes the path
docs/roadmap/onboard.md SHALL describe the onboarding path in pipeline order, SHALL name each step that stays with a person, and SHALL stay linked from docs/index.md.
Scenario: Documentation inventory check
- WHEN the documentation check runs
- THEN
docs/roadmap/onboard.mdlists the rows in order with the person steps anddocs/index.mdlinks it
Existing Tool Considered
The open, maintained gh CLI (cli/cli, MIT, last activity 2026-11-07), reached through devops gh, covers the GitHub part of the need: it creates the labels, opens the one pull request with the repository files, and reads repository settings and webhook state through gh api. The open, maintained openspec CLI (Fission-AI/OpenSpec, MIT, last activity 2026-11-07) covers the spec files. The gh CLI lacks one command that runs the pipeline steps in order, one present/missing/not readable row per prerequisite, a request-plan --dry-run that lists the label, pull request and RAG requests plus the person steps, the printed person steps, RAG ingestion into both collections under owner/name, and idempotent orchestration across the label creation, the pull request and the RAG pass. The change composes these tools in a thin command and builds no scheduler or workflow engine. The written cost is about 8,000 tokens to build the command and its tests, about 2,000 tokens for each later fix, about 1,000 tokens a month to keep, and about 2 days elapsed.
Key questions
- Should
devops roadmap onboardwriteconfig.yamlwhen the repository is absent fromservice.repos?: No.AGENTS.md:12forbids a change toconfig.yaml, anddocs/roadmap/onboard.mdsays that the command never edits the file. The command prints theservice.reposedit and thedevops k8s deploy-stackstep. The RAG pass refuses a repository thatservice.reposdoes not list, so the RAG step waits for the person's edit. (best practice) [sources: AGENTS.md:12, docs/roadmap/onboard.md, openspec/specs/rag-ingest/spec.md]- Chosen: Print the step. The project rule forbids the write, and the command leaves a service setting with the person who owns it.
- Rejected: Write
config.yaml.AGENTS.md:12forbids the write, and the RAG pass refuses a repository thatservice.reposdoes not list.
- How does the command make a second run send no write?: It reads each prerequisite first and skips a write when the state is present. It reuses an open onboarding pull request in place of a second one. The request plan holds the reads before the writes, so the run and its plan agree. (best practice) [sources: src/devops_cli/roadmap/request_plan.py, src/devops_cli/commands/roadmap.py:1085]
- Chosen: Read before write. A present state needs no write, so a second run sends none.
- Rejected: Unconditional sync. It sends writes on every run and breaks the no-write criterion.
- Which existing path creates the labels that
.github/labels.ymldeclares?:devops gh labels synccreates a missing label, but it also edits a differing label throughedit_label, so the onboarding step must not call it as it is. The step reusesapply_onboarding, which posts only the missing labels and keeps a differing label. (best practice) [sources: src/devops_cli/github/labels.py:151, src/devops_cli/github/client.py:767, src/devops_cli/commands/roadmap.py:1085]- Chosen: Reuse the create-only onboarding path.
apply_onboardingposts only the missing labels and keeps a differing label, which meets the no-patch rule. - Rejected: Call
devops gh labels sync. It also edits a differing label throughedit_label, which the no-patch requirement forbids.
- Chosen: Reuse the create-only onboarding path.
- Which files does the onboarding pull request add?: One pull request adds
.github/labels.yml,.github/workflows/clear-status.yml,openspec/config.yamland a spec underopenspec/specs/. The body puts the GitHub files and the OpenSpec files in one pull request, and the pipeline checks the status workflow as a prerequisite. (best practice) [sources: .github/labels.yml, .github/workflows/clear-status.yml, openspec/config.yaml, docs/roadmap/onboard.md]- Chosen: One pull request for the four paths. The body puts the GitHub and OpenSpec files in one pull request, and one change keeps one review.
- Rejected: One pull request for each step. It adds review load and splits one protected-branch change.
- How does the command handle the Service webhook?: It prints a person step and does not create the webhook. The step names the secret and
devops config set service.webhook_secrets. (best practice) [sources: k8s/README.md, docs/roadmap/onboard.md]- Chosen: Print the webhook step. The secret is a person secret, and the command must not set it.
- Rejected: Create the webhook through the API. The command would need the secret, which a person sets with
devops config set service.webhook_secrets.
- How does the command handle RAG ingestion?: It calls the existing
devops ai rag ingestpass for the repository onceservice.reposlists it. It prints theservice.reposedit and thedevops k8s deploy-stackstep when it does not. The command adds no new indexer and no schedule; the schedule is feat(k8s): Add an Argo workflow to keep the RAG index current #1653. (best practice) [sources: openspec/specs/rag-ingest/spec.md, docs/roadmap/onboard.md]- Chosen: Reuse
devops ai rag ingest. The pass indexes both collections and refuses a repository thatservice.reposdoes not list. - Rejected: Build a new indexer. It duplicates the pass and the schedule that feat(k8s): Add an Argo workflow to keep the RAG index current #1653 delivers.
- Chosen: Reuse
- What does
--dry-rundo?: It sends no request, reads included, and lists every request that a confirm run would send, with the person steps. The command declares the request-plan dry-run class. (best practice) [sources: docs/roadmap/onboard.md, src/devops_cli/roadmap/request_plan.py]- Chosen: No request and a list. The body says no request, and the request plan holds each request that a run makes in order.
- Rejected: Read-only requests. The body says that the dry run makes no request, reads included.
- Which path opens the one pull request when the repository has no OpenSpec folder?:
devops pr create, after fix(pr): pr create fits a repository without openspec #3767 removes the OpenSpec-folder precondition. This item depends on fix(pr): pr create fits a repository without openspec #3767. The change builds no second pull request path. (best practice) [sources: openspec/specs/pull-request-form/spec.md, openspec/config.yaml]- Chosen: Use
devops pr createafter fix(pr): pr create fits a repository without openspec #3767. The project has one pull request path, and fix(pr): pr create fits a repository without openspec #3767 removes the precondition that blocks this repository. - Rejected: Build a second pull request path. It duplicates
devops pr createand breaks the one-tool rule.
- Chosen: Use
- Which repository does the command act on?: The
owner/nameof--repowhen given; else the origin of the current checkout, through the_targethelper. [sources: src/devops_cli/commands/roadmap.py:93] - Does the command loop over
service.repos, or act on one repository?: It acts on one repository:--repo owner/name, or the checkout. The Service row of feat(roadmap): onboard a repository that lacks a project dependency #4664 starts the command for each repository inservice.repos. (best practice) [sources: src/devops_cli/commands/roadmap.py:93, docs/roadmap/onboard.md]- Chosen: One repository per run. The command keeps its
--repocontract, and the per-repository loop stays in the Service row of feat(roadmap): onboard a repository that lacks a project dependency #4664. - Rejected: Loop over
service.reposin the command. The command could not print a row for a repository thatservice.reposdoes not list.
- Chosen: One repository per run. The command keeps its
- How does the command treat a protected default branch?: It opens the one pull request and never pushes to the default branch. The ruleset and the required checks gate the merge, and a person merges. (best practice) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md, CONTEXT.md]
- Chosen: Open a pull request. The ruleset and the required checks gate the merge, and a person merges.
- Rejected: Push to the default branch. A protected branch rejects the push, and CI is the gate of the project.
- Does
docs/roadmap/onboard.mdneed an entry inCONST_DOCS_INVENTORY?: No. The page exists, so the change edits it and adds no document.docs/index.mdalready links it, and an entry is needed only for a document that a pull request adds. [sources: docs/roadmap/onboard.md, docs/index.md, CONTRIBUTING.md:173] - Who turns on issues, sets the default-branch rules, and installs the App on the repository?: A person does, in the repository settings and the App installation page. The command prints these steps and changes no setting and installs no App. (a person decides) [sources: docs/roadmap/onboard.md]
Open questions
- Who turns on issues, sets the default-branch rules, and installs the App on the repository? (a person decides)
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty 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 is a tracking and coordination issue; the blocking work lives in its sub-issues.It removes the one-failure-at-a-time onboarding pain for every new repository added to the roadmap Service.The command orchestrates checks, a pull request, and idempotency over parts that sub-issues already deliver.Both concern the devops roadmap onboard command; the candidate tracks the full six-step pipeline while #3742 delivers only step 2 (labels and workflow files).devops-cli-service commentedon Nov 7, 2026
Refine cannot set this item to Ready at 72744a9 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 8, 2026
Refine cannot set this item to Ready at c56f784 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 8, 2026
Alternatives check: partly
Reason: The searches found no tool that onboards a repository through this roadmap's six-step path, but the open
ghCLI that the issue already reaches throughdevops ghcovers the GitHub part: it reconciles.github/labels.yml, opens the pull request with the GitHub and OpenSpec files, and reaches repository settings and webhook endpoints throughgh api. It does not run the roadmap-specific prerequisite check, plan the requests for a dry run, or print the person-owned steps, so it covers only part of the need.Tool: cli/cli (https://github.com/cli/cli)
Covers:
.github/labels.yml(step 1 label creation).github/labels.yml,.github/workflows/clear-status.yml,openspec/config.yamland a spec, without pushing to a protected default branch (steps 2 and 4)gh apifor the checks of steps 1, 3 and 6Lacks:
present/missing/not readablerow per prerequisite--dry-runthat lists the label, pull request and RAG requests plus the person stepsservice.reposedit withdevops k8s deploy-stack, and the mergeowner/nameTools considered:
Searches run:
Sources:
Checked on 2026-11-08. A person decides what this means for the item. The check changes no label and closes no issue.
dan-petty commentedon Nov 11, 2026
Scope from the generalization plan (2026-11-11)
The tracker #4627 adds these changes to the pipeline.
profile(.devops/roadmap.tomlis valid and names a known preset, feat(roadmap): a toolchain preset sets the implement checks #4635) andkit(copier check-update, feat(roadmap): onboard writes the labels file and the status workflow #3753).clear-status.yml, because the Service clears the status labels (feat(service): clear status labels when an issue closes #4660, owner decision 6 of 2026-11-11).present. Until then, the stage holds the items of a repository withoutopenspec/config.yaml(fix(roadmap): stage holds an item where openspec is not set up #4629).Acceptance criteria (added)
profileandkitrows.devops roadmap onboardprints theprofileandkitrows for each repository inservice.repos.docs/roadmap/onboard.mdsays that the Service row of feat(roadmap): onboard a repository that lacks a project dependency #4664 starts the pipeline.Dependencies (added)
#3753 (the kit) and #4629. #4664 follows this item.
devops-cli-service commentedon Nov 11, 2026
Refine cannot set this item to Ready at 5c71ad4 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 12, 2026
Refine cannot set this item to Ready at 9208717 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 18, 2026
The result in the alternatives block of the issue body changed. Before this check:
partly, tool https://github.com/cli/cli. A person decides what the new result means for the item.Searches (3)
Tools considered:
Searches run:
Sources:
dan-petty commentedon Nov 21, 2026
A service repository now onboards to the cluster with one services entry in dan-petty/homelab
k8s/services/<name>.yaml(instance dan-petty/homelab#80, schema in dan-petty/infra#10 and dan-petty/infra#11). The onboarding pipeline can open that entry as a homelab pull request. It must not write Argo CD Applications, AppProjects, namespaces, Secret rows, alert rows or dashboard rows into devops-cli.dan-petty commentedon Nov 26, 2026
Closed as replaced:
devops repos onboard(#6773, ADR 0035) replaceddevops roadmap onboard.The new command checks the prerequisites, creates the labels, opens the template pull request from dan-petty/infra, handles the webhook and
service.repos, runs the RAG pass and lists the person steps (docs/repos/onboard.md). The one open sub-issue, #3770 (OpenSpec setup), stays open on its own. The template already addsopenspec/config.yaml.