Skip to content

chore(repos): bring the 7 existing repositories to the baseline #6784

Open

Description

@dan-petty

Problem

Design and owner decisions: #6773 (design comment and decision comment of 2026-11-22). The settings of the 7 existing repositories differ (2026-11-22 table on #6773).

Proposed remedy

  • Run devops repos onboard --plan for devops-cli, infra, devtools, danielpetty.com, homelab, vibes and devcontainer-features, record the pending changes, and the owner runs --confirm for each.

Acceptance criteria

  • devops repos onboard --all --plan reports no pending change.

Person steps

  • The owner runs --confirm for each repository.

Dependencies

Alternatives check of 2026-11-23: not-applicable.
Class: chore, no search.
Tool: none found.

Proposed design

Problem statement

The settings of the seven existing repositories named in the issue differ from the baseline that devops repos onboard applies. The owner must run the command with their own gh login, because only a person changes repository settings. The issue changes no file in devops-cli; its proof is the live devops repos onboard --all --plan check for the seven repositories.

Acceptance criteria

Requirement: Plan lists the pending rows before confirmation

devops repos onboard dan-petty/<name> --plan SHALL list each pending row of each of the seven repositories before the owner confirms it.

Scenario: Plan before the confirmations

  • WHEN the owner runs devops repos onboard dan-petty/<name> --plan for devops-cli, infra, devtools, danielpetty.com, homelab, vibes and devcontainer-features before any confirmation
  • THEN the command lists each row that differs from the baseline for that repository and exits 1 when a row is pending

Requirement: Pending a person after the merge

After the plan pull request merges, the owner MUST run devops repos onboard dan-petty/<name> --confirm for each of the seven repositories.

Scenario: Owner runs the confirmations after the plan merge

  • WHEN the owner runs devops repos onboard dan-petty/<name> --confirm with their own gh login for the seven repositories after the plan pull request merges
  • THEN each command exits 0 and reports no row with state failed

Requirement: The seven repositories reach the baseline

devops repos onboard --all --plan MUST report clean for the seven repositories after the owner confirms them and their template pull requests merge.

Scenario: Drift check after the confirmations

  • WHEN the owner runs devops repos onboard --all --plan with their own gh login after the template pull requests of the seven repositories merge
  • THEN the command reports clean for devops-cli, infra, devtools, danielpetty.com, homelab, vibes and devcontainer-features

Existing Tool Considered

The alternatives check of 2026-11-23 in the issue body returned not-applicable with the tool line none found. The project command devops repos onboard covers the need, and ADR 0035 records that it owns the repository settings. The command uses the open Copier program to render the baseline. This issue builds no code, so the cost to build, keep and fix it is zero tokens and zero time. No external tool is adopted.

Key questions

  • Which repositories does this issue bring to the baseline?: The seven repositories named in the issue: devops-cli, infra, devtools, danielpetty.com, homelab, vibes and devcontainer-features. --all --plan reads every repository of service.repos, so the final check asserts the state of these seven and makes no claim about other repositories. [sources: docs/repos/onboard.md]
  • Does the issue change any file in devops-cli?: No. The command already exists, and the work is live GitHub settings plus the template pull requests that the command opens in the target repositories. No pull request of devops-cli delivers it. [sources: AGENTS.md, docs/adr/0035-the-onboard-command-owns-the-repository-settings.md, docs/repos/onboard.md]
  • Which flags does the owner pass to devops repos onboard for an existing repository?: The owner runs devops repos onboard dan-petty/<name> --confirm with no release flag. The flags --release-type and --release-flow/--no-release-flow give answers only before .copier-answers.yml exists. After the first render the command refuses a flag that gives another value, with exit status 2. (best practice) [sources: docs/repos/onboard.md]
    • Chosen: Use the answers file. The existing repositories already have .copier-answers.yml, so the command takes their release answers and no flag is refused.
    • Rejected: Pass --release-type or --no-release-flow. The command refuses a flag that gives another value after the first render, with exit status 2.
  • How does devops-cli get the python release type?: The owner decision on feat(repos): onboard a repository with one command #6773 sets python. The existing .copier-answers.yml holds the release answers, so the owner changes the answer with copier update --data <question>=python if the file does not hold it. The owner does not pass --release-type, because the command refuses that flag after the first render. (best practice) [sources: docs/repos/onboard.md]
    • Chosen: Set the answer in .copier-answers.yml. The answers file wins over the flags after the first render.
    • Rejected: Pass --release-type python. The command refuses the flag when the answers file holds another value.
  • Does the nightly read-only Job prove the seven repositories?: No. The nightly Job uses the App token, and rows 2 and 10 can be not readable with that token. The owner runs the proof with their own gh login, which reads those rows. [sources: docs/repos/onboard.md]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#6773

