Server
Bans and appeals
Warnings, kicks, scoped temporary and permanent bans, shadow bans, ban waves and appeals in valkyr-server, with the API calls and webhooks for each.
valkyr recommends, you decide. The trust ledger produces actions; the moderation layer in valkyr-server turns them, or your moderators' decisions, into records players can see and appeal.
The pipeline
- Verdict. The engine reaches an action from your policy. It goes to the action feed (
GET /v1/) and toactions verdictandactionwebhooks. - Review. Uncertain cases (
review) go to moderators or to the community jury. - Enforce. A warning, a kick or a ban record is created, by the policy (
[bans] auto) or by a moderator. - Appeal. The player files one statement; a moderator or a jury decides.
Every step writes the audit log and fires a webhook.
Records
| Record | Endpoint | Webhook |
|---|---|---|
| Warning | POST /v1/ | warning |
| Kick | POST /v1/ | kick |
| Ban | POST /v1/, GET /v1/, GET and DELETE /v1/ | ban., ban., ban., ban., ban. |
| Appeal | POST /v1/, GET /v1/, POST /v1/ | appeal.filed, appeal. |
| Ban wave | GET /v1/, POST /v1/ | wave. |
| Standing | GET /v1/ |
Moderation endpoints need a key with the moderator role. Every ban carries the evidence that led to it: rule ids, summaries and the trust explanation at the time.
Scopes
A ban applies in its scope only:
globalapplies everywhere;game:<id>,server:<id>andleague:<id>apply when the game server asks for that scope.
A game server checks a player's standing with the scopes it belongs to, for example ?scope=game:arena,. One valkyr-server can moderate a whole network this way, with server bans, game bans and league bans side by side.
Automatic bans
[bans] auto sets the strongest ban the policy may create without a human:
| Value | Effect |
|---|---|
off | Policy decisions never create bans. They still reach webhooks and the action queue. |
shadow | At most a shadow ban: the player keeps playing, matched with other suspects. |
temporary | At most a temporary ban (the default). The length is auto_, or restrict_ from the policy. |
permanent | Permanent bans allowed without a human. Not recommended. |
Ban waves
Banning the moment a cheat is detected tells its author which change was caught. Waves delay the effect:
wave_ | Effect |
|---|---|
off | Every ban takes effect at once. |
interval | Queued bans take effect together every wave_, plus a random jitter of up to wave_. |
delay | Each queued ban takes effect wave_ (plus jitter) after it was created. |
Queued bans are only visible to moderators until they activate.
Appeals
A banned player may file one appeal with a statement of up to max_ characters. With appeal_, every appeal also opens a jury case. The decision (upheld or overturned) fires appeal.; an overturned ban is revoked and the player's evidence stays in the audit log.
| Option | Type | Default | Description |
|---|---|---|---|
bans.auto | AutoBan | "temporary" | Strongest ban the trust policy may create automatically. A policy ban decision is downgraded to this level. |
bans. | bool | false | Also shadow ban players the policy puts in the shadow queue. |
bans. | String | "global" | Scope of automatic bans. |
bans. | u64 | 0 | Length of automatic temporary bans. 0 uses the engine policy's restrict_. |
bans. | WaveMode | "off" | Ban wave mode. Automatic bans always go through the wave when it is on; manual bans only with "wave": true. |
bans. | u64 | 21600 | Interval mode: time between waves. |
bans. | u64 | 3600 | Random extra delay added to each wave or delayed ban. |
bans. | u64 | 86400 | Delay mode: time between a ban being queued and taking effect. |
bans. | bool | false | Open a review jury case for every appeal (needs jurors). |
bans. | usize | 4000 | Longest accepted appeal statement in characters. |
Generated from crates/