Repository navigation
refactor(mcp): remove retired tool modules nothing calls - #1944
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
phernandez
force-pushed
the
refactor/remove-legacy-tool-modules
branch
from
October 29, 2026 05:14
34d5909 to
f957b56
Compare
With bm tool on the bm_* tools, bm hook and bm ci were the last callers of the retired write_note and search_notes implementations. Move them to bm_write and bm_search: a single project parameter carries a name, a workspace/project route or an id, filters replace metadata_filters and status, and since replaces after_date. A refused checkpoint write now arrives as a ToolError and is reported on stderr as before. Delete the modules no code in core or Cloud imports: basic_memory_diagnostics, delete_note, list_directory, move_note, read_content and view_note, with their tests, contract entries and harness names. Drop split_project_ref, which only the hook used. Tests that patched the retired tools now target bm_search and bm_write. The bm ci seeding and publish tests run against a real project, and routing is tested directly on _routed_project. write_note stays for now: about 20 test files use it to create notes. read_note, the edit_note helpers, workspaces, chatgpt_tools and list_memory_projects stay until Cloud stops importing them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMYVL1x91B8kJxy7nn2GU8 Signed-off-by: phernandez <paul@basicmachines.co>
phernandez
force-pushed
the
refactor/remove-legacy-tool-modules
branch
from
October 29, 2026 05:26
f957b56 to
4317c2e
Compare
phernandez
added a commit
that referenced
this pull request
Oct 29, 2026
Stacked on #1944. ## Why After #1944, nothing in core or Cloud called `write_note`. About 20 test files still used it to create notes. ## What changed - Test setup calls move to `bm_write`. The keyword arguments are the same; `project_id` becomes `project`. - Assertions that read `write_note`'s text output (`# Created note`, `file_path: ...`) now request JSON and check fields. - The remote-project regression (a host symlink must not be read as part of a remote project) now covers `bm_write`, which routes through `note_targets`. - Deleted: `write_note.py`, its three test files, its export, contract entries and harness name. - Dropped: the `mcp.tool.write_note` span test. **The `bm_*` tools emit no tool-level span**, so that telemetry is a gap in the 1.0 surface, not just in this PR. ## Verification - `tests/mcp`, `tests/api`, `tests/cli`, the man-page and CLI-consumer tests, `test-int/mcp` and `test-int/cli`: 3,771 passed, 6 failed on the first run. The 6 were assertions on `write_note`'s text format; after the fix those files pass (72). - `just fast-check` is clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01CMYVL1x91B8kJxy7nn2GU8 Signed-off-by: phernandez <paul@basicmachines.co> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
phernandez
added a commit
that referenced
this pull request
Oct 29, 2026
## Why `just release v1.0.0` pre-flight-checks for a `## v1.0.0` heading on `main`, so the changelog has to land first. ## What changed `CHANGELOG.md`: the Unreleased section becomes `## v1.0.0 (2026-10-29)`. Its existing items are kept, and the 60 or so commits since #1871 are added: - **Breaking:** - the MCP surface is only `bm_*`, with the old tools deleted (#1944, #1947, #1959, #1962–#1964) - `project` is required (#1934) - the ChatGPT adapters moved to Cloud - `bm tool` mirrors the tools (#1943) - the POSIX verbs are rebuilt and `bm tail` is removed (#1960) - cloud sync/bisync are removed (#1953) - `bm schema` project resolution (#1959) - LiteLLM is an optional extra - **Features:** text-file line ranges in `bm_read`; chat imports return their file paths. - **Bug fixes:** including the three found in the 1.0 live test (#1971, #1972, #1974), with contributor credits for @Flynn-Kawolsky (#1957), @SWSAmor (#1951) and @MbappeWU (#1948). - **Security:** the CodeRabbit deep-scan hardening batch. I checked the entries against PR bodies rather than titles, and corrected #1954, #1948 and #1967 to describe what they actually fixed. The date is today; change it if the tag lands tomorrow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01CMYVL1x91B8kJxy7nn2GU8 Signed-off-by: phernandez <paul@basicmachines.co> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Stacked on #1943.
Why
After #1943,
bm hookandbm ciwere the last callers of the retiredwrite_noteandsearch_notesimplementations, and six retired tool modules had no callers at all.What changed
bm hookandbm ciuse the 1.0 toolsbm_search; checkpoints and CI project updates callbm_write.projectparameter carries a name,workspace/projectroute, or id, sosplit_project_refis gone.filtersreplacesmetadata_filtersandstatus;sincereplacesafter_date.ToolErrorand is still reported on stderr without failing the hook._routed_projectinbm cireturns the id when one is configured, and falls back to the default project.Deleted (no importers in core or Cloud, checked against basic-memory-cloud main)
basic_memory_diagnostics,delete_note,list_directory,move_note,read_content,view_note, plus their re-exports, tests, contract-table entries and implementation-harness names.Kept for now
write_note: about 20 test files use it to create notes, many parsing its text output. Moving them tobm_writeis its own PR.read_note, theedit_notehelpers,workspaces,chatgpt_tools,list_memory_projects: Cloud's hosted MCP imports them. They go with the next Cloud re-pin.bm_*tools call (build_context,recent_activity,project_management,schema,search), andposix_toolsfor the shell commands.Tests
bm ci: the seeding and publish tests now run against a real project. Publish moved totest-int/cli/test_ci_publish_integration.py, because the command needs the integration fixtures' shared database. Routing (id over name, workspace qualification) is tested directly on_routed_project.memory://delete regression (now onbm_delete), the wiki-after-API-writes test, and the write-conflict-after-move test (now onbm_move).bm_search/bm_writewith the new argument names.Verification
tests/mcp,tests/cli,tests/hooks,test-int/cliandtest-int/mcp: 3,406 passed on the first run. The 7 failures and 22 errors were stale references to the deleted tools; all fixed, and those files rerun at 245 passed.just fast-checkis clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01CMYVL1x91B8kJxy7nn2GU8