check actionability at the top of navigation
Move the actionability guard (confirm_non_action) to the top of navigate,
before category selection, instead of only firing when the category softmax
proposed response/create_category. A non-request now goes straight to the
closed response tree and never reaches the category softmax, and the category
softmax offers only real categories (the canned response tree is excluded), so
a request can never be canned and a non-request can never be routed into a
real category.
Reword the guard so vague/incomplete fragments ("what") count as non-action:
they previously matched none of the non_action cases and split the decision
(action 0.513 / non_action 0.487), so "what" authored a redundant
"unclear"/"clarify_intent" category. It now lands on the catchall
response.clarify.
Remove the now-dead CreateSkill-for-canned fallback and _canned_fallback.
Update AGENTS.md, the navigation unit tests, the tune_navigation eval set, and
add an integration test for the vague-fragment route.
This commit is contained in:
1 parent
80518dcdda
commit
1d9730bfcb
6 files changed
+220
-98
No files matched your search
@@ -1,11 +1,16 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Tune the two-stage navigation guards.
|
||||
|
||||
Navigation is two-stage at both levels, and the guards are the create doors:
|
||||
Navigation is two-stage at both levels, and the guards are the create doors.
|
||||
Before either stage, the **actionability guard** (`confirm_non_action`) decides
|
||||
whether the input is a request at all: a non-request goes straight to the closed
|
||||
`response` tree and never reaches the category softmax, so a category-level
|
||||
measurement of a non-request is reported as `response` with no guard
|
||||
probability.
|
||||
|
||||
- **Category**: the softmax offers every existing category WITH its description
|
||||
plus `create_category`; `confirm_category_fit` confirms the winner's scope.
|
||||
`navigation.category_tau` is that guard's P(covers) floor.
|
||||
- **Category**: the softmax offers every existing (real) category WITH its
|
||||
description plus `create_category`; `confirm_category_fit` confirms the
|
||||
winner's scope. `navigation.category_tau` is that guard's P(covers) floor.
|
||||
- **Leaf**: the softmax offers only existing skills; `confirm_skill_fit`
|
||||
compares the winner's action to the request. `navigation.intent_tau` is that
|
||||
guard's P(same) floor.
|
||||
@@ -71,6 +76,7 @@ CATEGORY_EVAL: list[tuple[str, str]] = [
|
||||
("tell me the next event in my nextcloud calendar", "calendar"),
|
||||
("hello there", "response"),
|
||||
("thanks!", "response"),
|
||||
("what", "response"),
|
||||
("book a flight to japan", "create"),
|
||||
("what is the weather in paris", "create"),
|
||||
("order me a pizza", "create"),
|
||||
|
||||
Reference in new issue
Block a user