Repository navigation
feat(studio): skills inventory, detail page, and learned-skill review - #2154
Merged
Merged
Conversation
6 of 16 tasks
…list Tailwind v4's max-[499px] means width below 499px, so at exactly 499px both the table and the mobile list were visible. Use max-[500px] so it is the exact complement of min-[500px]. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Split the learned-skill half and StateCard out of knowledge-workspace.tsx, keep the Learned view reachable by direct link when the daemon reports no learned-skill inventory so it can explain why, note when the recent-changes ledger is truncated, share the empty-description and format helpers, and reword the Studio skills docs positively. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The disabled Manage controls and the Files note exist only because the daemon has no write contract and no file-listing RPC for configured skills. Move them to a stacked change so this one carries only behavior backed by the daemon. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…blished The daemon records a lifecycle action and then publishes it into the live skill catalog, and reports the outcome as publication_status and publication_error. The BFF dropped both, so a recorded-but-unpublished skill looked like a clean success. Pass them through the contract and show a warning in the learned view. Also note at the Learned pill that the learnedSkills capability stays true with learning off (#2168). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…te change Closing the learned-skill dialog navigates from the item route to the list route, which remounts the list and dropped the warning exactly when an action was recorded but not published. Hold the notice in a small module-level store, add a Dismiss button, and cover the remount in the test. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
kantord
marked this pull request as ready for review
October 7, 2026 16:07
peppescg
approved these changes
Oct 7, 2026
peppescg
left a comment
Contributor
There was a problem hiding this comment.
LGTM. No blockers. CI is green on c68ef76f1, including Studio, Lint, race and both user-docs gates.
What I checked:
- BFF/contract:
publicationStatus/publicationErrorpass through from the SDK response (mecatl/knowledge.ts), and the route schema moves tolearnedSkillActionResponseSchema. The adapter test asserts the publication outcome reaches the browser foractivateand stays empty for the other actions. Additive response fields, so older clients are unaffected. - Learned actions: the CAS and rollback semantics of the removed
learned-skill-detail.tsxcarry over unchanged (expectedRevision,version,ownerAgent,targetVersion: supersedesfor rollback). Only actions the daemon reports inskill.actionsare offered. On failure the dialog stays open with the error, and both inventory and ledger are invalidated infinally, so a stale revision re-reads instead of reporting success. - Routing:
/workspace/skills/learned/<id>still opens the dialog, configured items route to the new detail page, and nothing references the deletedLearnedSkillDetail.
Nits (non-blocking):
publicationNoticeis module-level. It survives sign-out or a credential switch in the same tab, so the next user could see the previous user's "Recorded, but publishing … failed" warning until they dismiss it. Clearing it on auth/session change, or scoping it per connection, would close that.- If an action fails and the refresh removes the skill from the inventory (for example, someone else rejected it), the dialog unmounts and the error is no longer visible. Only the "not found" card remains. That's an acceptable edge case, but you could keep
errorvisible at list level whenselecteddisappears. - The known gaps in the description (no run against a real daemon with learned skills; #2168 runtime flags reporting learned skills as available with
learning.mode: off) are well documented. Worth a real-daemon smoke test before #1853 closes.
Merged
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/workspace/skills/learned/<id>, so links and search results keep working.skill.actionsare offered. A failed action (stale revision, conflict) re-reads the inventory and ledger and shows the error in the dialog; it never closes the dialog or reports success.publication_statusandpublication_errorthrough the contract.table(unmodified except header,cnimport, and formatting) and a smallSortableHeadwitharia-sort.Screenshots
Stack
Issue relationship
Relates to #1853
(Not closing: the desktop/mobile screenshot evidence #1779 asks for is still to be attached, and the stacked PR completes the Summary/Manage/Files page.)
Type of change
Test plan
Baseline checks
task lint)task test)task test:race)go run ./cmd/mecademo)task docs)task site:build)task api:check)task api:update+engine/CHANGELOG.mdStudio-only change, no Go code touched, so the Go gates above were not run. Instead:
task studio:check(lint, typecheck, tests, generated-artifact drift): passes.mecated --skills-conventionalin light and dark, at 1280px and 499px.Changes
apps/web/src/components/ui/table.tsx,sortable-head.tsxSortableHeadwitharia-sortfeatures/knowledge/knowledge-workspace.tsxfeatures/knowledge/learned-skills.tsxfeatures/knowledge/configured-skill-detail.tsxfeatures/knowledge/skill-inventory.ts,humanize-skill-name.tsfeatures/knowledge/skill-diff.tsxfeatures/knowledge/skill-tool-disabled-banner.tsxfeatures/knowledge/state-card.tsx,format.tsStateCardmoved out of the workspace file; shared date/error/empty-description helpersapps/contracts/src/schemas/knowledge.ts,apps/server/src/mecatl/knowledge.ts,apps/server/src/routes/knowledge.ts(+ regeneratedopenapi.jsonand client types)publicationStatusandpublicationErrorroutes/workspace.skills_.$view.$item.tsxuser-docs/building/deployment/studio.mdDesign graph
Nodes are units; solid edges are interactions. The configured-skills path (bold) was the tracer bullet. Orange nodes are files the first draft did not predict; dashed edges are remaining work.
flowchart LR subgraph routes R1["routes/workspace.skills.tsx"] R2["routes/workspace.skills_.$view.$item.tsx"] end WS["knowledge-workspace.tsx<br/>pills, configured table, mobile list"] DET["configured-skill-detail.tsx"] LRN["learned-skills.tsx<br/>list, dialog, ledger"] INV["skill-inventory.ts<br/>sort + filter"] HUM["humanize-skill-name.ts"] DIFF["skill-diff.tsx"] BAN["skill-tool-disabled-banner.tsx"] SC["state-card.tsx"] FMT["format.ts"] SH["ui/sortable-head.tsx"] TBL["ui/table.tsx<br/>stock shadcn"] SET["settings/memory-settings.tsx<br/>settings/storage-settings.tsx"] API[("BFF /api/v1<br/>skills, learned-skills,<br/>changes, diff, actions, runtime")] DOCS["user-docs/.../studio.md"] NEXT["stacked PR:<br/>Manage + Files placeholders"] SCHED["schedules run history<br/>(#1852)"] FILES["daemon files RPC<br/>(does not exist yet)"] R1 ==> WS R2 ==> DET R2 --> WS WS ==> INV WS ==> SH SH ==> TBL WS --> TBL WS ==> HUM INV --> HUM DET --> HUM WS --> LRN LRN --> DIFF WS --> BAN WS --> SC LRN --> SC SET --> SC WS --> FMT LRN --> FMT DET --> FMT WS ==>|GET skills| API DET --> API LRN -->|learned inventory, actions| API BAN -->|capabilities| API WS -->|capabilities| API DET -.-> NEXT SCHED -.-> SH NEXT -.-> FILES classDef traced stroke:#2e7d32,stroke-width:3px; classDef unplanned stroke:#e65100,stroke-dasharray:4 3,stroke-width:2px; class WS,INV,SH,TBL,HUM traced; class SC,FMT,SET,BAN,DIFF unplanned;knowledge-workspace.tsxandformat.tsare crossed by every path.state-card.tsxwas unplanned: moving it out of the workspace file touched two settings pages.User-facing change
Skills page: sortable table and mobile list for configured skills, a detail page per skill, and a learned-skill review dialog with a recent-changes ledger. The routed learned detail page and its per-skill history block are gone (the ledger replaces the history), and the dialog no longer shows the revision.
Special notes for reviewers
Intentional deviations to record once in #1853:
/workspace/skills/learned/<id>, so links keep working. The old page's per-skill lifecycle history is replaced by the global "Recent changes" ledger (20 most recent, with a note when truncated), and the revision fact is no longer displayed (the revision is still sent with every action).rounded-xl border bg-card,px-4 py-3cells) is kept instead of the baseline's tighter one.max-[500px]rather thanmax-[499px]: Tailwind v4'smax-*is strictly below, somax-[499px]leaves a 1px gap at exactly 499px.global-search.tsxhas the same off-by-one; left alone here./workspace/skills/learned/<id>while the daemon reports no learned-skill inventory shows the "Learned skills are unavailable" explanation instead of hiding the view.Known gaps
Things this PR does not solve and that a reviewer should know:
mecatedwithlearning.mode: off, the runtime still reportslearnedSkills,learningProposals, andreflectionas true, so Studio shows an empty Learned view even though no draft can appear. Tracked as Report whether learned skills are deployed and usable #2168, which also lists where Studio will wire the result in.mecak8swithout a learning store is unverified. The Helmlearning.store.endpointis empty by default; I did not check what the daemon then reports.Out of scope, found while testing: Studio's chat has no interface for using skills (typing
/<skill-name>or discovering slash commands and agent mentions in the composer). This was not tracked in #1853 or anywhere else we could find, but a design for it already exists in stacklok/mecatl-prototypes#39 (open). It is now tracked as #2160, a sub-issue of #1736 and blocked by #1853, with its own sub-issues per feature.The schedules run-history table can adopt
SortableHead(tracked under #1852).Fully or partially written by an AI agent.
🤖 Generated with Claude Code