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:
Denton Social committed 2026-09-29 03:46:53 -05:00
1 parent 5a6f220e79
commit 22f91e0360
9 files changed
+262 -148

No files matched your search

+14
View File
@@ -23,6 +23,7 @@ from dataclasses import dataclass
from .decisions import DecisionRequest, Option, Request
from .log import DecisionLog
from .skills import (
CANNED_CATEGORIES,
ActionContext,
Prediction,
Skill,
@@ -301,6 +302,19 @@ class SkillRunner:
self, skill: Skill, request: Request, prediction: Prediction | None, action
) -> RunResult:
observed = action.new_state
if skill.category in CANNED_CATEGORIES:
summary = deterministic_summary(
skill.category, skill.name, True, action.action_log, observed
)
return RunResult(
skill=skill.name,
success=True,
summary=summary,
action_log=action.action_log,
new_state=observed,
assessment_summary=summary,
prediction=prediction,
)
success, updated_request = self._assess(skill, request, action)
decisions = getattr(prediction, "decisions", [])