Skip to content

chore: P3.6 hygiene (web bundle, Go 1.26.11, dead code, dashboard indexes, test cleanup) - #430

Merged
BaaRai merged 6 commits into
mainfrom
chore/p36-hygiene
Nov 20, 2026
Merged

BaaRai merged 6 commits into
mainfrom
chore/p36-hygiene

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 20, 2026

Copy link
Copy Markdown
Owner

P3.6 hygiene, on top of main 0d85fc9. No behaviour change.

  • web: remove 8 dead imports, 8 unreachable template components and 18 unused dependencies. web/out goes from 9,376,436 to 9,355,505 B and the CSS from 290.0 to 270.1 KiB. build:static, tsc, and the i18n, polling, replay and upload tests pass.
  • deps: Go 1.26.11 and x/crypto v0.59.0. govulncheck: GO-2026-6859 (net/http, reachable) is fixed by the toolchain. GO-2026-5932 is the x/crypto/openpgp "unsafe by design, no known fixed" advisory; the package is not imported, so it is informational, and v0.59.0 is not a fix for it.
  • dead code: 3 unexported Go helpers (enrich.isBlank, taskLLMRuntime.current, Server.wsResolve) and 5 unreachable web files, proven with deadcode -test and grep.
  • db: migration 0010 adds three partial covering indexes for TokenDailyAll, ConversationTokenSummaries and JudgeUsageStats, and makes TokenByModel sargable. EXPLAIN (ANALYZE, BUFFERS) on a seeded 40k/15k/25k database: all four queries move to Index Only Scan, 4-7 shared buffers against 324-808, and TokenByModel uses the existing idx_llm_usage_model.
  • tests: clean the residual rows the suites left (findings, retest conversations, parent assets, tasks, explorations, llm_usage, profiles). The audit ends at zero on the three test databases.

Verification: go test -p 1 ./db ./agent ./server, gofmt, go vet ./..., and GOOS=linux/windows/darwin builds.

@BaaRai
BaaRai merged commit 64765c7 into main Nov 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant