mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
v3.8.40 cycle integration → main. All test gates green (Unit/Integration/Coverage/Node-compat/Quality-Ratchet). The only red check, 'PR Test Policy', is the test-masking heuristic firing on the cumulative ~57-commit release diff (legitimate assert consolidations already reviewed per-PR — Gemini CLI removal #5246, retired GPT models #5280, provider catalog refreshes); overridden with --admin per the documented release-PR convention. CodeQL/SonarQube advisory scans non-blocking; #5278's code already passed CodeQL on main. Homologated on VPS 192.168.0.15 (v3.8.40 healthy).
27 lines
911 B
Plaintext
27 lines
911 B
Plaintext
%% Auto-Combo 12-factor scoring
|
||
%% Reflects: open-sse/services/autoCombo/scoring.ts (DEFAULT_WEIGHTS, sum = 1.0)
|
||
%% v3.8.40
|
||
flowchart TB
|
||
Request["Incoming request"] --> Candidates["Eligible candidates<br/>(provider × model × account)"]
|
||
Candidates --> Score["Compute composite score<br/>per candidate"]
|
||
|
||
subgraph Factors["12-factor scoring weights (sum = 1.0)"]
|
||
f1["health (0.20)"]
|
||
f2["quota (0.15)"]
|
||
f3["costInv (0.15)"]
|
||
f4["latencyInv (0.12)"]
|
||
f5["taskFit (0.08)"]
|
||
f6["stability (0.05)"]
|
||
f7["tierPriority (0.05)"]
|
||
f8["tierAffinity (0.05)"]
|
||
f9["specificityMatch (0.05)"]
|
||
f10["contextAffinity (0.05)"]
|
||
f11["connectionDensity (0.05)"]
|
||
f12["resetWindowAffinity (0.00)"]
|
||
end
|
||
|
||
Score --> Factors
|
||
Factors --> Final["Sort by score<br/>(desc)"]
|
||
Final --> Top["Pick top-N targets"]
|
||
Top --> Dispatch["Dispatch sequentially<br/>(short-circuit on success)"]
|