Metadata-Version: 2.5
Name: qig-routing
Version: 0.2.0
Summary: QIG Routing — Fisher-Rao model dispatch for LLM routing: capability simplex manifolds (Δ^6), P30 exp-free proximity dispatch, P28 geodesic cache, and iterative simplex refinement. Canon 2.70F, single-sourced on qig-core.
Project-URL: Homepage, https://github.com/Arcane-Fly/qig-routing
Author-email: Braden Lang <braden.lang77@gmail.com>
License: MIT
Keywords: born-chart,fisher-rao,llm-routing,model-dispatch,qig,routing,simplex
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Requires-Dist: numpy>=1.24
Requires-Dist: qig-core>=2.40.0
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Description-Content-Type: text/markdown

# qig-routing

Canonical Fisher-Rao model dispatch, shortlist selection, and iterative simplex refinement for QIG LLM routing (`Canon 2.70F`).

Unified onto `qig-core >= 2.40.0`:
- **Single-source geometry (`P1`, `P2`, `P31`)**: All simplex projections, Fisher-Rao distances, Fréchet means, SLERP interpolations, and rational proximity weights are imported from `qig_core` (zero hand-rolled NumPy geometry).
- **Dynamic pools & fail-closed (`P15`)**: Zero hardcoded model IDs in package source. Pass explicit `subscription_pools=` to `ModelCapabilityManifold` or declare `min_tier` / `tiers` in `manifest_data["models"]`; absent pools or unusable basins fail closed with `NoEligibleRouteError` (`NO_ELIGIBLE_REVIEWER`).
- **Zero exponential / Boltzmann warping (`P30`, `P33`)**: Replaces legacy `exp(-(d - d_min)/T)` softmin routing with pedestal-subtracted rational proximity weighting (`distance_to_simplex_weights`).
- **Shortlist & auditable receipts**: `select_shortlist` builds the Δ⁶ shortlist ready for `qig_core.coordination.trm_refiner.SimplexTRMRefiner`; `RoutingDecisionReceipt` carries `halted_by`, `basin_chart`, `basin_digest`, and `qig_routing_version`.

## Chart Separation: Δ⁶ Capability Simplex vs Δ⁶³ Text Coordizer

`ModelCapabilityManifold` and `request_to_basin` operate strictly on the **7-dimension capability simplex** (`CAPABILITY_DIMENSIONS`, `CAPABILITY_CHART_NAME = "delta6_capability"`, $\Delta^6$), **not** the 64-dimension semantic text simplex (`BASIN_DIM = 64`, $\Delta^{63}$) used by `qig-coordizer`.

No implicit bridge exists between $\Delta^{63}$ and $\Delta^6$ inside `qig-routing`. Callers bridge explicitly by constructing `RoutingRequest` capability/latency/context fields from their task classifier before dispatch.
