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
@@ -723,6 +723,13 @@ _CANNED_RESPONSES = [
|
||||
|
||||
_RESPONSE_MESSAGES = {f"response.{name}": message for name, _, message in _CANNED_RESPONSES}
|
||||
|
||||
#: The deterministic reply when new-skill creation is denied and no existing
|
||||
#: skill can serve the request. Unlike the `response` tree this is never
|
||||
#: navigable: it is reached only from the scheduler's deny gate. The user is
|
||||
#: deliberately never told that authoring (or config) exists — the request
|
||||
#: simply cannot be served.
|
||||
UNABLE_MESSAGE = "I'm sorry, I'm not able to help with that."
|
||||
|
||||
# Built-in category descriptions. Authored categories carry their own
|
||||
# description from the registry, and pack categories carry theirs from the
|
||||
# pack manifest (`packs/<name>/pack.json` -> `categories`); this dict is only
|
||||
|
||||
Reference in new issue
Block a user