Skip to content

docs(contributing): reconcile "approved and green" with required_approving_review_count: 0 #76

Closed

Description

@kyle-sexton

Summary

CONTRIBUTING.md:17 states:

Pull requests are squash-merged once approved and green.

This repository's base ruleset sets required_approving_review_count: 0. It requires required_review_thread_resolution: true instead — unresolved review threads block the merge, but a formal approval is not required.

So for this repository, the sentence overstates the gate.

Why it was not changed

CONTRIBUTING.md is an org-wide inherited default. Other repositories in the org may well require approvals, and narrowing the sentence to match this one repository's ruleset would be exactly the repo-specific drift that an org-wide default should avoid. The sweeping agent judged that leaving it was the safer call.

The decision

  1. Ratify — the sentence describes intended process across the org; this repo's zero-approval setting is the exception, not the rule. Close unactioned.
  2. Generalize the wording — e.g. "once review is complete and CI is green", which is true whether or not a given repo requires formal approval.
  3. Confirm the org-wide reality first — check whether any repo in the org actually sets a nonzero approval count. If none do, the sentence is simply wrong everywhere and option 2 becomes clearly correct.

Option 3 could not be done from the sweep's session, which was scoped to this repository.

Scope

Trivial to change; the question is which wording is true org-wide.

Provenance

Deferred judgment call from an automated repository-wide documentation-staleness sweep (/code-tidying:batch-simplify repo docs).

