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
@@ -84,7 +84,7 @@ def test_tree_endpoint(tmp_path):
|
||||
status, payload = server.get("/api/tree")
|
||||
assert status == 200
|
||||
assert "response" in payload["categories"]
|
||||
assert any(s["name"] == "response.reject" for s in payload["categories"]["response"])
|
||||
assert any(s["name"] == "response.clarify" for s in payload["categories"]["response"])
|
||||
finally:
|
||||
server.close()
|
||||
|
||||
|
||||
Reference in new issue
Block a user