Skip to content

Send schema deletion to the Node Deletion skill from Schema Creation - #4357

Merged
mstomar125 merged 1 commit into
mainfrom
issue-4323-schema-delete-route
Nov 25, 2026
Merged

mstomar125 merged 1 commit into
mainfrom
issue-4323-schema-delete-route

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

What

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

The in-app (agent) form of the delete-a-schema rule told the model to delete the schema node, but Schema Creation's whitelist (create_schema, update_schema, get_node) has no delete_node. It now says: this skill does not offer the delete tool, never call delete_node here or claim the type was deleted; do not report deletion as unsupported or propose an empty-shell workaround; deleting a type is a separate destructive request handled by the Node Deletion skill, which the user sends as its own request, not started in this turn. It keeps what the user should know about that request (relationship declarations block it, subtypes block it, instances remain).

  • The CLI skill's prose form (skill-md/delete-a-schema.md) is unchanged: the CLI has no whitelist.
  • DELETE_A_SCHEMA.anchors drops the three anchors only the old in-app wording carried ("mirror of the", "instance data", "extends"); the form-drift test still holds the rest in both forms.
  • stage2_candidate_block.golden regenerated: the only change is that rule line.

Agent lane (packages/agent): owner signed off agent-lane work for this batch.

Retrieval

Retrieval embeds each skill's name and use_for only; the whitelist is untouched, so the skill stays on the mutating bar (0.30) and seeded_skills_classify_by_blast_radius_as_expected (Schema Creation: mutating, not destructive) still passes. Live retrieval stability runs were not done (no model loading), and nothing they measure changed.

Tests

  • New schema_creation_sends_schema_deletion_to_node_deletion: whitelist has no delete_node; the rule names Node Deletion and a separate request, forbids delete_node here. Mutation: restoring the old rule text fails it. (Its whitelist assertion duplicates the existing blast-radius test; not separately mutated.)
  • cargo test -p nodespace-agent: lib 1379 passed, --test it 173 passed (including the retrieval/confusion-matrix and prompt-assembly goldens), cargo clippy -p nodespace-agent --all-targets -D warnings and fmt clean.

Closes #4323

🤖 Generated with Claude Code

@mstomar125

Copy link
Copy Markdown
Contributor Author

APPROVE (static review, head 54c5d8c)

  • Schema Creation stays non-destructive: the whitelist is unchanged and the new test asserts delete_node is not in it; the rule now sends deletion to Node Deletion (whitelist includes delete_node) as a separate request.
  • stage2_candidate_block golden diff is the single DELETING A SCHEMA line.
  • CLI prose form (seeds/rules/skill-md/delete-a-schema.md) is untouched and still walks the full schema delete sequence, consistent with the new doc comment in skill_rules.rs.
  • Non-blocking finding (skill_rules.rs DELETE_A_SCHEMA anchors): dropping "mirror of the", "instance data" and "extends" removes the only drift guard on the prose form for that content, which the prose form still contains. The remaining anchors (remove_relationships, re-target, instances, unsupported, empty shell) are still checked against both forms. Consider a prose-only check for the dropped three.
  • Cannot verify without a live model: that "delete the adr type" actually retrieves Node Deletion.
  • NOT run by me: the new test schema_creation_sends_schema_deletion_to_node_deletion and its mutation check, the form-drift tests, the tests/it golden test, bun run test:changed, clippy (machine overloaded; the merge gate runs them).

Schema Creation's delete-a-schema rule told the model to delete the schema
node, but the skill's whitelist has no delete_node, so the call was refused.
Adding delete_node would make the skill destructive and move it to the
destructive retrieval bar. The in-app rule now says deleting a type is a
separate destructive request handled by Node Deletion, to be sent as its own
request, and keeps the facts the user should know about it (relationship
declarations, subtypes, instances). The CLI skill text is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@mstomar125
mstomar125 force-pushed the issue-4323-schema-delete-route branch from 54c5d8c to 247311a Compare November 25, 2026 08:52
@mstomar125
mstomar125 merged commit 5316a52 into main Nov 25, 2026
@mstomar125
mstomar125 deleted the issue-4323-schema-delete-route branch November 25, 2026 08:53
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.

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

1 participant