GeezerVison is showing github.com — fix(mcpx): match semantic feedback to exact tool identities by dezren39 · Pull Request #13624 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Implements #13573: semantic feedback now matches exact tool identities across the call and proxy paths.
The defect. The feedback store matched tools with tools_used LIKE '%<tool>%' over the comma-joined list, while the writers and readers spelled the same tool differently: the direct-call path records server:tool, semantic ranking asks for namespace.tool (the view's Function), and proxy capture stored the client's offered tool names as if they had been invoked. Feedback leaked into longer names the tool is a prefix of, colon-spelled history never literally matched the dot-spelled query, and merely-offered tools collected execution evidence.
The change.
logstore canonicalises tool identities on write to the stable namespace.tool form (the historical colon spelling maps onto it; new records are uniform), and matches whole list elements exactly at query time across both spellings — legacy rows keep answering and are never rewritten.
ToolFeedbackAdjustment / FindCorrelatedQueries accept alias identities. Semantic ranking (daemon/registry.go) passes the server identity behind the view's function name, so call-path feedback and view-path ranking share one history.
- Interactions gain a
tools_offered list (column added in place for existing stores; their rows read back as "nothing offered"). Proxy capture records offered tools there. Execution adjustments count invoked tools only; retrieval adjustments and correlated queries count invoked + offered, since retrieval feedback judges the offered set.
- Unrated and legacy history is preserved: unrated rows still read back and list exactly as before.
Tests (new feedback_identity_test.go, disposable stores):
- Score A once: A's multipliers move,
A_suffix and unrelated tools stay neutral, and A's average is not diluted by A_suffix rows.
- A historical colon-form row (inserted raw, as pre-change code wrote it) answers both dot and colon queries; a new colon-spelled record is stored canonically.
- A namespace alias: feedback under the server spelling answers a view-name query only when the alias is supplied.
- Offered vs invoked: execution feedback on an offered-only interaction leaves the execution multiplier neutral; retrieval feedback moves the retrieval multiplier and feeds correlated queries.
Verification (laptop runs in the lane worktree): go build ./... clean, go vet clean, gofmt clean; go test ./internal/logstore/ ok, go test ./internal/daemon/ ok (179s), go test ./internal/cli/ ok.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The feedback store matched tools with a substring LIKE over the
comma-joined tools_used list, while writers and readers spelled the
same tool differently: the direct-call path records "server:tool",
semantic ranking asks for "namespace.tool" (the view Function), and
proxy capture stored the client's offered tool names as if they had
been invoked. Feedback for one tool therefore leaked into longer
names it is a prefix of, colon-spelled history never matched the
dot-spelled query, and merely-offered tools collected execution
evidence.
- logstore canonicalises tool identities on write to the stable
namespace.tool form (the historical colon spelling maps onto it),
and matches whole list elements exactly at query time across both
spellings, so legacy rows keep answering.
- ToolFeedbackAdjustment and FindCorrelatedQueries accept alias
identities; semantic ranking passes the server identity behind the
view's function name, so call-path feedback and view-path ranking
share one history.
- Interactions gain a tools_offered list (column added in place for
existing stores). Proxy capture records offered tools there:
execution adjustments count invoked tools only, retrieval
adjustments and correlated queries count invoked + offered.
- New disposable-store tests cover exact matching (score A once;
A_suffix and unrelated tools unchanged), the historical colon
form, a namespace alias, offered-vs-invoked separation, and
legacy rows preserved.
Refs #13573.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 59 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
4fbb5163-ec8d-4762-b917-b5e68a8eab37
Commits
-
Reviewing files that changed from the base of the PR and between 81587f3 and 7725259.
Files selected for processing: 5
-
pkgs/mcpx/internal/daemon/registry.go
pkgs/mcpx/internal/daemon/routes_proxy.go
pkgs/mcpx/internal/logstore/feedback.go
pkgs/mcpx/internal/logstore/feedback_identity_test.go
pkgs/mcpx/internal/logstore/feedback_test.go
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|