Skip to content

Retitle Conflict Resolution skill to Conflict Journal so "resolved" deletions reach delete_node (closes #3054) - #3077

Merged
malibio merged 2 commits into
mainfrom
issue-3054-resolved-delete-routing
Sep 26, 2026
Merged

malibio merged 2 commits into
mainfrom
issue-3054-resolved-delete-routing

Conversation

@malibio

@malibio malibio commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

Closes #3054

Problem

"delete the resolved incidents" ranked the conflict skill first (0.978) and Node Deletion second (0.904). delete_node is offered only from the top tool-bearing candidate, so the deletion was silently withheld.

Cause

A skill's embedded text is its title plus its description. The conflict skill's title, "Conflict Resolution", shared "resolve" with every "resolved" request. I tried six descriptions on the locked nomic-embed-text-v1.5 model. None flipped the ranking while the title stayed "Conflict Resolution", so the title carried the pull by itself.

Change

  • Retitle the skill Conflict Journal and drop "resolve" from its description. Its guidance, whitelist and behaviour are unchanged.
  • Rename the references in the agent-loop unit test, skill_md_generation.rs and the live retrieval tests.
  • Add deletion_requests_mentioning_resolved_route_node_deletion, which requires Node Deletion at rank 1 on every rep for four "resolved" deletion phrasings. Before this change, 3 of the 4 ranked the conflict skill first.
  • Widen the conflict control (control_conflict_requests_still_route_conflict_journal) from 3 to 5 prompts. All still rank Conflict Journal first.
Query Before After
delete the resolved incidents Conflict Resolution 0.978 > Node Deletion 0.904 Node Deletion 0.904 > Conflict Journal 0.864
get rid of all the resolved bugs Conflict Resolution 0.967 Node Deletion 0.893
delete the incident, it's resolved Conflict Resolution 0.991 Node Deletion 0.924

Not fixed here

"remove the resolved tickets" still ranks Graph Editing (0.855) above Node Deletion (0.841). The cause is Graph Editing's "mark it resolved" wording, and no conflict-skill wording moves it. Filed as #3076.

Seeding skips skills that already exist, so an existing install needs a database reset to see the new title. This is expected under the no-migration rule.

Testing

  • live_skill_retrieval_stability: 10/10 passed (--ignored, locked model)
  • nodespace-agent lib: 698 passed
  • nodespace-cli skill_md_generation: 12 passed
  • Pre-push gate passed

🤖 Generated with Claude Code

…eletions reach delete_node (closes #3054)

The skill's embedded title + description shared the word "resolve" with any
request mentioning "resolved", ranking it above Node Deletion on e.g.
"delete the resolved incidents" (0.978 vs 0.904). delete_node is offered only
from the top tool-bearing candidate, so the deletion was silently withheld.

Measured on the locked nomic model: rewording the description alone never
flipped the ranking — the title carried the pull. Retitling to "Conflict
Journal" and dropping "resolve" from the description puts Node Deletion at
rank 1 on four "resolved" deletion phrasings while every conflict-journal
control (now five prompts) keeps the skill at rank 1.

Adds deletion_requests_mentioning_resolved_route_node_deletion (rank-1,
every rep) to the live retrieval suite. "remove the resolved tickets" still
ranks Graph Editing first — a separate attractor, left out of the test.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@malibio

malibio commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review: PR #3077

Review Type: Initial review (no earlier reviews or comments on the PR)

Summary

This is a small, focused fix. The cause is found and measured: the skill's embedded title pulled "resolved" queries toward it, and six description-only rewordings did not change that. The fix is the smallest change that addresses that cause, a retitle plus a narrower description. It leaves ADR-038's trust boundary alone, which the issue's second option would have changed. All code references to the skill's title were renamed; the one leftover (a log fixture in scripts/aichat.test.ts) was left on purpose and is harmless. The new live test and the wider control cover the regression and its opposite case. The remaining miss ("remove the resolved tickets") is filed separately instead of being tested around. The code is a net improvement, and I found no blocking issues.

Requirements Check (#3054)

  • ✅ "delete the resolved incidents" plus 2–3 similar requests put delete_node on the Stage-2 surface. deletion_requests_mentioning_resolved_route_node_deletion requires Node Deletion at rank 1 on every rep for 4 phrasings. delete_node is offered from the top tool-bearing candidate, so Node Deletion at rank 1 means delete_node is offered. The test checks the retrieval precondition, not the Stage-2 surface itself, which is fine for this layer.
  • ✅ Conflict-journal requests still rank the conflict skill first. The control is renamed and widened from 3 to 5 prompts. The new prompts are "unresolved conflicts" (a "resolve" stem as the counter-case) and "keep the existing node" (the adopt path).
  • ✅ All existing live retrieval tests pass. The PR reports 10/10 with --ignored on the locked model, 698 agent lib tests, and 12 skill_md_generation tests.

Rename Completeness

git grep finds no leftover "Conflict Resolution" title references in Rust, TS or Svelte source that match on the skill name. The remaining hits of "conflict resolution" are:

  • tools.rs:2135 (AdoptExistingConflict => "conflict resolution"): a tool activity label. It is not embedded for skill retrieval and is not a title lookup.
  • The core, Tauri and frontend hits are generic prose about sync and conflict strategies. They are unrelated.
  • The scripts/aichat.test.ts:166,169 log-line fixture tests log parsing, not skill lookup. Leaving it is correct.
  • The one intentional mention is the history in the new test's doc comment.

Code Review Findings

🔴 Critical

None.

🟡 Improvements

  • 📁 packages/agent/src/skill_pipeline.rs:521-523 (Graph Editing rationale comment): The comment now says "while the conflict-journal skill won them on the shared word 'resolve'". After this PR, that skill has no "resolve" in its title or description. A reader will look for the shared word in the current text, not find it, and conclude the comment is stale. The rationale is still valid, but the comment should say what is true now and not mix old and new names. For example: "...while the conflict skill (then titled 'Conflict Resolution') won them on the shared word 'resolve'", or state the constraint directly: "Graph Editing must carry the completion words itself; it must not rely on another skill losing them." Principle: comments describe the current constraint (CLAUDE.md); a comment that is half renamed misleads.

🟢 Nits

  • Nit: 📁 packages/agent/tests/live_skill_retrieval_stability.rs:425-426: The rewrapped doc comment line ("conflict skill, before it was retitled Conflict Journal), and a lexical false positive there left no write") is about 110 columns, and rustfmt does not reflow comments. Rewrap it to match the surrounding lines. The same kind of overlong line appears at skill_pipeline.rs:521.
  • Nit: 📁 packages/agent/src/skill_pipeline.rs:648: Unlike most sibling skills, the new description has no "Use when the user…" clause. That is fine because it is measured and retrieval-driven, and the control passes. It is worth a word in the adjacent comment so a later editor does not add "Use when the user wants to resolve…" back for consistency. The existing comment ("No form of 'resolve' in the title or description") largely covers this already.
  • Nit: 📁 packages/agent/src/skill_pipeline.rs:289 (guidance body): It still says "inspects and resolves records". That is correct as long as only the title and description are embedded, which the PR states and the tests support. If markdown_content is ever embedded, this line would bring the attractor back. That is not actionable now, but the constraint comment at :636 could say that only title and description are embedded.
  • Nit: The new live tests share the existing suite's #[ignore] limitation: they run only when the local embedding model is on disk, so the pre-push gate does not enforce them. This limitation predates the PR, and the PR records a manual 10/10 run. No action needed.

Standards Check

Recommendation

APPROVE. The fix is correct and minimal, the measurements behind it are sound, and the tests guard both directions. I recommend fixing the Graph Editing comment (🟡) before merge, but it does not block. The rest are optional polish.

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.

- Graph Editing rationale now names the conflict skill's former title
  explicitly instead of implying Conflict Journal still carries "resolve"
- Conflict Journal comment states that only title + description are
  embedded, not the guidance markdown (which still says "resolves")
- Rewrap an overlong doc comment in live_skill_retrieval_stability.rs

Skipped: adding a "Use when..." clause (the description wording was
measured; adding text risks reintroducing the attractor) and gating the
#[ignore]d live tests (pre-existing, needs the local model).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@malibio

malibio commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator Author

Address-review summary

Addressed (6b9f746, comments only):

  • 🟡 Graph Editing rationale comment now names the conflict skill's former title ("Conflict Resolution") explicitly instead of implying Conflict Journal still carries "resolve".
  • 🟢 Conflict Journal comment now states only the title and description are embedded, not the guidance markdown, which still says "resolves".
  • 🟢 Rewrapped the overlong doc comment in live_skill_retrieval_stability.rs and the Graph Editing comment.

Skipped:

  • 🟢 Adding a "Use when…" clause to the description. The wording was measured on the locked model, and more text risks reintroducing the attractor. The comment above it records why.
  • 🟢 Gating the #[ignore]d live tests. This predates the PR and they need the local embedding model.

Re-Review Decision

NO RE-REVIEW NEEDED. Only comments changed; no code or test logic was touched. Pre-push gate passed.

@malibio
malibio merged commit ba99a87 into main Sep 26, 2026
@malibio
malibio deleted the issue-3054-resolved-delete-routing branch September 26, 2026 13:40
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.

"delete the resolved incidents" routes to Conflict Resolution, silently withholding delete_node

1 participant