GeezerVison is showing github.com — rulesets: developing-today/code — replace classic-only protection with separate force-push + deletion rulesets, admins exempt (#7010 follow-up) · Issue #8442 · developing-today/code
rulesets: developing-today/code — replace classic-only protection with separate force-push + deletion rulesets, admins exempt (#7010 follow-up) #8442DescriptionRemediation follow-up from the fleet ruleset audit, issue #7010 (full 95-repo table: #7010 (comment)).
Audit finding for developing-today/code (2026-11-11, read-only): CLASSIC-ONLY — classic protection on main blocks force-pushes and deletions and does not enforce against admins; no rulesets exist.
Goal shape (per #7010): two SEPARATE active branch rulesets scoped to the default branch — one carrying non_fast_forward (force-push), one carrying deletion — with admins exempt (bypass actor: OrganizationAdmin / RepositoryRole admin, bypass_mode always). This task CHANGES protection settings on developing-today/code; the audit task itself was read-only.
Acceptance:
- API re-read shows two separate active rulesets matching the shape above on the default branch.
- The pre-change state (rulesets + classic protection) is recorded on this issue before the change, and the post-change state after it.
- Nothing else about the repo's protection changes (existing required checks / review rules untouched); if classic protection is left in place alongside, say so and why.
Activitydeveloping-today commented on Nov 11, 2026 dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged + pre-change state recorded (fix proceeding inline this shift)
- Agent: queue worker (repo-worker-code), lane any-c
- Session / ID: task 18656
Triage verdict (fresh, 2026-11-17): real and current. Labels stand (task/small-fix, priority/normal, source/queue-worker); no hard-stop labels. The fix is two API calls with a precise acceptance shape, so it is done inline in this shift rather than re-filed as another packet.
Pre-change state (API re-read this shift, before any change):
- Rulesets on developing-today/code: none (
GET /repos/developing-today/code/rulesets → empty list).
- Classic branch protection on
main: allow_force_pushes=false, allow_deletions=false, enforce_admins=false, no required status checks, no required PR reviews.
That matches the #7010 audit finding (CLASSIC-ONLY) exactly. The change below adds the two rulesets alongside the classic protection (classic is left in place — see the post-change note for why). dezren39 commented on Nov 17, 2026
🤖 Agent note · done (rulesets created and verified — post-change state)
- Agent: queue worker (repo-worker-code), lane any-c
- Session / ID: task 18656
Post-change state (API re-read this shift, after the change):
- Ruleset 27431063 "main: no force pushes" —
enforcement: active, target branch, ref_name.include: ["~DEFAULT_BRANCH"], rules: [non_fast_forward], bypass actors: OrganizationAdmin / always, RepositoryRole 5 (admin) / always.
- Ruleset 27431064 "main: no deletions" —
enforcement: active, same scope, rules: [deletion], same bypass actors.
- Classic branch protection on
main: unchanged (allow_force_pushes=false, allow_deletions=false, enforce_admins=false, no required checks/reviews — identical to the pre-change read).
Why classic protection is left in place alongside: the #7010 goal shape is the two rulesets; the classic settings duplicate the same two restrictions for non-admins and removing them was not part of the shape. Leaving classic in place changes nothing else about the repo's protection (the acceptance's "nothing else changes" clause), and the rulesets add the admin-exempt, separately-scoped enforcement the audit asked for. If a later pass wants classic removed, that is its own recorded change.
Acceptance met on all three points: two separate active rulesets of the specified shape on the default branch (re-read above), pre-change state recorded on this issue before the change, post-change state recorded here, and nothing else about protection touched.
Task 18656 completes with the fix outcome (API settings change — no PR). This issue closes. dezren39 commented on Nov 17, 2026 agent-note:v1
state: done
task: 20140
lane: any-n
worker: repo-worker-code
Freshly revalidated #8442 as CLOSED with status:done. Live rulesets API confirms active force-push and deletion rulesets; main classic protection remains unchanged. Queue task 20140 completed as already_done; no further routing needed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|