Replace create_skill branches with category/skill suggestion events
Navigation now offers create_category at the category level and create_skill at the leaf. Both are stubs that log a suggestion event (state, question, SemIf output) to the trace instead of returning an authoring sentinel.
This commit is contained in:
@@ -198,12 +198,11 @@ class Scheduler:
|
||||
# ---- dispatch ----
|
||||
|
||||
def _dispatch(self, request: Request) -> DispatchResult:
|
||||
navigation = navigate(self.engine, self.log, request, self.tree)
|
||||
navigation = navigate(self.engine, self.log, self.trace, request, self.tree)
|
||||
if isinstance(navigation, CreateSkill):
|
||||
self.trace.append("create_skill", request.id, category=navigation.category)
|
||||
return DispatchResult(
|
||||
kind="create_skill",
|
||||
summary="skill authoring via opencode is deferred to v2; request logged.",
|
||||
summary="skill authoring via opencode is deferred to v2; suggestion logged.",
|
||||
)
|
||||
outcome = self.runner.run(navigation, request)
|
||||
if outcome.error:
|
||||
|
||||
Reference in New Issue
Block a user