navigation: never bypass the leaf intent guard

The leaf softmax offers only existing skills (create_skill is deliberately
not an option), so a confident winner is "the closest existing skill", never
a statement that it matches. Skipping the intent guard on a confident leaf
softmax winner therefore made codegen unreachable for an unmatched request:
with Winnow as the engine, "send a message to pepper on SimpleX" picked
connect_link (0.86) / next_message (0.995), bypassed the guard, and ran a
read skill instead of authoring simplex.send_message.

Always run confirm_skill_fit at the leaf — it is the sole leaf-level create
door. The category scope bypass stays (create_category is one of its
options, so a confident category winner is meaningful). Drop the now-unused
leaf_softmax_prob meta plumbing; update the docs and the regression test.

Also fix a deployment-hostname leak ("guppy") in winnow.py's docstring that
tripped test_no_env_leaks.
This commit is contained in:
gabby committed 2026-10-07 09:08:13 +00:00
1 parent ee7700275c
commit f1e0de33ca
6 files changed
+56 -52

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ and the question becomes its ``instructions``; the server returns a probability
over exactly those keys.
Winnow runs as its own process (``winnow-server``); see ``local/ENVIRONMENT.md``
for the guppy deployment. The engine is real: any network, HTTP, or distribution
for this deployment. The engine is real: any network, HTTP, or distribution
failure raises `EngineUnavailable`, which the scheduler treats as fatal — there
is no fallback model and no fabricated reply.
"""