tune category selection
This commit is contained in:
1 parent
567c280ee2
commit
de78a0e96a
9 files changed
+655
-242
No files matched your search
@@ -112,17 +112,27 @@ Skills are leaves: categories → skills → actions. Navigation is a chain of S
|
||||
choices, one per level (`navigate` in `semif_agent/skills.py`), and **every
|
||||
choice is logged** (`navigate:category`, `navigate:leaf`, `navigate:response`).
|
||||
|
||||
- The category level offers a `create_category` branch; the leaf level offers
|
||||
`create_skill`.
|
||||
- **Create-confidence gate.** `create_skill`/`create_category` share a softmax
|
||||
with the real options, so a weak plurality win is not evidence that nothing
|
||||
matches. A create branch fires only when `P(create) >= navigation.create_tau`
|
||||
**and** it leads the best existing option by `navigation.create_margin`;
|
||||
otherwise navigation falls back to the best existing option and traces
|
||||
`create_suppressed` with the probabilities. An empty tree/category still
|
||||
short-circuits straight to create.
|
||||
- There is a second door to authoring: an **intent guard**
|
||||
(`confirm_skill_fit`, phase `navigate:intent`) for genuinely unmatched actions.
|
||||
- **Two-stage at both levels; the guards are the create doors.**
|
||||
- **Category.** The softmax offers every existing category **with its
|
||||
description** plus a `create_category` branch, and the winner is confirmed by
|
||||
the **scope guard** (`confirm_category_fit`, phase `navigate:category_scope`):
|
||||
a name-anchored SemIf check at `navigation.category_tau` asking whether that
|
||||
category's scope covers the request. Confirmed → descend; rejected (or a
|
||||
`create_category` win) → author a new category. Descriptions are load-bearing:
|
||||
with bare names the model sent "book a flight to japan" to `simplex` (0.49 vs
|
||||
`create_category` 0.12); with descriptions it picks `create_category` 0.87.
|
||||
An empty tree short-circuits straight to create.
|
||||
- **Leaf.** The leaf softmax picks only among the existing skills (a create
|
||||
option diluted its probability and let a crowded tree drift into create on a
|
||||
weak plurality). The picked skill then goes through the **intent guard**
|
||||
(`confirm_skill_fit`, phase `navigate:intent`): an action comparison at
|
||||
`navigation.intent_tau` asking whether the skill performs the same action the
|
||||
request asks for. Same → run it; different → author a new leaf in that
|
||||
category. An empty (or single-skill) category skips the softmax and goes
|
||||
straight to the guard.
|
||||
- Both guards are deliberately permissive; with real descriptions the in-scope
|
||||
cases score 0.9–1.0, so a borderline over-cover routes into a plausible
|
||||
category and the leaf guard catches it.
|
||||
|
||||
### The skill run loop
|
||||
|
||||
@@ -463,7 +473,7 @@ Key blocks:
|
||||
| `engine` | SemIf source/revision, GGUF path, context, threads |
|
||||
| `llm` | small model endpoint that authors new category/skill title + description |
|
||||
| `codegen` | skill-body model endpoint, timeouts, sampler, elicitation, fidelity, repair, test, degeneration watchdog, token budget |
|
||||
| `navigation` | create-gate `create_tau` / `create_margin` |
|
||||
| `navigation` | two-stage guards: leaf `intent_tau`, category `category_tau` |
|
||||
| `tau` | decision threshold; `max_reentries` requeue bound |
|
||||
| `queue` | `max_size`, `age_rate` |
|
||||
| `skill_bodies` / `skill_seeds` / `log` / `trace` / `category_registry` | runtime paths (anchored to the checkout) |
|
||||
|
||||
Reference in new issue
Block a user