GeezerVison is showing github.com — mcpx: match semantic feedback to exact tool identities across call and proxy paths · Issue #13573 · developing-today/code
mcpx: match semantic feedback to exact tool identities across call and proxy paths #13573DescriptionThe direct-call interaction records a server/tool identity using a colon; semantic ranking asks for a namespace/function identity using a dot. Proxy capture carries offered tools. The store searches a serialized list with LIKE. #1936 closed after the original feedback capability shipped.
Acceptance
Use a stable, exact tool identity for new records. Define compatibility for historical spellings and distinguish an offered tool from an invoked tool. In a disposable store score A once; its ranking changes, A_suffix and unrelated tools do not. Include a historical colon-form row and a namespace alias. Preserve unrated and legacy history.
Source
Static inspection at 1f9bc15. internal/daemon/server.go · internal/daemon/registry.go · internal/daemon/routes_proxy.go · internal/logstore/feedback.go
Program #13264. Recheck the premise, current queue ownership and open PRs before implementation. Verify through Fleet. Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 Triage verdict (2026-11-23): confirmed correctness defect; no existing implementation PR or competing live task was found.
Evidence in the current source:
- Direct calls record
server:tool (pkgs/mcpx/internal/daemon/server.go:1300-1316), while semantic search asks feedback for namespace.function (pkgs/mcpx/internal/daemon/registry.go:2101-2106).
- The store persists a comma-joined list and applies substring
LIKE (pkgs/mcpx/internal/logstore/feedback.go:110-143,411-459), so a feedback identity can match a longer suffix tool.
- Proxy capture stores the offered function list as
ToolsUsed (pkgs/mcpx/internal/daemon/routes_proxy.go:199-201,242-251,303-311), mixing recommendation relevance with invocation/execution history.
This is larger than a small fix because it needs an explicit canonical identity, exact legacy alias handling, and distinct offered/invoked history while preserving existing rows. I queued one implementation slice in repo-health-code-pilot as task 21400. It covers the feedback store and both recording paths with the issue's disposable-store acceptance oracle. The issue remains open for that work. dezren39 commented on Nov 23, 2026
Lane AU18 (sandbox fix lane, coordinated by Archer) claiming this issue.
Premise + ownership check: issue open, only label app/mcpx, comments count-confirmed at 1 (bot Kaneo link only), no prior claim, no user/* label, no design/ratification gate, no flag hold. Open PRs touching mcpx are docs-only plus the #13349 lint repair — none touches feedback identity.
Premise verified first-hand at main b853df8:
- Direct-call path records
server + ":" + tool (daemon/server.go handleCall) while semantic ranking queries ToolFeedbackAdjustment(t.Function) with Function = Namespace + "." + Tool (daemon/registry.go) — the two spellings never literally match.
- The store matches with
tools_used LIKE '%<tool>%' over the comma-joined list (logstore/feedback.go), so browser.screenshot also matches browser.screenshot2 rows and vice versa.
- Proxy capture (daemon/routes_proxy.go, both record sites) stores the client's offered tool names as ToolsUsed, conflating offered with invoked.
Plan: in logstore, canonicalise tool identities on write (historical colon spelling -> the stable dot form), match whole list elements exactly across both historical spellings at query time, add a separate offered-tools field/column that proxy capture writes (execution adjustments count invoked tools only; retrieval adjustments and correlated queries count invoked + offered), and let the ranking call site pass the server identity as an alias for its view Function. New disposable-store tests cover: scoring A changes A only (not A_suffix or unrelated tools), a historical colon-form row, a namespace alias, offered-vs-invoked separation, and legacy rows preserved. dezren39 commented on Nov 23, 2026
LANDED — PR #13624, merged as 5f8eedd (head 7725259).
What changed:
- logstore canonicalises tool identities on write to the stable namespace.tool form (historical colon spelling maps onto it) and matches whole list elements exactly at query time across both spellings — no more substring LIKE, so
browser.screenshot no longer sees browser.screenshot2 rows, and legacy colon rows keep answering without being rewritten.
ToolFeedbackAdjustment / FindCorrelatedQueries take alias identities; semantic ranking passes the server identity behind the view's function name (registry.go), so call-path feedback and view-path ranking share one history.
- Interactions gain
tools_offered (column added in place for existing stores). Both proxy record sites now write the offered set there instead of tools_used: execution adjustments count invoked tools only; retrieval adjustments and correlated queries count invoked + offered.
- One existing test expectation updated: a record written as
browser:screenshot now reads back under the canonical browser.screenshot.
Verification (laptop, lane worktree): go build ./... and go vet clean, gofmt clean; go test ./internal/logstore/ ok, go test ./internal/daemon/ ok (179s), go test ./internal/cli/ ok. New feedback_identity_test.go covers the acceptance oracle in disposable stores: score A once → A moves, A_suffix and unrelated tools stay neutral; historical colon-form row; namespace alias; offered-vs-invoked separation; unrated/legacy history preserved. Post-merge: the logstore suite was re-run with -count=1 at merged main (00f65fa, merge commit an ancestor) — ok.
Closing as completed: every acceptance line is implemented and tested.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|