mcpproxy-go
mcpproxy-go copied to clipboard
Follow-ups from Spec 108-f profiles/clients REST final review (#1439)
Low-severity findings still open after the final codex gpt-6.1-sol review of #1439 (Spec 108-f). All five earlier findings (2 medium, 3 low) were fixed in the PR.
- [ ]
internal/runtime/profiles_service.go:533/internal/server/profile_change_notify.go:288: rename holds notifier delivery until the function returns, and that includes the finals.Get, which runs a Stats24h activity scan.awaitPublishedkeeps counting its 5s deadline while held, so a hold longer than 5s drops the rename'sprofiles.changedandtools/list_changed. Fix: release the hold right afterProfileRenamed, and don't count held time against the deadline. - [ ]
internal/server/profile_change_notify.go:274,288:held()is checked undern.mu, butdeliver()runs without re-checking it. In that microsecond window, an earlier batch'slist_changedcan reach a session before a concurrent rename rewrites its selection. - [ ]
internal/runtime/clients_service_upgrade.go:256:upgradeGuardbuilds candidate bindings for unresolvedErrorrows that are never written. With auth off and a named profile, the guard can refuse the whole apply and name a client that would never be written. The failure is closed, not open. Fix: skipErrorrows inupgradeGuard, and add a test for the named-profile path.
Triage on 2026-10-05 against main 8442428d1: All 3 items fixed in the #1439 squash commit 337eecf8f: notifier hold no longer counts against the deadline (profile_change_notify.go:323), beginDelivery/hold are mutually exclusive (:263-273), and upgradeGuard skips Error rows (clients_service_upgrade.go ~250, test clients_service_108f_test.go:380).