Skip to content

feat(skills): show held skills in Home and the review queue (Spec 125 PR-4b) - #1951

Merged
Dumbris merged 17 commits into
mainfrom
125-skills-pr4b-review-rows
Nov 21, 2026
Merged

Dumbris merged 17 commits into
mainfrom
125-skills-pr4b-review-rows

Conversation

@Dumbris

@Dumbris Dumbris commented Nov 20, 2026

Copy link
Copy Markdown
Member

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.

…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
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

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

View logs

- 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
@Dumbris

Dumbris commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

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.

@Dumbris

Dumbris commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

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.

@Dumbris

Dumbris commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

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.

@Dumbris
Dumbris marked this pull request as ready for review November 20, 2026 12:10
@Dumbris

Dumbris commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

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.

@Dumbris

Dumbris commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

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.

@Dumbris

Dumbris commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

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.

@Dumbris

Dumbris commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

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
@Dumbris

Dumbris commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

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

  • go test -race internal/runtime (Skills|Exposure|Attention|Review), including TestSkillsExposureFlipOnAFleetLargerThanTheEventBuffer: pass
  • go test -race internal/httpapi (Skills|SSE|Attention|Review), bare and -tags server, including TestSSE_SkillsChangedListIsForAdministratorsOnly: pass
  • frontend vitest 2969/2969 and type-check: pass

Remaining before merge:

  1. After feat(skills): Skills tab on the server page of the Web UI (spec 125, PR-4a) #1950 merges, rebase on main and resolve the doc-only conflicts: ROADMAP.md (regenerate with scripts/gen-roadmap.py), docs/features/skills.md, specs/125-skills-over-mcp/tasks.md.
  2. Do not re-add the Web consumers. feat(skills): Skills tab on the server page of the Web UI (spec 125, PR-4a) #1950 already makes SkillsPanel.vue and ServerDetail.vue accept payload.servers through skillsChangeIncludesServer.
  3. Run an opencode gpt-6.1-sol review of the full rebased diff, then required CI.

Merge order: #1950 first, then #1951. #1939 stays held, and nothing is tagged or released.

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: 125-skills-pr4b-review-rows

Available Artifacts

  • archive-darwin-amd64 (33 MB)
  • archive-darwin-arm64 (30 MB)
  • archive-linux-amd64 (20 MB)
  • archive-linux-arm64 (18 MB)
  • archive-windows-amd64 (33 MB)
  • archive-windows-arm64 (29 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (29 MB)
  • installer-dmg-darwin-arm64 (26 MB)
  • smart-mcp-proxymcpproxy-goULOSAH.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 44877028533 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@codecov-commenter

codecov-commenter commented Nov 21, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 94.50980% with 14 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/httpapi/server.go 82.85% 4 Missing and 2 partials ⚠️
internal/runtime/skills_catalog.go 86.95% 3 Missing and 3 partials ⚠️
internal/server/server.go 50.00% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@Dumbris

Dumbris commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

#1950 is merged as 5f37ac9 (squash of 493ae6a). #1951 can now be rebased onto main; its Web consumer (skillsChangeIncludesServer) is on main. #1949 is being updated against the new main next.

@Dumbris
Dumbris merged commit 9eb7f44 into main Nov 21, 2026
90 of 91 checks passed
@Dumbris Dumbris mentioned this pull request Nov 24, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants