Repository navigation
Tighten skill wording so the two near-tie requests win on CPU (#4273) - #4276
Conversation
|
APPROVE (head c254360, read-only review; nothing run on a model, and I did not compile or run the digest test, see "Not verified") No blockers. The golden diff is confined to the three edited skills and their neighbours, no row loses a rank, and the PR body matches the diff. Findings are all low severity. 1. Golden diff (14 rows, 28 lines, matches the PR's count). Every changed row is a Relationship Management, Completing a Task, Deprecating and Migrating or Implementing a Task row, or a row where one of them is the runner-up or the scored skill:
2. sha256. The digest is not of the tsv: 3. NOT_YET_WON. Removing "which tasks depend on the API migration?" and "continue the task I was working on" is consistent with the golden: continue is a Procedure owner (Implementing a Task), so it is won if judged, and it now ranks 1st at 0.982. which-tasks-depend is a Window row at rank 3, within the window (the tsv "routed_leader" column is Node Creation for it; that column is the routed lead, not whether RM is judged, so the actual win cannot be confirmed from the tsv alone, only by the ignored run the author reports). The two dependency-as-fact rows stay listed and still fail on First (launch task: routed leader Play Workflow State). The ratchet ( 4. Wording.
5. Honesty of claims. The body matches the diff: the row counts, the before/after scores table, "No row lost a rank it held", and "link this invoice ... lead 0.051 to 0.037" all check against the tsv. "Up to 0.045" is actually 0.046 (launch task), trivial. The caveat that second row wins only on routed candidates is honest: retrieval rank 3, 0.079 behind Creating a Task. The omission is the Harbor Freight margin worsening (-0.015 to -0.021). The 4-to-2 stability result is the author's and I could not reproduce it. 6. Seeded-text rules. Greps of the head tree: the changed skills' use_for/not_for text appears only in Stale comments (low, non-blocking, fix in a follow-up or here):
Not verified: I did not compile or run anything (no cargo, no model, no GPU); in particular I did not recompute the sha256 via the digest test, and I did not reproduce the matrix or the live_skill_retrieval_stability counts (the 4 to 2 failures, including the two that still fail on main). GPU near-tie ordering is untested, as the author notes. |
|
Merge queue: #4276 was taken out of the queue — the merge gate failed on it, on top of main. Reproduce by merging or rebasing |
…recating skill wording so two near-tie requests win on CPU (#4273) "continue the task I was working on" led Completing a Task (0.984) because the retrieval text of Completing a Task has no word against continuing work. Its not_for now says so, and Implementing a Task leads at 0.982 with Graph Editing 0.056 behind. "which tasks depend on the API migration?" was missed by 0.097 with Deprecating and Migrating leading: that skill's not_for now excludes the dependency lookup, and Relationship Management's use_for asks for which tasks or records depend on, are blocked by or are linked to a given one (rank 5 at 0.779 to rank 3 at 0.794; the request is now served by the routed candidates). The golden is re-recorded on CPU; the diff is limited to the rows of these four skills and their neighbours. Both requests leave NOT_YET_WON. On CPU, two live_skill_retrieval_stability tests that fail on main now pass; the two that still fail also fail on unmodified main. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… measurements belong to The comment quoted a sentence that the wording change replaced; it now names the current sentence and states that the scores are the earlier sentence's. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Completing a Task now carries a not_for, so the table of not_for guards lists it with the matrix test that ranks the request it exists for. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
9ccce7c to
d20e122
Compare
Fixes #4273
What changed
Retrieval wording of four seeded skills (
packages/agent/src/skill_pipeline.rs):not_foris now "Continue, resume or pick up work on a task."not_forgains "Ask which tasks or records depend on something."use_fornow reads "Ask which tasks or other records depend on, are blocked by or are linked to a given one."use_formade Implementing a Task lead "point rebuild task at the decision it has to respect", so it was reverted.Both requests leave
NOT_YET_WON. The golden (current.tsv,current.sha256) is re-recorded on CPU (nomic-embed-text-v1.5 Q8_0,NODESPACE_FORCE_CPU=1).Measured on CPU (retrieval scores)
Golden diff
14 rows (28 lines), all among these four skills and their neighbours. Relationship Management rows moved by up to 0.045 (
the launch task is blocked by the security review6th to 3rd,this task depends on the API migration7th to 6th,record an edge between the rebuild task and the storage decision3rd to 2nd;link this invoice to the Acme accountstill first with its lead 0.051 to 0.037), plus 0.001 to 0.007 drift on rows that name Completing a Task. No row lost a rank it held. This is not a full re-record (#4271 changed 380 lines ofcurrent.tsv).Checks
cargo test -p nodespace-agent --test it skill_confusion_matrix:: -- --ignoredon CPU: the matrix passes withNOT_YET_WONholding no stale rows; the non-ignored digest test passes.live_skill_retrieval_stabilityon CPU: unmodified main fails 4 of 40 (add_shaped_requests_for_another_skill_keep_their_leader,filing_requests_route_organization,scenario_11c_routes_relationship_management_every_rep,without_the_add_rule_those_adds_lead_with_a_skill_that_removes). With this change 2 fail, the same two as on main that are about other skills (filing_requests_route_organization,without_the_add_rule_…). Not fixed here.bun run shape:checkis in step (skilluse_fortext is not in the shape record);cargo fmt --check,cargo clippy -p nodespace-agent --all-targets -- -D warningsandcargo test -p nodespace-agent --lib skillpass.🤖 Generated with Claude Code