Skip to content

Let configure.sh Configure a Repository Whose Registry Entry Is Not on Main Yet #4061

Closed

Description

@ptr727

Problem

STANDUP.md section 4, docs/repo-config.md, and repo-config/README.md all say to run configure.sh apply from a hub checkout at main. A repository being stood up gets its registry entry through a feature pull request into develop, and that entry reaches main only at the next hub promotion. So between those two points, the documented command runs against a registry that does not know the repository.

The standup then has a circular wait. The new repository's first promotion needs its secrets and rulesets, those come from configure.sh, and the documented way to run configure.sh waits on an unrelated hub promotion.

What happens at main today

Take a repository example-repo whose entry is on develop only, and declares pullRequestCheck: false:

  1. scripts/agent_policy.py entry_for returns {} for an unknown name, so rulesets reads the absent field as true and keeps the required status check. apply writes a ruleset requiring a check nothing posts, which blocks every promotion of that repository.
  2. configure.sh skips the secrets group with the reason that the repository has no entry in the registry.
  3. apply --checkout renders the agent policy files from the default policy rather than from the entry.

The run can still look like a normal apply, since only the secrets group says anything about the missing entry. The wrong ruleset is the part that fails silently.

Workaround

Running configure.sh apply from a detached hub checkout at origin/develop works, because that checkout holds the entry. It is outside what the docs permit, so each standup has to rediscover it and ask for permission.

Proposed fix

  1. Make configure.sh apply refuse a repository with no entry in the registry it read, before any write, naming the registry and saying the entry may be on develop only. Failing closed removes the silent wrong ruleset whichever branch the checkout is on.
  2. State the supported path in STANDUP.md section 4, docs/repo-config.md, and repo-config/README.md: a repository whose entry has not been promoted is configured from a hub checkout at develop, once that entry has merged there. Every other run stays on main.
  3. Add a test for the refusal, using a constructed registry with no entry for the named repository.

Open question

Whether configure.sh should also confirm the develop case is the narrow one above, for example by refusing a non-main checkout when the entry is already on main, or whether stating the rule in the docs is enough.

Activity

  1. added
    bug
    script
    on Nov 11, 2026
  2. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    Answered by the maintainer, 2026-11-11, on the open question. Stating the rule in the docs is enough. configure.sh refuses a repository missing from the registry it read, per proposed fix 1, and does not add a second check refusing a non-main checkout once the entry is on main.

  3. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim, round 3 (2026-11-11). Branch feature/configure-unregistered-refusal, group: #4061.

    Predicted files:

    • repo-config/configure.sh
    • tests/test_configure_unregistered.py
    • STANDUP.md
    • docs/repo-config.md
    • repo-config/README.md
    • .agents/skills/standup-a-repo/SKILL.md
    • .github/skills/standup-a-repo/SKILL.md
    • .claude-plugin/fleet-skills/skills/standup-a-repo/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/standup-a-repo

    Reserved by adjudication, 2026-11-11, pending the maintainer (this change makes each false, and each is canonical text a standard worker does not edit):

    • OPERATIONS.md
    • AUDIT.md
    • .agents/skills/branching-and-release-model/references/branch-protection-and-promotion.md
    • .github/skills/branching-and-release-model/references/branch-protection-and-promotion.md
    • .claude-plugin/fleet-skills/skills/branching-and-release-model/references/branch-protection-and-promotion.md
    • .claude-plugin/fleet-skills/.source-digests/branching-and-release-model

    Grown by adjudication, 2026-11-11:

    • .agents/skills/audit-a-repo/SKILL.md
    • .github/skills/audit-a-repo/SKILL.md
    • .claude-plugin/fleet-skills/skills/audit-a-repo/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/audit-a-repo

    Grown by adjudication, 2026-11-11:

    • tests/test_configure_archived.py

    Parked by adjudication, 2026-11-11: this group also needs GOVERNANCE.md "Hub-Hosted Tooling" for a sentence its change puts in disagreement. feature/lint-helper-no-companions holds that file, so this group parks until that branch merges, then takes it.

  4. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    Answered by the maintainer, 2026-11-11, on how this group finishes. The refusal makes three carried statements false: OPERATIONS.md around lines 81 and 87, the branching-and-release-model branch-protection reference, and AUDIT.md line 103, which runs check from main. A standard-tier worker does not edit carried canonical text, so the group is re-dispatched at the frontier tier on the same branch. That worker keeps its two local commits and makes the smallest edits that keep those three statements true.

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

    bugscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions