Skip to content

fix(jackin): revert required_approving_review_count to 0 for solo-maintainer repo#15

Merged
donbeave merged 1 commit into
mainfrom
chore/revert-required-review-count
May 9, 2026
Merged

fix(jackin): revert required_approving_review_count to 0 for solo-maintainer repo#15
donbeave merged 1 commit into
mainfrom
chore/revert-required-review-count

Conversation

@donbeave

@donbeave donbeave commented May 9, 2026

Copy link
Copy Markdown
Member

Summary

Revert required_approving_review_count from 1 back to 0 on the jackin repo's protect_main ruleset. The previous PR (#14) raised it under the assumption a human reviewer would always be available, but the repo is operated by a single maintainer and GitHub does not let a PR author approve their own pull request — the rule blocks every merge instead of gating it.

The other safety improvements from #14 stay in place: strict_required_status_checks_policy = true ensures every PR runs CI against the actual merge state, and the expanded repo_required_status_checks list (ci-required, construct-required, docs-required, docs-link-check, validate, DCO) gives every gated workflow a hard gate at the GitHub layer. Together those still close the "two individually-green PRs become red when combined" hole; what they cannot do is force a second pair of eyes that doesn't exist.

A code comment names the solo-maintainer constraint so a future change doesn't silently re-flip the knob without verifying the project has gained additional reviewers.

Verify locally

cd ~/Projects/jackin-project/jackin-github-terraform
git fetch -f origin chore/revert-required-review-count:refs/remotes/origin/chore/revert-required-review-count
git checkout -B chore/revert-required-review-count refs/remotes/origin/chore/revert-required-review-count
tofu fmt -check -diff branch-protection.tf
tofu init -backend=false
tofu validate

After merge, run tofu plan then tofu apply from your host to activate. Plan diff should show one resource change on github_repository_ruleset.protect_main["jackin"]: required_approving_review_count: 1 -> 0.

…ntainer repo

The previous PR (#14) raised `required_approving_review_count` from
0 to 1 as part of the post-#266 hardening, on the assumption that a
human reviewer would be available before each merge. The repo is
operated by a single maintainer, and GitHub does not let the PR
author approve their own pull request, so the rule blocks every
merge instead of gating it.

Revert to `required_approving_review_count = 0`. The remaining
hardening from #14 stays in place: `strict_required_status_checks_policy = true`
ensures the green CI run reflects the exact code that lands on
main, and the expanded required-status-check list (`ci-required`,
`construct-required`, `docs-required`, `docs-link-check`,
`validate`, `DCO`) gives every gated workflow a hard gate at the
GitHub layer.

Add a code comment naming the constraint so a future change does
not silently re-flip the knob without checking whether the project
has gained additional reviewers in the meantime.

Signed-off-by: Alexey Zhokhov <alexey@zhokhov.com>
Co-authored-by: Claude <noreply@anthropic.com>
@donbeave donbeave force-pushed the chore/revert-required-review-count branch from 0556988 to 6c791e3 Compare May 9, 2026 10:15
@sonarqubecloud

sonarqubecloud Bot commented May 9, 2026

Copy link
Copy Markdown

@donbeave donbeave merged commit ec0da0f into main May 9, 2026
2 checks passed
@donbeave donbeave deleted the chore/revert-required-review-count branch May 9, 2026 10:23
donbeave added a commit to jackin-project/jackin that referenced this pull request May 9, 2026
Capture an invariant that has been silently shaping recent decisions but was nowhere written down: jackin has exactly one human contributor, and GitHub does not let a PR author approve their own pull request. The previous CI hardening round (jackin-project/jackin-github-terraform#14) raised `required_approving_review_count` to 1 on the assumption a second reviewer was available — they are not — and the resulting trap blocked every merge until it was reverted in jackin-project/jackin-github-terraform#15.

Add a 'Project staffing: solo maintainer' section at the top of `AGENTS.md` naming the constraint and the four downstream consequences: branch protection cannot require an approving review; "get a second pair of eyes" is not an available pre-merge step (pre-merge confidence comes from CI, the path-aware aggregator status checks, the strict up-to-date branch policy, and the agent following PULL_REQUESTS.md); multi-agent review is the load-bearing substitute for the missing second human, not optional polish; and for irreversible or high-blast-radius changes the agent should prefer asking the operator to confirm one more time over assuming green CI is sufficient.

The rule retires when the project gains additional human reviewers.

Signed-off-by: Alexey Zhokhov <alexey@zhokhov.com>
Co-authored-by: Claude <noreply@anthropic.com>
donbeave added a commit to jackin-project/jackin that referenced this pull request May 18, 2026
Capture an invariant that has been silently shaping recent decisions but was nowhere written down: jackin has exactly one human contributor, and GitHub does not let a PR author approve their own pull request. The previous CI hardening round (jackin-project/jackin-github-terraform#14) raised `required_approving_review_count` to 1 on the assumption a second reviewer was available — they are not — and the resulting trap blocked every merge until it was reverted in jackin-project/jackin-github-terraform#15.

Add a 'Project staffing: solo maintainer' section at the top of `AGENTS.md` naming the constraint and the four downstream consequences: branch protection cannot require an approving review; "get a second pair of eyes" is not an available pre-merge step (pre-merge confidence comes from CI, the path-aware aggregator status checks, the strict up-to-date branch policy, and the agent following PULL_REQUESTS.md); multi-agent review is the load-bearing substitute for the missing second human, not optional polish; and for irreversible or high-blast-radius changes the agent should prefer asking the operator to confirm one more time over assuming green CI is sufficient.

The rule retires when the project gains additional human reviewers.

Signed-off-by: Alexey Zhokhov <alexey@zhokhov.com>
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant