Rendered from docs/flow.md with @mermaid-js/mermaid-cli v12 (Chrome
headless): the main pipeline diagram drops the INTENTBYP node and the
leaf_softmax_prob label, matching the navigation change. flow-authoring.svg
is content-identical and was left untouched to avoid a cosmetic re-render
diff.
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.
flow-main.svg and flow-authoring.svg were stale (authoring from Oct 2,
main predating the actionability guard and the Oct 6-7 changes).
flow-main:
- intake names all front ends (REPL, gateway DM: SimpleX/LXMF/voice,
dashboard)
- deterministic meta-command route (parse_meta_command -> housekeeping)
ahead of navigation
- actionability guard at the top of navigation; the category softmax
offers only real categories + create_category (response is no longer
an option)
- confident-winner bypass of the scope/intent confirms
(softmax_bypass_tau)
- intent guard, hard-locked category shortcut, new-skill lock gate,
awaiting_skill_body guard
- empty/definitive result counts as success; canned and deterministic
categories skip assessment; act-raises -> repair
- structured SchedulerReply output
flow-authoring:
- split entries: create (draft worker) vs repair/regen/restart (straight
to the codegen worker)
- approval "no front end" aborts; registration seeds locks.new_skill
- skill_writing/skill_ready traces, regen reason kinds, cancel_build path
flow.md source, prose, and reading-path table updated to match.
Drop the urgency score and interrupt/preempt decisions: intake is now
idle -> dispatch, busy -> append to a bounded FIFO queue (RequestQueue).
The running process always finishes before the next queued request.
- queue.py: UrgencyQueue -> RequestQueue (deque, no weight/age/recency)
- scheduler.py: remove _priority_score, _interrupt_choice, urgency
constants, and the weight threaded through dispatch/authoring/requeue
- dashboard/static/gateway: drop weight + preempted handling
- tests + docs updated; flow-main.svg regenerated