response: rebuild as a closed tree of canned replies; drop the gate
There is no up-front handle/ignore filter any more. Every input is scored and dispatched; inputs that are not tasks fall through navigation into the closed response category of hardcoded canned lines (greeting/thanks/ acknowledge/farewell/affirm/unable + the catchall response.clarify). The category is CANNED_CATEGORIES: navigation offers no create_skill there, dispatch/restart refuse to author it, and the runner skips assessment and repair for it (a canned line has no side effect to assess). Removes _contains_request/build_gate_decision and the dropped path.
This commit is contained in:
1 parent
5a6f220e79
commit
22f91e0360
9 files changed
+262
-148
No files matched your search
@@ -34,11 +34,11 @@ def test_result_selected_and_probs():
|
||||
|
||||
def test_request_requeue_preserves_state():
|
||||
original = Request(text="t", priority=0.7)
|
||||
original.resume["from_skill"] = "response.reject"
|
||||
original.resume["from_skill"] = "response.clarify"
|
||||
updated = original.copy_for_requeue()
|
||||
assert updated.id == original.id
|
||||
assert updated.priority == original.priority
|
||||
assert updated.resume["from_skill"] == "response.reject"
|
||||
assert updated.resume["from_skill"] == "response.clarify"
|
||||
assert updated.reentries == original.reentries + 1
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user