> For the complete documentation index, see [llms.txt](https://docs.questfall.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.questfall.xyz/quests/moderation/consensus.md). Agents can also search and read this documentation through its [MCP server](https://docs.questfall.xyz/~gitbook/mcp).

# Consensus

In community moderation, each vote has only two possible options - moderators can either agree or disagree with the submission. This binary approach reduces the entire quality spectrum of user submissions, such as quest completions or reports, to the binary result - either valid or not.

{% hint style="info" %}
The same way hashes are estimated in the Bitcoin blockchain.
{% endhint %}

Binary choices also make voting easy and straightforward for moderators, and imply a binary validity of their votes, since they either agree or disagree with the consensus result, and are therefore either right or wrong, with no ambiguity.

{% hint style="info" %}
There are other approaches, such as the range voting that Questfall uses for [quest ratings](https://docs.questfall.xyz/quests/creation/karma.md). However, votes in such ratings are only right to a certain degree.
{% endhint %}

### Level trust

Consensus uses a continuous trust weight based on the moderator's level. It does not use leagues, so manually opening or closing a league has no effect on moderation or quest-rating consensus.

$$Trust=\sqrt{\max(1,\lfloor Level\rfloor)}$$

The implementation stores this as fixed-point units using `round(1000 × trust)`. Levels `1 / 4 / 9 / 16` therefore contribute `1 / 2 / 3 / 4` trust. The square root gives developed accounts more influence while making each additional level progressively less powerful.

The level and trust weight are captured when an assignment is issued. A later level change cannot change an open ballot. Rewards and penalties remain per vote and are never multiplied by an individual moderator's trust weight. Trust also measures the global amount of unfinished work for adaptive pricing, but only as an aggregate backlog relative to aggregate ten-minute capacity.

### Fixed requirements

The active pool contains verified users seen during the previous 24 hours, after removing everyone excluded from the case. Each case has two independent minimums: a minimum number of participants and a minimum sum of trust. Both conditions use `≥` and must be true. The size of the active pool does not change either minimum; it only determines whether enough eligible people and trust are currently available to open the case.

The [30 September settings snapshot](https://docs.questfall.xyz/assets/economy-settings.md#consensus) is:

| Scenario                    | Minimum participants | Minimum trust |
| --------------------------- | -------------------: | ------------: |
| Rating                      |                    3 |             6 |
| Moderation Initial / Review |                    2 |             6 |
| Appeal I                    |                    4 |            18 |
| Final Appeal                |                    7 |            54 |

Witnessing, judging, domain proposals, reports, and re-reviews all use the Initial profile. Appeals use their stronger profile and exclude every moderator who voted in an earlier decision in the same chain.

### Decision and tie-break

For example, Initial consensus can reach its `2 users + 6 trust` minimums with two level-9 users (`3 + 3 trust`) or six level-1 users (`1 × 6 trust`). One level-36 user contributes all `6 trust` but still cannot decide alone because the two-user minimum remains unmet.

Assignments are persistent obligations. Once a case is assigned, it remains with that moderator until Vote, Bypass, Report, or an explicit system cancellation. Its first ten minutes reserve participant and trust capacity for the case. When that reservation ends, the assignment stays open but its capacity may be offered to another eligible moderator. The scheduler aims to reserve up to three times the still-missing participant and trust requirements, prioritizing the least-covered cases inside the same priority class and randomizing equals. This reserve is a target when the eligible moderator pool is small, not a guarantee.

After both minimums are met and a binary case has a determinate outcome, it records the next shared ten-minute boundary and stops issuing new assignments. It closes early only if all remaining active assignments voting against the current leader still cannot change the outcome. Expired reservations still count because those moderators retain their voting rights; Bypass triggers another check. An exact weighted tie uses a simple majority among ballots at the highest captured level. At the boundary, only ballots recorded strictly before it count. If the highest level is also tied, the timer clears and additional independent assignments become available, with earlier ballots preserved.

First Quest Review has three outcomes and requires strictly more than half of the total weight, without the binary tie-break. It settles immediately at its stronger consensus and releases waiting work in the same transaction. Every final decision freezes its exact ballot IDs alongside settlement. The shared ten-minute windows also determine prices.

A vote recorded after the outcome is fixed is late, even if it shares the same timestamp as a deciding vote. It cannot change the result or its reference sample, but settles against the canonical outcome using the market quote active when the server receives it. Late real votes remain part of the 24-hour capacity measurement and rolling vote balance. Report appeals reconcile these settlements idempotently to the newest canonical decision. A moderator who casts a late vote on an earlier stage is dynamically excluded from later appeal assignments.

A case that cannot currently form its minimum active pool remains queued. An open case that stops receiving enough trust remains open and is marked as stalled for administrators. Requirements never weaken on a timer.

Open and queued cases both contribute their remaining required trust to the adaptive moderation market. Ordinary cases count only missing trust, reduced by recorded votes. First Quest Review also reserves additional work when it has enough trust but still needs participants or a strict majority. Unfinished work becomes more urgent once per ten-minute window, while active assignments do not reduce the backlog until their votes are actually recorded. Submissions waiting for the first review have no available cases and do not add to this backlog.

### Immutable policy snapshots

Administrators manage the three moderation tiers and the rating profile in **Security → Consensus**. The square-root curve itself is fixed as `sqrt-level-v1`; only minimum participants and minimum trust can change. Every save creates an append-only policy revision with an audit diff.

New rating rounds and moderation cases capture the current revision and both minimums. An open decision keeps its minimums and participant snapshots even after administrators save another revision. A queued case also remembers its revision and opens only when the eligible active pool can supply both minimums.

Users should not be able to choose the topic they want to vote on - instead, the system assigns moderation cases as needed.

This also provides another layer of protection, because when topics are assigned by the system, there is no way for multiple accounts to synchronize an attack on a given vote, since each account is given an unpredictable topic.

After consensus, every timely real ballot receives the same canonical outcome and is added to its kind's settled-vote balance window. Any still-open assignment remains visible with the same immutable evidence and an open progress shape that does not reveal the result or whether the assignment is a control. When its moderator eventually acts, the late vote is settled immediately without changing consensus. A complete real Witness or Judge case also becomes an immutable, exposure-limited honeypot reference. Honeypot votes remain separate: their answer is already known, so they settle immediately and never feed consensus or create more references.

System cancellation is the explicit exception. It removes active assignments, keeps already recorded ballots for audit, and gives those ballots no settlement; history labels them **Cancelled / No settlement**.

## First Quest Review

[First Quest Review](https://docs.questfall.xyz/quests/moderation/first-quest-review.md) captures the first-appeal profile at case creation without an appeal deposit. Its three outcomes require strictly more than 50% weight after both quorum minima; exact 50% and split votes request additional reviewers. Ordinary binary tie rules remain unchanged.