Activity

  1. added theissue type on Aug 23, 2026
  2. added
    needs-triage
    on Aug 23, 2026
  3. self-assigned this
    on Aug 23, 2026
  4. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  5. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage notes

    Verification. Read CONTRIBUTING.md on main (current text, post house-prose-convention pass in #79): step 5 now reads "Address review feedback. Pull requests are squash-merged once approved and their checks pass." (the "and green" wording from the issue body was already reworded by #79's unrelated prose pass; the underlying concern — the word "approved" — was untouched and still stands).

    Ran the issue's own option 3 to completion: confirmed the org-wide reality via the org's Pulumi-managed source of truth (melodic-software/github-iac, per this org's standing convention that GitHub org/repo settings are IaC-owned there):

    • docs/adr/0007-no-required-approving-reviews.md (Accepted, 2026-07-15): the base ruleset sets RequiredApprovingReviewCount = 0 explicitly, org-wide, and states this applies "to every governed repo's default branch."
    • OrgRulesets.cs: RequiredApprovingReviewCount is set only once, on the base ruleset (= 0); no other ruleset (ci-gate, security-review-gate, signing, ci-runner-release-tags) touches approving-review count, and no per-repo ruleset override exists.
    • ADR 0007's own revisit trigger refactor: align Task template label to type: task #2 ("a governed repo needs stricter review independent of the org-wide default → add a per-repo opt-in") confirms no such opt-in exists today — if one did, the ADR would already document it as a precedent instead of a hypothetical.

    So: no repo in the org sets a nonzero approving-review count. Per the issue's own framing, "If none do, the sentence is simply wrong everywhere and option 2 becomes clearly correct."

    Decision defaulted: Option 2 (generalize the wording) — veto before merge. The recommended fix rewords the sentence to describe the actually-enforced gates (required status checks green, required review threads resolved) without asserting a formal approving-review requirement that is 0 everywhere. The maintainer-vetoable alternative is Option 1 (ratify as-is, close unactioned) — reversible by simply not merging the resulting PR, or by closing it, if the intent is for the sentence to read as org-wide aspirational policy rather than a description of the enforced gate.

    Not a duplicate; not already implemented (no open or merged PR touches this sentence beyond #79's unrelated prose pass). No docs/out-of-scope/ ledger in this repo. Independently re-checked issue #65 (also docs(contributing), same file): #65 targets Workflow step 4 (missing mention of the Conventional-Commits PR-title requirement); #76 targets step 5 (the squash-merge gate sentence). Different lines, different underlying facts, no shared decision — not clustered.

    Agent Brief

    Type: Task
    Summary: Reword CONTRIBUTING.md's squash-merge sentence (Workflow, step 5) so it no longer implies a formal approving-review requirement, since the org's base ruleset sets required_approving_review_count: 0 for every governed repo's default branch and no repo opts into a stricter requirement.

    Current behavior:
    The Workflow section's step 5 reads: "Address review feedback. Pull requests are squash-merged once approved and their checks pass." The word "approved" reads as a formal approving-review gate. The org's actual base branch-protection ruleset (Pulumi-managed in melodic-software/github-iac) requires zero approving reviews (required_approving_review_count: 0) org-wide, while it does require required status checks to pass and required review threads to be resolved before merge (required_review_thread_resolution: true). The sentence overstates the approval gate for every repo it applies to — CONTRIBUTING.md is the org-wide inherited default, not a single repo's file.

    Desired behavior:
    The sentence accurately describes the merge gate that is actually enforced org-wide: checks must be green, and any open review threads must be resolved — without asserting or implying that a formal approving review is required. Keep the sentence generally true for every repo that inherits this file (do not narrow it to describe only this repo's ruleset, and do not invent per-repo exceptions). A repo-specific CONTRIBUTING.md override remains free to say something stricter for itself, per the file's existing override clause.

    Key interfaces:

    • CONTRIBUTING.md — Workflow section, the step describing squash-merge conditions (the sentence following the pull-request-opening step). Behavioral contract only: rewrite the sentence's content; do not restructure the surrounding numbered list or other steps.
    • Doc-prose conventions established by the org's recent house-style pass (e.g. concise, active wording, consistent with the rest of the Workflow section) — match that voice rather than introducing a new one.

    Acceptance criteria:

    • The reworded sentence does not use "approved" (or equivalent formal-approval language) to describe the squash-merge condition, since that gate does not exist org-wide today.
    • The reworded sentence still communicates the merge gates that are actually enforced: required checks passing (CI green) and required review threads being resolved.
    • The sentence remains accurate and generally true across every repo inheriting this org-wide default (not narrowed to describe only one repo's configuration).
    • No other content in CONTRIBUTING.md is changed beyond this sentence.

    Out of scope:

    • Workflow step 4 (the PR-title / Conventional Commits gap) — tracked separately as issue docs(contributing): document the Conventional Commits PR-title requirement that CI enforces #65.
    • Any change to the base ruleset, required_approving_review_count, CODEOWNERS, or any other Pulumi/github-iac-managed GitHub configuration. The 0 approving-review setting is an intentional, ADR-recorded decision (github-iac ADR 0007) and is not in scope to change; this item is documentation-only.
    • Adding a repo-specific CONTRIBUTING.md override for this repo (.github) or any other repo.
  6. added
    agent-ready
    status: ready
    and removed
    needs-triage
    on Aug 23, 2026
  7. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI in the autonomous worker lane.

    Lease takeover. The prior lease on this item was held by MELO-LAP-001-triage-202608230449 and has expired — it was acquired and last renewed at the timestamp in that lease comment, with a 1-hour TTL, and was never renewed or released.

    Taking it over as melo-lap-001-worker-202608230449 to carry the item to a review-ready pull request.

    For the record, this is a lane-protocol observation rather than a collision: the triage lane takes a lease while triaging and does not release it when it flips an item to agent-ready, so every handed-off item is unavailable to the worker lane until its lease lapses about an hour later. Releasing the lease as part of the agent-ready flip would remove the delay entirely.

  8. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  9. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI in the autonomous worker lane (melo-lap-001-worker-202608230449).

    Handoff: premise verified at both the tracked Pulumi source and the live base ruleset (required_approving_review_count: 0, ~ALL repos, active) — it holds; reworded Workflow step 5 in #95, review-ready and awaiting human merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readystatus: ready

Type

Fields

No fields configured for Task.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions