Skip to content

deprecation(workflows): 移除 background 反向别名,统一使用 wait #132

Open

Description

@tt-a1i

问题

Workflow 调用同时接受:

  • 正向语义 wait: true|false;
  • 已废弃的反向别名 background: true|false。

Coordinator 需要转换反向语义、检测两者冲突,并在 host 无法 later-delivery 时做额外仲裁。公开 Skill 已以 wait 为主,继续保留两个相反布尔值会增加 schema、文档和模型调用错误概率。

目标边界

Workflow launch policy 只保留一个正向用户输入:wait。

注意:artifact/details 中描述实际 detached/background 状态的字段属于运行时事实,不应与调用别名一起删除。

建议迁移

  • 当前版本对 background 给出明确 deprecation warning。
  • 文档、Skill、fixture 和示例全部改成 wait。
  • 下一 breaking version 从 tool schema 与 coordinator input 删除 background。
  • 保留 persisted artifact 的兼容读取,以及实际 detached 状态字段。

验收标准

  • 新文档和模型可见 schema 只推荐 wait。
  • 旧调用在废弃窗口得到明确、可操作的迁移提示。
  • breaking release 后 coordinator 不再包含 inverse/conflict 分支。
  • inline wait、detached delivery、host capability 和 cancellation 语义保持不变。
  • 历史 Workflow artifact 仍可读取。
  • bun run check、bun run test 通过。
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions