Skip to content

feat(mcp): safe note edits, batch reads and ranked search - #213

Merged
koreyba merged 2 commits into
mainfrom
codex/mcp-note-workflows
Nov 5, 2026
Merged

koreyba merged 2 commits into
mainfrom
codex/mcp-note-workflows

Conversation

@koreyba

@koreyba koreyba commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Agents currently replace entire note bodies, read notes one at a time and lack date-filtered ranked search. This adds safe block edits inside existing notes, bounded batch reading, and ranked text/semantic/hybrid search.

  • Extend update_note with append/prepend, insertion before/after exact HTML blocks, block replacement and an atomic expected_updated_at precondition. Existing full replacements remain compatible.
  • Add get_notes for up to 50 ordered ids with text/HTML selection and explicit missing/over-budget outcomes.
  • Add search_notes with created/updated ranges, all/any tags, relevance/recency sorting and pagination. Database filters run before ranking/limiting; semantic search returns distinct notes and hybrid uses reciprocal rank fusion. Existing RAG chunk clients remain compatible.

Validation: final focused MCP plus PostgreSQL/pgvector run passes 223/223 (209 MCP tests and 14 database tests). Final-HEAD broad local regression: 2176 passed, 6 existing optional local Supabase tests skipped. Type-check, zero-warning ESLint, Deno checks for both changed functions and production web build pass. Local Codacy analysis reports 0 issues; Codacy Cloud was unavailable without an API token.

Deployed on 2026-11-05: Stage first, then production after accepted Stage runtime checks. Applied 20261028230000_mcp_rag_settings_select.sql and 20261105183000_mcp_note_workflows.sql, then deployed rag-search, then mcp. Both environments run identical function bundles. Each passed 10/10 live HTTPS scenarios without skips or retries: note editing and read-back, stale/concurrent writes, twenty-note batches, budgets, RLS, filtered ranked/paginated search and Russian stemming. Two synthetic accounts and 35 notes per environment were cleaned up and cleanup verified. Requirements, design, planning, testing and rollout documentation are included. Runtime scope: synthetic users had no Gemini key; explicit hybrid fallback and real SQL vector ranking were verified separately, without a successful real-Gemini embedding request.

Independent Claude review: APPROVE for final HEAD b95bb7c60b522188e33f7e2c01a2f43d95659f71; Claude independently reran 223 tests. Its non-blocking HTML-boundary and page-snippet suggestions were implemented and re-reviewed. CodeRabbit CLI completed the full review and the final correction review with 0 issues.

Final-head GitHub CI passed: unit/integration, all four component shards and SonarQube, Playwright E2E, production build, CodeQL and Semgrep. The new PostgreSQL suite ran all 14 tests successfully in CI. Combined PR and E2E Allure reports were published; separate unit/component report jobs and hosted CodeRabbit were intentionally skipped.

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b79cde69-8a86-4279-abfb-f77e708236f9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Deploying everfreenote with  Cloudflare Pages  Cloudflare Pages

Latest commit: b95bb7c
Status: ✅  Deploy successful!
Preview URL: https://cc77834b.everfreenote.pages.dev
Branch Preview URL: https://codex-mcp-note-workflows.everfreenote.pages.dev

View logs

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

PR Status

Updated for PR #213 at b95bb7c on 2026-11-05T19:14:46.154Z.

📊 Allure Test Report

Open Allure Report

Contributing Workflows

Workflow Status Suites
Unit Tests ✅ Completed Core Unit, Core Integration, Web Unit, Mobile Unit
Component Tests ✅ Completed Web Component
E2E Tests (PR Preview) ✅ Completed Web E2E

Catalog: All reports

🤖 Android Build Panel

Check a box below to trigger a release build:

  • 🚀 Build Stage Release APK
  • 🚀 Build Prod Release APK

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure Report Allure Report 12m 22s Passed tests 3348   Skipped tests 6 0 0 0 View

@sonarqubecloud

sonarqubecloud Bot commented Nov 5, 2026

Copy link
Copy Markdown

@koreyba
koreyba merged commit b4a1b05 into main Nov 5, 2026
32 of 33 checks passed
@koreyba
koreyba deleted the codex/mcp-note-workflows branch November 5, 2026 19:15

This branch was previously deployed

1 inactive deployment
Stage — b95bb7c6 Deployed Nov 5, 2026 by koreyba via build #1061
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