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

+5 -1
View File
@@ -422,7 +422,11 @@ Rules:
action skill reports the service's real response. A generic "done" that omits
the result is a broken output.
- **Never an empty or placeholder output.** If there is genuinely nothing (empty
inbox, no matching event), say so explicitly — that is a real result.
inbox, no matching event), say so explicitly — that is a real result, and a
**successful** run: the `assess:outcome` step treats a definitive "nothing
found / nothing to do" result as success. Phrase it as the answer the user
asked for ("checked the inbox: no unread messages"), not as an absence or an
error, so the assessment does not read a healthy empty result as a failure.
- **Never claim success you did not observe.** If the action failed, put the
real failure in `action_log` and set `new_state` back to `request.text` (see
the hard requirements).