Repository navigation
feat(scorers): ask a routing question per team skill of a judged session - #1650
Conversation
…ion (Tencent#1469) A team turns on skill_routing in scorers/scoring.yaml, and every finished session its judge leases gets one generated question per team skill the session's captures delivered: teamai:routing:<skill> for a root skill, teamai:routing:<namespace>:<skill> for a namespaced one. The names are reserved - a scorer file's name cannot contain ':'. The rubric ships with teamai (fit/idle at 1, extra/missed at 0) and its sourceHash covers the rubric with the skill name filled in but never the description, so a rewritten description stays in the same measurement; the judge reads the description in skills.available in evidence.json (Tencent#1606). A session's routing questions always share one judge call, whatever batch says; a team scorer joins that call, and the questions join a team scorer's, only where batch puts a session's scorers together. Routing launches count toward the same daily_limit, and with batch on a session still costs one launch. Nothing is sampled: every finished session the judge leases gets its questions, and a capture set that recorded no descriptions (skills_unknown) gets none. On demand, score --session --scorer teamai:routing:... resolves whatever skill_routing says, only for a skill in that session's skills.available, else scorer_not_found. skill_routing resolves as sessions' team files do: off by default, the root file turns it on, an active scorers namespace's file overrides the root key, and one that sets false turns it off.
Read-only review; no PR code was run, built, or installed. |
Reviewed at
CI is green at this head.
The description has no built-CLI run of the new behavior; ours, for reference: @jeff-r2026 Your call once the on-demand |
|
Thank you for the thorough review — all three are addressed at
|
Resolved
No additional confident findings in the specified diff. Read-only review; no PR code was run, built, or installed. |
Read at
The description now carries a built-CLI record.
@jeff-r2026 Your call; whichever of this and #1379 merges second rebases |
One correction to the note above: |
…and document skill_routing (Tencent#1469 review) routingSkillOf now skips a skill whose namespace the delivery record cannot tell, so the on-demand path shares the background pass's rule from one place: judging such a skill could judge another skill of the same name. The scorer_not_found answer names that reason when the name matches such a skill, and lists only the routing names that exist. docs/guide/scorers.md and its Chinese page gain the skill_routing section; the score --session help and commands.md say routing questions are the one exception to several --scorer needing --batch.
9410a71 to
d053c96
Compare
|
No new confident findings in the specified diff. Resolved
Read-only review; no PR code was run, built, or installed. |
SaulMoro
left a comment
There was a problem hiding this comment.
This was generated by AI during triage.
Approving at d053c96 for the routing-questions half of #1469 that this PR claims.
| #1469 criterion | Status |
|---|---|
One judge launch per session for every routing question, whatever batch says |
Met: one call for two questions on demand and in the background (built-CLI run). |
skills_unknown and namespaceUnknown sessions ask nothing |
Met: routingSkillOf now skips a skill with an unknown namespace on demand too, and scorer_not_found says why. |
skill_routing resolution: default off, root on, a namespace override including false, a non-boolean reported |
Met (scorers-settings.test.ts). It acts only where session judging is on. |
On-demand teamai:routing:… for an undelivered skill |
Met: scorer_not_found names the routing names that exist. Under --json, routing questions are the one exception to one scorer per lease. |
| Rubric hash stable across a description rewrite | Met (built-CLI run). |
| Reserved names cannot collide with scorer files | Met: file scorer names cannot contain :. |
| Privacy | Nothing new leaves the machine beyond what #1606 already sends. The new judge launches go to the team's own judge, and only when the team opts in. |
| Docs | scorers.md (EN and zh-CN) documents skill_routing, the reserved names and on-demand resolution. commands.md is regenerated, and check-docs passes. |
CI is green at this head. The CI review's last pass has no findings, and its earlier P1 (the real-CLI record) is resolved by the record in the description.
The rest of #1469 is outside this PR and stays open there. That includes the example-led "Skill routing" guide section the definition of done describes (dashboard counts with precision and recall, the per-skill scorer example).
- [P3 nit] The batch-joining and ten-skill cases (#1469 rows on
batch: truewith a team scorer, and ten skills withbatchunset) are covered by unit tests and by reading, not by a built-CLI run.
…ion (Tencent#1650) A team that sets `skill_routing: true` in `scorers/scoring.yaml` gets one generated routing question per team skill a finished session was delivered (`teamai:routing:<skill>`, `teamai:routing:<namespace>:<skill>`). All of a session's questions share one judge launch. The names also resolve on demand with `teamai score --session <id> --scorer`. Skills whose namespace is unknown get no question. Part of Tencent#1469
…asset (#1684) A task's covers names the team repo paths its work is expected to need, and the results answer, per covered path, whether an arm that runs without exactly that path passes less on the tasks that cover it, and no less on the others. Builds on #1658's benchmark engine and #1650's record used fields. Closes #1605. - Each covered path gets a table: per task, passed without and with, and for a skill the routing values it loaded with (fit, missed, extra, idle, unknown), then the paired difference over the tasks that cover it and over the others, and passed when loaded / not loaded. Pure over the record, so published records answer without a rerun. The dashboard's Compare tab shows the same tables. - plan reads what each arm receives at its own team revision, role and without paths, and refuses a covered path no arm receives, a namespace copy that stands in for it, and two covered skills of the same bare name. An arm whose clone does not receive a covered skill records no routing for it: the skill is absent, not missed. - Docs en/zh: the covers task field and an Asset effect section. - A handoff test that times out on macOS on main gets 60 s. Original work by kittimzhe; review fixes pushed to the branch.
Implements the routing questions of #1469 — the half its scope leaves after #1606 landed the skills evidence.
What a team does
Every finished session the judge leases then gets one generated question per team skill its captures delivered:
teamai:routing:<skill>for a root skill,teamai:routing:<namespace>:<skill>for a namespaced one. On demand the same names work whateverskill_routingsays:$ teamai score --session 7c1e… --scorer teamai:routing:ops:release --scorer teamai:routing:review-notesHow it follows the spec
:separates, so no scorer file can collide (definition.ts's token rule already forbids it in file names);pinnedDefinitionreads a routing pin under the token form its name flattens to, so a leased attempt re-parses.skills.availablein evidence.json — the rubric never quotes it — sorubric.sourceHashstays the same however the description is rewritten; a teamai release that changes the rubric changes the hash.batchsays (background: their entries batch together; on demand: they group together; lease: the batch flag is set for them). A team scorer joins that call, and they join a team scorer's, only wherebatchputs a session's scorers together.daily_limit(launchesTodayalready counts session attempts); withbatch: truea session still costs one launch.skills_unknowngets none: questions come from the session's own captures viaavailableTeamSkills(new; the unmasked unionskillsEvidencebuildsskills.availablefrom), so a capture set written before [feat] Judge whether team skills load when they should, without writing a scorer #1469 asks nothing, and a session whose checkout held no team skills asks nothing with no gap.skill_routingresolution: off by default; the root file turns it on; an active scorers namespace's file overrides the root key, and one that setsfalseturns it off (a value that is not a boolean is dropped with a problem, asbatchis). It acts only where session judging is on.namespaceUnknown) gets no question: its name cannot be told from a same-named skill's, so judging it could judge the other.scoreSession): resolves against the session's captures, only for a skill in itsskills.available, elsescorer_not_foundnaming what is available; works under a lease too (--json), where routing questions are the one exception to one-scorer-per-lease without--batch.Tests
skill-routing.test.ts— name generation/parse/matching, rubric parses to the four labels with the skill named, hash stable across a description rewrite,namespaceUnknownskipped.score-skill-routing.test.ts— on demand: one label kept with the generated sourceHash; two questions share one judge call (fake judge counts calls); join a session scorer only underbatch;scorer_not_foundfor an undelivered skill and forskills_unknown. Background:skill_routing: trueasks both skills' questions in one launch; off asks nothing; unknown captures ask nothing.scorers-settings.test.ts— the key's parse and resolution (default off, root on, namespace overrides, namespace false wins, bad value problem).Full suite locally: 19833 passed; the 5 remaining failures reproduce on
mainuntouched by this branch (git-discovery, submodule-checkout ×2, workflow-place, workflow-workspace).Real-CLI verification record (added after review)
Built from source at the fix head (
npm ci, npm run build), isolatedHOME, a stand-in Claude judge onPATH, a hand-written session capture delivering two team skills —ops:release(namespaced) andlegacywithnamespaceUnknown: true— andscorers/scoring.yamlwithsessions: true, skill_routing: true:The
--jsonlease and the background one-launch behavior are covered by the suite's fake-judge E2E and by the reviewer's own built-CLI record.