Repository navigation
feat(skills): show held skills in Home and the review queue (Spec 125 PR-4b) - #1951
Conversation
…inistrator-only Spec 125 PR-4b (T031 rest, T045 backend). A server with held skills (pending or changed, not blocked, listed, feature on, server enabled, not quarantined, not excluded) gains skills_pending/skills_changed on its review-queue row; a server whose only owed review is held skills gets a skill_review row. The attention list gains the skill_review kind (ranks 62 changed / 63 pending) fixed on /servers/<name>?tab=skills, recomputed on skills.changed. A skills change also publishes review.changed marked skills:true. skillVisibleTo (internal/httpapi) keeps all of it administrator-only: scoped callers lose the counts, the skill_review rows (count excludes them), the skill_review attention items (REST and the attention.changed frame) and the skills-caused review.changed frame. The held-skill walk covers the queue and attention, with the administrator counterpart. Terminology golden, attention parity fixture and REST golden, generated contracts.ts, mcpproxy review list SKILLS column, docs and OAS descriptions. Related #1895
Spec 125 PR-4b (T045). ReviewQueueRow gains skills_pending/skills_changed and the skill_review kind. Rows read "N skills awaiting review · M changed" (combined with the tool counts when both exist); a skill-only row's Review opens /servers/<name>?tab=skills and a tool row with held skills also offers Skills. The impact sort weighs held skills; the ?change= filter stays about tools. AttentionKindSkillReview is generated and re-exported. Related #1895
Spec 125 PR-4b (T031/T045). ScopeFilter.knownTypes gains
skill_quarantine_change and skill_access; ActivityTypePresentation gives
every core activity type an explicit label, icon and colour ("Skill Approval
Change", "Skill Access" as on the Web), guarded by a Go test that fails when a
storage.ValidActivityTypes entry has no Swift case. ReviewQueueRow decodes the
skill counts; a skill-only row reads "... · Review in the Web UI" and, like a
skill_review attention item on Home, opens the server's Skills tab in the
browser (the app has no Skills tab). Home shows an icon for skill_review.
Related #1895
Deploying mcpproxy-docs with
|
| Latest commit: |
5ded887
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5fc4179a.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://125-skills-pr4b-review-rows.mcpproxy-docs.pages.dev |
- SSE: seed each subscriber's attention.changed suppression with its narrowed id set at connect, so a scoped subscriber connected before a skill became held gets no frame when the held skill is the only change (FR-019a timing). Same seeding for every caller class. - Runtime: a commit that moves whether a server's skills are read (enable_skills, the server's enabled, quarantine or expose_skills, added or removed) publishes skills.changed and the administrator-only skills-marked review.changed for exactly those servers, so the Review page and sidebar badge do not keep stale skill rows. - Runtime: a failed skill records read no longer fails GET /api/v1/review; it is logged and that server's skill counts read as zero. - Attention: skills.changed joins a pending recompute instead of resetting the debounce, so skill refreshes never delay any caller's frames. - Web: ReviewScreen reloads only for review.changed about its own server and ignores skills-caused frames. Related #1895
|
Independent review found a native tray regression at 8db4095. CoreProcessManager drops the server/skills payload when posting reviewChanged. The open native tool sheet therefore clears its scanning state on an unrelated held-skill refresh. Please preserve the payload and filter the open sheet by skill marker and server as the Web review screen does. Keep queue-wide refreshes and existing local notifications working. Add a focused native regression test. |
|
Second independent finding: SSE subscribes before it seeds suppression from the current attention state, but the initial status frame does not send that attention baseline. An update in that interval can be queued and then suppressed as already seen, leaving a client stale. Please verify with a deterministic regression and preserve scoped visibility while ensuring the client receives either the scoped baseline or the relevant update. |
|
The macOS Needs Attention menu still routes skill_review through showReviewFromMenu(server), opening tool review. Route that menu action to the server Skills tab and verify the existing tool action remains intact. #1950 provides the destination tab and must land before #1951. The combined checkout has the destination. |
|
Coordinator handoff for the round-2 worker: e3278c8 contains all three fixes reported here, with independent PASS on that exact SHA, green full HTTP API race tests and focused Swift tests. Integrated with #1949 and #1950, the revised head passed 77/77 API tests and 8/8 browser scenarios. Please compare any outstanding local work against this head before pushing; retain additional fixes that address distinct findings. |
|
Review of the pending round-2 changes found a cross-PR regression. The new exposure-setting handler restricts skills.changed to servers with held records. On an approved-only server, changing enable_skills or expose_skills changes GET but leaves the open #1950 tab stale. Please continue sending server-specific skills.changed for affected Skills tabs, and gate only review.changed on changes to held rows. Add an approved-only regression that verifies the tab invalidation and absence of a queue invalidation. |
|
Round-3 test review: the new local assumption that only servers with stored records can have an open Skills tab conflicts with #1950. frontend/src/utils/skills.ts offers the tab when enabled and either supported is true or records exist. Please include a connected, skills-capable server with zero records in the global-off regression and preserve its tab invalidation when optimizing notifications. The 200-server test can still require quiet behavior for unsupported empty servers. |
|
Round-3 independent review identified two remaining integration cases. On first enable, a connected upstream may advertise Skills but return an empty list. When refresh first learns support, notify its Skills tab even when no record changed, while keeping the review queue quiet. At fleet scale, the proposed commit ordering still publishes per-server notifications before tx.after and file-reload notifications. The current 300-server test emits only two tab notifications. Exercise more active subscribers’ tab targets than the event buffer can hold and verify config.reloaded, servers.changed, and the held-review update survive. Please address these in the current Claude session and report exact-head evidence. |
- SSE: attention.changed suppression keeps the whole list of the last event and narrows it, and the new list, with the caller as it is now. A reach change mid-stream (re-pin, profile edit) publishes nothing, so a set remembered under the old reach let the next unrelated event through, including a content-only held-skill change on a server the caller can no longer see. - Runtime: announceSkillsExposureChanges announces only servers that have skill records or support skills, publishes the coalesced skills-marked review.changed before the per-server skills.changed (payload unchanged), and runs after the commit's own events, so a large fleet flipping enable_skills cannot fill a subscriber's buffer ahead of them. - Runtime: a first empty skills listing announces support once. Related #1895
|
Release coordination handoff for #1951 (Codex finishes this PR; the Claude PR-4b worker has exited). Verified by the release coordinator on main ad12abf + #1950 36e268f + this PR at 756ccea (merge tree, doc conflicts left unresolved):
Remaining before merge:
Merge order: #1950 first, then #1951. #1939 stays held, and nothing is tagged or released. |
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 44877028533 --repo smart-mcp-proxy/mcpproxy-go
|
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
…w-rows # Conflicts: # ROADMAP.md # docs/features/skills.md # specs/125-skills-over-mcp/tasks.md
…w-rows # Conflicts: # ROADMAP.md
Completes the operator review queue portion of #1895 (Spec 125 PR-4b). Administrators can see pending or changed skills in Home and the review queue and open the server's Skills tab to review the exact version. Includes Web/native labels, runtime visibility and event handling, and regression coverage.
The implementation owner is finishing the independent review and full test evidence. This draft starts CI in parallel. The release coordinator will validate it together with #1950 and #1949.