Skip to content

release: sync develop → main for v0.6.5 - #563

Merged
ajianaz merged 18 commits into
mainfrom
release/v0.6.5-main
Jul 4, 2026
Merged

ajianaz merged 18 commits into
mainfrom
release/v0.6.5-main

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Release v0.6.5 — develop → main

Sync all changes from develop to main for v0.6.5 release.

After merge: tag v0.6.5 on main to trigger release workflow (Docker + GitHub Release).

Changes included (v0.6.4 → v0.6.5)

See CHANGELOG [Unreleased] section for full details.

Summary:

ajianaz and others added 18 commits July 4, 2026 06:55
#549: Add ensure_documents_fts() consistency check that creates the
FTS5 virtual table and backfills existing documents if the v12
migration failed silently (best-effort execute).

#550: Resolve slug to document ID before calling delete_document(),
matching doc_get behavior. Previously delete_document(id) received
the raw slug which never matched WHERE id = ?1.
…ete-slug

fix: documents_fts migration repair + doc delete by slug (#549, #550)
)

When multiple uteke remember commands run concurrently (e.g. xargs -P5),
each process loads the usearch vector index, inserts its vector, and
saves — but each save OVERWRITES the other process's inserts, causing
data loss. The error 'rename temp to final key mapping: No such file or
directory' appears.

The existing RwLock<VectorIndex> only protects concurrent threads within
a single process. Cross-process coordination requires file-based locking.

- Add fs2 dependency for advisory file locking
- VectorIndex acquires exclusive file lock on .usearch file during
  load_or_create(), held until drop
- Concurrent CLI invocations block at lock acquisition instead of
  corrupting the index
- 288 tests pass, clippy/fmt clean
fix: add cross-process file lock to prevent usearch race condition (#543)
Fresh databases skip all migrations (version stamped directly at
CURRENT_SCHEMA_VERSION), so migrate_v1_to_v2() — which calls
init_fts5() — never runs. Existing databases at the correct version
also skip migrations. In both cases FTS5 may be missing even though
memories exist, causing FTS5 recall to return empty results.

Add post-migration check in ensure_schema_version() that detects
missing memories_fts table, initializes FTS5, and rebuilds the index
if memories already exist. init_fts5() is idempotent so safe to call
every open.

- Update test_fts5_exists to reflect new auto-init behavior
fix: ensure FTS5 initialized on every startup (#544)
…aph/edge (#542)

Adds HTTP endpoints for knowledge graph mutations so clients can be
fully HTTP-only without direct uteke-core access.

New endpoints:
- POST /graph/edge: Add edge between two existing memories
  - Validates both source/target memories exist (404 if not)
  - Rejects self-loops (400 if source == target)
  - Optional edge_type (default: 'related') and weight (default: 1.0)
- DELETE /graph/edge?source=...&target=...: Remove edge by source+target
  - Returns 404 if edge doesn't exist
  - Both endpoints return 403 for read-only tokens

New MCP tools:
- uteke_graph_add_edge: Add edge via JSON-RPC
- uteke_graph_remove_edge: Remove edge via JSON-RPC

Core changes:
- GraphStore::remove_edge() method (returns bool for existence check)
- GraphEdgeRequest type in server types
- Handler tests for remove_edge
…n-endpoints

feat: HTTP graph mutation endpoints — POST /graph/edge and DELETE /graph/edge
…, #546)

#545: list_rooms used unnecessary JOIN room_memories to filter by namespace.
The namespace column lives directly on the rooms table — a simple WHERE
clause suffices. The JOIN could return wrong results when rooms have
no memories linked yet.

#546: room_recall_query capped fetch_limit with id_set.len(), causing
empty results for rooms with fewer linked memory IDs than the expected
fetch batch. Also capped to min(fetch_limit, id_set.len()) which meant
rooms with 0-1 memories always got 0 results from vector search.
…recall-bugs

fix: room list namespace filter + room recall query empty results (#545, #546)
…types (#547)

room_document() only mapped 5 memory types to sections (decision, fact,
procedure, preference, context). But MemoryType::infer_from_content produces
9 types — note, insight, reference, and event memories vanished silently
from documents, causing sections: [] for rooms whose memories defaulted to
the 'note' type.

Fix:
- Add dedicated sections for insight, reference, and event types
- Add catch-all 'Notes & General' section for any unassigned memories
  (covers 'note' type and any future types)
…empty-sections

fix: room document missing sections for note/insight/reference/event types (#547)
… MCP doc_create parent fix

- CHANGELOG: populate [Unreleased] with 8 issues (#542-#550)
- README.md/id.md: add POST/DELETE /graph/edge to Graph API bullet
- uteke-mcp: fix exec_doc_create to pass parent param to
  doc_upsert_with_parent (schema declared it but executor ignored it)
chore: v0.6.5 pre-release — CHANGELOG, README, MCP fix
… sidebar, version bump

- Document GET /recent endpoint in HTTP API table (#528)
- Add GET /graph, POST /graph/edge, DELETE /graph/edge to HTTP table
- Expand Graph API section with mutation examples (#542)
- Add Document Commands + Graph API to VitePress sidebar
- Bump version 0.6.4 → 0.6.5 (Cargo.toml, README, README.id, AGENT.md, cli-reference)
docs: v0.6.5 remaining fixes — /recent, graph mutation, sidebar, version bump
…n ref

- Add ### Docs section in [Unreleased] documenting PR #561 doc fixes
- Update docker.md example version tag v0.6.3 → v0.6.5
docs: CHANGELOG Docs section + docker.md version ref for v0.6.5
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review could not complete. Cora produced an empty result. Check the workflow logs for errors.


Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz merged commit a9aeba8 into main Jul 4, 2026
3 checks passed
@ajianaz
ajianaz deleted the release/v0.6.5-main branch July 9, 2026 14:27
ajianaz added a commit that referenced this pull request Aug 13, 2026
release: sync develop → main for v0.6.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant