route only non-request input into the response tree
The response category scope claimed to cover "inputs the agent cannot act on", so an actionable request like "what is 255 * 12?" scored as in-scope and landed in the response.unable canned refusal. Add the actionability guard (confirm_non_action, phase navigate:actionability, navigation.action_tau) which arbitrates the response/create_category boundary whichever side the softmax proposed: the closed response tree is now reached only when the input is not a request, so a request no skill covers authors a skill instead. Reword the response scope, drop the response.unable reply, and update tests/docs.
This commit is contained in:
1 parent
9a135f53ab
commit
80518dcdda
7 files changed
+298
-81
No files matched your search
@@ -40,8 +40,9 @@ Guessing, inventing data, or shipping a toy is always the wrong answer.
|
||||
A local desktop CLI agent whose entire control flow is a single decision model
|
||||
(SemIf). Inputs are scored for urgency, queued, and dispatched through a
|
||||
skill tree. Nothing is gated out up front: every input is dispatched and inputs
|
||||
that are not tasks fall through navigation into the closed `response` tree of
|
||||
canned replies. Every SemIf decision is logged as a labeled training row; the
|
||||
that are not requests fall through navigation into the closed `response` tree of
|
||||
canned replies (a request no skill covers authors a skill instead — the
|
||||
actionability guard). Every SemIf decision is logged as a labeled training row; the
|
||||
`dream` pass computes the prediction-vs-observation cost (cross-entropy / NLL +
|
||||
ECE) that later drives fine-tuning. See "Product premise" above for what the
|
||||
agent is for; this section is the machinery.
|
||||
@@ -90,8 +91,9 @@ scheduler.py no up-front gate: every input is dispatched
|
||||
(retry/repair_skill/ask_user/no_repair) surfaced to the user
|
||||
queue.py urgency max-heap (desc weight, FIFO seq), age pulls toward 1.0
|
||||
skills.py tree + registry (hardcoded built-ins: the closed `response` canned
|
||||
tree only), navigation = SemIf choices per level (logged),
|
||||
create_category
|
||||
tree only), navigation = SemIf choices per level (logged;
|
||||
the actionability guard arbitrates the response/create
|
||||
boundary), create_category
|
||||
and create_skill author + register stubs via the small `llm`
|
||||
provider (separate from codegen); SkillStore persists one folder per skill
|
||||
(skill.py, skill.test.py, contract.json, config.json) and
|
||||
@@ -302,24 +304,39 @@ CLI, unit tests (24) + integration tests (2).
|
||||
drift into create on a weak plurality (real runs scored `create_skill`
|
||||
0.585–0.803 on requests a seed skill clearly matched). The reuse-vs-create
|
||||
decision is the **intent guard** (`confirm_skill_fit`, phase
|
||||
`navigate:intent`) at `navigation.intent_tau`. Both taus are separate from the
|
||||
top-level `tau`, so tuning reuse-vs-create does not move
|
||||
assessment/fidelity. The guards are deliberately permissive (in-scope scores
|
||||
0.9–1.0): a borderline over-cover routes into a plausible category and the
|
||||
leaf guard catches it. Empty and single-skill categories skip their softmax.
|
||||
- **No handle/ignore gate; the `response` tree is the catchall** (Sep 2026):
|
||||
the top-level `_contains_request` handle/ignore gate is gone. Every input is
|
||||
scored and dispatched; inputs that are not tasks fall through navigation into
|
||||
the closed `response` category, a hardcoded tree of canned replies
|
||||
(`response.greeting`, `response.thanks`, `response.acknowledge`,
|
||||
`response.farewell`, `response.affirm`, `response.unable`, and the catchall
|
||||
`response.clarify` — "Could you try being more specific?"). `response` is a
|
||||
`CANNED_CATEGORIES` member: `navigate` never offers `create_skill` there (the
|
||||
intent guard is skipped too), `Scheduler._dispatch_skill`/`restart_skill`
|
||||
refuse to author it, and the runner skips `assess:outcome`/repair for it — a
|
||||
canned line has no side effect to assess. The leaf choice logs phase
|
||||
`navigate:response` and traces `response_selected`. `response.reject` (a stub
|
||||
that never ran) is gone.
|
||||
`navigate:intent`) at `navigation.intent_tau`. The `response` catchall and
|
||||
`create_category` share a third guard, the **actionability guard**
|
||||
(`confirm_non_action`, phase `navigate:actionability`) at
|
||||
`navigation.action_tau` (default 0.5): it arbitrates that boundary whichever
|
||||
side the softmax proposed, so the closed `response` tree is reached **only**
|
||||
when the input is not a request. A request no skill covers (e.g.
|
||||
"what is 255 * 12?") authors instead of getting a canned reply, while a stray
|
||||
statement the reworded scope pushes toward create (e.g. "1+1=2") still gets
|
||||
one. A single category description cannot draw that line — both read as math
|
||||
to the softmax — which is why the guard exists. All three taus are separate
|
||||
from the top-level `tau`, so tuning reuse-vs-create or actionability does not
|
||||
move assessment/fidelity. The guards are deliberately permissive (in-scope
|
||||
scores 0.9–1.0): a borderline over-cover routes into a plausible category and
|
||||
the leaf guard catches it. Empty and single-skill categories skip their
|
||||
softmax.
|
||||
- **No handle/ignore gate; the `response` tree is the non-request catchall**
|
||||
(Sep 2026; actionability guard Oct 2026): the top-level `_contains_request`
|
||||
handle/ignore gate is gone. Every input is scored and dispatched; input that
|
||||
is not a request falls through navigation into the closed `response` category,
|
||||
a hardcoded tree of canned replies (`response.greeting`, `response.thanks`,
|
||||
`response.acknowledge`, `response.farewell`, `response.affirm`, and the
|
||||
catchall `response.clarify` — "Could you try being more specific?"). A
|
||||
**request** is never answered from here, even one no skill covers: the
|
||||
actionability guard (`confirm_non_action`, phase `navigate:actionability`)
|
||||
arbitrates the `response`/`create_category` boundary and sends a request to
|
||||
authoring (this is what keeps "what is 255 * 12?" out of the tree; the old
|
||||
`response.unable` canned refusal is gone — an unsupported request authors a
|
||||
skill, it is not refused). `response` is a `CANNED_CATEGORIES` member:
|
||||
`navigate` never offers `create_skill` there (the intent guard is skipped
|
||||
too), `Scheduler._dispatch_skill`/`restart_skill` refuse to author it, and the
|
||||
runner skips `assess:outcome`/repair for it — a canned line has no side effect
|
||||
to assess. The leaf choice logs phase `navigate:response` and traces
|
||||
`response_selected`. `response.reject` (a stub that never ran) is gone.
|
||||
- **Optional human approval on creation** (Oct 2026): `creation_approval`
|
||||
(top-level, default `false`) is a single boolean. When on, the single-slot
|
||||
`llm` draft worker blocks after it authors a proposal and before anything is
|
||||
|
||||
Reference in new issue
Block a user