Skip to content

calibration: evidence-weighted reviewer routing (flag-gated, report-first) #8229

Description

@JSONbored

Problem

Epic #8211 track F capstone. With measured per-provider precision available, reviewer selection can prefer the provider that is measurably better for a given repo — but routing touches spend and review quality simultaneously, so it enters report-first.

Requirements

⚠️ Required pattern. Two stages inside one issue, second gated on the first's recorded evidence: (1) REPORT-ONLY — the orchestration path computes what routing WOULD have chosen per review and records it (audit metadata + a recap line), no behavior change; (2) behind a default-off flag, actual weighting with hard floors (never route away from consensus entirely; sample minimums per (provider, repo) before any preference applies; instant flag-off restore).

  • Track-record read is fail-safe: missing/否-density data ⇒ existing behavior byte-identical.
  • Spend note: routing must never increase per-review call count.

Deliverables

  • Stage 1 shipped + 2 weeks of would-have-routed evidence posted here
  • Stage 2 behind flag with 100% branch coverage and the restore path tested

Links & Resources

#8211 (epic), the track-records sub-issue (blocked-by), src/queue/ai-review-orchestration.ts

Boundaries

Default-off; consensus reviews keep both providers; no per-review spend increase.

maintainer-only — review-quality + spend authority.

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.roadmapOn the Wave-2 agent-layer roadmap board (project 9)

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions