docs: declare subtask compatibility and extension boundaries#390
Merged
liujuanjuan1984 merged 3 commits intomainfrom Apr 3, 2026
Merged
docs: declare subtask compatibility and extension boundaries#390liujuanjuan1984 merged 3 commits intomainfrom
liujuanjuan1984 merged 3 commits intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
本 PR 收敛最近一轮围绕
opencode.sessions.*、subtask/subagent与 extension 边界的文档/契约调整。目标不是新增一套 A2A orchestration API,而是把当前已经存在的 upstream 兼容面正式声明清楚,并把 extension 暴露边界写成可引用的仓库原则。
变更内容
1. 显式声明
prompt_async的 subtask 兼容面src/opencode_a2a/contracts/extensions.py中补齐opencode.sessions.prompt_async的request.parts[]machine-readable contract。text/file/agent/subtask。subtask补齐字段模型:prompt/description/agentmodel/commandpassthrough-compatible,执行语义仍属于 upstream OpenCode runtime,而不是新的 A2A orchestration API。2. 同步 Agent Card / OpenAPI / guide / extension spec
docs/guide.md、docs/extension-specifications.md。A2A Task是协议层对象opencode.sessions.prompt_async是 provider-private extension methodsubtask是 upstream-compatible 输入形状task tool/subagent属于 upstream 内部执行链路3. 落库统一的 extension boundary principles
docs/guide.md中新增统一原则,明确:opencode.*默认作为 provider-private extension 暴露4. 回归与 issue 收敛
补齐
prompt_asyncsubtask payload 透传回归测试。补齐 Agent Card contract 断言。
将一批已确认越界或已完成收敛判断的 issue 补评论并关闭:
Closes [Priority: Low] [Feature] 暴露文件检索与运行时观测只读能力 #337
Closes [Priority: Med] [Feature] 暴露 OpenCode subagent/subtask/task tool 扩展能力 #338
Closes [Priority: Med] [Feature] 设计 A2A 显式子 agent 编排与并行 subtask 契约 #339
Closes [Priority: Low] [Docs/Architecture] 记录 A2A、subtask、subagent 与 task tool 的拓扑关系 #342
Closes [Priority: Med] [Feature/Contracts] 显式收敛 opencode.sessions.prompt_async 的 subtask 输入契约 #347
Closes [Priority: Med] [Feature] 拆分会话管理面:评估 create/delete/update/init 扩展能力 #350
Closes [Priority: Med] [Feature] 拆分会话精细编辑面:评估 message/part 编辑扩展能力 #388
验证
./scripts/doctor.sh522 passedIssues 关联