Skip to content

feat(op): quorum rules count proven approvers only with proven (#5349) - #5368

Merged
lex00 merged 2 commits into
mainfrom
feat/5349-proven-approvers
Nov 20, 2026
Merged

lex00 merged 2 commits into
mainfrom
feat/5349-proven-approvers

Conversation

@lex00

@lex00 lex00 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #5349

A quorum rule can now require that its count be met by proven approvers only, with proven (approval_rules.<rule>.proven in product config). It is off by default. The pipeline generator warns about rules no approver can meet and about counts plain approval lines can meet. An existing spec applies as it did before.

What changes

  • GateQuorumRule.proven: with true, an approver counts toward the rule only when the judge proves them (a seal that verifies against the signers at base, the merged pull request's review under pr-review, or a review recorded on the reviewLedger op). ruleNeedsProof includes it, so gates ask their judge and the printed approve command carries --sign. A waiting wave logs needs N more proven.
  • An Op waves spec's approvals.quorum reads proven. An Op gate's approval.quorum and identity.gates.<gate>.quorum refuse it with a message naming where it is read. A chant older than the floor refuses a rule with proven at base, so the wave applies nothing.
  • opWavesQuorumFindings (@intentius/chant/op) gives two warnings, which generateOpWavesPipeline returns as warnings and chant run --generate prints, still writing the pipeline:
    • a rule with count above 1, no roles and no proven, on a wave under ledger, pr-review or pull-request;
    • a rule that needs proof (roles, notAuthor or proven) on a wave that is not under pr-review, when the signers file in the repository lists no key or passkey. The message names the fixes: a signer in the signers file with chant approve --sign, or pr-review.
  • UNPROVABLE_QUORUM_REFUSED (false) is the one switch that turns the second warning into a refusal with the same lines. The guide documents it for the next release.
  • PROVEN_APPROVERS_FLOOR (NEXT_RELEASE) in @intentius/chant/op, with the floor table regenerated.
  • approval_rules.<rule>.proven added to the Stage keys table and to PRODUCT_CONFIG_WORDS (section stage).
  • guide/approval-rules.mdx has a table of which modes take plain chant approve lines and what proves an approver under each, a section on proven, and one on the generator's warnings and the switch.
  • The gate-decision bundle ceiling goes from 66 KB to 67 KB, because the bundle carries ci-product-words.ts and gate-quorum.ts and both grew. The findings and the signers read sit outside the bundle.

Nothing here lets a wave apply with fewer approvals than before. proven only removes approvers from a count, and a rule with no approvers is never met.

chant lint reads the TypeScript build and has no path to an Op waves spec, so the warnings come from the generator alone.

Checks

  • just check
  • just docs-check
  • Tests: packages/core/src/op/gate-quorum-proven.test.ts, and the generator cases in packages/core/src/cli/handlers/run-generate.test.ts

@lex00
lex00 enabled auto-merge November 20, 2026 03:57
@lex00
lex00 force-pushed the feat/5349-proven-approvers branch from 0b9382e to 1a03684 Compare November 20, 2026 09:13
@lex00
lex00 added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 581c454 Nov 20, 2026
10 checks passed
@lex00
lex00 deleted the feat/5349-proven-approvers branch November 20, 2026 09:30
@lex00 lex00 mentioned this pull request Nov 20, 2026
78 of 84 tasks
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.

approvals: role and quorum gates require an approval mode that proves who approved

1 participant