Repository navigation
Description
Problem
A client cannot tell whether learned skills are actually deployed and usable.
Today ServerCapabilities.learned_skills only means "the caller-partitioned lifecycle API is available". The effective learning policy (mode, activation rule, evaluator, store) is not reported anywhere a client can read; it is only written to the daemon log (internal/app/learning.go, "automatic learning policy resolved").
Observed on a default local mecated serving with learning.mode: off (the default): the runtime reports learnedSkills, learningProposals, and reflection as true, and ListLearnedSkills answers supported with no items. A client therefore shows a working, empty review surface even though no draft can ever appear. The same ambiguity applies when drafting is on but cannot complete, for example when evaluator infrastructure is missing (the docs say such candidates "remain inactive"), when the store is partial, or when publishing into the live catalog is unavailable.
I did not verify what mecak8s reports with no learning.store.endpoint set (the Helm default is empty).
Outcome
A client can read, from the server, a clear and truthful statement of whether learned skills are deployed and usable, and why not when they are not.
Scope
- Report the effective learning status through the capabilities or server-info surface, additively:
- learning mode (
off,review,auto) and whether new drafts can be produced at all; - the skill activation rule (
validatedorevaluated) and whether an evaluator is available; - the store in use (local or remote) and whether it supports the lifecycle operations;
- whether publishing into the live skill catalog is available;
- a stable machine-readable reason, plus a human-readable one, for each unavailable part.
- learning mode (
- Make
learned_skillsandlearning_proposalsmean one documented thing, and say so in the proto comments. - Cover
mecated,mecak8swith and without a learning store,mecatui, andmecatequi. - Update the learning and deployment docs.
Acceptance
- Tests cover the combinations of mode, evaluator, store, and publication, and assert the reported status for each.
- On a default deployment with
learning.mode: off, the status says drafting is off. - The change is additive and the SDK exposes it.
task test,task lint, andtask docspass.
Delivery
Bounded daemon and SDK contract addition. No Studio change in this issue.
Where Studio wires it in once this exists
Each is a small follow-up in apps/:
apps/web/src/features/knowledge/knowledge-workspace.tsx: today the Learned pill hides only whenlearnedSkills === false; use the new status to also say when drafting is off or unusable.apps/web/src/features/knowledge/learned-skills.tsx: replace the generic "No learned skills yet" empty state with the real reason (drafting off, no evaluator, store unavailable).apps/web/src/features/knowledge/skill-tool-disabled-banner.tsx: the same pattern for a learned-skills banner.apps/server/src/mecatl/knowledge.tsandapps/contracts/src/schemas/runtime.ts: carry the status through the BFF.- Settings, next to the existing runtime facts: show the effective learning policy.
Fully or partially written by an AI agent.
Activity
fix(studio): warn when a learned-skill action was recorded but not pu…