Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

docs: record the purge-target deprecation and the empty-flag refusal

AkitaOnRailsb3ee8b084b83
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 199dc2a8..15da0493 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,8 +11,24 @@ version in [`docs/changelog/`](docs/changelog/):
## [Unreleased]
+### Changed
+
+- `purge-project --confirm` without `--project`/`--project-id` now prints the
+ project it resolved from the current directory and the equivalent command
+ that names it, before the irreversible request. Naming the target will be
+ required in 4.0: from the wrong directory the derived name is the one project
+ nobody meant to delete, and a flag that spells it out is the only way to tell
+ the two cases apart (#1642).
+
### Fixed
+- `purge-project --project ""`, and an empty `--project-id`/`--workspace`/
+ `--from`/`--to-workspace` on `move-project`, `purge-session` and
+ `rename-project`, are now refused before anything is sent. An empty flag
+ passed the "was the target named" check and then resolved as if it had been
+ omitted, so a script that passed an unset variable reached the project its
+ current directory resolved to — a real purge from an explicit-looking
+ invocation (#1642).
- `ai-memory workstream-search` now labels a historical tool call or tool
result as completed evidence, as the managed-workstream docs describe. Its
text output used the event's role, which every transcript adapter sets to
diff --git a/docs/lifecycle-ops.md b/docs/lifecycle-ops.md
index b47859bc..8ae712e5 100644
--- a/docs/lifecycle-ops.md
+++ b/docs/lifecycle-ops.md
@@ -41,6 +41,14 @@ commands do: the `.ai-memory.toml` marker's `project`, then the git remote, then
the directory name. `--confirm`, the preview and every other guard behave the
same as with a name.
+That derived target is a deprecation, not a promise: `purge-project --confirm`
+without `--project`/`--project-id` prints the project it resolved and the
+command that names it, and it will be refused in 4.0, because the one thing a
+purge must not do is guess between "the checkout I am standing in" and "the
+project I meant" (#1642). An explicitly empty flag is already refused: `--project
+""` used to pass the "was it named" check and then resolve as if it had not been
+passed, which is how an unset variable in a script reached a real delete.
+
State-touching commands route through the HTTP admin API except `reset`,
`restore`, and `reindex`, which are direct-disk lifecycle operations that
fundamentally cannot run while another process holds the SQLite WAL writer. See