category
skill
no / already approved
yes
approved
denied / timeout / no front end
category
skill
answers / timeout
reconsider (once)
accept
fail
pass
CodegenError / ValueError
budget exhausted
cancel queued or in-flight write
CreateCategory / CreateSkill
single-slot llm worker
DraftAuthor queue
repair_skill / regen_skill / restart_skill
single-slot codegen worker
SkillWrite queue
leaf.writing = true, trace 'skill_writing'
category or skill?
generate_category()
title + description
generate_skill()
title + description
creation_approval
on? (default off)
register stub in registry + tree
seed category config (locks.new_skill)
trace 'category_created' / 'skill_created'
Output: approval prompt
REPL / dashboard / gateway
deny or timeout aborts
Output: creation aborted
nothing registered, not re-dispatched
chain into skill job
approved=true
generate_elicitation()
implementation questions + integration hint
Output: questions
posted one at a time
answer_timeout per question
generate_skill_body()
or regenerate_skill_body() for
repair / fidelity / test / manual regen
CODEGEN.md + bridge catalog
declares INTEGRATION + flat CONTRACT
SemIf choice
phase 'authoring:fidelity'
accept / reconsider
+ static integration_findings
parse_contract()
read body's CONTRACT constant
SemIf choice per variable
phase 'config:search'
global -> category -> skill
generate_skill_tests()
hermetic mechanics test
run_skill_test()
subprocess in skill folder
SemIf choice
phase 'codegen_regen'
regenerate code / test
bounded by test_max_attempts
materialize_skill()
write body + contract to data/skills/
hot-merge into tree, trace 'skill_ready'
requeue original request
meta awaiting_skill_body
trace 'skill_requeued'
back to main pipeline
re-runs navigation onto new leaf
Output: skill_write_failed
leaf stays a restartable stub
restart category.skill
cancel_build meta skill
(housekeeping / CLI / dashboard)
Output: build cancelled
discard output, delete half-built leaf
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
yes (decisive)
no (unsure)
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
+ leaf_softmax_prob
hard-locked category?
(housekeeping)
winner prob >=
softmax_bypass_tau?
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