surface skill result, not LLM assessment, to the user

The user-facing output was the self-assessment model's brief summary, so a
skill that returned real data (e.g. calendar.next_event) only reported that
it found something. Display the skill's action_log instead; keep the
assessment text on the assessed trace (assessment_summary) for diagnostics.
This commit is contained in:
Denton Social committed 2026-09-26 06:16:13 -05:00
1 parent de2c1a73f2
commit a627f59a67
3 files changed
+46 -2

No files matched your search

+3 -1
View File
@@ -39,6 +39,7 @@ class RunResult:
new_state: str
updated_request: str | None = None
decisions_logged: int = 0
assessment_summary: str = ""
error: str | None = None
needs_input: str | None = None
prediction: Prediction | None = None
@@ -259,10 +260,11 @@ class SkillRunner:
return RunResult(
skill=skill.name,
success=assessment.success,
summary=assessment.summary,
summary=action.action_log.strip() or assessment.summary,
action_log=action.action_log,
new_state=observed,
updated_request=assessment.updated_request,
decisions_logged=len(decisions),
assessment_summary=assessment.summary,
prediction=prediction,
)