navigation: skip confirms on a confident softmax; per-skill humanize; 500ms VAD
Four latency/ergonomics changes from the voice-gateway diagnosis:
1. Per-skill humanize override. A skill's own recorded config
(data/skills/<cat>/<name>/config.json -> {"humanize": bool}) now wins over
the per-platform and global defaults, so an already-speakable result
(time.now) can skip the rewrite. The gateway resolves the skill ref from the
result summary; `_finish_run` now emits `category.name: ok — …` (matching the
assessment summary) so the ref is available. Missing store/config/key and
test doubles degrade to the existing platform/global behavior.
2. Example voice endpointing: vad.silence_ms 1000 -> 500 (config.example.json).
3. Confident softmax winners skip their confirm guard. New
navigation.softmax_bypass_tau (default 0.5): a category winner at/above it
skips confirm_category_fit (trace `category_scope_bypassed`); a leaf winner
at/above it is handed to dispatch and skips confirm_skill_fit (trace
`intent_bypass`). Below the threshold the two-stage confirm is unchanged.
Assumption tested first on the decision log: 28/28 category and 28/28 leaf
winners >= 0.5 agreed with their guard.
4. Engine-throughput investigation saved to AGENTS.md "Later / open questions"
(routing/assessment compute dominates; profile the engine, not the audio).
Tests updated for the bypass threshold and added for the skill-level humanize
override and bypass paths. Full suite: 486 passed, 1 skipped.
This commit is contained in:
1 parent
5bb0e9d21d
commit
d0c1dccffd
7 files changed
+256
-16
No files matched your search
@@ -544,6 +544,16 @@ CLI, unit tests (24) + integration tests (2).
|
||||
- Calibration: SemIf ships per-workload temperature scaling; adopt it before
|
||||
treating probabilities as confidence.
|
||||
- Enumerate the intake source taxonomy and per-source gating.
|
||||
- **Decision-engine latency.** A single SemIf forward pass over a small prompt
|
||||
can take seconds on CPU, and a trivial request pays several of them
|
||||
(actionability + category + scope + leaf + intent + assess), so routing and
|
||||
assessment dominate end-to-end agent latency — not audio I/O (STT/TTS are
|
||||
sub-second) and not the network. Before treating latency as a front-end
|
||||
problem, profile the engine: confirm thread utilization, whether the cost is
|
||||
prefill vs. per-option scoring, and whether a smaller/faster decision model or
|
||||
a shared-state (`score_shared`) path helps. `decision extra.timing`
|
||||
(`input_tokens`/`forward_seconds`/`total_seconds`) and the voice latency
|
||||
breakdown (`scripts/voice-latency.py`) are the measurement hooks.
|
||||
|
||||
## Constraints & gotchas (learned the hard way)
|
||||
|
||||
@@ -1090,7 +1100,12 @@ CLI, unit tests (24) + integration tests (2).
|
||||
slow cleanup cannot hold the gateway poll loop for the authoring budget. Off
|
||||
by default: `gateway.humanize` (`enabled`/`timeout`/`max_tokens`/`max_chars`)
|
||||
sets the global default and a per-platform `gateway.<platform>.humanize`
|
||||
bool/`{enabled}` overrides it. Only `kind == "result"` lines are touched
|
||||
bool/`{enabled}` overrides it. A **skill's own recorded config**
|
||||
(`data/skills/<category>/<name>/config.json` -> `{"humanize": bool}`) wins
|
||||
over both, so a skill whose result is already speakable (e.g. `time.now`)
|
||||
skips the rewrite while a mechanical one keeps it; the gateway resolves the
|
||||
skill ref from the summary prefix (`category.name:`). Only `kind == "result"`
|
||||
lines are touched
|
||||
(questions, repair/approval notices, and status chatter pass through); like
|
||||
`result_only`, an enabled platform unwraps the result detail before cleaning.
|
||||
`_resolve_platforms` skips the reserved `humanize` key.
|
||||
|
||||
Reference in new issue
Block a user