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
@@ -34,6 +34,9 @@ def build_scheduler(tmp_path, engine=None):
|
||||
log=log,
|
||||
config={
|
||||
"skills": {},
|
||||
# Dashboard mechanics tests exercise the authoring path, an opt-in
|
||||
# now that new-skill creation is denied by default.
|
||||
"new_skill_creation": "allow",
|
||||
"skill_packs": str(tmp_path / "seeds"),
|
||||
"skill_bodies": str(tmp_path / "skills"),
|
||||
"category_registry": str(tmp_path / "categories.json"),
|
||||
|
||||
Reference in new issue
Block a user