navigation: calibrate create gate defaults from jarvis runs

Real engine on the seed tree: genuine creates lead by 0.42-0.93 while the
weak-plurality cases ('any new messages?', 'unread messages', 'calendar
today', 'get invite link') lead the best existing skill by 0.14-0.34.
Set create_tau=0.5, create_margin=0.35 so those ambiguous reads fall back
to the existing skill; the send regression (0.87 margin) is unaffected.
This commit is contained in:
Denton Social committed 2026-09-29 03:00:30 -05:00
1 parent a29371f510
commit 5a6f220e79
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -4,8 +4,8 @@
"max_reentries": 3, "max_reentries": 3,
"navigation": { "navigation": {
"_comment": "Confidence gate on the create branches. create_skill/create_category share a softmax with the real skills/categories, so a weak plurality win is not evidence that nothing matches. The create branch only fires when P(create) >= create_tau AND it leads the best existing option by create_margin; otherwise navigation falls back to the best existing option (a genuinely unmatched action still reaches authoring through the intent guard). Suppressed picks are traced as create_suppressed with their probs so the thresholds can be calibrated from real runs. A level with nothing to choose from still short-circuits to create.", "_comment": "Confidence gate on the create branches. create_skill/create_category share a softmax with the real skills/categories, so a weak plurality win is not evidence that nothing matches. The create branch only fires when P(create) >= create_tau AND it leads the best existing option by create_margin; otherwise navigation falls back to the best existing option (a genuinely unmatched action still reaches authoring through the intent guard). Suppressed picks are traced as create_suppressed with their probs so the thresholds can be calibrated from real runs. A level with nothing to choose from still short-circuits to create.",
"create_tau": 0.4, "create_tau": 0.5,
"create_margin": 0.15 "create_margin": 0.35
}, },
"queue": {"max_size": 100, "age_rate": 0.01}, "queue": {"max_size": 100, "age_rate": 0.01},
"engine": { "engine": {
+2 -2
View File
@@ -225,8 +225,8 @@ class Scheduler:
self.config = config self.config = config
self.tau = tau self.tau = tau
nav_cfg = config.get("navigation", {}) or {} nav_cfg = config.get("navigation", {}) or {}
self.create_tau = float(nav_cfg.get("create_tau", 0.4)) self.create_tau = float(nav_cfg.get("create_tau", 0.5))
self.create_margin = float(nav_cfg.get("create_margin", 0.15)) self.create_margin = float(nav_cfg.get("create_margin", 0.35))
self.max_reentries = max_reentries self.max_reentries = max_reentries
self.codegen = codegen self.codegen = codegen
self.degeneration_check_factory = degeneration_check_factory self.degeneration_check_factory = degeneration_check_factory
+2 -2
View File
@@ -557,8 +557,8 @@ def navigate(
trace: TraceLog, trace: TraceLog,
request: Request, request: Request,
tree: dict[str, list[Skill]], tree: dict[str, list[Skill]],
create_tau: float = 0.4, create_tau: float = 0.5,
create_margin: float = 0.15, create_margin: float = 0.35,
) -> Skill | CreateCategory | CreateSkill: ) -> Skill | CreateCategory | CreateSkill:
"""Descend the tree one SemIf choice per level. Every choice is logged. """Descend the tree one SemIf choice per level. Every choice is logged.