new-skill creation: deny by default, refuse silently
A host now leans on the committed packs: `new_skill_creation` defaults to `deny` (core schema, generated config.example.json, and the scheduler's unset fallback), so a fresh bootstrap does not author skills at runtime. A host with the resources opts in with `allow` (or `ask`). Under deny, an unmatched request no longer exposes the authoring machinery: `_blocked_create` answers with a plain refusal (`skills.UNABLE_MESSAGE`, "I'm sorry, I'm not able to help with that.") instead of an error naming `new_skill_creation`/`config.json`, and a leftover empty/in-progress leaf in a denied category refuses the same way rather than telling the user to `restart` the body write. The block is still traced (`category_create_blocked` / `skill_create_blocked`) for operators. Routing, decision logging, and the allow/ask paths are unchanged. Tests: authoring-mechanics helpers opt in explicitly; the default-deny and silent-refusal cases are asserted.
This commit is contained in:
1 parent
78b4621ba0
commit
711dba2f03
9 files changed
+153
-60
No files matched your search
@@ -39,10 +39,12 @@ CORE_SCHEMA: dict[str, Any] = {'tau': {'default': 0.6, 'type': 'float', 'doc': '
|
||||
'type': 'int',
|
||||
'doc': "Seconds a completed run's ledger stays recallable for a follow-up "
|
||||
'in the same chat (0 disables).'},
|
||||
'new_skill_creation': {'default': 'allow',
|
||||
'new_skill_creation': {'default': 'deny',
|
||||
'type': 'str',
|
||||
'doc': 'Global tri-state new-skill mode: allow | deny | ask (a category '
|
||||
'config overrides it).'},
|
||||
'doc': 'Global tri-state new-skill mode: deny (default) | allow | ask (a '
|
||||
'category config overrides it). Deny by default: the agent leans on '
|
||||
'the committed packs, and a host opts in to live skill authoring by '
|
||||
'setting allow.'},
|
||||
'verbosity': {'default': 'result',
|
||||
'type': 'str',
|
||||
'doc': 'REPL reply verbosity: result | query | decision.'},
|
||||
|
||||
Reference in new issue
Block a user