Repository navigation
refactor: remove the Recall/List/Remember/Forget policy types (#1439, part G) - #1582
Merged
Merged
Conversation
… part G) Every surface follows the HTTP rules, so each policy had one value. decode takes only the input; resolve and resolve_memory_id lose their policy argument; IdCharset, FullIdForm and UnmatchedPrefixText are removed. No behaviour change.
🔍 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 G of #1439: delete
RecallPolicy,ListPolicy,RememberPolicy,ForgetPolicyand the forget-only enumsIdCharset,FullIdForm,UnmatchedPrefixText.RecallRequest::decode,ListRequest::decode,RememberRequest::decodeandForgetRequest::decodetake only the input;ForgetRequest::resolveandresolve_memory_idlose their policy argument. Tests that compared the HTTP and MCP policies are now single-behaviour tests.Why
After parts C to F every surface follows the HTTP rules, so each policy had one value. The structs only encoded a divergence that no longer exists.
grep Policy::HTTP|Policy::MCPnow returns nothing.Testing
cargo fmt,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked,cargo run -p docgen(no diff).tags: []no filter, caps 100/1000, default limit 10, type validated and copied to metadata, hex-and-dash ids, hyphenated full ids,Memory not foundplus existence check).--typedefault (follow-up E2).