Skip to content

sync: develop → main for v0.7.0 release - #619

Merged
ajianaz merged 59 commits into
mainfrom
sync/develop-to-main-v0.7.0
Jul 8, 2026
Merged

ajianaz merged 59 commits into
mainfrom
sync/develop-to-main-v0.7.0

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Sync develop to main for v0.7.0 tag. Contains all v0.7.0 changes including:

  • Version bump 0.6.7 → 0.7.0
  • 18 PRs of features, fixes, breaking changes
  • Updated changelog, docs, VitePress

Post-merge: tag v0.7.0 on main to trigger release workflow.

ajianaz and others added 30 commits July 6, 2026 15:02
docs: fix CHANGELOG ordering — add v0.6.5, reorder descending, complete links
…rebuild (#579)

Add partial document update endpoint to uteke-serve HTTP API.

Changes:
- documents.rs: update_document() — dynamic SET clause, only updates provided
  fields, always increments version, returns updated doc
- lib.rs: doc_update() — resolves doc by id/slug, partial update, rebuilds
  chunks + re-embeds if content changed
- types.rs: DocUpdateRequest struct + resolve_doc_id_update helper
- handlers.rs: POST /doc/update route with 404 for missing docs

API:
  POST /doc/update { id | slug, title?, content?, tags?, metadata? }
  → Full document (version incremented)
  → 404 if not found

Partial update semantics: only fields present in request are modified.
Content changes trigger chunk rebuild (old chunks deleted, new ones
embedded and indexed). Non-content updates (title, tags) skip re-chunking.

Follow-up to Corin #139 — Corin DocumentsView will use this for Save.
feat: POST /doc/update endpoint — partial document update with chunk rebuild
- Add DocCommands::Update variant with --title, --content, --file, --tags, --metadata flags
- Calls uteke_core::doc_update() directly for partial updates (title-only, tags-only, etc.)
- Content changes trigger chunk rebuild; metadata/title-only skip it
- Validates at least one field is provided
- Parses --metadata as JSON string
- Supports --file - for stdin content input
- Document in docs/cli-reference.md with examples and flag table

Closes #589
- Add tool_doc_move() with inputSchema: id (required), parent (optional), namespace (optional)
- Add exec_doc_move() calling uteke.doc_move()
- Register in tools/list and tools/call dispatcher
feat: add  CLI command for partial document updates (#589)
…ocument (#586)

MCP room coverage is now 8/8 (was 2/8). New tools:
- uteke_room_create: create room with optional title/namespace
- uteke_room_list: list rooms with optional namespace filter
- uteke_room_delete: delete room (memories preserved)
- uteke_room_stats: memory count, participants, activity
- uteke_room_summary: topic clustering, decisions, highlights
- uteke_room_document: structured document by memory type
Add MCP tool for partial document update. Content changes trigger
automatic chunk rebuild; title/tags/metadata-only updates skip rebuild.

Closes #584
feat(mcp): add 6 room tools — create, list, delete, stats, summary, document (#586)
- uteke_tags_list: list tags with counts, optional namespace filter + sort
- uteke_tags_rename: rename tag across all memories atomically
- uteke_tags_delete: delete tag from all memories

Rebased on develop (includes room tools from PR #594).
Closes #587
feat(mcp): add tag management tools — list, rename, delete
Add uteke_pin and uteke_unpin MCP tools, matching existing
POST /pin and POST /unpin HTTP endpoints.

- tool_pin(): pin memory by ID, immune to decay/pruning
- tool_unpin(): unpin memory, restore normal decay
- Follows existing ToolResult pattern (is_error for not-found)
- Uses uteke.pin()/unpin() from uteke-core

Closes #588
feat(mcp): add pin/unpin tools for memory persistence (#588)
Add rooms and room_memories CREATE TABLE statements to SCHEMA
so fresh databases get room tables without needing migration.
Matches migration v2→v3 columns exactly:
- rooms: id, title, namespace, created_at, updated_at
- room_memories: room_id, memory_id, author, role, joined_at
fix(core): add room tables to SCHEMA constant for fresh DB
Fixes RUSTSEC-2026-0204 (invalid pointer dereference in
fmt::Pointer impl for Atomic/Shared).

Path: uteke-core → tokenizers → rayon → rayon-core → crossbeam-deque → crossbeam-epoch
No code changes — Cargo.lock only.
deps: update crossbeam-epoch 0.9.18 → 0.9.20 (RUSTSEC-2026-0204)
- project-sync.yml: exit 0 when PR has no linked closing issues and is
  not on the project board, preventing spurious failures under set -e
- security.yml: ignore RUSTSEC-2026-0202 (cxx unsound) and
  RUSTSEC-2026-0190 (anyhow unsound) — transitive deps awaiting upstream bumps

Co-authored-by: ajianaz <[email protected]>
sync: main → develop — resolve 12-commit divergence
ajianaz and others added 24 commits July 7, 2026 12:49
fix: rename self-update command to 'uteke upgrade'
docs: fix 16 documentation gaps + v0.7.0 feature docs (#582)
Previously, uteke upgrade silently skipped SHA-256 checksum verification
when the checksums file failed to download or the archive name was not
found. This allowed a MITM attack to deliver a tampered binary.

Changes:
- Fail with Err when checksums download fails (network error or HTTP error)
- Fail when archive checksum is missing from checksums file
- Add UTEKE_UPGRADE_SKIP_CHECKSUM=1 env opt-in for explicit bypass
- Cleanup temp files on all failure paths

Found by: cora scan (glm-5.2 via Bifrost)
fix(security): fail-hard on checksum verification failure during upgrade
…#605 #606)

Move Extractor from uteke-cli to uteke-core for server reuse.
Add three new HTTP endpoints to uteke-serve:

- POST /extract: LLM fact extraction + auto-store (1MB limit)
- POST /import: JSONL import with re-embedding (5MB limit)
- GET /export: JSONL export (optional ?namespace= filter)

Extraction reads [extraction] config from uteke.toml.
API key never accepted from request body (config/env only).
Write token required for all three endpoints.

Closes #604, #605, #606
…onfig.model is String

CI caught E0308: if/else arms had incompatible types.
Explicit annotate as String and use .to_owned() for the &str branch.
E0433 in /export handler — Header::from_bytes used without import.
- handlers.rs: if let Err(_) → .is_err() (2x redundant pattern matching)
- handlers.rs: &ctx → ctx (needless borrow)
- types.rs: #[allow(dead_code)] on ImportRequest.tags (not yet wired)
- extract.rs: #[allow(unused_imports)] on re-exports module
…xport

feat(server): POST /extract, POST /import, GET /export endpoints
Add 6 new HTTP endpoints to uteke-serve:

Maintenance (#607):
- POST /prune: TTL-based deprecated memory cleanup (dry_run support)
- POST /consolidate: near-duplicate merging (dry_run support)
- POST /aging: memory lifecycle management (status/preview/cleanup)

Monitoring (#608):
- POST /importance: recalculate importance scores
- POST /orphans: find disconnected low-importance memories (read-only)
- POST /rebuild-backlinks: rebuild referenced_by from forward edges

All destructive endpoints require write token.
/orphans allows read-only token (read-only query).
Aging cleanup supports dry_run for safety preview.

Closes #607, #608
…toring

feat(server): maintenance + monitoring endpoints (#607 #608)
…d SKILL.md

- Add init_opencode and init_opencode_memory_provider functions
  (AGENTS.md-based integration, matching OpenCode's convention)
- Refactor init_pi to use install_skill_md() helper instead of
  hardcoded inline SKILL.md content (-43 lines)
- Update CLI help text to include opencode in --agent list
- Update bundled SKILL.md to v0.6.7 (add docs, graph, rooms,
  knowledge graph, pinning, dream pipeline, timeline, upgrade)
- Fix escaped-quote bug in install_skill_md error messages

Breaking: none. All changes additive.
feat(cli): add opencode init + bundle SKILL.md v0.6.7
- Migration v12→v13: add author column, deprecate namespace on documents,
  migrate duplicate slugs across namespaces to slug-nsname format,
  create global unique slug index
- Remove namespace params from all doc_* functions in lib.rs and store
- Remove namespace fields from server request structs and MCP tools
- Update CLI commands to not accept namespace args
- Fix DocumentSummary initializer (add author field)
- Fix recall_unified_* callers (remove stale Some(ns) from doc_search)
- All consumers verified: CLI, server, MCP — zero namespace references remain
- Update 4 migration tests that still asserted CURRENT_SCHEMA_VERSION=12
- Fix clippy warning: unused variable config in doc command
refactor(core): remove namespace isolation from documents (#614)
Add automatic project detection and tag-based scoping to all memory
operations. This prevents noise when recalling — agents only see memories
relevant to the current project.

Changes:
- SKILL.md: Add 'Project-Aware Memory (MANDATORY)' section with rules,
  examples, and rationale for project:{name} tagging
- pi-memory-provider extension: Auto-detect project from cwd and user
  prompt text, filter recall by --tags project:<name>, auto-tag remember
  commands with project:<name>
- Hermes hook extract (external): Auto-detect project from session
  messages file paths, add project:<name> tag on auto-extract
- Hermes hook recall (external): Auto-detect project from user_message,
  filter recall by --tags project:<name>

Detection strategies:
1. File paths: /repos/<project>/ pattern matching
2. CWD: walk up from current directory to known project roots
3. Majority vote when multiple projects mentioned in session

No Uteke binary changes required — all implemented via existing --tags
flag support.
…gging

feat: project-aware memory tagging for noise-free recall
- Cargo.toml: workspace version 0.6.7 → 0.7.0
- crates/*/Cargo.toml: uteke-core/uteke-mcp dep version 0.6.0 → 0.7.0
- CHANGELOG.md: add v0.7.0 section (18 PRs since v0.6.7)
- docs/cli-reference.md: version 0.7.0, uteke upgrade command, opencode init
- docs/architecture.md: schema v13, new HTTP endpoints, updated endpoint diagram
- docs/multi-agent.md: add 'Documents Are Global' section
- docs/docker.md: update version example to v0.7.0
…hors, doc list namespace

- cli-reference.md: add 9 new v0.7.0 HTTP endpoints (extract, import, export,
  prune, consolidate, aging, importance, orphans, rebuild-backlinks)
- cli-reference.md: fix doc list description (documents are global, not namespace-scoped)
- CHANGELOG.md: add missing [0.7.0] comparison link
- VitePress config.ts: fix document-commands anchor link (pre-existing broken)
chore: release v0.7.0 prep — changelog, version bump, docs, dep versions
@github-actions

github-actions Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-cli · BYOK · MIT

CI workflow only triggered on PRs to develop. Sync PRs to main (for
release tagging) never got CI checks, blocking merge with branch protection.
@ajianaz
ajianaz merged commit 451730d into main Jul 8, 2026
6 checks passed
@ajianaz
ajianaz deleted the sync/develop-to-main-v0.7.0 branch July 9, 2026 14:26
ajianaz added a commit that referenced this pull request Aug 13, 2026
* docs: fix CHANGELOG — add v0.6.5 section, reorder descending, complete version links

* feat: POST /doc/update endpoint — partial document update with chunk rebuild (#579)

Add partial document update endpoint to uteke-serve HTTP API.

Changes:
- documents.rs: update_document() — dynamic SET clause, only updates provided
  fields, always increments version, returns updated doc
- lib.rs: doc_update() — resolves doc by id/slug, partial update, rebuilds
  chunks + re-embeds if content changed
- types.rs: DocUpdateRequest struct + resolve_doc_id_update helper
- handlers.rs: POST /doc/update route with 404 for missing docs

API:
  POST /doc/update { id | slug, title?, content?, tags?, metadata? }
  → Full document (version incremented)
  → 404 if not found

Partial update semantics: only fields present in request are modified.
Content changes trigger chunk rebuild (old chunks deleted, new ones
embedded and indexed). Non-content updates (title, tags) skip re-chunking.

Follow-up to Corin #139 — Corin DocumentsView will use this for Save.

* fix: clippy — remove unused variables, use if-let instead of unwrap

* feat: add  CLI command for partial document updates (#589)

- Add DocCommands::Update variant with --title, --content, --file, --tags, --metadata flags
- Calls uteke_core::doc_update() directly for partial updates (title-only, tags-only, etc.)
- Content changes trigger chunk rebuild; metadata/title-only skip it
- Validates at least one field is provided
- Parses --metadata as JSON string
- Supports --file - for stdin content input
- Document in docs/cli-reference.md with examples and flag table

Closes #589

* feat(mcp): add uteke_doc_move tool (#585)

- Add tool_doc_move() with inputSchema: id (required), parent (optional), namespace (optional)
- Add exec_doc_move() calling uteke.doc_move()
- Register in tools/list and tools/call dispatcher

* feat(mcp): add 6 room tools — create, list, delete, stats, summary, document (#586)

MCP room coverage is now 8/8 (was 2/8). New tools:
- uteke_room_create: create room with optional title/namespace
- uteke_room_list: list rooms with optional namespace filter
- uteke_room_delete: delete room (memories preserved)
- uteke_room_stats: memory count, participants, activity
- uteke_room_summary: topic clustering, decisions, highlights
- uteke_room_document: structured document by memory type

* style: fix cargo fmt for room_list executor

* feat(mcp): add uteke_doc_update tool (#584)

Add MCP tool for partial document update. Content changes trigger
automatic chunk rebuild; title/tags/metadata-only updates skip rebuild.

Closes #584

* chore: trigger CI re-run

* chore: trigger CI re-run

* ci: trigger Cora Review re-run

* feat(mcp): add tag management tools — list, rename, delete (#587)

- uteke_tags_list: list tags with counts, optional namespace filter + sort
- uteke_tags_rename: rename tag across all memories atomically
- uteke_tags_delete: delete tag from all memories

Rebased on develop (includes room tools from PR #594).
Closes #587

* feat(mcp): add pin/unpin tools for memory persistence (#588)

Add uteke_pin and uteke_unpin MCP tools, matching existing
POST /pin and POST /unpin HTTP endpoints.

- tool_pin(): pin memory by ID, immune to decay/pruning
- tool_unpin(): unpin memory, restore normal decay
- Follows existing ToolResult pattern (is_error for not-found)
- Uses uteke.pin()/unpin() from uteke-core

Closes #588

* fix(core): add room tables to SCHEMA constant

Add rooms and room_memories CREATE TABLE statements to SCHEMA
so fresh databases get room tables without needing migration.
Matches migration v2→v3 columns exactly:
- rooms: id, title, namespace, created_at, updated_at
- room_memories: room_id, memory_id, author, role, joined_at

* deps: update crossbeam-epoch 0.9.18 → 0.9.20

Fixes RUSTSEC-2026-0204 (invalid pointer dereference in
fmt::Pointer impl for Atomic/Shared).

Path: uteke-core → tokenizers → rayon → rayon-core → crossbeam-deque → crossbeam-epoch
No code changes — Cargo.lock only.

* fix(ci): graceful sync workflow + add missing cargo audit ignores (#598)

- project-sync.yml: exit 0 when PR has no linked closing issues and is
  not on the project board, preventing spurious failures under set -e
- security.yml: ignore RUSTSEC-2026-0202 (cxx unsound) and
  RUSTSEC-2026-0190 (anyhow unsound) — transitive deps awaiting upstream bumps

Co-authored-by: ajianaz <[email protected]>

* docs: fix 16 documentation gaps + update for v0.7.0 features (#582)

- cli-reference: add 10 HTTP endpoints, memory-provider init, version v0.6.7
- mcp: tool count 15→28, add room/tag/pin/doc tools, JSON-RPC 2.0 note
- docker: v0.6.7 tag, expand MCP tools table to full list
- architecture: schema v10→v12, cross-process file lock, slim Docker model path
- hermes: clarify Mode B deprecation scope, add memory-provider section
- README/README.id: version badge v0.6.7
- AGENT.md: version 0.6.7, main branch protection updated

* feat: add 'uteke update' self-update command (#581)

Check for latest release on GitHub, compare against installed version,
prompt for confirmation, download with checksum verification, and
atomically replace the running binary.

Features:
- Detects current binary path automatically
- OS/arch detection (linux/darwin, x86_64/aarch64)
- Primary: parse GitHub 302 redirect (no API rate limit)
- Fallback: GitHub REST API
- SHA256 checksum verification from release assets
- Archive path traversal protection (CWE-22)
- Atomic rename replace (safe on POSIX)
- New binary verification before swap
- --yes flag for non-interactive / CI use
- Already-up-to-date detection (skip download)
- Missing dev headers warning for cargo-installed binaries

Closes #581

* fix: rename update command to upgrade — fix 5 compilation errors

- Rename Commands::Update → Commands::Upgrade to avoid collision with
  existing document update command (uteke doc update <id>)
- Remove from AgingCommands (semantically wrong — self-update is not aging)
- Change return type from Result<(), Box<dyn Error>> → Result<(), String>
  to match the dispatcher contract
- Fix entry.path() bug: was calling .map_err() on Cow<Path> which is
  not a Result type
- Fix all .into() calls that no longer compile with String error type
- Rename update.rs → upgrade.rs module file

* fix: move Upgrade variant from DocCommands to Commands enum

Upgrade was accidentally placed inside DocCommands enum instead of the
top-level Commands enum. This caused:
- E0599: no variant 'Upgrade' in Commands (dispatcher couldn't find it)
- E0004: non-exhaustive DocCommands::Upgrade (doc handler doesn't handle it)

* fix(security): fail-hard on checksum verification failure during upgrade

Previously, uteke upgrade silently skipped SHA-256 checksum verification
when the checksums file failed to download or the archive name was not
found. This allowed a MITM attack to deliver a tampered binary.

Changes:
- Fail with Err when checksums download fails (network error or HTTP error)
- Fail when archive checksum is missing from checksums file
- Add UTEKE_UPGRADE_SKIP_CHECKSUM=1 env opt-in for explicit bypass
- Cleanup temp files on all failure paths

Found by: cora scan (glm-5.2 via Bifrost)

* feat(server): POST /extract, POST /import, GET /export endpoints (#604 #605 #606)

Move Extractor from uteke-cli to uteke-core for server reuse.
Add three new HTTP endpoints to uteke-serve:

- POST /extract: LLM fact extraction + auto-store (1MB limit)
- POST /import: JSONL import with re-embedding (5MB limit)
- GET /export: JSONL export (optional ?namespace= filter)

Extraction reads [extraction] config from uteke.toml.
API key never accepted from request body (config/env only).
Write token required for all three endpoints.

Closes #604, #605, #606

* fix(core): type mismatch in Extractor::new — DEFAULT_MODEL is &str, config.model is String

CI caught E0308: if/else arms had incompatible types.
Explicit annotate as String and use .to_owned() for the &str branch.

* fix(server): import tiny_http::Header in handlers.rs

E0433 in /export handler — Header::from_bytes used without import.

* fix: resolve all clippy warnings

- handlers.rs: if let Err(_) → .is_err() (2x redundant pattern matching)
- handlers.rs: &ctx → ctx (needless borrow)
- types.rs: #[allow(dead_code)] on ImportRequest.tags (not yet wired)
- extract.rs: #[allow(unused_imports)] on re-exports module

* feat(server): maintenance + monitoring endpoints (#607 #608)

Add 6 new HTTP endpoints to uteke-serve:

Maintenance (#607):
- POST /prune: TTL-based deprecated memory cleanup (dry_run support)
- POST /consolidate: near-duplicate merging (dry_run support)
- POST /aging: memory lifecycle management (status/preview/cleanup)

Monitoring (#608):
- POST /importance: recalculate importance scores
- POST /orphans: find disconnected low-importance memories (read-only)
- POST /rebuild-backlinks: rebuild referenced_by from forward edges

All destructive endpoints require write token.
/orphans allows read-only token (read-only query).
Aging cleanup supports dry_run for safety preview.

Closes #607, #608

* fix: allow dead_code on ImportanceRequest.namespace and RebuildBacklinksRequest.quiet

* feat(cli): add opencode init support + refactor init_pi to use bundled SKILL.md

- Add init_opencode and init_opencode_memory_provider functions
  (AGENTS.md-based integration, matching OpenCode's convention)
- Refactor init_pi to use install_skill_md() helper instead of
  hardcoded inline SKILL.md content (-43 lines)
- Update CLI help text to include opencode in --agent list
- Update bundled SKILL.md to v0.6.7 (add docs, graph, rooms,
  knowledge graph, pinning, dream pipeline, timeline, upgrade)
- Fix escaped-quote bug in install_skill_md error messages

Breaking: none. All changes additive.

* refactor(core): remove namespace isolation from documents (#614)

- Migration v12→v13: add author column, deprecate namespace on documents,
  migrate duplicate slugs across namespaces to slug-nsname format,
  create global unique slug index
- Remove namespace params from all doc_* functions in lib.rs and store
- Remove namespace fields from server request structs and MCP tools
- Update CLI commands to not accept namespace args
- Fix DocumentSummary initializer (add author field)
- Fix recall_unified_* callers (remove stale Some(ns) from doc_search)
- All consumers verified: CLI, server, MCP — zero namespace references remain

* fix(tests): update schema version assertions to 13

- Update 4 migration tests that still asserted CURRENT_SCHEMA_VERSION=12
- Fix clippy warning: unused variable config in doc command

* feat: project-aware memory tagging for noise-free recall

Add automatic project detection and tag-based scoping to all memory
operations. This prevents noise when recalling — agents only see memories
relevant to the current project.

Changes:
- SKILL.md: Add 'Project-Aware Memory (MANDATORY)' section with rules,
  examples, and rationale for project:{name} tagging
- pi-memory-provider extension: Auto-detect project from cwd and user
  prompt text, filter recall by --tags project:<name>, auto-tag remember
  commands with project:<name>
- Hermes hook extract (external): Auto-detect project from session
  messages file paths, add project:<name> tag on auto-extract
- Hermes hook recall (external): Auto-detect project from user_message,
  filter recall by --tags project:<name>

Detection strategies:
1. File paths: /repos/<project>/ pattern matching
2. CWD: walk up from current directory to known project roots
3. Majority vote when multiple projects mentioned in session

No Uteke binary changes required — all implemented via existing --tags
flag support.

* chore: release v0.7.0 prep — changelog, version bump, docs, dep versions

- Cargo.toml: workspace version 0.6.7 → 0.7.0
- crates/*/Cargo.toml: uteke-core/uteke-mcp dep version 0.6.0 → 0.7.0
- CHANGELOG.md: add v0.7.0 section (18 PRs since v0.6.7)
- docs/cli-reference.md: version 0.7.0, uteke upgrade command, opencode init
- docs/architecture.md: schema v13, new HTTP endpoints, updated endpoint diagram
- docs/multi-agent.md: add 'Documents Are Global' section
- docs/docker.md: update version example to v0.7.0

* fix(docs): full audit — 9 missing HTTP endpoints, CHANGELOG link, anchors, doc list namespace

- cli-reference.md: add 9 new v0.7.0 HTTP endpoints (extract, import, export,
  prune, consolidate, aging, importance, orphans, rebuild-backlinks)
- cli-reference.md: fix doc list description (documents are global, not namespace-scoped)
- CHANGELOG.md: add missing [0.7.0] comparison link
- VitePress config.ts: fix document-commands anchor link (pre-existing broken)

* fix(ci): trigger CI on PRs to main branch

CI workflow only triggered on PRs to develop. Sync PRs to main (for
release tagging) never got CI checks, blocking merge with branch protection.

---------

Co-authored-by: ajianaz <[email protected]>
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