Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,26 @@ DATASETS_STORAGE_KIND=memory
DATASETS_LOCAL_DIR=./data/datasets


# ─── Solver reputation (issue #444) ──────────────────────────────────────────
# Weights for each reputation sub-component. Sum must be exactly 1.0 in production;
# dev/test renormalises any valid positive set so local experimentation doesn't
# prevent boot.
REP_WEIGHT_FILL_RATE=0.35
REP_WEIGHT_LATENCY=0.15
REP_WEIGHT_SLASHES=0.25
REP_WEIGHT_QUOTE_HONOUR=0.15
REP_WEIGHT_VOLUME=0.10
# Shared exponential-decay half-life (seconds) for all events.
# Default: 30 days — scores dominated by the last ~1 month of activity.
REP_DECAY_HALFLIFE_SECONDS=2592000
# Beta-distribution priors for the Bayesian cold-start lower bound on fill rate.
# (α=4, β=1) ≈ prior mean 80%, 2.5% lower bound ~37%.
REP_BAYES_ALPHA=4
REP_BAYES_BETA=1
# Volume-component knee in USD-equivalent notional; $100k default.
REP_VOLUME_LAMBDA_USD=100000
# How many trailing days of daily snapshots the /reputation endpoint exposes (1..365).
REP_HISTORY_WINDOW_DAYS=30
# ─── Read replicas (#411) ─────────────────────────────────────────────────────
# Comma-separated read-replica Postgres connection strings.
# Leave blank to route all reads to the primary.
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"ignorePatterns": ["dist", "node_modules"],
"overrides": [
{
"files": ["scripts/**/*.ts", "tools/**/*.ts"],
"files": ["scripts/**/*.ts", "tools/**/*.ts", "test/chaos/**/*.ts"],
"rules": {
"no-restricted-syntax": "off"
}
Expand Down
Loading
Loading