Servidor
Configuração
Todas as opções do valkyr.toml com tipo, padrão e significado, geradas a partir do código Rust para sempre bater com o binário.
valkyr init gera um valkyr.toml comentado. Campos ausentes mantêm os valores padrão e campos desconhecidos são rejeitados, então um erro de digitação falha de forma visível na inicialização em vez de ser ignorado. As tabelas desta página são geradas a partir do código Rust no momento do build.
Segredos
Mantenha API keys, segredos de webhook e a senha do banco de dados fora do controle de versão. A URL do banco pode vir de VALKYR_ em vez do arquivo.
Servidor
Listener, limites e persistência.
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
server.bind | String | "127.0.0.1:7420" | Listen address. |
server. | usize | 4 | HTTP worker threads. |
server. | usize | 4194304 | Largest accepted request body in bytes. |
server. | usize | 5000 | Largest number of events in one telemetry batch. |
server. | usize | 1000 | Largest number of live matches. |
server. | u64 | 3600 | Matches without traffic for this long are dropped (trust stays). |
server. | usize | 10000 | Largest number of live client sessions. |
server. | u64 | 600 | Sessions without a heartbeat for this long are dropped. |
server. | usize | 100 | Verdicts kept per player. |
server. | usize | 10000 | Entries kept in the enforcement action queue. |
server. | Action | "kick" | Lowest action that is put on the polling queue. |
server. | u64 | 60000 | The same action for the same player is queued again only after this many milliseconds (a stronger action is queued at once). |
server. | Option<PathBuf> | não definido | Directory for the trust ledger, population baselines and review board. No persistence when unset. |
server. | u64 | 60 | Seconds between periodic state saves. |
server. | Option<PathBuf> | não definido | Append only audit log (JSON lines). Defaults to <state_ when state_ is set. |
server. | usize | 1000 | Audit entries kept in memory for /v1/. |
server. | Option<String> | não definido | When set, /metrics requires Authorization: Bearer <token>. |
server. | f64 | 1000.0 | Requests per second each API key may make on average (token bucket refill rate). 0 disables rate limiting. |
server. | f64 | 2000.0 | Token bucket size: the burst a key may send at once. |
server. | u64 | 86400 | How long a response is kept for replay under its Idempotency-Key. |
server. | usize | 100000 | Idempotency entries kept at most (oldest are dropped first). |
Gerado a partir de crates/
API keys
Uma entrada [[keys]] por cliente da API. Papéis: ingest (enviar telemetria, sessões de cliente, consultar ações), read (confiança, vereditos, evidências), review (endpoints do júri), moderator (banimentos, avisos, kicks, recursos, vínculos) e admin (tudo).
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
keys.name | String | obrigatório | Name shown in the audit log (never the key itself). |
keys.key | String | obrigatório | The secret bearer key. At least 16 characters. |
keys.role | Option<Role> | não definido | Single role (shorthand for roles = [role]). |
keys.roles | Vec<Role> | [] | Roles granted to the key. |
keys.juror | Option<u64> | não definido | Juror id bound to a review key. A bound key can only act as that juror. |
keys. | Option<f64> | não definido | Rate limit of this key (overrides server.). |
keys. | Option<f64> | não definido | Burst of this key (overrides server.). |
Gerado a partir de crates/
Webhooks
Uma entrada [[webhooks]] por receptor. Veja Webhooks para a assinatura.
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
webhooks.name | Option<String> | não definido | Name used in logs and metrics. |
webhooks.url | String | obrigatório | Receiver URL. Only http:// is delivered natively; put an HTTPS relay or reverse proxy in front of https:// receivers. |
webhooks. | String | obrigatório | Shared secret for the Valkyr-Signature header. |
webhooks. | Vec<String> | see below | Event types: verdict, action, review.. |
webhooks. | Action | "review" | Lowest action that triggers verdict and action events. |
webhooks. | WebhookFormat | section | Body format. |
webhooks. | u32 | 6 | Delivery attempts before giving up. |
webhooks. | u64 | 1000 | First retry delay; doubles after each failure. |
webhooks. | u64 | 5000 | Connect, write and read timeout per attempt. |
Gerado a partir de crates/
Armazenamento
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
storage. | StorageBackend | "sqlite" | sqlite (default), postgres or files. |
storage.url | Option<String> | não definido | Database URL. VALKYR_ takes precedence when it names the same kind of database; keep passwords in the environment. sqlite: a path or sqlite://path (default <state_); postgres: postgres://user:password@host:5432/db. |
storage. | Option<String> | não definido | PostgreSQL schema to use (created when missing). Default: the connection's search path, normally public. |
Gerado a partir de crates/
Júri de revisão
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
review. | usize | 7 | Target jury size. |
review. | usize | 5 | Votes needed before a case can close. |
review. | f64 | 0.7 | Share of decisive weight needed for a verdict. |
review. | f64 | 0.55 | Accuracy floor once past the grace period. |
review. | u32 | 10 | Reviewed cases before the accuracy floor applies. |
review. | usize | 3 | Open unvoted cases a juror can hold. |
review.seed | u64 | 0x7a1c_ | Seed of the deterministic jury draw. |
review. | u32 | 3 | Shared cases before a juror pair appears in the collusion report. |
Gerado a partir de crates/
Banimentos
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
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. |
Gerado a partir de crates/
Vínculos entre contas
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
links. | bool | false | Opt in. Off by default; nothing is stored while off. |
links.salt | Option<Hex32> | não definido | Secret salt (64 hex characters) mixed into every stored hash. Keep it private and never reuse it across deployments. |
links. | u64 | 180 | Accounts not seen for this many days are forgotten. |
links.kinds | Vec<String> | "" | Identifier kinds the game may submit (empty accepts any kind). |
links. | bool | true | Record an account. hint in the trust ledger when a player linked to a banned account asks for its standing. |
Gerado a partir de crates/
Sinais do guard
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
guard. | bool | false | Accept POST /v1/. |
guard.keys | Vec<GuardKey> | [] | Pinned signing keys. |
guard. | u64 | 300 | Envelopes whose sent_ms is further than this from the server clock are rejected. |
guard. | Vec<String> | "" | Signal types that may lead to enforcement on their own. Every other signal is a hint: a verdict made of client evidence only is capped at review. |
guard. | std:: | std:: | Severity (0..1) per signal type, overriding the defaults. |
guard. | usize | 64 | Signals accepted in one envelope. |
Gerado a partir de crates/
Stream ao vivo
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
stream. | usize | 16 | Concurrent streams (one thread each). |
stream. | usize | 256 | Events buffered per stream; a slow client loses the oldest overflow and gets a stream. event. |
stream. | u64 | 15 | Seconds between keepalive comments. |
Gerado a partir de crates/
Sessões de cliente
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
client. | Vec<Hex32> | [] | Allowed build hashes (hex). Empty accepts any build. |
client. | Option<Hex32> | não definido | Expected manifest root (hex). |
client. | u64 | 30000 | Maximum time between two heartbeats. |
client. | u64 | 0 | Required key rotation period in heartbeats (0: none). |
client. | u64 | 2000 | Allowed wall against monotonic clock drift between heartbeats. |
client. | u64 | 30000 | Server time span before the clock speed ratio is judged. |
client. | u64 | 100000 | Allowed speed ratio deviation, parts per million. |
client. | usize | 4 | Outstanding nonces per session. |
client. | u64 | 60000 | Maximum nonce age. |
Gerado a partir de crates/
Engine
Tudo dentro de [engine] configura o valkyr-core.
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | u64 | 2000 | The same rule does not fire twice for one player within this many ms. |
Gerado a partir de crates/
Confiança e política
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | f64 | 0.02 | Prior probability that a random player cheats. |
engine. | u64 | 1800000 | Half life of evidence in ms. |
engine. | f64 | 1.0 | Log likelihood ratio for rules without an entry in rule_. |
engine. | BTreeMap<String, f64> | see below | Log likelihood ratio per rule id. |
engine. | f64 | 3.0 | Evidence of one rule saturates at this many times its ratio. |
engine. | usize | 256 | Flags kept per player for evidence bundles. |
engine. | Vec<EvidenceGroup> | see below | Groups of correlated rules whose evidence is combined and capped. A rule belongs to the first group that lists it. |
Gerado a partir de crates/
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | Option<f64> | 0.1 | Keep evidence. |
engine. | Option<f64> | 0.6 | Send to review. |
engine. | Option<f64> | 0.85 | Shadow queue. |
engine. | Option<f64> | 0.97 | Kick from the match. |
engine. | Option<f64> | 0.995 | Temporary restriction. |
engine. | u64 | 1440 | Length of a restriction in minutes. |
engine. | Option<f64> | não definido | Permanent ban. Off by default and discouraged without human review. |
engine. | usize | 2 | Distinct rules needed before kick, restrict or ban. |
Gerado a partir de crates/
Movimento
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | bool | true | Master switch. |
engine. | f64 | 7.0 | Fastest legitimate horizontal speed in m/s. |
engine. | f64 | 0.1 | Fraction above max_ tolerated (jitter, float error). |
engine. | u64 | 1000 | Length of the sliding window used for speed, in ms. |
engine. | u64 | 1000 | The window is measured on the client clock (exact even when packets arrive in bursts after a lag spike). It may exceed the server span by at most this much; a client clock that runs fast for longer is caught by network.. |
engine. | u64 | 500 | Speed is only judged once the window covers at least this span. |
engine. | f64 | 3.0 | Violation level at which movement.speed fires. |
engine. | f64 | 20.0 | Gravity in m/s^2. |
engine. | f64 | 1.3 | Highest legitimate jump in meters. |
engine. | f64 | 0.25 | Extra height tolerated above max_. |
engine. | u64 | 250 | Time after the expected apex before hovering counts, in ms. |
engine. | u64 | 450 | Airborne time without descending that fires movement.fly, in ms. |
engine. | f64 | 10.0 | A single step longer than this (meters) without a spawn is a teleport. |
engine. | f64 | 0.05 | Colliders are shrunk by this skin before noclip tests. |
engine. | f64 | 0.6 | Noclip is tested on a segment this far above the feet, so stepping onto low ledges is not a violation. |
engine. | f64 | 0.15 | Feet within this distance above a surface count as supported. |
engine. | u32 | 20 | Consecutive unsupported frames claiming ground that fire movement.. |
engine. | u32 | 8 | Hops needed before bunny hop timing is judged. |
engine. | f64 | 0.9 | Share of frame perfect, spam free jumps that fires movement.bhop. |
engine. | f64 | 90.0 | Highest legitimate absolute pitch in degrees. |
engine. | f64 | 1800.0 | Total rotation in degrees within spin_ that fires view.spin. |
engine. | u64 | 600 | Window for spin detection in ms. |
Gerado a partir de crates/
Combate
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | bool | true | Master switch. |
engine. | Vec<WeaponSpec> | see below | Declared weapons. Shots with unknown ids use the first entry. |
engine. | Vec<AbilitySpec> | [] | Declared abilities. |
engine. | u64 | 8 | Shots may come this much earlier than the weapon allows (timer rounding) without counting as a violation, in ms. |
engine. | usize | 3 | Violations within the last 10 shots that fire combat.. |
engine. | u64 | 50 | Cooldown slack in ms. |
engine. | u64 | 400 | Longest latency the server rewinds for, in ms. |
engine. | u64 | 50 | Client side interpolation delay added to the rewind, in ms. |
engine. | u64 | 60 | Hit validation also accepts the target position this many ms before and after the rewind time. |
engine. | f64 | 0.35 | Half width of a player hitbox in meters. |
engine. | f64 | 1.85 | Height of a player hitbox in meters. |
engine. | f64 | 0.2 | Padding added to the hitbox during validation, in meters. |
engine. | f64 | 1.6 | Eye height above the feet in meters. |
engine. | f64 | 8.0 | Largest angle between the shot direction and the latest view, in deg. |
engine. | usize | 3 | Invalid hits among the last 10 claimed hits that fire combat.. |
Gerado a partir de crates/
Mira
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | bool | true | Master switch. |
engine. | f64 | 40.0 | Angular speed (deg/s) that starts a movement segment. |
engine. | f64 | 15.0 | Angular speed (deg/s) below which a segment ends. |
engine. | f64 | 12.0 | A one frame rotation at least this large (deg) is a snap candidate. |
engine. | u64 | 40 | Longest movement (ms) that still counts as a single frame snap. |
engine. | u64 | 200 | A shot within this many ms after a snap completes it. |
engine. | usize | 3 | Snaps followed by shots within snap_ that fire aim.snap. |
engine. | u64 | 60000 | Window for counting snaps, in ms. |
engine. | usize | 8 | Samples needed before trigger timing is judged. |
engine. | f64 | 45.0 | Median crosshair on target to shot delay (ms) that fires aim.. |
engine. | usize | 8 | Samples needed before reaction time is judged. |
engine. | f64 | 120.0 | Median time from first sight to a hit (ms) that fires aim.. |
engine. | f64 | 0.97 | Model probability that fires aim.model. |
engine. | u32 | 12 | Target acquisitions needed before the model is consulted. |
engine. | f64 | 0.5 | Extra angular padding on the target radius, in degrees. |
engine. | f64 | 2.6 | Height of the body box over its width. The crosshair is on target when it is over that box (head and legs included), not only inside the circle of the body width around the center. |
engine. | f64 | 55.0 | Half angle (deg) of the view cone. Reaction time is measured from the moment an enemy is both in line of sight and inside this cone, not from when it was visible behind the player's back. |
Gerado a partir de crates/
Informação
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | bool | true | Master switch. |
engine. | f64 | 60.0 | Enemies further than this (meters) are ignored. |
engine. | f64 | 10.0 | The crosshair within this angle (deg) of a hidden point is tracking it. |
engine. | u64 | 2500 | An enemy seen within this window (ms) is still known. |
engine. | u64 | 1500 | An enemy heard within this window (ms) is still known. |
engine. | f64 | 4.0 | Crosshair error (deg) at the moment an unknown enemy appears that counts as a pre aim. |
engine. | u32 | 600 | Frames with hidden enemies needed before scoring. |
engine. | u32 | 6 | Appearances needed before scoring. |
engine. | f64 | 0.75 | Weighted score that fires info.. |
engine. | f64 | 1.0 | Weight of hidden tracking. |
engine. | f64 | 1.0 | Weight of pre aiming. |
engine. | f64 | 0.6 | Weight of pathing toward hidden enemies. |
engine. | f64 | 0.8 | Weight of the visible versus hidden error correlation. |
engine. | f64 | 2.5 | Crosshair within this angle (deg) of a decoy's body is tracking it. |
engine. | u32 | 8 | Consecutive frames on a decoy that make one episode. |
engine. | u32 | 2 | Episodes that fire info.decoy. |
engine. | f64 | 3.0 | A hidden enemy counts only once it is at least this far (meters) from where the player last saw or heard it. |
engine. | u64 | 6000 | Shortest time shift of the phantom, in ms. |
engine. | u64 | 12000 | Longest time shift of the phantom, in ms. |
engine. | f64 | 55.0 | Half angle (deg) of the view cone: visible enemies outside it do not count toward the visible aim error. |
engine. | f64 | 0.9 | Half height of a body (meters); pre aim is judged against the whole body, not only its center. |
Gerado a partir de crates/
Rede
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | bool | true | Master switch. |
engine. | u64 | 64 | Width of the anti replay window in packets (at most 64). |
engine. | f64 | 90.0 | Highest legitimate input rate in packets per second. |
engine. | u64 | 1000 | Window for the rate check in ms. |
engine. | u64 | 8000 | Window for clock drift estimation in ms. |
engine. | u64 | 5000 | Drift is only judged once the window spans this much server time. |
engine. | f64 | 0.04 | Relative clock speed above which network. fires (0.04 means the client clock runs 4 percent fast). |
engine. | u64 | 250 | A delivery gap at least this long starts a lag episode, in ms. |
engine. | u64 | 40 | Packets arriving within this window after a gap count as a burst. |
engine. | u32 | 4 | Packets needed in that window to call it a burst. |
engine. | u64 | 400 | Hits within this many ms after a burst count as advantage. |
engine. | u32 | 4 | Bursts needed before fake lag is judged. |
engine. | f64 | 0.65 | Share of bursts that end in an advantage that fires network.. |
engine. | usize | 16 | Semi automatic shots needed before timing entropy is judged. |
engine. | f64 | 1.2 | Entropy in bits (5 ms buckets) below which shot timing looks scripted. |
Gerado a partir de crates/
Economia
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | Vec<ResourceRule> | [] | Declared resources. Undeclared resources only get the balance check. |
engine. | bool | false | Check that each balance equals the previous balance plus the delta. |
Gerado a partir de crates/
Visibilidade
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | f64 | 106.0 | Horizontal field of view of the client in degrees. |
engine. | f64 | 25.0 | Margin added to the field of view so fast turns do not show pop in. |
engine. | f64 | 200.0 | Entities beyond this distance are never sent. |
engine. | f64 | 4.0 | Entities this close are sent regardless of the view direction. |
engine. | f64 | 120.0 | Both viewer and entity are extrapolated this far ahead (ms) along their velocity, so models appear one round trip before they peek. |
engine. | f64 | 0.45 | Sideways offset (meters) of extra sample points, for peeking edges. |
engine. | f64 | 1.6 | Eye height above the feet. |
engine. | f64 | 1.85 | Height of an entity. |
Gerado a partir de crates/
Verdade do servidor
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | bool | true | Run the checks at all. |
engine. | f64 | 0.5 | Default absolute tolerance between a claim and the server truth. |
engine. | f64 | 0.02 | Default relative tolerance (share of the server value). The larger of the absolute and relative tolerance applies. |
engine. | u32 | 3 | Disagreements on one key within window_ms before state. fires. |
engine. | u64 | 10000 | Window for counting disagreements. |
engine. | Vec<StateRule> | [] | Per key limits and tolerances. |
Gerado a partir de crates/
População e contas
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | bool | true | Compare players against their skill bracket at match end. |
engine. | f64 | 250.0 | Rating width of one bracket. |
engine. | u64 | 40 | Samples a bracket needs before z scores are used. |
engine. | f64 | 3.0 | Mean of the three most suspicious z scores that fires stats.. |
engine. | f64 | 0.3 | Players above this probability do not feed the baselines. |
Gerado a partir de crates/
| Opção | Tipo | Padrão | Descrição |
|---|---|---|---|
engine. | bool | false | Smurf detection on young accounts. |
engine. | bool | false | Behavior based alt account similarity. |
engine. | f64 | 0.97 | Cosine similarity that reports a possible alt. |
engine. | u32 | 5 | Matches an account needs before alt comparison. |
Gerado a partir de crates/
O exemplo completo
Este é o docs/, o arquivo em que o valkyr init se baseia.
# valkyr-server configuration.## Values below are the defaults, except the keys, state_dir and the engine# policy comments. Keep this file private: it holds the API keys. Regenerate keys with `valkyr init --force`. [server]# Address to listen on. Keep it on localhost or a private network and put a# TLS reverse proxy in front of it for anything that crosses the internet.bind = "127.0.0.1:7420"# HTTP worker threads.workers = 4# Largest request body in bytes, and largest telemetry batch.max_body_bytes = 4194304max_events_per_batch = 5000# Live matches, and how long an idle match is kept (trust always persists).max_matches = 1000match_idle_secs = 3600# Live client heartbeat sessions, and how long an idle session is kept.max_sessions = 10000session_idle_secs = 600# Verdicts kept per player for GET /v1/players/{player}/verdicts.verdict_history = 100# Enforcement queue for game servers that poll GET /v1/actions.action_queue = 10000min_poll_action = "kick"# The same action for the same player is queued again only after this long.action_cooldown_ms = 60000# Where the trust ledger, population baselines and review board are saved# (periodically and on shutdown) by the sqlite and files storage backends.# Without it the sqlite backend keeps everything in memory.state_dir = "valkyr-state"save_interval_secs = 60# Append only audit log (JSON lines). Defaults to <state_dir>/audit.jsonl.# audit_log = "valkyr-state/audit.jsonl"audit_tail = 1000# Uncomment to require `Authorization: Bearer <token>` on /metrics.# metrics_token = "a-long-random-token"# Rate limit per API key (token bucket): average requests per second and# burst. Over the limit the server answers 429 with Retry-After. 0 disables.# A key may override both with rate_per_sec and rate_burst.rate_per_sec = 1000.0rate_burst = 2000.0# POST requests with an Idempotency-Key header are answered once and the# stored response is replayed for this long.idempotency_ttl_secs = 86400idempotency_max = 100000 # API keys. Roles: ingest (telemetry, sessions, action polling, guard signals,# player standing), read (trust, verdicts, evidence, live stream), review# (jury: list cases, read evidence, vote), moderator (bans, warnings, kicks,# appeals, account links), admin (everything, including ban waves, jurors and# closing cases).[[keys]]name = "game-server"key = "REPLACE_WITH_A_RANDOM_INGEST_KEY"roles = ["ingest"] [[keys]]name = "dashboard"key = "REPLACE_WITH_A_RANDOM_READ_KEY"roles = ["read"] [[keys]]name = "juror-1"key = "REPLACE_WITH_A_RANDOM_REVIEW_KEY"roles = ["review"]# A bound juror key can only vote as this juror id.juror = 1 [[keys]]name = "moderation"key = "REPLACE_WITH_A_RANDOM_MODERATOR_KEY"roles = ["moderator", "read"] [[keys]]name = "operator"key = "REPLACE_WITH_A_RANDOM_ADMIN_KEY"roles = ["admin"] # Webhooks. Every request is signed:# Valkyr-Signature: t=<unix ms>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")># Only http:// URLs are delivered natively. For https receivers (for example a# chat webhook) run a small local relay or reverse proxy and point url at it.# Uncomment to enable:# [[webhooks]]# name = "moderation"# url = "http://127.0.0.1:9000/valkyr"# secret = "REPLACE_WITH_A_RANDOM_WEBHOOK_SECRET"# Event types: verdict, action, review.closed, kick, warning, ban.created,# ban.activated, ban.updated, ban.revoked, ban.expired, wave.executed,# appeal.filed, appeal.decided, guard.signal. Default: all of them.# events = ["verdict", "action", "review.closed", "ban.created", "ban.activated"]# min_action = "review"# format = "json" # or "discord"# max_attempts = 6# retry_base_ms = 1000 # 1 s, 2 s, 4 s, ...# timeout_ms = 5000 # Detection engine. Any field of valkyr_core::Config can be set here; missing# fields keep their defaults. Permanent bans stay off unless you set ban.[engine]flag_cooldown_ms = 2000 [engine.trust.policy]log = 0.1review = 0.6shadow_queue = 0.85kick = 0.97restrict = 0.995restrict_minutes = 1440# ban = 0.999min_rules_for_enforcement = 2 # Community review jury.[review]jurors_per_case = 7min_votes = 5supermajority = 0.7min_juror_accuracy = 0.55accuracy_grace = 10max_open_cases_per_juror = 3collusion_min_shared = 3 # Client heartbeat verification (valkyr-client sessions).[client]# Hex SHA-256 of the game builds you ship. Empty accepts any build (development).allowed_builds = []max_gap_ms = 30000rotate_after = 0clock_tolerance_ms = 2000speed_window_ms = 30000speed_tolerance_ppm = 100000max_outstanding_nonces = 4nonce_ttl_ms = 60000 # Bans. Automatic decisions of the trust policy create at most a temporary# ban unless you raise `auto`; permanent bans should come from a moderator.[bans]auto = "temporary" # off, shadow, temporary or permanentauto_shadow = false # also shadow ban players put in the shadow queueauto_scope = "global" # global, game:<id>, server:<id> or league:<id>auto_duration_secs = 0 # 0 uses engine.trust.policy.restrict_minutes# Ban waves hide when a detection fired: queued bans take effect together.wave_mode = "off" # off, interval or delaywave_interval_secs = 21600 # interval mode: every 6 hourswave_jitter_secs = 3600 # both modes: plus up to 1 hour of random delaywave_delay_secs = 86400 # delay mode: one day after the ban was queued# Open a review jury case for every appeal.appeal_jury = falsemax_statement_chars = 4000 # Account and device linking for ban evasion. Off by default. Only salted# hashes of identifiers the game already tokenized are stored, and accounts# not seen for retention_days are forgotten.[links]enabled = false# salt = "64 random hex characters, keep them secret"retention_days = 180kinds = [] # for example ["device", "payment"]; empty accepts anyevasion_flag = true # Signed tier signals from valkyr-guard agents (POST /v1/guard/signals).# Signals are hints: a verdict made of client evidence only stays at review,# unless the signal type is listed in strong.[guard]enabled = falsemax_skew_secs = 300strong = []max_signals = 64# [guard.weights]# injected_code = 0.6# [[guard.keys]]# id = "studio-2026"# public_key = "64 hex characters of the Ed25519 public key" # Live push for dashboards: GET /v1/stream (Server-Sent Events).[stream]max_clients = 16buffer = 256heartbeat_secs = 15 # Where state lives: bans, appeals, trust and verdict history, the audit# log, API keys, webhooks, rule weights and linked accounts.# sqlite one file, <state_dir>/valkyr.db (zero config)# postgres a shared database for production and networks of servers;# the URL comes from VALKYR_DATABASE_URL (or url below), for# example postgres://valkyr:password@db:5432/valkyr# files the JSON files of earlier versions in state_dir# Migrations are embedded and run on start or with `valkyr migrate`.[storage]backend = "sqlite"# url = "valkyr-state/valkyr.db"# schema = "valkyr" # postgres only