Skip to content

Roadmap: performance, resource & reliability sweep #2056

Description

@JSONbored

Tracking epic for a sweep of performance, resource-usage, correctness, and test-coverage improvements surfaced by a codebase audit (2026-06). Each child below is independently shippable and scoped for a single focused PR.

The audit prioritized changes that improve work on the critical paths everyone hits — the build (which runs inside the test suite, every CI run, and every publish), the live D1-backed API routes (recomputed on every edge-cache miss), and the entity/block/extrinsic handlers (recently bug-prone).

Themes

  • Build / CI resource — the artifact build does serial, per-subnet work on a path that runs many times per CI run.
  • API runtime performance — offset pagination on large tables, an OR-across-columns query plan, serial batch/RPC dispatch, and uncached heavy live routes.
  • Correctness / robustness — lenient entity ref/id parsing returning wrong-but-valid results, and re-implemented (inconsistent) query-param parsing.
  • Test coverage — the scripts/ pipeline (~30k lines) is almost entirely unmeasured; branch-coverage gaps remain in a few hot runtime files.

Children

Build / CI resource

API runtime performance

Correctness / robustness

Test coverage

Notes

  • Each child carries gittensor:bug for a uniform contributor lane.
  • Medium-confidence perf items (the query-plan and caching ones) are framed as audit + optimize — the first deliverable is a measurement (EXPLAIN QUERY PLAN / before-after timing), not a blind change.
  • Determinism guarantees on the build artifacts (reproducible generated_at, byte-identical output) must be preserved by any build-perf change.

Wave 2 — audit sweep (2026-06)

30 additional verified issues from a multi-agent codebase audit. ⭐ = gittensor:priority; 🔧 = not a good-first-issue (needs deeper context).

Correctness bugs

Health/probe correctness

REST/MCP parity

Reliability / timeouts

Reliability / observability

CORS correctness

D1 / query perf

Caching correctness

Input validation

Security hardening

Worker runtime perf

Build/CI resource

Test coverage

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.roadmapRoadmap epic / tracking

Projects

Status
Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions