From 0efbf218c58a985b442752f8e6f7eea242c4a4d8 Mon Sep 17 00:00:00 2001 From: Gabby Morgan Date: Wed, 7 Oct 2026 09:10:28 +0000 Subject: [PATCH] docs: regenerate flow-main.svg (leaf intent guard never bypassed) 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. --- docs/flow-main.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/flow-main.svg b/docs/flow-main.svg index 5b6efc3..d7d95b7 100644 --- a/docs/flow-main.svg +++ b/docs/flow-main.svg @@ -1,4 +1,4 @@ -

idle

busy

full

ok

run_queue when idle

yes

no

non-action

request

yes

no

yes (decisive)

no (unsure)

rejected

covers

none

one

many

yes

no

same

different

locked

open

yes

no

writing

stub (no body)

ready

yes

answer() bypasses queue

no

yes

answer()

no

yes

no

retry

complete

user confirms

act raises

canned / deterministic category skips assess

Input
REPL text · gateway DM (SimpleX · LXMF · voice) · dashboard submit

Scheduler.submit_request()
create Request, trace 'submit'

current process?

parse_meta_command()
explicit housekeeping command?

RequestQueue.push
FIFO, bounded

Output: rejected
'queue is full'

Output: queued

run housekeeping leaf
trace 'meta_command'
deterministic; skips navigation

_run_skill()
execute the leaf

navigate()
descend tree, one SemIf choice per level

SemIf choice
phase 'navigate:actionability'
P non_action >= action_tau?

_navigate_canned
phase 'navigate:response'
closed canned reply tree

SemIf choice
phase 'navigate:category'
options = real categories +
descriptions + create_category

create_category win
or no categories?

CreateCategory

winner prob >=
softmax_bypass_tau?

skills in category?

SemIf choice
phase 'navigate:category_scope'
P covers >= category_tau?

CreateSkill

sole skill
softmax skipped

SemIf choice
phase 'navigate:leaf'
options = existing skills only

picked skill

hard-locked category?
(housekeeping)

SemIf choice
phase 'navigate:intent'
P same >= intent_tau?

category locked to
new skills?

Output: error
'new-skill creation is locked'

meta
awaiting_skill_body?

Output: error
'body still being written;
restart category.skill'

authoring pipeline
see below

leaf status?

Output: error
'body still being written'

Output: error
'no body yet;
restart category.skill'

SkillRunner.run()
resolve tiered config
global -> category -> skill

contract variable
unresolved?

Output: needs_input
pre_act pause
ask one variable

SemIf choice
phase 'config:record'
record as config vs ask each fire

skill.act(ctx, request)
REAL action via stdlib transport
values from ctx.config

act asks for input?

Output: needs_input
act pause

SemIf choice
phase 'assess:outcome'
P success >= tau?
a definitive empty result counts as success

success?

deterministic summary
category.name: ok/failed - action_log

SemIf choice
phase 'assess:requeue'
complete vs retry

requeue original request
bounded by max_reentries

SemIf choice
phase 'repair:choice'
retry / repair_skill / ask_user / no_repair

Output: ran
SchedulerReply (run_id, skill_ref, result)
REPL · gateway reply · dashboard trace

Output: repair offer
surfaced in REPL/dashboard/gateway

\ No newline at end of file