From 5a6f220e7997b5aba9e38c0ffed63bc650a86780 Mon Sep 17 00:00:00 2001 From: Denton Social Date: Tue, 29 Sep 2026 03:00:30 -0500 Subject: [PATCH] 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. --- config.example.json | 4 ++-- semif_agent/scheduler.py | 4 ++-- semif_agent/skills.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config.example.json b/config.example.json index a1fb6ee..ddccff7 100644 --- a/config.example.json +++ b/config.example.json @@ -4,8 +4,8 @@ "max_reentries": 3, "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.", - "create_tau": 0.4, - "create_margin": 0.15 + "create_tau": 0.5, + "create_margin": 0.35 }, "queue": {"max_size": 100, "age_rate": 0.01}, "engine": { diff --git a/semif_agent/scheduler.py b/semif_agent/scheduler.py index 9136301..f5ddad5 100644 --- a/semif_agent/scheduler.py +++ b/semif_agent/scheduler.py @@ -225,8 +225,8 @@ class Scheduler: self.config = config self.tau = tau nav_cfg = config.get("navigation", {}) or {} - self.create_tau = float(nav_cfg.get("create_tau", 0.4)) - self.create_margin = float(nav_cfg.get("create_margin", 0.15)) + self.create_tau = float(nav_cfg.get("create_tau", 0.5)) + self.create_margin = float(nav_cfg.get("create_margin", 0.35)) self.max_reentries = max_reentries self.codegen = codegen self.degeneration_check_factory = degeneration_check_factory diff --git a/semif_agent/skills.py b/semif_agent/skills.py index 9f2aa62..a291b12 100644 --- a/semif_agent/skills.py +++ b/semif_agent/skills.py @@ -557,8 +557,8 @@ def navigate( trace: TraceLog, request: Request, tree: dict[str, list[Skill]], - create_tau: float = 0.4, - create_margin: float = 0.15, + create_tau: float = 0.5, + create_margin: float = 0.35, ) -> Skill | CreateCategory | CreateSkill: """Descend the tree one SemIf choice per level. Every choice is logged.