Repository navigation
cleanup: remove 7 dead public functions from uteke-core (#513) - #515
Conversation
Remove unused builder-pattern constructors and accessor: - open_with_tier, open_with_tier_and_backend, open_with_embedder, open_with_backend (inlined into open), open_with_recall, open_with_embedding - store() accessor (zero external call sites) Surviving constructors: open() and open_with_embedding_and_graph(). Internal finish_open/finish_open_full unchanged. Refactor test_recall_config_stored_but_override_per_call to use open() instead of removed open_with_recall. Closes #513
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (2)
Review powered by cora-cli · BYOK · MIT |
CI: ✅ All checks passBuild | Check | Clippy | Format | Test | Cora Review | Cargo Audit | Trivy — all green Cora PR Comment ReviewCora PR comment flags 2 'errors' that are false positives: Claim 1: Breaking change on removed constructorsVerdict: Intentional — documented in PR body. Pre-1.0 (0.x.x), zero external consumers outside workspace crates. All 6 removed constructors verified with Claim 2: store() accessor 'strands external code'Verdict: False positive. Cora read the doc comment but didn't verify actual usage. Note: Cora CI check (GitHub Action) passed. The PR comment review and CI check are separate systems — CI is authoritative here. Ready to merge. |
cleanup: remove 7 dead public functions from uteke-core (#513)
Summary
Removes 7 dead public functions from
uteke-core/src/lib.rs— all verified with zero external call sites across all workspace crates (cli, server, mcp).Closes #513
Changes
Removed constructors (6)
open_with_tieropen_with_tier_and_backendopen_with_embedderopen_with_backendopen_with_recallopen_with_embeddingRemoved accessor (1)
store()Surviving API
open(path)— used by uteke-server, uteke-mcp, uteke-cli/benchopen_with_embedding_and_graph(...)— used by uteke-cli mainTest refactor
test_recall_config_stored_but_override_per_callusesUteke::open(":memory:")instead of removedopen_with_recallNet diff
-106 lines +3 lines = 109 line reduction in API surface.