Repository navigation
refactor: MCP remember follows the HTTP rules and the CLI builds one metadata on every path (#1439, part E) - #1580
Merged
Conversation
…metadata on every path (#1439, part E) MCP uteke_remember now validates content, tags and type at decode, infers an omitted type, copies the type into metadata and rejects wrong-shaped tags and unknown arguments. The CLI parses --meta once for local and server writes, applies --timestamp before a server request and refuses --room via a server.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
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
Part E of #1439 (one behaviour across surfaces), the
rememberoperation:uteke_rememberfollows thePOST /rememberrules: content and tags validated at decode, an omittedtypeis inferred (it was stored asfactwith no inference), an unknowntypeis refused, a giventypeis copied into the metadata. A non-array-of-stringstags, a non-stringtypeand any undeclared argument are errors (they were silently dropped).roomstays MCP-only.RememberPolicy::MCPis nowHTTP; the tests that pinned the divergence now pin the one behaviour.--metaparser in core (metadata_from_cli_flags): numbers, booleans, bare keys andrel:type:targetwere only understood on a local store; the via-server path sent strings and dropped bare keys.--timestampworks (the anchor is applied before the request, as locally),--roomis an explicit error instead of the server's "unknown field";to_http_bodyno longer sendsroom/timestamp.MemoryType::infer_stored_namereplaces three copies of the inference fallback.Why
The surfaces diverged on the same request (#1439; owner decision 2026-10-13: unify towards HTTP). This removes the remember divergences without changing HTTP behaviour.
Testing
cargo fmt,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked,cargo run -p docgen(no diff).--metapairs.