Repository navigation
refactor: one remember sequence with one provenance failure policy; MCP remember takes source and author_type (#1516) - #1584
Merged
Conversation
…CP remember takes source and author_type (#1516) Uteke::run_remember runs the source pre-check, the entry-point choice and the provenance follow-ups. HTTP, MCP and the CLI decode and render. A failing follow-up after the store is a warning, not an abort or a 400.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Oct 30, 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
Uteke::run_remember(newremember_exec.rs) runs the whole remember sequence for a decodedRememberRequest: the strict-privacy check of thesource, the choice of write entry point (room, contradiction, typed, plain) and the provenance follow-ups (source,author_type,author). HTTPpost_remember, MCPexec_rememberand the CLIremember::runonly decode and render. MCPuteke_remembergainssource,source_typeandauthor_type(additive).Why
#1516: each transport ran the follow-ups in its own order with its own failure policy (HTTP 400 or log-only, CLI abort, MCP abort). One policy now: values are validated before the write, so a follow-up can only fail on a database error; the memory is already stored, so the call succeeds and the failure is a warning (MCP text line, CLI stderr, log) rather than an error that invites a duplicate retry. A contradiction-checked write without a type now infers it like every other path.
Testing
cargo fmt,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked,cargo run -p docgen(no diff).source/author_type.remember*core entry points behind the request;POST /room/rememberkeeps its own request. CORE note: the HTTP 400 on a failedauthor_typefollow-up is unreachable after decode validation, so no visible change; contract issue for uteke-cloud to be filed if the owner wants the warning surfaced in the HTTP body.