Skip to content

fix(agent): Organization skill whitelist holds update_node and create_node - #4324

Merged
mstomar125 merged 1 commit into
mainfrom
fix/organization-skill-whitelist
Nov 20, 2026
Merged

mstomar125 merged 1 commit into
mainfrom
fix/organization-skill-whitelist

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Problem

Core #4322 makes the agent loop refuse a model call to a tool the turn did not offer. The built-in Organization skill's rules tell the model to call update_node (organization-add-existing: add an existing node to a collection) and create_node (collection-at-create-time), but its whitelist was create_relationship, delete_relationship, get_node, search_semantic, search_nodes. Those calls used to run by accident; now they are refused whenever Organization leads retrieval.

Fix

Add update_node and create_node to Organization's whitelist.

  • Score bar unchanged: create_relationship already makes the skill mutating (skill_is_mutating), and neither added tool is destructive, so score_bar_for still returns MUTATING_SKILL_SCORE_BAR. The test also asserts no destructive tool is listed.
  • Goldens: the retrieval goldens and prompt snapshots do not pin whitelists (retrieval ranks on use_for), and shape:check passes, so nothing needed regenerating and no model was run.
  • Tests: the existing all-skills test a_skill_names_only_tools_in_its_list already checks every seed's rule text against its whitelist, with a known-gaps list; the two Organization entries come off it (it fails otherwise). Added a narrow organization_whitelist_holds_the_tools_its_rules_call. Mutation check: removing update_node from the whitelist fails the new test with "Organization's rules call update_node but its whitelist ... omits it".
  • bun run test:changed passes. Merge gate not run.

Not in this PR

Schema Creation names delete_node without listing it; adding it raises that skill's score bar, so it is split out as #4323 for a decision.

Agent-lane

This touches packages/agent. The agent-lane sign-off for the #4291/#4316 remote-tool build stands for this fix, because #4322 (part of that build) exposes the bug.

🤖 Generated with Claude Code

… the tools its rules call

The agent loop now refuses a call to a tool the turn did not offer. The
Organization skill's rules tell the model to call update_node (add an
existing node to a collection) and create_node (create with a collection
path), but its whitelist omitted both, so those instructions were refused
whenever Organization led retrieval.

create_relationship already makes the skill mutating, so its score bar is
unchanged. Takes the two entries off the known-gaps list in the
all-skills whitelist test and adds a narrow Organization test.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@mstomar125
mstomar125 force-pushed the fix/organization-skill-whitelist branch from ee6f0f4 to bf6d37f Compare November 20, 2026 12:51
@mstomar125
mstomar125 merged commit 11298ec into main Nov 20, 2026
@mstomar125
mstomar125 deleted the fix/organization-skill-whitelist branch November 20, 2026 12:51
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