Repository navigation
feat(mcp): safe note edits, batch reads and ranked search - #213
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Deploying everfreenote with
|
| Latest commit: |
b95bb7c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cc77834b.everfreenote.pages.dev |
| Branch Preview URL: | https://codex-mcp-note-workflows.everfreenote.pages.dev |
Contributor
PR StatusUpdated for PR #213 at 📊 Allure Test ReportContributing Workflows
Catalog: All reports 🤖 Android Build PanelCheck a box below to trigger a release build:
|
Contributor
Allure Report Summary
|
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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.
update_notewith append/prepend, insertion before/after exact HTML blocks, block replacement and an atomicexpected_updated_atprecondition. Existing full replacements remain compatible.get_notesfor up to 50 ordered ids with text/HTML selection and explicit missing/over-budget outcomes.search_noteswith 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.sqland20261105183000_mcp_note_workflows.sql, then deployedrag-search, thenmcp. 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.