Skip to content

refactor(container)!: rename destroyUser to destroyUserData - #50

Merged
vreshch merged 1 commit into
masterfrom
refactor/destroy-user-data
Aug 23, 2026
Merged

refactor(container)!: rename destroyUser to destroyUserData#50
vreshch merged 1 commit into
masterfrom
refactor/destroy-user-data

Conversation

@vreshch

@vreshch vreshch commented Aug 23, 2026

Copy link
Copy Markdown
Member

Owner naming correction, landing before the 1.3.0 release so the wrong name never reaches npm.

VaultContainer.destroyUser -> VaultContainer.destroyUserData. It erases what a user has stored - every vault they own in this root, tombstones included. It does not destroy the user: accounts live in the auth service and never in the engine. The old name read like account deletion, which is a different operation owned by a different system.

No deprecated alias

Deliberate. The only consumer is agentage/memory, which picks the rename up at its 1.3.0 relock - so an alias would exist purely to be removed, and the whole point is that the wrong name stops spreading. Anyone outside the estate on 1.2.0 stays on 1.2.0 until they choose to move.

Cross-repo note: agentage/memory's host lifecycle wrapper gets the matching rename (deleteUser -> deleteUserData) in that same relock commit, for consistency with the /account/data route.

Sweep

Not just the identifier - the prose said "account erasure" in five places, which is exactly the claim the rename exists to stop making:

File What changed
src/container/vault-container.ts the VaultContainer method + its doc comment ("erases what ONE user has STORED... not the user - accounts live in the auth service"), the RoutedContainer note, and the implementation comment
test/container/admin-verbs.test.ts the describe block, 8 call sites, and the file header
README.md the layers diagram, the container verb list, the container prose paragraph, and the router/RoutedContainer paragraph

smoke:dist never named this verb, so it is unchanged. No other file in the repo referenced it - a destroyUser grep across src, test, README.md and package.json comes back empty.

Verified

npm run verify green: type-check, lint, format:check, 273 tests (26 files), coverage 97.4 / 88.2 / 98.3 / 99.0 against 70 floors, build, dist smoke ok.

Branched off master, independent of #49 (authors()) - the two touch different files and can merge in either order.

It erases what a user has STORED, never the user - accounts live in the auth
service and never in the engine. Clean rename, no deprecated alias: the only
consumer is agentage/memory, which picks it up at its 1.3.0 relock.
@vreshch
vreshch marked this pull request as ready for review August 23, 2026 10:53
@vreshch
vreshch merged commit f71f307 into master Aug 23, 2026
1 check passed
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.

1 participant