Skip to content

"remove the resolved tickets" routes to Graph Editing, silently withholding delete_node #3076

Closed

Description

@malibio

Summary

"remove the resolved tickets" ranks Graph Editing first (0.855) and Node Deletion second (0.841) in Stage-2 retrieval. delete_node is offered only from the top-ranked candidate that has tools, and Graph Editing has tools, so delete_node is withheld on this request. The only record of it is the info log destructive_tools_withheld. The user's deletion request can't be carried out, and nothing tells them why.

This is the same failure as #3054, but a different skill causes it. #3054 fixed the conflict skill's pull on "resolved" by retitling it to Conflict Journal. After that fix, "delete / get rid of / purge … resolved" requests rank Node Deletion first. This phrasing still doesn't, because Graph Editing's description says "mark it resolved, done, or paid", and "remove" is a weaker deletion verb than "delete" or "get rid of". No wording of the conflict skill changes this ranking.

Evidence

Locked nomic-embed-text-v1.5, full seeded skill registry, after #3054:

"remove the resolved tickets": ["Graph Editing=0.855", "Node Deletion=0.841", "Conflict Journal=0.797", "Node Merge=0.788"]

Related phrasings already route correctly, so the margin is narrow and wording-specific:

"remove the closed tickets"            -> Node Deletion first (guarded by control_deletion_requests_are_not_outranked_by_graph_editing)
"delete the resolved incidents"        -> Node Deletion=0.904 first
"get rid of all the resolved bugs"     -> Node Deletion=0.893 first

Constraints

Graph Editing's description is tuned against several guards in packages/agent/tests/live_skill_retrieval_stability.rs, all of which must keep passing:

  • completion_state_updates_route_graph_editing: "mark X resolved/paid/done" must keep Graph Editing in the top 3.
  • control_deletion_requests_are_not_outranked_by_graph_editing
  • deletion_requests_mentioning_resolved_route_node_deletion
  • control_conflict_requests_still_route_conflict_journal

The skill_pipeline.rs comments record what earlier attempts taught. Descriptions may contain only words for what the skill does. A disclaimer naming other operations pulls those operations toward the skill, because embeddings have no negation. Broadening Graph Editing with completion-state nouns previously outranked Node Deletion on "remove the closed tickets".

Options

  • Strengthen Node Deletion's description for "remove" so it wins on "remove … " phrasings. Check the existing Node Deletion controls and the non-deletion prompts it was previously an attractor for.
  • Narrow Graph Editing's "mark it resolved" phrasing so it is less pulled by the bare state word when the verb is destructive. Check against the completion-state guard.
  • Offer destructive tools from the top-ranked skill that has them, not from the top tool-bearing skill overall. This changes the ADR-038 trust boundary, so it needs a decision rather than a patch. It would also close this whole class of failure rather than one phrasing at a time.

Acceptance criteria

  • "remove the resolved tickets" ranks Node Deletion first on every rep, plus 2–3 similar "remove … resolved/closed/done" phrasings
  • Added to deletion_requests_mentioning_resolved_route_node_deletion (or a sibling rank-1 test)
  • All existing live retrieval tests in live_skill_retrieval_stability.rs pass

🤖 Generated with Claude Code

Activity

  1. malibio commented on Sep 26, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 278 files / 5406 tests passed

  2. self-assigned this
    on Sep 26, 2026
  3. malibio commented on Sep 26, 2026

    @malibio
    CollaboratorAuthor

    Findings: will be fixed by #2268 (skill exclusion scoring)

    Option 1/2 (rewording) can't hold a margin

    About 30 Graph Editing and Node Deletion description/title variants were swept against every guard (locked nomic model, full registry). Graph Editing's score on "remove the resolved tickets" tracks its score on "mark incident resolved" nearly 1:1, because the two queries differ only in the verb. The best variant fixes this issue by +0.020 but leaves the completion-state guards 0.003 above rank 4. Details are in #2268.

    Option 3 as written would bring back #2240

    "Offer destructive tools from the top-ranked skill that has them" means offering delete_node whenever Node Deletion places in the top 3 at all, which is the ride-along #2240 removed. A near-tie margin also leaks: "keep the existing node for that conflict" puts Node Deletion 0.012 behind Conflict Journal, which is closer than this issue's 0.014.

    Model-judgment experiment (production stack)

    The real LocalAgentService (Stage 1, retrieval, workspace context, Stage 2) ran on E4B against a fresh fixture DB per turn. Outcomes were scored from the store, 3 reps per prompt. Two arms: the current top-1 rule, and delete_node admitted from any top-3 candidate that clears its bar.

    top-1 (current) any top-3
    remove the resolved tickets 0/3: finds both tickets, can't delete, replies "node search completed" 3/3, exactly the right two
    remove the closed tickets 3/3 3/3
    get rid of the paid invoices 2/3 3/3
    delete the resolved incidents 0/3 0/3 (see below)
    wrong deletes on non-deletion prompts 0 0 of 10 turns where delete_node was actually offered

    Stage-2 surface tracing showed that only 10 of the 21 non-deletion turns actually had delete_node offered ("remove the due date…", "mark the outage report done", "keep the existing node for that conflict", and one fail-open turn). On the other 11, a schema candidate at 1.000 took the slot. So the result is clean but the sample is small.

    Separately: "delete the resolved incidents" fails 6/6 in both arms even though Node Deletion wins retrieval (0.904) and delete_node is offered. E4B calls list_conflicts(status: "resolved") instead. That is a model-level Conflict Journal pull: #3097.

    Also found: agent deletes have no confirmation

    The agent calls delete_node without any human-in-the-loop step, so every agent delete is an unconfirmed hard cascade (ADR-041). Filed as #3096. It affects this issue's risk calculus: with confirmation in place, the top-1 admission rule matters much less.

  4. added a commit that references this issue on Sep 27, 2026
    53ad655
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions