Files
ruflo/v3/@claude-flow/cli/assets
randRuFlo ac36136d02 feat(router): opt-in nearest-centroid agent router (ADR-527)
CLAUDE_FLOW_ROUTER_CENTROID=1 routes hooks_route tasks to the nearest MiniLM
centroid of the ADR-391 corpus dev split. Held-out test: 63.7% vs 25.7% for
the current default, falling back on 1.8% of prompts. Off by default: p95
latency fails the ADR-391 gate.

- Centroids are versioned with the embedder (embedder, model, dim); a query
  embedded any other way is refused and the current router decides.
- Near-ties (top-two margin < 0.005) keep the current router's pick.
- Every flagged response carries centroid.baselineAgent for pilot comparison.
- The local embedder now records which model produced a vector (modelId).
- ruv-fann routing deferred: training never beat the centroid on dev CV.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:56:24 -05:00
..