Repository navigation
chore: release v0.24.2 to main - #1815
Conversation
…1416) (#1417) uteke-serve now applies graph_density_weight, graph_authority_weight, graph_rerank_enabled and jaccard_weight from [recall], as the CLI does. Defaults are unchanged when the keys are absent. Second step of #1355. Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
uteke-serve now passes hot_days, warm_days and hot_boost from [tier] to the store at open, as the CLI does; absent keys keep the core defaults (7 / 30 days, boost 0.1). Third step of #1355. Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…and the external-embedder setup (#1413) (#1420) Parked locally by owner request (lowest priority); not pushed. Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
… path check) (#1421) (#1422) * fix(cli): harden uteke upgrade (tag chars, download size cap, archive path check) (#1421) - restrict the version tag to [0-9A-Za-z.-] (suffix included) and re-check it before building the URL/file name - cap the archive (128 MiB) and checksums file (1 MiB) while streaming and from Content-Length - component-based archive entry path check instead of contains("..") - stronger UTEKE_UPGRADE_SKIP_CHECKSUM warning Refs #1327 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * docs(cli): state the real release archive sizes next to the download cap (#1421) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…) (#1423) Add uteke-core `RecallInput` / `RecallPolicy` / `RecallRequest`: defaults, limit cap, blank-query rejection, tag normalisation, RFC3339 parsing, search_type / strategy / min_score resolution and the CLI-via-server body now live in one module. The HTTP /recall handler, MCP uteke_recall and the CLI-via-server recall body use it. Extraction only: where the surfaces disagree, each surface's current behaviour is encoded as a policy value. Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Co-authored-by: ajianaz <[email protected]>
…target Unreleased (#1429) Co-authored-by: ajianaz <[email protected]>
Co-authored-by: ajianaz <[email protected]>
#1424) Refs #1343 Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…1343) (#1425) Extract /remember, uteke_remember and the CLI-via-server body into uteke-core's remember_request module (RememberInput, RememberPolicy, RememberRequest), following the recall slice. No wire behaviour change. Refs #1343 Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…) (#1426) Add uteke-core ForgetInput / ForgetPolicy / ForgetRequest and resolve_memory_id: DELETE /forget query parsing, id-or-tag decoding, id resolution (full UUID, prefix, ambiguity), the existence check and the CLI-via-server URL now live in one module. HTTP /forget, MCP uteke_forget (and the shared MCP resolve_id) and the CLI-via-server forget use it. Extraction only: where the surfaces disagree, each surface's current behaviour is a policy value; the read-only gate stays HTTP-only. Refs #1343 Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…1434) 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: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
#1435) (#1436) resolve_id_prefix now escapes %, _ and the escape character, so an id prefix is never a pattern for any caller, and the HTTP forget policy validates the id like MCP (hex digits and '-', 400 otherwise). Before, DELETE /forget?id=%25 matched every memory whose id contains "25" and deleted it when exactly one matched. Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
) (#1437) The api_registry table is now consulted by the router (unregistered method+path is a 404 before any handler runs) and by the read-only-token gate (derived from a new per-row writes flag). The source-scanning coverage test is replaced by tests built from the table. Refs #1344 Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…1438) New "Reaching the server from another device on your LAN" section (token first, bind address, Host header behaviour, plain-HTTP caveat, firewall, Docker) and "Keeping the token out of the client config" in the MCP docs (stdio needs no token, static bearer only, no OAuth in the self-hosted server). Every claim was checked against a running server. Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…#1442) Co-authored-by: ajianaz <[email protected]>
AGENTS.md named the project room but did not require reading it before a task or writing progress to it afterwards, so decisions and release state lived only in whichever session made them. Spell out both steps, note that room recall is cross-namespace, and that the shared store differs from a local CLI store. Also record the owner rule that commits, PRs, comments and release notes carry no AI attribution trailers or lines. Co-authored-by: ajianaz <[email protected]>
* security(mcp): per-tool read-only gate for callers without write access (#1439) * security(mcp): refuse read-only tool calls as tool errors; pin the allowlist (#1439) * security(server): read-only tokens reach MCP read tools; writes stay refused (#1439) * docs: read-only tokens and MCP tools (#1439) --------- Co-authored-by: ajianaz <[email protected]>
… retry of validation errors (#1443) * fix(core): retry_embed reports a missing embedder instead of panicking * fix(core): do not retry embedding validation errors * test(core): pin the missing-embedder error variant; doc wording * fix(core): recall reports a missing embedder instead of panicking ensure_embedder only returns Ok once the slot holds an embedder and nothing resets it to None, so the expect was unreachable today. Return an Embedding error instead so a future change cannot turn it into a panic. Adds a test that vector recall on a store with no usable embedder errors rather than panics. * fix(core): skip a missing RRF memory instead of panicking recall_rrf fills rrf_scores and memories in the same loops, so the expect could not fire today. Use filter_map and skip a missing id with a warning instead of panicking if that invariant ever breaks. take(limit) stays before the filter, so the normal path is unchanged. * style(core): wrap the RRF skip warning and note the short-result case --------- Co-authored-by: ajianaz <[email protected]>
…1444) * fix(cli): an explicit --store never routes through a running server With [server] enabled = true and a server up, remember/recall/search/list/ stats/forget were sent to the server, which serves its own store, so an explicit --store was silently ignored and data went to the wrong database (the LongMemEval harness always passes --store). Server routing is now decided by should_route_via_server(), which returns false whenever --store is set; the cheap check runs before the network probe. UTEKE_HOME is unchanged. (#1439 B4) * test(bench): modal_fast50.py reads UTEKE_RELEASE like modal_fanout.py * fix(cli): keep routing --store pointing at the default store; changelog --------- Co-authored-by: ajianaz <[email protected]>
Co-authored-by: ajianaz <[email protected]>
* chore(release): v0.21.0 - version bump, changelog, docs sync Prepared on chore/prepare-0.21.0; the release PR into main is opened from a chore/release-* branch after the mutation-test gate. * docs(security): checksums are signed since v0.21.0, not since the release after v0.20.0 --------- Co-authored-by: ajianaz <[email protected]>
* test(core): kill the mutants the 0.21.0 gate missed Exact-value tests for the mutants the pre-release gate (v0.20.1..develop, uteke-core) left alive: - lib.rs: FallbackSettings::with_env_overrides -> Default::default() - forget_request.rs: Display for ForgetRequestError -> Ok(Default::default()) - list_request.rs: Display for ListRequestError -> Ok(Default::default()) - remember_request.rs: Display for RememberRequestError -> Ok(Default::default()) - operations.rs recall_rrf: vector window `limit * 3` -> `limit + 3` - operations.rs recall_rrf: vector window `limit * 3` -> `limit / 3` - operations.rs recall_rrf: `score / max_rrf` -> `score * max_rrf` * test(core): assert only the env var the fallback test owns --------- Co-authored-by: ajianaz <[email protected]>
Co-authored-by: ajianaz <[email protected]>
#1458) * refactor(server): extract every route arm into a named handler (#1344) route() keeps the shared preflight (version prefix, Host guard, CORS preflight, auth, read-only gate, registry 404), then packs the per-request state into a Call and dispatches with one line per route. Each former match arm is now a function in a domain module under handlers/ (health, memory, namespaces, tags, rooms, docs, graph, maintenance, mcp). Pure move: arm order, the (method, path) set and the bodies are unchanged apart from rustfmt reflow and dropping borrows that clippy flags now that path and uteke are already references. * test(server): the dispatch match and the registry carry the same routes (#1344) every_registry_row_has_a_handler_arm only proves each row reaches a handler. The new test reads the one-line-per-route dispatch match from handlers/mod.rs and asserts its (method, path) set equals api_registry::ENDPOINTS with no duplicates, so an arm without a row is caught too. The registry's sync comment now points at handlers/mod.rs. --------- Co-authored-by: ajianaz <[email protected]>
…ide (#1459) (#1460) The Homebrew shims exported the libexec directory as ORT_LIB_PATH. dlopen fails on a directory, so every Homebrew install since v0.19.0 stored memories without embeddings. Resolve a directory to the platform library inside it, with a warning, and fail with a clear message when the library is not there. Co-authored-by: ajianaz <[email protected]>
* feat(cli): verify a minisign signature over the checksums in uteke upgrade (#1327) Embed the release public key and verify checksums-sha256.txt.minisig over the raw checksums bytes before trusting any hash. The trusted comment must be 'uteke <tag>' so an older signed release cannot be replayed. A missing or invalid signature is a hard failure; UTEKE_UPGRADE_SKIP_CHECKSUM skips it too, with an updated warning. * build(release): add offline minisign signing script and public key (#1327) * docs: document minisign verification and the offline signing step (#1327) * fix(cli): refuse to downgrade and verify the signature before the archive download (#1327) Compare versions numerically (semver, pre-release aware) and refuse an older release; unparseable tags are an error. Fetch and authenticate the checksums before downloading the archive, through a fail-closed authenticate_checksums. New fixtures: legacy signature, trailing-space and double-space trusted comments (the throwaway key was regenerated; all fixtures re-signed). * fix(release): verify the cosign bundle before signing the checksums (#1327) * build(deps): keep Cargo.lock to the minisign-verify entries only (#1327) * docs: state the signature is checked by uteke upgrade only, and the cosign pre-check (#1327) * fix(cli): install stable releases only in uteke upgrade, derive the hash from verified checksums only (#1327) Reject any non-stable target tag (pre-release, build metadata, malformed) before the prompt and any download, with no override. A pre-release running binary can still upgrade to a newer stable. The expected archive hash now comes from verified_expected_hash, which authenticates the checksums first, and is unit-tested. Adds the whitespace-only signature case. * test(release): cover sign-release.sh failure paths with stub gh and cosign (#1327) * docs: uteke upgrade installs stable releases only; sign-release.sh needs a cosign bundle (#1327) --------- Co-authored-by: ajianaz <[email protected]>
…le (#1471) * fix(cli): write console logs to stderr so --json output stays parseable (#1461) The console layer had no writer and defaulted to stdout, so any WARN or ERROR was printed in front of the command's own output and broke json.loads(stdout). Send it to stderr; the file layer is unchanged. * docs(changelog): record the stderr log fix (#1461) --------- Co-authored-by: ajianaz <[email protected]>
…1327) (#1472) * ci(release): detect whether the latest release checksums are signed (#1327) * ci(release): say in the header that this part only detects (#1327) --------- Co-authored-by: ajianaz <[email protected]>
…ve starts (#1786) uteke-serve v0.24.0 stopped after 'Lifecycle config loaded' and never listened. main built the request context in one 'let ctx = ...' statement that took the Mutex<Uteke> twice (the [recall] defaults from #1754 and the embedding gate from #1753). A temporary MutexGuard lives to the end of the statement, so the second lock() waited on the first forever. Take each value in its own statement. Add a test that starts the real uteke-serve on an empty store and waits for GET /health; it fails (hangs at startup) without the fix and passes with it. Co-authored-by: ajianaz <[email protected]>
Patch release for the uteke-serve startup hang in 0.24.0 (#1786), plus the remote document search query bound (#1777). Version in the workspace Cargo.toml, the internal deps of uteke-core, cli, mcp and server, Cargo.lock, both skill copies, server.json, gemini-extension.json, docs/core-contract.json (regenerated with docgen), docs/docker.md and docs/install.md. CHANGELOG entry with a correction to the 0.24.0 notes: a 0.23.0 binary refuses a schema v26/v27 store. Co-authored-by: ajianaz <[email protected]>
* bench(longmemeval): add v0.24.0 full-500Q release-binary receipt Official v0.24.0 release tarball binary (UTEKE_RELEASE, provenance in image build log), 500/500 questions, Modal x86_64, 2026-11-17. Full-500: any@5 0.9820 / strict@5 0.8760 / strict@10 0.9520 / misses@50 0. Per-Q vs v0.20.0: 0 any@5 flips; 2 strict@5 boundary shifts (top-50 sets identical). Companion to #1789 (README refresh decision). * fix(security): bump url to 2.5.9 for RUSTSEC-2026-0592 (Url::origin stack overflow) --------- Co-authored-by: ajianaz <[email protected]>
…des #1792 #1721 #1720) (#1796) Co-authored-by: ajianaz <[email protected]>
…-vfs 0.2, sqlite-wasm-rs 0.6) (#1797) Co-authored-by: ajianaz <[email protected]>
…wn (#1798) Co-authored-by: ajianaz <[email protected]>
…s and tagline title (#1802) Co-authored-by: ajianaz <[email protected]>
… status prompt) (#1803) Co-authored-by: ajianaz <[email protected]>
…1801) Raise the Cora Review job timeout to 40 minutes so two full review attempts plus setup fit inside the job. Pass review-timeout-seconds and max-attempts to the action, resolved as org variable, then org secret, then the literal default (900 / 2), so an unset value cannot reach the action as an empty string. Restore the trailing newline of the workflow file.
…1805) Co-authored-by: ajianaz <[email protected]>
…ument has none (#1806) A store that went through schema v11 keeps `namespace TEXT NOT NULL DEFAULT 'default'` on documents, and the insert bound NULL to it, so doc create failed on the CLI, HTTP and MCP. The column is now left out of the insert when a document names no namespace; the structural import had the same bind and is fixed the same way.
) The open-time migration saved the rebuilt index with index.save().ok(): one attempt, the error dropped. It now goes through index_sync::persist_rebuilt: the standard bounded retry, a warning when it still fails, and the open is not failed. The other three sites named in #1758 already call index_sync. Closes #1758.
…or a bare [REDACTED (#1810) A non-ASCII character stuck to either end of a key or token made the whole value prose, and a [REDACTED anywhere in a value made it a placeholder, so API_KEY=«token» and API_KEY=[REDACTEDtoken stayed in clear text. The ASCII run is now the value: it is masked and the character stays. [REDACTED is a placeholder only as a complete mask ([REDACTED] or [REDACTED:kind]). A value with whitespace stays prose, a password name still takes a whole non-ASCII token, and redact stays idempotent. Closes #1794.
…he v0.24.0 gate (#1811) Tests for the windows and rank formulas of doc_search_semantic, doc_search_hybrid, skill_search and doc_list_children, on the keyword test embedder (no ONNX model needed), and three simplifications of code that only the gate saw as live, with the same behaviour. 31 mutants were left open, 29 are killed or gone; the other 2 (k * 4 in index.search, the HNSW search breadth) cannot be observed. Part of #1766.
…lease binary (#1812) Option (a) of #1789: the README (English and Indonesian) and the pages that quote it use the v0.24.0 run. recall_any@5 98.2% and recall_any@10 98.8% are unchanged, strict recall_all@5 is 87.6% (88.0% in v0.16.0 to v0.20.0; two questions moved a gold session across the rank-5 boundary with identical top-50 sets), strict@10 95.2%, zero misses@50. New receipt benchmarks/longmemeval/receipts/v0.24.0-default-500q/ and a v0.24.0 section in RESULTS.md; what the run did not record is marked "not recorded". Closes #1789.
Patch release: doc create on stores that went through schema v11 (#1806), the website build (#1813), the secret detector gap (#1794), list_pinned with schema v28 (#1804), dependency updates and the MCP Registry rename. Pre-release mutation gate: 2 mutants, 1 missed (Uteke::list_pinned wrapper), killed by a new test.
| // behind it would never be read (#1794). A complete mask is a value that | ||
| // is already masked and is left alone. | ||
| const DECORATION: &str = "[REDACTED"; | ||
| if rest.starts_with(DECORATION) && mask_len_at(rest).is_none() { |
| "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", | ||
| "name": "io.github.codecoradev/uteke", | ||
| "title": "Uteke", | ||
| "name": "app.uteke/uteke-memory", |
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
… whole text (#1816) The skip of a bare [REDACTED in front of a value ran inside the 4096-byte window of one value and recursed once per marker. A run of 456 or more markers filled the window, so the secret behind it was never read. The skip is now a loop over the whole text, before the window is taken. Mutation gate on the diff: 19 mutants, 19 caught. Refs #1794
|
Written justification for the Cora result on the first run of this PR (2 errors):
Generated by Claude Code |
…I) (#1819) Release v0.24.2 again: github.com/microsoft/onnxruntime answers 404, so the first Release run could not build. ONNX Runtime now comes from a pinned PyPI wheel (#1818), the Linux x86_64 legacy bundle is dropped from this release, and crates.io publishing waits for the builds. Follows #1815.
What
Release v0.24.2:
develop(at 0907e9b: the release-prep merge of #1814 plus the privacy fix #1816) intomain. The branch isdevelopplus amerge -s oursofmain, so the tree equalsdevelop; the squash merge is the only commitmaingets.Why
Patch release v0.24.2 (version approved by the owner). It carries the
doc createfix on stores that went through schema v11 (#1806), the website build fix (#1813, which brings uteke.app back after the nextmainpush), the secret detector gap (#1794, #1810, #1816),list_pinnedwith schema v28 (#1804), dependency updates and the MCP Registry rename. See the CHANGELOG entry[0.24.2].Before this branch,
mainwas checked to hold no contentdeveloplacks:git diff 4993f4a origin/mainis empty andgit diff --name-status origin/develop origin/mainlists no added file. After the mergesgit diff origin/develop HEADis empty.Testing
cargo mutants -p uteke-core -p uteke-privacy --in-diff v0.24.1..develop): 2 mutants, 1 unviable, 1 missed and killed by a new test (re-run: caught). The fix(privacy): skip a run of bare [REDACTED markers in a loop over the whole text #1816 diff: 19 mutants, 19 caught.git diff origin/develop HEADis empty on this branch (tree equals develop)main) is green. Cora's first run on this PR blocked with 2 errors; both are answered in the comment on this PR (one fixed in fix(privacy): skip a run of bare [REDACTED markers in a loop over the whole text #1816, one refuted by the MCP Registry run of 2026-11-24), and the second run says "No issues found".Related Issues
Refs #1776 (closed).