Skip to content

Tracker: .agents/skills/operational-vs-release-workflow/references/branch-protection-and-promotion.md #1413

Closed

Description

@ptr727

Tracker for full-content review findings against the canonical unit
.agents/skills/operational-vs-release-workflow/references/branch-protection-and-promotion.md,
opened because a local-strict-review carried-content pass raised findings against text no branch
was changing and there was no tracker to gather them on.

Retitle this issue if the unit key moves.

From the pass on fix/1403-carried-hub-only-paths, both pre-existing

1. The promotion section states a release-model rule as if it held on both models.

develop's required_linear_history plus PR rulesets forbid resolving on develop (no merge
commit, no force-push)

This is stated unconditionally, in the file whose entire subject is that the two workflow models
differ. On the operational model develop carries only deletion, non_fast_forward, and
required_signatures: no linear-history rule and no pull request rule, so a merge commit pushed
straight to develop is mechanically allowed there.

An operational-repository reader is given, as the reason for the throwaway-branch detour, a rule
their repository does not have. When they check and find no such rule, the sentence leaves them
nothing to hold on to, because the rule that actually forbids it on both models, forward-only and
never back-merge, is stated in a different unit of the same file.

2. The EOL-conflict recipe does not complete if followed literally.

take develop's side for the EOL-conflicted files (git checkout --theirs <file>) ... then
open that branch into main

git checkout --theirs rewrites the working-tree file and leaves the path unmerged in the
index
, so the next step, committing the merge so the branch can be pushed, fails with
"Committing is not possible because you have unmerged files". Every other step in this recipe is
given at command level, so nothing cues the reader that a git add of each resolved path is
theirs to supply.

This one is worth ranking above an ordinary prose defect: the recipe runs during a
develop -> main promotion, which is exactly when an agent is least well placed to improvise, and
the failure appears two steps after the omission.

Activity

  1. ptr727 commented on Sep 7, 2026

    @ptr727
    OwnerAuthor

    Five more pre-existing findings, from the pass over Configuring branch protection: don't hand-build the rules on fix/1403-carried-hub-only-paths. That branch removes a hub-only pointer
    from this unit and changes nothing else in it, so none of these is introduced.

    Two of them can cause a wrong destructive action, so they are listed first.

    1. "create exactly two rulesets named develop and main from the hub's
    repo-config/*.json payloads" names the wrong file set, in both directions.

    The glob matches settings.json and labels.json, which are not rulesets, and does not match
    repo-config/operational/develop.json, which is the develop payload for a repository whose
    registry workflowModel is operational. HomeAutomation-Config is one today.

    A reader following the glob to see what they are applying takes the release develop.json for
    an operational repository, locking a deliberately direct-push branch behind pull-request and
    required-status-check rules. The sentence two lines later does say the registry selects the
    payload, so the glob contradicts the mechanism described beside it.

    2. "Delete all classic branch-protection rules and stray rulesets" is over-broad and names
    no actor, for a destructive act.

    "Stray" is defined nowhere, so the only available reading is "any ruleset the two payloads do not
    name". Under it a reader deletes a deliberately created tag ruleset or release/* ruleset, and an
    organization-level ruleset that merely surfaces on the repository, which they then go and delete
    at organization scope to reach the stated "exactly two", affecting other repositories.

    Nothing in the tooling supports that reading. configure.sh reads and writes back live
    bypass_actors because it is "a human decision, so this script neither grants nor revokes it",
    leaves undeclared labels standing because "this script deletes nothing", and its check never
    reports an extra ruleset as drift.

    The actor is missing too. The instruction sits two sentences before "Run repo-config/configure.sh apply ...", so the paragraph reads as describing what the script does. It is not: the script
    create-or-updates two rulesets by name, deletes nothing, and does not touch classic branch
    protection at all. This is a human step, by hand, against the live repository, needing admin, and
    the unit says none of that.

    3. "The names are load-bearing because governance content and workflows reference them" gives a
    reason that is not true of workflows.
    No workflow references a ruleset name.
    test-pull-request.yml references the ruleset-bound required-check context string, and
    merge-bot-task.yml references each base branch. A reader who checks, finds no workflow
    reference, and concludes the constraint is decorative will rename a ruleset. The real consequence
    goes unstated: configure.sh matches on the payload's name, so apply then creates a duplicate
    and check reports ruleset 'develop' missing.

    4 and 5. Two more passages state release-model rules unqualified, extending the finding
    already filed above. Lines 32-33, "develop's required_linear_history plus PR rulesets forbid
    resolving on develop", and lines 55-58, "required_linear_history still enforces linearity ...
    and the required Check pull request workflow status job still gates merges", are both false for
    an operational repository: repo-config/operational/develop.json carries only deletion,
    non_fast_forward, and required_signatures. So the "Why both rulesets omit 'Require branches to
    be up to date'" section reasons about a flag that ruleset has no rule to hold.

  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions