Repository navigation
feat(op): quorum rules count proven approvers only with proven (#5349) - #5368
Merged
Merged
Conversation
lex00
enabled auto-merge
November 20, 2026 03:57
lex00
force-pushed
the
feat/5349-proven-approvers
branch
from
November 20, 2026 09:13
0b9382e to
1a03684
Compare
78 of 84 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5349
A quorum rule can now require that its
countbe met by proven approvers only, withproven(approval_rules.<rule>.provenin 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: withtrue, 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 underpr-review, or a review recorded on thereviewLedgerop).ruleNeedsProofincludes it, so gates ask their judge and the printed approve command carries--sign. A waiting wave logsneeds N more proven.approvals.quorumreadsproven. An Op gate'sapproval.quorumandidentity.gates.<gate>.quorumrefuse it with a message naming where it is read. A chant older than the floor refuses a rule withprovenat base, so the wave applies nothing.opWavesQuorumFindings(@intentius/chant/op) gives two warnings, whichgenerateOpWavesPipelinereturns aswarningsandchant run --generateprints, still writing the pipeline:countabove 1, norolesand noproven, on a wave underledger,pr-revieworpull-request;roles,notAuthororproven) on a wave that is not underpr-review, when the signers file in the repository lists no key or passkey. The message names the fixes: a signer in the signers file withchant approve --sign, orpr-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>.provenadded to the Stage keys table and toPRODUCT_CONFIG_WORDS(sectionstage).guide/approval-rules.mdxhas a table of which modes take plainchant approvelines and what proves an approver under each, a section onproven, and one on the generator's warnings and the switch.ci-product-words.tsandgate-quorum.tsand both grew. The findings and the signers read sit outside the bundle.Nothing here lets a wave apply with fewer approvals than before.
provenonly removes approvers from a count, and a rule with no approvers is never met.chant lintreads the TypeScript build and has no path to an Op waves spec, so the warnings come from the generator alone.Checks
just checkjust docs-checkpackages/core/src/op/gate-quorum-proven.test.ts, and the generator cases inpackages/core/src/cli/handlers/run-generate.test.ts