Skip to content

refactor(mcp): remove the retired write_note tool - #1947

Merged
phernandez merged 1 commit into
mainfrom
refactor/remove-write-note
Oct 29, 2026
Merged

phernandez merged 1 commit into
mainfrom
refactor/remove-write-note

Conversation

@phernandez

Copy link
Copy Markdown
Member

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.ai/code/session_01CMYVL1x91B8kJxy7nn2GU8

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T04:43:39.777833Z b8e0e37 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@phernandez
phernandez added this pull request to stack #1950 October 29, 2026 05:05
@phernandez
phernandez force-pushed the refactor/remove-write-note branch 2 times, most recently from e68b4d1 to 7165e7e Compare October 29, 2026 05:26
Base automatically changed from refactor/remove-legacy-tool-modules to main October 29, 2026 06:10
Nothing in core or Cloud called write_note after bm hook and bm ci moved
to bm_write; about 20 test files still used it to create notes. Move
those setup calls to bm_write (same keyword arguments; project_id
becomes project) and delete write_note with its own tests, export,
contract entries and harness name.

Assertions that read write_note's text output now request JSON and check
fields. The remote-project symlink regression moves to bm_write, which
routes through note_targets. The write_note span test goes with the
tool; the bm_* tools emit no tool-level span yet.

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
phernandez force-pushed the refactor/remove-write-note branch from 7165e7e to 9de038f Compare October 29, 2026 06:10
@phernandez
phernandez merged commit 0ab1d9d into main Oct 29, 2026
14 of 15 checks passed
@phernandez
phernandez deleted the refactor/remove-write-note branch October 29, 2026 06:11
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>
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