Skip to content

External-agent deletes run without NodeSpace-side confirmation (CLI node delete path) #3142

Closed

Description

@malibio

Summary

The local agent no longer deletes without an explicit user yes: its delete_node is held, the turn ends with a confirmation naming the targets and their descendant count, and only an unqualified yes deletes the confirmed ids at the confirmed versions (#3096).

External agents (Claude Code and others driving NodeSpace through the skill package) are not covered. They delete with nodespace node delete <id>, which removes the node and its whole subtree (ADR-041) immediately. The only safeguards on that path are:

  • the SKILL.md prose ("confirm the title matches what the user described before deleting … confirm each deletion before moving to the next"), which is advice to the model, not enforcement;
  • whatever command approval the host agent applies to shell commands, which NodeSpace does not control and which may be set to auto-approve.

Why it matters

The failure #3096 closes for the local agent — the right skill, the wrong records, an unrecoverable delete — is just as possible on the external path. A wrong-record delete there can't be undone either.

Options to assess

  • A two-step CLI delete: node delete without a token prints what would be removed (titles, count, descendant count) and a short-lived confirmation token; a second call with the token deletes exactly those ids at those versions, reusing the local agent's held-delete execution (deletion_confirmation::execute_confirmed).
  • Leave the CLI immediate for humans, and require the two-step form only when the call comes from an agent session (the skill package can tell).
  • Accept the host agent's approval as sufficient and document that decision in an ADR.

Acceptance criteria

  • A decision on whether external-agent deletes require NodeSpace-side confirmation, recorded as an ADR
  • If yes: an external agent cannot remove a node without a confirmation that names what will be removed, and a version change between confirm and execute aborts

Related: #3096, ADR-041.

Activity

  1. malibio commented on Sep 27, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 5444 tests (first run 2 timeout-flaky failures under load, clean on rerun). Decision: two-step CLI delete for all callers — preview by default, delete only with --version/--descendants matching; ADR to follow in nodespace-docs.

  2. self-assigned this
    on Sep 27, 2026
  3. added 2 commits that reference this issue on Sep 27, 2026
    9adbde3
    5778438
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