Skip to content

Schema Creation skill tells the model to delete a schema but its whitelist omits delete_node #4323

Done

Description

@mstomar125

Found by the skill whitelist vs prose audit run after #4322 (the loop now refuses a model call to a tool the turn did not offer).

Evidence. Built-in skill Schema Creation (id 3e9a7c14-5d28-4b61-8f0c-6a2d9e4b7c03, seed in packages/agent/src/skill_pipeline.rs) has whitelist create_schema, update_schema, get_node. Its rule delete-a-schema says to "delete the schema node" and to delete instances separately with delete_node. A schema is deleted with delete_node.

Effect. Destructive tools are offered only from the retrieval winner. With Schema Creation leading and no delete_node on its whitelist, deleting a type is impossible that turn even if Node Deletion places second.

Why it is not a one-line fix. Adding delete_node makes Schema Creation a destructive skill, so score_bar_for moves it from the mutating bar (0.30) to DESTRUCTIVE_SKILL_SCORE_BAR (0.45). That changes how often it leads on schema-creation requests, so the retrieval goldens and live stability tests need a check.

Decide between

  1. Hand deletion to Node Deletion: reword the delete-a-schema rule so removing a type is routed there, no whitelist change.
  2. Add delete_node to Schema Creation and accept the higher bar, after measuring retrieval.

Low urgency: schema deletion is rare. The sibling Organization mismatch (update_node, create_node) is fixed separately.

Activity

  1. mstomar125 commented on Nov 25, 2026

    @mstomar125
    ContributorAuthor

    Decision (owner, 2026-11-25): keep Schema Creation non-destructive and reword its rule to send schema deletion to the Node Deletion skill, as a separate request. Deleting stays a separate destructive action; no whitelist change and no retrieval-bar change.

  2. self-assigned this
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions