Skip to content

z-shell/.github main ruleset drifted: missing pull_request and non_fast_forward rules #512

Description

@ss-o

What happened

Manually running the new scripts/repo-settings-audit.rb (PR #511) against live z-shell/.github found that ruleset 19646747 on main currently has only:

deletion
required_linear_history
required_signatures
copilot_code_review

That is missing pull_request and non_fast_forward, both of which #478's 2026-07-28 "Gated apply: z-shell/.github ruleset reconciliation" comment explicitly recorded as present immediately after that apply:

The single remaining main ruleset now contains exactly: deletion, non_fast_forward, required_linear_history, required_signatures, pull_request (code-owner review, zero approving-review count), and copilot_code_review (review on push and drafts).

Confirmed directly via:

gh api repos/z-shell/.github/rulesets/19646747

ruleset.updated_at is 2026-08-16T13:12:29.895+01:00, so the rules changed sometime after 2026-07-28. Nothing in this session changed the ruleset -- this is a read-only finding from scripts/repo-settings-audit.rb, confirmed by direct gh api inspection.

Impact

  • Per decisions/0013-repository-settings-baseline.md, class 4 (.github) requires pr_required and force_push_blocked ("R"). Both are currently unsatisfied on this repo's own main branch -- the same "declared but unenforced" pattern ADR-0013 and ci: enforce commit-trailer and commit-message policy org-wide, not in one repo #464 both describe, now on the meta repo itself.
  • No classic branch protection exists as a fallback (404 on branches/main/protection), so nothing else is currently blocking a direct push or a force-push to main.

Suggested fix

Restore the ruleset to the shape #478's comment recorded, per runbooks/branch-protection.md's "Reference ruleset shape" section (main: deletion, required_linear_history, pull_request with code-owner review and 0 approving-review count, non_fast_forward, copilot_code_review, plus required_status_checks once a guard workflow exists). Verify with gh api repos/z-shell/.github/rulesets/19646747 after applying, and re-run scripts/repo-settings-audit.rb --repo z-shell/.github to confirm it reports clean.

Agent handoff

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