Repository navigation
feat(skill_reco): ask pplx-decider-v1.2 and gate refusal per model - #1592
Merged
Merged
Conversation
The recommendation endpoint and request/response shape are unchanged; only the model id and its refusal gate differ. The approval reviewer keeps its own id (`jev`), since it is the other caller of the shared system_one transport and was not in scope. - agent: SKILL_RECO_MODEL = "pplx-decider-v1.2"; the refusal gate follows the model — 0.015 for the decider family, 0.15 for Jev. At 141 options decider's groups separated at 0.005, but on the live 240-skill catalogue they overlap and 0.015 is the balanced cut measured there (decider-comparison §4.2) - demo/bench: default model follows; probe/server/bench read the gate from the rank result instead of a single constant; the lexical fallback keeps its own 0.15 (it scores coverage, not the model's none probability); check-parity covers both gates and reads system_one.rs Measured on the live 240-skill catalogue (100 questions, 65 answerable / 35 refusable): [email protected] scores 96.0% decision agreement, 93.8% strict top-1, 95.4% in reference set, 97.1% correct refusal, 1/65 false refusal, 1/35 false suggestion; [email protected] scores 95.0%, 90.8%, 93.8%, 97.1%, 1/65, 1/35. Only three questions differ: decider fixes p019 and p035, both miss n032. Both models' single false refusal is p001 (its gold `future-account` no longer exists) and single false suggestion is p037. Latency: decider p50 1.23 s / p90 2.59 s, Jev 0.82 / 0.92 s; 10/100 decider calls exceeded the 2.5 s deadline in one slow window.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
pplx-decider-v1.2instead ofjev. The endpoint and request/response shape are unchanged; only the model id differs.NONE_GATE_THRESHOLD_DECIDER = 0.015for the decider family,NONE_GATE_THRESHOLD = 0.15for Jev. The samenone_of_theseprobability separates the two groups at a different place in each model's distribution.jev); it shares thesystem_onetransport but was not in scope.probe,server,decider-run) read the gate from the rank result instead of one constant; the lexical fallback keeps 0.15 because it scores coverage, not the model'snoneprobability.check-paritynow readssystem_one.rsas well and covers both gates. It had been reporting four false drifts on main since the transport constants moved out ofskill_reco/mod.rs.Why 0.015
At the 141-option frozen roster decider's answerable questions stay below 0.004 and its refusals start at 0.005, so 0.005 scored 100% correct refusal there. On the live 240-skill catalogue those groups overlap (largest answerable
none0.0209, smallest refusable 0.0055), so 0.005 refuses two valid requests. 0.015 is the balanced cut measured on the current catalogue.Measurements — live 240-skill catalogue, 100 questions (65 answerable / 35 refusable)
Only three questions differ: decider fixes p019 and p035; both models get n032 wrong. Both share the same single false refusal (p001, whose gold
future-accountno longer exists in the catalogue) and the same single false suggestion (p037 →matlab).Latency: decider p50 1.23 s / p90 2.59 s; Jev 0.82 / 0.92 s. 10/100 decider calls exceeded the 2.5 s deadline inside one slow window (n002–n006, 4.0–4.5 s) that is a deployment-side tail, not the gate.
Test plan
cargo test -p future-agent --lib system_one— 3/3cargo test -p future-agent --lib skill_reco— 34 pass, 1 fail:a_refused_connection_is_reported_as_a_failure. It fails onmaintoo in this environment (the local proxy turns a refused connection into 502/timeout), unrelated to this change.node scripts/skill_reco/bench/check-parity.mjs— OKscripts/skill_reco/runs/.Caveats
future-accounthas no replacement label (future-selfis the likely rename).