assess empty query results as success, not failure

A query skill whose correct answer is "nothing" (no unread SimpleX
messages, no upcoming events) was marked failed by assess:outcome: the
option text framed the decision as literal goal-achievement, so the
model read "no messages" as the goal not being met. The run then
offered a repair and could rewrite a working skill.

Reword the assess:outcome options so a definitive "nothing found /
nothing to do" result counts as success and only an error, refusal, or
unresolved action is failure. Option ids and the question are unchanged,
so the decision-log schema, dream labels, and existing unit tests are
unaffected. Real-engine scores: empty inbox 0.145 -> 0.969, no events
0.132 -> 0.959, while unreachable/HTTP-401/discovery failures stay
failure.

Add an integration regression test and a CODEGEN.md note that an
explicit empty/none result is a successful run.
This commit is contained in:
gabby committed 2026-10-06 09:36:00 +00:00
1 parent 7ee200d921
commit ddbe5f167d
3 files changed
+59 -5

No files matched your search

+12 -2
View File
@@ -310,8 +310,18 @@ class SkillRunner:
),
question="Did the skill achieve the user's goal?",
options=[
Option("success", "Yes — the goal was met."),
Option("failure", "No — the goal was not met."),
Option(
"success",
"Yes — the skill carried out the request and produced a "
"truthful result. A definitive 'nothing found' or 'nothing "
"to do' result (empty inbox, no unread messages, no "
"matching event) counts as success.",
),
Option(
"failure",
"No — the request was not carried out, or the result is an "
"error, a refusal, or an unresolved action.",
),
],
)
result = self.ctx.engine.call(outcome)