Observability blind spots found in the 11-12 live investigation (item ledger, history retention, alerts)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 12/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- go, sqlite
- Domínio
- backend, observability
Direção de pesquisa
This is a multi-part design issue, not a single change. Start with the hourly bucket code behind npc_sale and monster_gold, then the economy_ledger writer and the history.sqlite pruner, and read #3302 for the census index. Done when each checklist box is a merged change or a recorded decision not to do it.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
The 2026-11-12 live investigation (#3302, #3303 and the starter-refill issue) had to infer facts the server should record. Each line is data we lacked; fix them so the next investigation reads facts instead of joining timestamps.
Items
- No item ledger. Gold has
economy_ledger; items have nothing. A grant (starter kit, refill, quest, GM, mall, drop pickup), a merchant sale, a stall or exchange transfer and a destroy leave no row saying which item, how many, and through which door. A duplication cannot be proved or cleared after the fact without diffing nightly backups. -
npc_saleandmonster_goldfold into hourly buckets holding onlytotalandn. The item sold is lost at once. Keep a per-character, per-item hourly bucket (item ref, count, gold). -
stall_saleandexchangerows name no counterparty and no item. Finding who paid 1,000,000,000 to whom, and for what, took a self-join onat_ms. Record the counterparty character and the items on both sides.
Sessions
-
history.sqlitekept only about 90 minutes: two accounts wrote most of 200k events (every transport log line of every session becomes an event) and the pruner dropped everyone's older history. Budget events per account, and do not store per-session transport info lines as history events. - GameWorld and Agent logs live only in the Nomad alloc and vanish at the next release. Ship them to durable storage with a retention rule (they hold player names, so staff-only).
- The Agent logs only refused admission tickets. Count minted tickets per account (a counter and a journal column), so a mint rate is visible.
- The connection journal has no per-session summary of what the session did: frames in, opcodes used, time to first action. "Entered, sold, left in one second" was inferred from three stores.
Detection
- Nothing alerted.
account_session_evictionsreached 74k, one account opened 3 sessions a second for a day, and 97% of the connection journal came from four accounts. The monitor needs rate alerts: sessions per account per minute, evictions per minute, entries per character per hour, merchant sales per entry. - A websocket session with no User-Agent is not a browser (every browser sends one). It is recorded and never surfaced. Show it in the console and count it.
- The console has no "top accounts by session churn / by minted gold per hour" view; the hourly buckets already hold the gold half.
- Every free grant (kit, refill, beta silk, starter silk) needs a counter per account per day, so a mint shows as a number that grows.
Performance of the tools themselves
- The census index is quadratic in sessions per account (#3302), so the abuse it should expose degrades the server.
Done when each box is a merged change or a recorded decision not to do it.
- Linguagem predominante
- Go
- Estrelas
- 97
- Forks
- 61
- Merge médio
- 4h 14min
- PRs com merge (30d)
- 913
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de opensro-dev/opensro
-
area: client enhancement priority: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
opensro-dev/opensro#3681 ·
Mantenedores costumam responder em até 1 dia
-
area: client bug priority: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
opensro-dev/opensro#3228 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Format one minified client file with dprint (ongoing: one file per PR)Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaarea: client enhancement good first issue priority: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
opensro-dev/opensro#1 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area: server bug priority: medium
Dificuldade 3/5 Meio dia Facilidade para iniciantes 55/100
opensro-dev/opensro#3687 ·
Mantenedores costumam responder em até 1 dia
-
area: ops bug priority: high
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 32/100
opensro-dev/opensro#3685 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de opensro-dev/opensro
Issues semelhantes
-
area/networking kind/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 69/100
siderolabs/talos#14972 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
kubectl wait outputs cryptic "error: unrecognized condition: []" when --for is omittedTalvez já em andamento @muskan-creates352 assumiu hoje. Abertakind/bug needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
kubernetes/kubectl#1910 · 1 comentário ·
-
needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
stacklok/toolhive-catalog#1967 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
unbound-force/gaze#353 ·
Mantenedores costumam responder em até 1 dia