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:
1 parent
a29371f510
commit
5a6f220e79
3 files changed
+6
-6
No files matched your search
+2
-2
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user