Skip to content

The spec, contracts/workflows.md and the proposal state the settings of Brett Heap's release acts that release.yml's header names, and that only the admin role creates, moves or deletes a v* tag (closes opensoft/openRepoTools#279) - #13

Merged
brettheap merged 4 commits into
mainfrom
pick/279-spec-lane2
Nov 9, 2026

Conversation

@brettheap

@brettheap brettheap commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openRepoTools-2
Claim: opensoft/openRepoTools#279 (comment)

The spec side of this issue's code PR. These picks change text only. spec.md (only its Assumptions
section, the passage on the acts Brett Heap makes outside the repository: FR-029 is unchanged) and
contracts/workflows.md now state the settings that release.yml's header names and no document did:
each environment's self-review allowed and administrators not bypassing, and the tag ruleset's rule
and its name in opensoft/openRepoTools. They say that the workflow reads only that each environment
names a required reviewer (any reviewer, not brettheap in particular) and the deployment limit. The
last pick makes the OpenSpec change release-tags-pypi's proposal recommend the same ruleset, one on
the tags v* under which only the admin role creates, moves or deletes one, following Brett Heap's
decision of 2026-10-21 that the admin role is fine.

The picks, from lane openRepoTools-2's branches in opensoft/openRepoTools, each made with git cherry-pick -x and followed by its source commit:

  • The spec and contracts/workflows.md state the settings of Brett Heap's release acts that release.yml's header names and no document did: self-review allowed, administrators not bypassing, and the tag ruleset's rule and name
    (cherry picked from commit 07691a097a336aad1236e254ed0aa99174af8032)
  • contracts/workflows.md says the workflow reads that each environment names a required reviewer, any reviewer and not brettheap in particular, where it said "the reviewer"
    (cherry picked from commit 682cab785bd5040b9ada741541c02d82daef8210)
  • openspec/changes/release-tags-pypi/proposal.md recommends a ruleset on the tags v* under which only the admin role creates, moves or deletes one, where it said a ruleset that lets only him
    (cherry picked from commit 7e5d7cce15ec439c7aecbf5f6ccb333af93b2448)

Closes opensoft/openRepoTools#279.

Lane: openRepoTools-2
Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

Summary by Sourcery

Clarify the release policy and contracts for environment approvals and admin-controlled v* tags.

Enhancements:

  • Document the required release-environment settings, workflow validation scope, and tag protection policy for PyPI releases.
  • Align the release proposal with an admin-only v* tag management policy.

Documentation:

  • Clarify in the release specification and workflow contracts that environments require reviewers and deployment limits, while self-review, administrator bypass, and tag ruleset settings are documented but not workflow-checked.

