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
+2
-1
@@ -216,6 +216,7 @@ confirm is skipped; the **leaf** intent guard is never bypassed (the leaf softma
|
||||
has no create option, so a confident winner is only the closest existing skill,
|
||||
never a match) — it always runs and can reject into create.
|
||||
New-skill creation is gated deterministically by the tri-state
|
||||
`new_skill_creation` mode — global default (`allow` / `deny` / `ask`) with a
|
||||
`new_skill_creation` mode — global default `deny` (opt in with `allow`, or
|
||||
`ask` for approval-gated authoring) with a
|
||||
per-category override in `data/skills/<category>/config.json`; the
|
||||
`housekeeping` and `response` categories are always `deny` in code.
|
||||
Reference in new issue
Block a user