You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
External-agent deletes run without NodeSpace-side confirmation (CLI node delete path) #3142
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
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.
Activity
Hold agent deletes for an explicit user yes (closes #3096)
Hold agent deletes for an explicit user yes (closes #3096) (#3147)
malibio commentedon Sep 27, 2026
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.
Make CLI node delete two-step: preview, then confirmed delete (closes #…
Make CLI node delete two-step: preview, then confirmed delete (closes #…