mcpproxy-go icon indicating copy to clipboard operation
mcpproxy-go copied to clipboard

Follow-ups from Spec 108-f profiles/clients REST final review (#1439)

Open Dumbris opened this issue 2 months ago • 1 comments

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 final s.Get, which runs a Stats24h activity scan. awaitPublished keeps counting its 5s deadline while held, so a hold longer than 5s drops the rename's profiles.changed and tools/list_changed. Fix: release the hold right after ProfileRenamed, and don't count held time against the deadline.
  • [ ] internal/server/profile_change_notify.go:274,288: held() is checked under n.mu, but deliver() runs without re-checking it. In that microsecond window, an earlier batch's list_changed can reach a session before a concurrent rename rewrites its selection.
  • [ ] internal/runtime/clients_service_upgrade.go:256: upgradeGuard builds candidate bindings for unresolved Error rows 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: skip Error rows in upgradeGuard, and add a test for the named-profile path.

Dumbris avatar Sep 30 '26 20:09 Dumbris

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).

Dumbris avatar Oct 06 '26 07:10 Dumbris