Skip to content

feat(skill_reco): ask pplx-decider-v1.2 and gate refusal per model - #1592

Merged
ace331 merged 1 commit into
mainfrom
feat/skill-reco-decider
Nov 12, 2026
Merged

ace331 merged 1 commit into
mainfrom
feat/skill-reco-decider

Conversation

@ace331

@ace331 ace331 commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

What

  • Skill recommendation asks pplx-decider-v1.2 instead of jev. The endpoint and request/response shape are unchanged; only the model id differs.
  • The refusal gate is now per model: NONE_GATE_THRESHOLD_DECIDER = 0.015 for the decider family, NONE_GATE_THRESHOLD = 0.15 for Jev. The same none_of_these probability separates the two groups at a different place in each model's distribution.
  • The approval reviewer keeps its own id (jev); it shares the system_one transport but was not in scope.
  • Demo/bench (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's none probability.
  • check-parity now reads system_one.rs as well and covers both gates. It had been reporting four false drifts on main since the transport constants moved out of skill_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 none 0.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)

model gate agreement strict top-1 in reference set correct refusal false refusal false suggestion
Jev 0.15 95.0% 90.8% (59/65) 93.8% 97.1% (34/35) 1/65 1/35
decider 0.015 96.0% 93.8% (61/65) 95.4% 97.1% (34/35) 1/65 1/35

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-account no 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/3
  • cargo test -p future-agent --lib skill_reco — 34 pass, 1 fail: a_refused_connection_is_reported_as_a_failure. It fails on main too 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 — OK
  • 240-catalogue runs are in the gitignored scripts/skill_reco/runs/.

Caveats

  • 0.015 still awaits a 240-question gold pass: the current gold set was built for 141 skills, and p001's future-account has no replacement label (future-self is the likely rename).
  • The remaining risk is the decider tail (p90 2.59 s at 240), not its accuracy.

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.
@ace331
ace331 enabled auto-merge (squash) November 12, 2026 07:49
@ace331
ace331 merged commit bba0f20 into main Nov 12, 2026
48 of 50 checks passed
@huichen
huichen deleted the feat/skill-reco-decider branch November 20, 2026 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant