Repository navigation
fix(cutter): explain empty discovery when Cutter 2.5.0 rejects the plugin - #10310
Conversation
…ugin Official Cutter 2.5.0 builds have been observed to reject Python plugins at startup, including Cutter's own sample plugin and REA's bridge (rizinorg/cutter#3659). No session is published, and list_cutter_sessions returns no_live_bridge_found with nothing pointing at the Cutter release. The list_cutter_sessions contract now says what no_live_bridge_found means and names the observed 2.5.0 rejection. The Cutter bridge docs describe installing the plugin, the startup log lines Cutter prints when it rejects it, and that 2.4.1 loaded the bridge in the reported check. A minimal independent plugin fails the same way, so the bridge itself is unchanged. Refs morluto#10299 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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. |
[Medium impact] This PR appears safe to merge; no blocking issues were found. SummaryThis PR adds shared guidance for empty or incomplete Cutter discovery and explains how to install the matching plugin.
No actionable issues found. The changes remain distinct from the target branch. This review was source-based; tests and real Cutter were not run. Reviews (14) · Last reviewed commit: "Merge upstream/main into fix/cutter-2-5-..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e1c2ab947a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
The guidance lived only in the MCP tool description, which `rea list-cutter-sessions` never shows. The docs also assumed a known package folder, which npx installations do not have. The discovery result now carries limitations, owned by cutterDiscoveryLimitations in the domain. For no_live_bridge_found they list the causes discovery cannot tell apart, including the observed Cutter 2.5.0 Python-plugin rejection (rizinorg/cutter#3659). CLI and MCP project the same text, and the tool description returns to its previous wording. The docs now take the plugin from the published package of the matching version with npm pack. Refs morluto#10299 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a4e4ac6d7b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
no_live_bridge_found also covers a published session whose status probe fails: a stale descriptor after Cutter exited, an unresponsive bridge, or an incompatible bridge version. The limitation named only process, plugin-loading and directory causes. It now lists these too, and the dead-status-endpoint test asserts that such a discovery carries it. Refs morluto#10299 Co-Authored-By: Claude Opus 5.5 <[email protected]>
commandFinalizationCancellation builds a Cutter discovery through the list_cutter_sessions output schema, which now requires limitations. CI shard 4 failed all five final-close cases with a ZodError. The fixture now takes the owner's empty limitations for sessions_found. Refs morluto#10299 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ee95bf8b55
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
When one session answered and another published session failed its status probe, discovery returned sessions_found with no limitation. The partial result looked complete. The client already throws for live ceiling mismatches, so every other descriptor without a session is a failed probe. It now passes that count to cutterDiscoveryLimitations, which reports the unlisted sessions for sessions_found. The stale-descriptor case in cutterBridgeRequestLimit asserts it. Refs morluto#10299 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f745d30308
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
When Cutter loads the plugin but the bridge cannot write its session descriptor, for example in an unwritable or full bridge directory, _BridgeServer.run closes the socket without logging. Cutter's log then shows the plugin as loaded, yet discovery finds nothing. The no-live limitation now names that cause and says the bridge does not log it. The Cutter docs say to check the bridge directory when the plugin is loaded but no session appears. Refs morluto#10299 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cd4103109f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
The descriptor loader dropped filename-matching candidates it could not read before listSessions counted unanswered sessions, so a found session beside a malformed, oversized, non-private or misnamed descriptor reported no limitation. The loader now returns its unreadable count, and the discovery limitation owner reports it beside failed status probes for both sessions_found and no_live_bridge_found. The no-live text keeps only the causes that leave nothing published; published sessions are now counted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 40ff18204d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
A filename-matching candidate the loader could not read does not establish that any session exists: it may be malformed, misnamed or removed while reading. The limitation now counts unreadable descriptor candidates and says whether they describe Cutter sessions is unknown, instead of saying their sessions are not listed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve the CutterBridgeClient test conflict with morluto#10349, which removed listDescriptors and made the mixed invalid-descriptor case discover its answering session. That case now asserts the sessions_found limitation for three unreadable candidates, replacing this branch's separate found-plus-unreadable test, which covered the same scenario. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
…ised summary Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Refs #10299 (communication part; the plugin rejection itself is upstream in rizinorg/cutter#3659).
Official Cutter 2.5.0 builds have been observed to reject Python plugins at startup, including REA's Cutter bridge. No bridge session is published, so
list_cutter_sessionsreturnsno_live_bridge_found. Nothing in the result, the tool contract or the docs pointed at the Cutter release, and REA's docs did not say where to install the plugin.Now a
no_live_bridge_founddiscovery carries alimitationsentry, in both the CLI and MCP results. It names the causes discovery cannot tell apart, including the observed 2.5.0 rejection. Discovery also counts descriptor candidates it could not read and published sessions that did not answer, so a partial result does not look complete. The Cutter bridge docs describe:Problem and expected behavior
rea_bridge.pyin its Python plugin directory, then runrea list-cutter-sessions.Plugin's create_cutter_plugin() function did not return an instance of CutterPlugin: "rea_bridge"andLoaded 0 plugin(s); discovery returnsno_live_bridge_found. A minimal independent plugin fails the same way. Cutter 2.4.1 on the same host loads the bridge.Change and scope
src/domain/cutterDiscovery.ts,src/cutter/CutterBridgeClient.ts):cutterDiscoverySchemagainslimitations: string[], owned bycutterDiscoveryLimitations(status, unlisted).For
no_live_bridge_found, the limitation says discovery cannot tell which of these happened:REA_CUTTER_BRIDGE_DIR.It also says Cutter's startup log shows whether the plugin loaded, and that official Cutter 2.5.0 builds have been observed to reject Python plugins, including this one (Can't load plugins in new 2.5 version rizinorg/cutter#3659).
For
sessions_foundandno_live_bridge_found, it counts what discovery examined but could not list:A
sessions_foundwith nothing unlisted and the bridge-directory error statuses return[].CutterBridgeClient.#loadDescriptorsreturns its unreadable count, andlistSessionssets the limitation on both return paths, so the CLI and MCP project the same text.main. An earlier commit put the guidance there, but the CLI never shows it, and the result carries it only when it applies.docs/reverse-engineering-tools.md, Cutter bridge):npm pack rea-agents@<version>andtar -xzf rea-agents-<version>.tgz package/bridge/cutter/rea_bridge.py, usingnpm.cmdin Windows PowerShell;pythonsubdirectory of Cutter's plugin directory, shown under Edit > Preferences > Plugins (per Cutter's plugin docs), then restart Cutter;limitationsshow them without changing the status enum.Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
cutterDiscoveryLimitationsinsrc/domain/cutterDiscovery.tsowns what each discovery status cannot establish. The descriptor loader owns the unreadable count and the status probe the unanswered count.CutterBridgeClient.listSessionsattaches the result, and the CLI and MCP adapters project it unchanged. Superseded: the description sentence from the first commit.list_cutter_sessionsoutput schema adds requiredlimitations: string[]. It is additive; discovery results are not retained Evidence, so no historical records need it. The description and input schema are unchanged.docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): the generated tool catalog carries the new description, and the committed advertised-schema summaryscripts/verify/advertised-schemas/tools/list_cutter_sessions.jsonrecords the new output compact schema hash.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
cutterDiscoveryLimitationsrather than freezing its wording):tests/boundary/cli/cutterCommands.test.ts(public CLI):rea list-cutter-sessions --jsonon an empty bridge directory returnsno_live_bridge_foundwith the owner's non-empty limitation.tests/boundary/mcp/cutterCancellationMcp.test.ts(MCP, real client): the recoveredno_live_bridge_founddiscovery carries the same limitation.tests/boundary/mcp/cutterMcp.test.ts(MCP): a found session returnslimitations: [].tests/boundary/providers/cutterBridgeRequestLimit.test.ts: one answering session beside one stale published session returnssessions_foundwith the owner's limitation for one unanswered session.tests/boundary/providers/CutterBridgeClient.test.ts:sessions_foundwith the limitation for three unreadable descriptor candidates;no_live_bridge_foundwith one unanswered session.cutterCancellationMcp,CutterBridgeService,CutterBridgeClientandcommandFinalizationCancellationtests now include the required field.package.jsonfilesandscripts/verify-packed-bridge.mjs.rea list-cutter-sessions --jsonwith no live bridge now includes"limitations": ["No REA bridge session in bridge_directory answered. Discovery cannot tell whether Cutter is not running, did not load the REA Python plugin, loaded it but could not publish a session (for example, an unwritable or full bridge directory), or uses another REA_CUTTER_BRIDGE_DIR. Cutter's startup log shows whether the plugin loaded; the bridge does not log a publication failure. Official Cutter 2.5.0 builds have been observed to reject Python plugins, including this one (rizinorg/cutter#3659)."]. A found session beside two unreadable descriptors includes"2 descriptor candidates in bridge_directory could not be read (removed, not a private regular file, unreadable, oversized, malformed, or not matching its file name). Whether they describe Cutter sessions is unknown."npm packagainst the registry was not run. Thetarmember path matches the packed layout thatscripts/verify-packed-bridge.mjschecks, and the extraction command was run on a local mock archive with that layout.For boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.
no_live_bridge_foundnow states which causes stay unknown instead of returning a bare empty list. Both statuses count unreadable and unanswered descriptors;sessions_foundreturns[]only when nothing was left unlisted.For evidence-bearing changes:
Validation performed
Run on Linux with Node 24.22.1 (
.nvmrc) and npm 11.19.1 (packageManagerpins 11.16.0), onupstream/main54906fd:npm run test:focused -- tests/boundary/mcp/cutterMcp.test.ts tests/boundary/mcp/cutterCancellationMcp.test.ts tests/boundary/providers/cutterBridgeRequestLimit.test.ts tests/boundary/mcp/compactInputSchemaMcp.test.ts tests/boundary/mcp/toolSchemaValidity.test.ts tests/boundary/mcp/mcpSchemaValidation.test.ts tests/conformance/contracts/mcpInputSchemaProfile.test.ts tests/conformance/contracts/mcpOutputSchemaProfile.test.ts tests/conformance/contracts/mcpResponseBudget.test.ts tests/conformance/contracts/mcpToolFamilies.test.ts: 10 files, 91 tests passed.npm run test:local -- src/application/CapabilityInventory.test.ts src/application/AnalysisSettings.test.ts src/config/bridgeMaxRequestBytes.test.ts src/domain/resourceConstraintReattribution.test.ts src/contracts/toolEffects.test.ts: 5 files, 94 tests passed.npx tsc --noEmit -p .,npm run check:fastandnpm run docs:checkpassed.npx oxfmt --checkandnpx oxlinton the changed files, andgit diff --check: clean.a4e4ac6d7(Codex review: CLI guidance and npx plugin source):npm run test:focusedon all 14 Cutter test files (providers, CLI, MCP): 114 tests passed.npm run test:focusedon the MCP schema and catalog-profile tests: 7 files, 70 tests passed.npm run test:local -- src/application/CapabilityInventory.test.ts src/contracts/toolEffects.test.ts: 66 tests passed.npx tsc --noEmit -p .,npm run check:fast,npm run docs:check,npx oxfmt --check,npx oxlinton the changed files andgit diff --checkpassed.CutterBridgeClient.tskeepsmain's existing lint warnings.limitationsis required.cf559c35b(Codex review: failed status probes): all 14 Cutter test files passed (114 tests), andnpx tsc --noEmit -p .,npm run check:fast,npm run docs:check,npx oxfmt --checkandnpx oxlintpassed.ee95bf8b5: shard 4 failed the five final-close cases intests/process-global/commandFinalizationCancellation.test.ts. Its discovery fixture is parsed at runtime through the output schema, so the typecheck did not flag the missinglimitations. After the fix,npm run test:focusedon every test file that mentions Cutter (36 files) passed: 983 tests, 2 skipped.f745d3030(Codex review: partial discovery):npx tsc --noEmit -p .,npm run check:fast,npm run docs:check,npx oxfmt --checkandnpx oxlintpassed.CutterBridgeClient.tskeepsmain's 8 lint warnings, andlistSessionsstays within the function-length limit.cd4103109(Codex review: unpublished sessions): all 36 test files that mention Cutter passed (983 tests, 2 skipped), andnpx tsc --noEmit -p .,npm run check:fast,npm run docs:check,npx oxfmt --checkandnpx oxlintpassed.40ff18204(Codex review: unreadable descriptors):npx tsc --noEmit -p .,npm run check:fast,npm run docs:check,npx oxfmt --checkandnpx oxlintpassed.CutterBridgeClient.tskeepsmain's 8 lint warnings.17b8ca6fe(Codex review: unreadable candidates do not establish sessions): all 36 test files that mention Cutter passed (984 tests, 2 skipped), andnpx tsc --noEmit -p .,npm run check:fast,npm run docs:check,npx oxfmt --checkandnpx oxlintpassed.0539370a3(conflict with refactor: remove legacy seams and consolidate resource ownership #10349, which removedlistDescriptorsand made the mixed invalid-descriptor case answer): that case now asserts the limitation for three unreadable candidates, replacing this branch's separate test of the same scenario. Onupstream/mainbbe2bcc, all 36 test files that mention Cutter passed (983 tests, 2 skipped). The mixed case fails when the loader reports 0 unreadable candidates.npx tsc --noEmit -p .,npm run check:fast,npm run docs:check,npx oxfmt --checkandnpx oxlintpassed, andCutterBridgeClient.tskeepsmain's 8 lint warnings.5d640f92f(conflict with feat(cutter): name the plugin re-copy recovery for sessions whose plugin source is unknown or modified #10950, which added each session'sbridge_sourceand its recovery to discovery): kept both docs paragraphs and both test imports. Onupstream/main4126698,npm run test:focusedon the 29 test files that mention Cutter passed (874 tests, 1 skipped), andnpm run test:localon the 9 source test files that mention Cutter passed (129 tests, 1 skipped).npx tsc --noEmit -p .,npm run docs:check,npx oxfmt --checkandnpx oxlinton the changed files, andgit diff --checkpassed.npm run check:fastwas not run for this merge.CutterBridgeClient.tshas the same 9 lint warnings asmain;listSessionsis already over the function-length limit onmain(105 lines) and is 110 lines here.d650e41d7(no conflicts; brings in fix(setup): read MCPorter's XDG folder in the client configuration-root owner #11193, test(mcp): accept compact-profile guidance after the JavaScript analysis description #11195 and fix(process): relay a start abort missed during listener registration and expect owner-closed Rizin starts #11200, which fix themaintest failures reported in [Bug] ClientConfigRoots.test.ts fails on main since #10698: SupportedClients.ts reads XDG_CONFIG_HOME for MCPorter #11145, [Bug] javascriptAnalysisResources.test.ts fails on main since #10632: the compact profile appends its reduced-form note to the tool description #11146 and [Bug] RizinDebugSessionCoverage.part1.test.ts fails on main since #11020: closeAll now aborts in-flight starts #11147): onupstream/main8b7829e,npm run test:focusedon the 29 test files that mention Cutter plusjavascriptAnalysisResources.test.ts,RizinDebugSessionCoverage.part1.test.tsandRizinTtyCleanup.test.tspassed (32 files, 895 tests, 1 skipped), andnpm run test:localonClientConfigRoots.test.tsand the 11 source test files that mention Cutter passed (284 tests, 1 skipped).npx oxfmt --checkandnpx oxlinton the changed files,git diff --checkand the pre-push architecture guards passed.npx tsc --noEmit -p .,npm run check:fastandnpm run docs:checkwere not run for this merge.CutterBridgeClient.tshas the same 9 lint warnings asmain;listSessions(105 lines onmain, 110 here) and#loadDescriptors(168 onmain, 178 here) are already over the function-length limit onmain.16799b99b(CI "Build package": the per-tool advertised-schema summary that test(mcp): record the advertised-schema summary per tool #11192 added was stale forlist_cutter_sessions): records the output compact schema hash that CI printed ford650e41d7.node scripts/verify-advertised-schemas.mjspassed against the local build ofd650e41d7; it verified the v8, Go RE2 and Pythonreengines, and the RE2 C++ and Rust engines are not installed here.641493b3c(no conflicts; brings in test(environment): read an omitted advertised required list as empty #11391, which fixes theenvironmentServeWritesMcp.test.tsfailure that came frommain): onupstream/main3676ec6, afternpm ci,npm run test:focusedon the 31 test files that mention Cutter plusenvironmentServeWritesMcp.test.tspassed (32 files, 1972 tests, 2 skipped), andnpm run test:localon the 11 source test files that mention Cutter passed (258 tests, 1 skipped).node scripts/verify-advertised-schemas.mjspassed with the committedlist_cutter_sessionssummary (v8, Go RE2 and Pythonreengines).npx oxfmt --checkandnpx oxlinton the changed files,git diff --checkand the pre-push architecture guards passed.npx tsc --noEmit -p .,npm run check:fastandnpm run docs:checkwere not run for this merge.CutterBridgeClient.tshas the same 9 lint warnings asmain;listSessions(105 lines onmain, 110 here) and#loadDescriptors(168 onmain, 178 here) are already over the function-length limit onmain.73efeafbe(conflict with 48e27e1, which pruned this file'spackagedCutterPluginPathimport beside thecutterDiscoveryLimitationsimport added here): kept this branch's import and dropped the unused one. Onupstream/main61f7484,npm run test:focusedon the 31 test files that mention Cutter passed (2005 tests, 2 skipped), andnpm run test:localon the 10 source test files that mention Cutter passed (256 tests, 1 skipped).node scripts/verify-advertised-schemas.mjspassed with the committedlist_cutter_sessionssummary.npx oxfmt --checkandnpx oxlinton the changed files,git diff --checkand the pre-push architecture guards passed.npx tsc --noEmit -p .,npm run check:fastandnpm run docs:checkwere not run for this merge.CutterBridgeClient.tsis unchanged by this merge and keeps the same 9 lint warnings.npm run check:pr, or any real Cutter release.Compatibility, safety, and release
Author readiness
Human owner: @SandstromPL
Before merge
type(scope): outcome.🤖 Generated with Claude Code