Brett Heap and others added 3 commits November 7, 2026 18:18
…s release acts that release.yml's header names and no document did: self-review allowed, administrators not bypassing, and the tag ruleset's rule and name (#279)

release.yml's RELEASING header says what Brett Heap creates in the repository
that releases: both environments with brettheap as the required reviewer,
self-review allowed, administrators not bypassing and one tag rule `v*`, and a
ruleset on the tags `v*`. spec.md (FR-029 and "Brett Heap makes the acts
outside the repository") and contracts/workflows.md stated the reviewer, the
limit and "the `v*` tag rulesets", and neither of the other two environment
settings nor the ruleset's rule or name.

- spec.md's assumption now lists each environment's four settings and the
  ruleset (named "Release tags v*" in opensoft/openRepoTools, and only the
  admin role creates, moves or deletes a `v*` tag), and says that release.yml
  reads only the reviewer and the deployment limit.
- contracts/workflows.md's header section 5 says the header carries them, and
  that the workflow reads those two and nothing else of these acts.

Checked against what is configured, by read-only GitHub API calls at
2026-10-21T02:50Z, opensoft/openRepoTools: both environments have
can_admins_bypass false, one required_reviewers rule naming brettheap with
prevent_self_review false, custom_branch_policies true and exactly one policy,
type tag, `v*`; ruleset 25471926 "Release tags v*" is a tag ruleset, active, on
refs/tags/v*, with the rules creation, update and deletion and the admin role
(RepositoryRole 5) as its one always-bypass actor. Lane 3 read the same on
2026-10-20 (#228, comment 6290094699). openRepoShape's two environments carry
the same settings, and its v1.1.0 release notes record "no admin bypass and one
deployment rule" and its tag ruleset as made on Brett Heap's word of
2026-10-16T12:06:40Z.

What the record does not hold is Brett Heap's own word on self-review and on
administrators not bypassing as policy for these two repositories: the issue
says only he can confirm them, so lane 3 should put this text to him before it
reaches openRepoTools-spec. The OpenSpec change release-tags-pypi is left as
it is: its proposal only recommends the ruleset, and its task 4.1 is a to-do.

Lane: openRepoTools-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 07691a097a336aad1236e254ed0aa99174af8032)
…names a required reviewer, any reviewer and not brettheap in particular, where it said "the reviewer" (#279)

RV-C's review of this branch (SHOULD S1), the spec side of the code commit
before this one. Section 5 of "The header" said "The workflow reads the
reviewer and the deployment limit", which reads as if the workflow compared
the reviewer with brettheap. It never does: the build's step 5 and each upload
job's re-check test only that the environment names some required reviewer,
and the issue itself says "(any, not brettheap in particular)". The sentence
now says that, as the contract's own step 5 list ("each names at least one
required reviewer") and spec.md's assumption ("a required reviewer") already
do.

Not touched, and waiting for Brett Heap's word: RV-C's MUST M1, the three
settings that spec.md's assumption and this section's list state as his acts
(self-review allowed, administrators not bypassing, and only the admin role
creating, moving or deleting a `v*` tag). Nothing here changes any of the
three.

Part of #279.

Lane: openRepoTools-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 682cab785bd5040b9ada741541c02d82daef8210)
…n the tags `v*` under which only the admin role creates, moves or deletes one, where it said a ruleset that lets only him (#279)

RV-C's review of this branch (MUST M1) found that 07691a0 states the tag
ruleset's scope as "only the admin role creates, moves or deletes one"
(spec.md:914-921, contracts/workflows.md:162-166) while the proposal, at
proposal.md:596-597, still recommended a ruleset "that lets only him create,
move or delete one". Its fix says to bring proposal.md:596-597 into line.

Brett Heap decided M1 on 2026-10-21, in words the coordinator relayed to lane
2: "the admin role is fine, keep it as written", so 07691a0's three settings
stand. Of this proposal he then said: "yes, update the proposal to say the
admin role". The recommendation now says what the spec says, in the spec's
words: a ruleset on the tags `v*` under which only the admin role creates,
moves or deletes one. The live ruleset 25471926, "Release tags v*", has the
admin role (RepositoryRole 5, always) as its only bypass actor, so the
proposal and the ruleset now agree.

Nothing else in proposal.md changed and no account is named. It was the only
place in openspec/, specs/ and docs/ that said "only him".

Part of #279.

Lane: openRepoTools-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 7e5d7cce15ec439c7aecbf5f6ccb333af93b2448)
@sourcery-ai

sourcery-ai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Documentation

Read the specification and workflow contract together to review the stated release-environment and tag-ruleset settings and the limits of what the workflow checks.

  • specs/006-release-pypi/contracts/workflows.md L160-172
  • specs/006-release-pypi/spec.md L925-935, L940-942

Review the proposal’s recommendation that the v* tag ruleset allows only the admin role to create, move, or delete tags.

  • openspec/changes/release-tags-pypi/proposal.md L596-597

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="specs/006-release-pypi/spec.md" line_range="928-929" />
<code_context>
+  - the `testpypi` and `pypi` environments, in both repositories in turn,
+    each with:
+    - brettheap as the required reviewer;
+    - self-review allowed, because lane sessions act as brettheap, the one
+      reviewer;
+    - administrators not bypassing, so that no account, an administrator's
+      included, skips the approval;
</code_context>
<issue_to_address>
**Unconfirmed policies become requirements**

When brett Heap has not confirmed the self-review and administrator-bypass settings, `spec.md` presents those settings as Brett Heap's choices, and the contract makes them requirements, so implementers treat unconfirmed release-governance policy as settled and the spec misstates his intent.

Mark both settings unresolved pending Brett Heap's confirmation in the spec and contract.

Also at `specs/006-release-pypi/contracts/workflows.md:162-166`.
</issue_to_address>

Sourcery assessment

Needs a human reviewer. 1 finding to address first, and the spec changes who may create, move, or delete v* release tags from Brett alone to the GitHub admin role; an authorized admin could therefore trigger a release under a policy that is too broad, and the resulting package publication cannot be undone by reverting this documentation. This is a release-authorization decision, not merely wording.

Blocking findings: specs/006-release-pypi/spec.md:929


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread specs/006-release-pypi/spec.md Resolved
The in-place merge of runbook v9: the stack grows by this clean merge, with no force-push.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant