Skip to content

fix: provide Goal to the production prompt runtime #575

Description

@LeXwDeX

Why

生产 AppLayer 中 SessionPrompt 构建阶段缺少 Goal 服务,Goal 控制命令退化成普通模型请求,独立服务装配测试掩盖了此问题。

Scope

真实 AppRuntime / InstanceStore 启动后,设定并暂停 Goal,再调用 /goal status 会进入普通命令路径并超时;调试读数确认捕获的 Goal 为 undefined。

Approach

为 SessionPrompt.defaultLayer 显式提供 Goal.defaultLayer,保留底层 layer 可选依赖用于无 Goal 的运行时。增加真实 AppLayer 命令烟测,无需模型调用即可读取持久 Goal 状态。

Acceptance

真实 AppLayer /goal status 返回实际目标和预算且不会调用模型;既有缺省 Goal 降级测试、自动续跑和取消回归通过;全量测试与类型检查通过。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions