Repository navigation
feat(core): namespace deprecation signal on writes (#1427, phase 1) - #1434
Merged
Merged
Conversation
Writing to a non-default namespace now carries a one-sentence deprecation warning on HTTP (/remember, /room/remember, /extract, /import, /room/create, PUT /memory), MCP (uteke_remember, uteke_update, uteke_room_create) and the CLI (stderr only). The wording lives once in uteke-core; the server logs it once per distinct namespace. Routing, storage and reads are unchanged. Tool descriptions, uteke guide, skill and docs steer to rooms, tags, author. Refs #1427 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…recation-signal-1427 # Conflicts: # crates/uteke-server/src/handlers.rs
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Phase 1 of #1427 (namespace deprecation): the signal only. Routing, storage and reads are unchanged and the
namespaceparameter keeps working everywhere.A write to a non-default namespace (omitted and an explicit
defaultare not deprecated; the match is exact, soDefaultordefaultare signalled because storage treats them as different namespaces) now carries one sentence, defined once inuteke_core::namespace_deprecation:Per surface:
POST /rememberandPOST /room/rememberput it in the existingwarningfield (merged after any remember: surface embedding write failure — no silent success when vector insert fails #1273 embedding warning).POST /extract,POST /import,POST /room/createandPUT /memory(namespace move) get an OPTIONALwarningfield that is absent for the default namespace, so those responses stay byte-identical. The server logs it at WARN once per distinct namespace per process.uteke_remember,uteke_update(namespace move) anduteke_room_createappend\n⚠ <sentence>to the tool text (nothing for the default namespace). All 12namespaceargument descriptions and theuteke_namespace_rename/deletedescriptions say DEPRECATED and point to rooms, tags and author.uteke remember,uteke import,uteke room createprint oneWarning:line on stderr (effective namespace: flag,UTEKE_NAMESPACEor config). stdout and--jsonare unchanged, including via-serverremember, where the merged server warning is stripped back out before printing.--namespacehelp text says deprecated.uteke guidetext, both skill copies (byte-identical, parity test green),docs/multi-agent.mdnew "Namespaces are deprecated" section with the phase plan, notes indocs/mcp.mdanddocs/cli-reference.md, CHANGELOG[Unreleased].docgenoutput is unchanged (docs/api-reference.mdanddocs/core-contract.jsonbyte-identical).Not in this PR (later phases):
authorwithout a room, the migration tool, single-namespace mode, namespace CRUD removal.CORE-area change, contract issue needed BEFORE merge
Namespace is a CORE area. This change is additive only (a
warningtext, an optionalwarningfield, no removal or semantic change), but per the CORE/LAB rules it needs a uteke-cloud contract issue before it merges. The owner has not been asked yet and no uteke-cloud issue exists. Do not merge until that is done.Why
Namespaces ended up doing four jobs (agent identity, machine, project, topic) and silently hide memories from recalls that omit the parameter. The owner decided on one brain per database organised with rooms, tags and author, phased over 0.x minors. Phase 1 tells every writer, without breaking anyone.
Testing
cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspace,cargo test -p uteke-core --no-default-features --features "onnx,vecq" --lib: all pass./rememberwarning for non-default, default and omitted keep exactly the keysauthor_type, embedding_written, id, warningand no deprecation text,/room/create(4 tests); MCPuteke_remembertext (suffix present/absent, default byte-identical one line),uteke_room_create, everytools/listnamespace argument says DEPRECATED (4 tests); CLI notice for remember/import/room create vs read commands and explicitdefault(3 tests).uteke-servebuilt fromorigin/developand from this branch, freshUTEKE_HOMEeach, fake OpenAI-compatible 768-dim embedder, identical request battery, ids and timestamps normalised, scores rounded to 2 decimals (recency boost makes raw scores drift by about 2e-4 between two runs at different wall-clock times):Defaultcase and a 400, room create, room remember, import, memory move): 8/8 differ only by the newwarning(baseline has none, new has the sentence, everything else equal; the 400 is identical).--json --namespace work room createprints the warning on stderr only and stdout is unchanged; no line for omitted or explicitdefault; none forroom list.rememberpath end to end (covered by the strip unit test only),/extract(needs an LLM; covered by the helper unit test).Refs #1427
🤖 Generated with Claude Code