scheduler: new-skill creation is a tri-state allow/deny/ask mode
Replace the boolean creation_approval and the per-category boolean locks.new_skill with a single tri-state new_skill_creation mode: a global default (allow | deny | ask) with a per-category override in the category config. allow authors immediately, deny blocks creation, ask gates on human approval (the old approval path). housekeeping/response stay denied in code. Surfaces updated: config.example.json, REPL /mode, dashboard /api/new-skill-modes + /api/new-skill-mode, static UI. The retired booleans creation_approval (true->ask) and locks.new_skill (true->deny) are still read as fallbacks so an existing deployment keeps its behaviour. Docs (AGENTS.md, docs/flow.md) and tests updated.
This commit is contained in:
1 parent
88700898be
commit
c5ee87875f
11 files changed
+350
-160
No files matched your search
+2
-1
@@ -2,7 +2,8 @@
|
||||
"_comment": "Per-machine config. config.json is gitignored. bootstrap.sh seeds config.json from this file only when config.json does not exist, and NOTHING writes config.json afterwards — only a human edits it. Pinned engine/tokenizer/GGUF/simplex-chat refs live in the committed pins.json, not here. Every machine keeps its own config.json. Top-level `timezone` is the IANA zone (e.g. America/Chicago) the agent reports local time in; empty means the host's local timezone.",
|
||||
"tau": 0.6,
|
||||
"max_reentries": 3,
|
||||
"creation_approval": false,
|
||||
"new_skill_creation": "allow",
|
||||
"_new_skill_creation_comment": "Global new-skill creation mode: \"allow\" (create without asking), \"deny\" (never author new skills/categories), or \"ask\" (author only after the human approves the proposal). A category can override this in data/skills/<category>/config.json with its own \"new_skill_creation\" value; the built-in housekeeping and response categories are always denied in code. Replaces the old boolean creation_approval (still read as true=ask/false=allow) and the boolean locks.new_skill (still read as true=deny/false=allow).",
|
||||
"timezone": "",
|
||||
"navigation": {
|
||||
"_comment": "Navigation is two-stage at BOTH levels and the guards are the create doors (no threshold gate). Category: the softmax offers each existing category WITH its description (bare names carried no signal) plus create_category; confirm_category_fit then confirms the winner's scope (phase navigate:category_scope, P(covers) >= category_tau) and a rejected winner authors a new category. The `response` catchall and create_category share a boundary arbitrated by the actionability guard confirm_non_action (phase navigate:actionability, P(non_action) >= action_tau): the closed response tree is reached ONLY when the input is not a request, so a request no skill covers (e.g. \"what is 255 * 12?\") authors instead of getting a canned reply. Leaf: the softmax offers only existing skills; confirm_skill_fit then compares the winner's action to the request (phase navigate:intent, P(same) >= intent_tau) and a mismatch authors a new leaf. All three taus are separate from the top-level tau so tuning reuse-vs-create or actionability does not move run assessment/fidelity. The category check is deliberately permissive: with real descriptions in-scope requests score 0.9-1.0, so a borderline over-cover routes into a plausible category and the leaf guard catches it. A **category** softmax winner at or above `softmax_bypass_tau` (default 0.5) skips the scope confirm (traced `category_scope_bypassed`) — `create_category` is one of its options, so a confident winner really did beat authoring a category. The **leaf** intent guard is never bypassed: the leaf softmax offers only existing skills, so a confident winner is \"best of the wrong lot\", not a match, and the guard is the only leaf-level create door.",
|
||||
|
||||
Reference in new issue
Block a user