Activity

  1. added
    type/chore
    source/agent
    status/new
    value/medium
    effort/low
    scope/repos
    on Nov 22, 2026
  2. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 22, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 23, 2026
  5. devops-cli-service commented on Nov 23, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  6. dan-petty commented on Nov 23, 2026

    @dan-petty
    OwnerAuthor

    Plan of 2026-11-23 (devops repos onboard --all --plan in a manual run of CronJob repos-drift, runner image with copier, template dan-petty/infra v0.8.0). service.repos holds 9 repositories, not 7.

    Repository Pending rows
    devops-cli 3, 9, 10, 11 (row 2 is a false drift, see below)
    infra 2, 3, 9, 10, 11
    devtools 2, 3, 9, 10, 11
    homelab (private) 2, 3, 8, 9, 11
    danielpetty.com (private) 2, 3, 8, 9, 11
    vibes 2, 3, 5, 8, 9, 10, 11
    devcontainer-features 2, 3, 5, 8, 9, 10, 11
    dreamscaper 2, 3, 5, 8, 9, 10, 11
    dotfiles 2, 3, 5, 8, 9, 10, 11

    Row 6 is a person step in the 4 repositories that get a release flow (the release key), and row 5 needs github.release_app_client_id in the config of the person.

    Facts that the person checks before --confirm:

    • Row 2 on devops-cli is not a real change. The login of the person reads squash only, PR_TITLE, PR_BODY, auto-merge, update branch and delete branch, the same as the baseline. The read-only App token of the Job does not get these fields, and the row counts a missing field as a difference (new bug issue). The other 8 repositories differ for real.
    • Row 3 is real in devops-cli: vulnerability alerts off, immutable releases off, CodeQL default setup not configured, and can_approve_pull_request_reviews true.
    • Row 10 on devops-cli puts the baseline ruleset main, which has no code_coverage rule. The live ruleset has one, so --confirm removes it.
    • Row 9 on devops-cli adds version.txt, because the template answers default to release type simple. devops-cli uses python.
    • Release flow: vibes, devcontainer-features, dreamscaper and dotfiles are public, so the template gives them release.yml, release-please files and version.txt.

    Command for each repository, after those choices: devops repos onboard dan-petty/<name> --confirm (--release-type, --release-flow and --only as chosen).

  7. dan-petty commented on Nov 23, 2026

    @dan-petty
    OwnerAuthor

    Owner decisions of 2026-11-23 on the plan above, as recommended:

    The person runs these from a devcontainer on devtools 1.1.3 or later (it has copier), after devops config set github.release_app_client_id <value>:

    devops repos onboard dan-petty/devops-cli --release-type python --only 2,3,9,11 --confirm
    devops repos onboard dan-petty/infra --confirm
    devops repos onboard dan-petty/devtools --confirm
    devops repos onboard dan-petty/homelab --confirm
    devops repos onboard dan-petty/danielpetty.com --confirm
    devops repos onboard dan-petty/vibes --no-release-flow --confirm
    devops repos onboard dan-petty/devcontainer-features --no-release-flow --confirm
    devops repos onboard dan-petty/dreamscaper --no-release-flow --confirm
    devops repos onboard dan-petty/dotfiles --no-release-flow --confirm
    

    After #6876 and a release of infra#62: devops repos onboard dan-petty/devops-cli --only 10 --confirm. Then the acceptance check is devops repos onboard --all --plan with no pending row.

  8. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor

    Returning #6784 because bringing the seven repositories to baseline requires live GitHub repository-settings changes reserved to a person and changes no file in the repository:

    • Under AGENTS.md, Only a person changes repository settings (devops repos onboard --all --confirm across devops-cli, infra, devtools, danielpetty.com, homelab, vibes, and devcontainer-features).
    • Checked issue chore(repos): bring the 7 existing repositories to the baseline #6784 acceptance criteria (Plan lists pending changes and No pending change after confirmation) and verified 0 sub-issues: both scenarios verify live devops repos onboard --all --plan after the owner runs --confirm, with no code, test, or documentation changes deliverable in a pull request.
  9. added
    status/new
    and removed
    status/ready
    on Nov 25, 2026
  10. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions 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

  11. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    Row 10 was applied to dan-petty/devops-cli on 2026-11-26 at 15:51 UTC, while #6876 is open. The decision of 2026-11-23 kept it pending. The main ruleset lost the code_coverage rule and has lower CodeQL, code quality and review thread settings (#7326), and it requires eight check names that the release pull request never reports (#7318). A person restores the ruleset. Do not run row 10 on devops-cli again before #7326 is fixed.

  12. dan-petty commented on Nov 27, 2026

    @dan-petty
    OwnerAuthor

    Evidence from dan-petty/homelab, 2026-11-27: a merge that was not up to date broke a check on main.

    • The live ruleset main of homelab has required_status_checks: [] and strict_required_status_checks_policy: false, as github/repository.yaml of the template says.
    • dan-petty/homelab#517 (Renovate) moved the dashboards ref to devops-cli v0.224.1. dan-petty/homelab#505 then merged with the six other devops-cli pins at v0.224.0. Its checks ran on a head without fix(review): keep findings the pipeline lost before the report #517.
    • make k8s-parity on main now fails: "the pins of devops-cli do not name one release tag". Each pull request of homelab gets this failure until dan-petty/homelab#521 (all seven pins to v0.224.2) merges.

    Onboard keeps strict_required_status_checks_policy from the template (settings_rows.py changes only the list of checks). So --confirm for homelab adds required checks, but a pull request can still merge on checks of an old base. A strict policy, or a merge queue, would have refused this merge. That is a decision for the owner, because each Renovate pull request then needs a rebase before it merges.

  13. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions 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

  14. added
    status/ready
    and removed
    status/new
    on Nov 28, 2026
  15. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. 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/lowpriority/p2-mediumscope/repossource/agentstatus/readytype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions