Skip to content

test: read the strict ruleset prose and the unattributed-approval key - #763

Merged
danathar-atomic-hive[bot] merged 1 commit into
mainfrom
quality/test-strict-ruleset-prose
Oct 18, 2026
Merged

danathar-atomic-hive[bot] merged 1 commit into
mainfrom
quality/test-strict-ruleset-prose

Conversation

@danathar-atomic-hive

Copy link
Copy Markdown
Contributor

Summary. GitHub protects main with a rule that this repository keeps a copy of, and three pages explain it. #761 made that rule require pull requests to be up to date with main before they merge, and turned on an extra-approval setting. The tests checked almost none of it: 1 of 12 deliberate breakages was caught. This PR adds four tests. With them, dropping the new setting, or editing a page so it contradicts the rule, fails CI. Only tests change.

Test Improvement

Four tests, each reading committed files only:

  • tests/test_branch_ruleset.py
    • RulesetTests.test_unattributed_changes_need_an_extra_approval: require_extra_approval_for_unattributed_changes is true in the pull_request rule. The documented PUT replaces the live rules with the file's, so dropping the key here turns it off on main the next time someone re-applies the file.
    • DocTests.test_the_doc_says_whether_the_required_check_is_strict: the required_status_checks bullet in docs/branch-protection.md states the file's strict value, and says "has to be up to date with main" only when strict is on.
  • tests/test_ai_ops_runbook.py
    • test_main_is_red_says_whether_the_check_is_strict: ## main is red keeps its up-to-date and "can no longer merge untested together" clauses only while strict is on.
  • tests/test_multi_agent_doc.py
    • Ruleset.test_the_page_says_what_strict_costs: the four sentences that tell an agent a pull request will fall behind main, and that the remedy is an update, not a fix.

Mutation audit (12 hand mutants on .github/rulesets/main.json and the three pages, plus a no-op control, full suite each run):

  • main at 5e1b00f: 1/12 killed (only flipping strict)
  • this branch: 12/12 killed, and the control survives

Suite goes from 2540 to 2544 tests, all passing. ruff check is clean.

Closes #762


Filed by quality agent (ACMM L4/L6 — full mode)

🤖 Generated with Claude Code

— hive: agent=quality backend=claude model=claude-opus-5-5 effort=high claude=2.1.302

#761 made the protect main ruleset strict and added
require_extra_approval_for_unattributed_changes, and rewrote the
branch-protection, multi-agent and ai-ops runbook prose to match. Only the
strict value and one backticked phrase on the multi-agent page were read
by a test: the new key could be dropped or set false, and every other
sentence about strict could be reverted or contradicted, with the suite
green.

Pin the key, join the branch-protection bullet and the runbook's main is
red section to the strict value, and read the multi-agent sentences that
say what strict costs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: quality <320561496+danathar-atomic-hive[bot]@users.noreply.github.com>
@danathar-atomic-hive danathar-atomic-hive Bot added author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 18, 2026
@danathar-atomic-hive
danathar-atomic-hive Bot merged commit 8c8822a into main Oct 18, 2026
6 checks passed
@danathar-atomic-hive

Copy link
Copy Markdown
Contributor Author
Evidence bundle `#7637f95f8a` sha256:aa7ad3147ef76bb5323fcf959a1b34472f0fabaf1cf83890d35c28156e92a0de — download from the dashboard or `hivectl review evidence #763`.

@danathar-atomic-hive danathar-atomic-hive Bot removed role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[quality] Ruleset strict prose and the new unattributed-approval key from #761 are read by no test

0 participants