Skip to content

Keep Addressing Review Findings from leading requests to find out why and write it up as work (#3830) - #4279

Merged
mstomar125 merged 1 commit into
mainfrom
issue-3830-skill-routing
Nov 16, 2026
Merged

mstomar125 merged 1 commit into
mainfrom
issue-3830-skill-routing

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Refs #3830.

What this changes

Addressing Review Findings gets a not_for: "Find out why something happened, or write up what was found as a new task or bug." (packages/agent/src/skill_pipeline.rs). Nothing else in the seed table moves.

Why

On eval:tasks the scenarios bug-created-ready and bug-diagnosed fail on every rep because the skill that carries create_task is never in the routed candidates (the full results are on the issue). The retrieval side, measured with the embedding model on CPU (no chat model), shows why: the procedure lane returns one skill, and Creating a Task is second by a hair on both Stage 1 queries.

Stage 1 query before after
"find out why a checklist box on the release branch is unticked after being marked done and write up what was found as work in Query engine rewrite" Addressing Review Findings 0.961, Creating a Task 0.955 Creating a Task 0.955, Addressing Review Findings 0.947 (+0.008)
"mark the checklist item for Query engine rewrite release branch as work to be tracked" Instrumenting a Change 0.928, Creating a Task 0.926 unchanged: still lost by 0.002

What was measured and rejected

Everything was tried with the suite's trial-wording mechanism (SKILL_TEXT_OVERRIDES) before anything was seeded, over the failing queries plus 10 requests the matrix already records for the task skills:

  • Broad wording on Creating a Task ("Track something as work ... raise it as a task ... log it"): wins both Stage 1 queries, but lifts Creating a Task by up to 0.06 on every request that names a task, so five recorded rows are lost ("continue the task I was working on", "it won't let me mark this task done", "mark the export task done", "add metrics and tracing criteria to the sync task", "create a task for Marcus ..."). Seeded and run through the matrix to confirm; reverted.
  • Narrow wording on Creating a Task (one added "Use when ..." clause): wins the first query (0.938) but loses "raise the unticked checklist box ... as a task" and "create a task for Priya ..." to Implementing a Task. It moves the tie.
  • A not_for on Instrumenting a Change (two wordings): makes Creating a Task lead the first query by 0.001 over Reviewing a Task, which a CPU/GPU difference can undo, so it is not claimed.
  • Longer not_for wordings on Addressing Review Findings did not lower it.

Golden (CPU-recorded, as in the earlier skill-matrix change)

current.tsv gains four rows and changes two: the closest neighbour of "set the incident's resolved field to true" (Addressing Review Findings, margin +0.001 -> +0.029) and of "remove the paid invoices" (a different neighbour, same margin). Two of the four new rows are won; two are recorded in NOT_YET_WON with the reason (the first query above, and "investigate why a task can be done with an unticked checklist box ..." which Reviewing a Task leads by 0.010). skills_win_their_requests is the guard named in NOT_FOR_GUARDS for the new not_for.

Not done / uncertain

  • The first Stage 1 query stays lost: Stage 1 turns "get that tracked as work" into "mark ... as work to be tracked". Fixing that is a routing or Stage 1 change, not wording; it is on the issue.
  • Measured on CPU only. A GPU recording can order near ties differently (the winning margin here is 0.008). No chat model was loaded.
  • This only fixes the routing of bug-diagnosed. Whether the model then follows the procedure is unmeasured: the issue's earlier trace showed a turn ending on "I will now ..." even when routed correctly.

bun run test:changed passes locally (nextest across the workspace included); quality:fix clean.

🤖 Generated with Claude Code

@mstomar125

Copy link
Copy Markdown
Contributor Author

APPROVE

Independent read of head b1a28b6 (read-only; no model, no cargo, load ~10).

  1. Golden diff is limited to the intended rows. Changed rows: "set the incident's resolved field to true" (nearest neighbour Addressing Review Findings, margin +0.001 -> +0.029, same top score 0.882, same rank 1) and "remove the paid invoices" (neighbour Addressing Review Findings -> Answering a Question, margin +0.047 -> +0.048, rank 1 kept). Both are neighbours of the skill that gained the not_for, and both only moved away from it. Rows 14 ("link this invoice", +0.037) and 41 ("purge resolved alerts", +0.000) also list it as neighbour and are unchanged, so no row lost rank and no lead margin shrank. Four rows added, none removed: two won (+0.004 over Play Workflow State, +0.016 over Graph Editing), two recorded not-yet-won (Instrumenting a Change leads, Reviewing a Task leads by 0.010).
  2. current.sha256: seed_text_digest (skill_confusion_matrix.rs:785) hashes every seeded skill's title, use_for, not_for, then labelled cases, CASES (query, owner, want) and the must-not-lead list. This PR changes exactly one not_for and appends four CASES, and the digest changed; the direction is consistent. I could not recompute the value (would need the it-test binary build); the gate test the_recorded_matrix_is_of_the_seeded_text will confirm it in CI.
  3. Semantic safety: the skill's use_for ("Fix what a code review found ... changes requested queue") is not touched, and the skill is attached to the Changes requested query (attached_to) and reaches an agent through that queue, not by request retrieval (matrix comment at skill_confusion_matrix.rs:372; workflow_seeds.rs:1689 asserts it is reached through the queue). No matrix row or live scenario carries "address the findings / what the reviewer found" wording, so nothing in the suite is steered away. The not_for says "find out why ... or write up what was found as a new task or bug", which does not name fixing or addressing findings. Residual: "write up what the reviewer found as tasks" would now rank this skill lower in the procedure lane, in favour of Creating a Task, which is arguably the correct owner; unmeasured.
  4. NOT_FOR_GUARDS has ("Addressing Review Findings", ["skills_win_their_requests"]) at live_skill_retrieval_stability.rs:2004; that function exists at skill_confusion_matrix.rs:837 with #[tokio::test] and the exact #[ignore] line the gate checks. The carrying/guarded skill sets match. NOT_YET_WON reasons are honest and match the PR body (0.928 vs 0.926; Reviewing a Task +0.010).
  5. Claims are honest: PR says CPU only, +0.008, procedure-lane only, and that the second query stays lost. Note the golden shows a thinner +0.004 against a non-procedure neighbour (Play Workflow State) on that first-ranked row; that is the all-skills ranking, the procedure lane returns one skill, so the +0.008 is the relevant margin. Risk if a GPU recording flips the order: the procedure lane returns Addressing Review Findings again, which is exactly today's behaviour (0.961 vs 0.955), so a flip is no worse than main. The only new exposure is the not_for lowering that skill by 0.014 on that kind of query; it is not reached by request anyway. Worth merging as is, like Tighten skill wording so the two near-tie requests win on CPU (#4273) #4276; a GPU control should still be run and recorded on the issue before it is claimed as fixing bug-diagnosed.
  6. No ticket numbers or suppressions in the new comments or code. shape:check: diff touches no shape-record files (src/skill_pipeline.rs seed text only), consistent with Tighten skill wording so the two near-tie requests win on CPU (#4273) #4276.

Not verified: exact sha256 value, live ranking numbers (taken from the golden diff), GPU ordering, CI check status (no check runs were reported on this commit when I looked).

… and write it up as work

Addressing Review Findings led the procedure lane for a request to find out why a task is done with an unticked checklist box and write up what was found as work (0.961 against 0.955 for Creating a Task, the skill that carries create_task). Its not_for now names finding out why something happened and writing up what was found as a new task or bug; the request leads Creating a Task by 0.008 and no other recorded row moves except the closest neighbour of two rows that lost it as a neighbour.

The confusion matrix gains four requests for Creating a Task, two won and two recorded as not yet won with the reason: wording on Creating a Task itself moved the tie to the requests that name a task, and Instrumenting a Change and Reviewing a Task lead the others by a hair.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@mstomar125
mstomar125 force-pushed the issue-3830-skill-routing branch from b1a28b6 to 775b851 Compare November 16, 2026 10:21
@mstomar125
mstomar125 merged commit 4181740 into main Nov 16, 2026
@mstomar125
mstomar125 deleted the issue-3830-skill-routing branch November 16, 2026 10:21
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