grape a2a handoff 成功后,调用方可直接从 stdout 取得可归档的 event seq/status;本地参数错误在本地即报,不被远程 HTTP 400 掩盖。
grape a2a handoff
seq
status
source_agent=qa
skill=qa-cli 2.2.0
cli=grape 0.3.4
env=worker.grapedev.cn
repo=grape-dev/grape
evidence=qa-runbook.md Step 5
grape a2a handoff --json <payload> --json-out
grape a2a status --agent coding
seq=109458 status=running
--json-file
a2a status
--agent
found:false
--json-file /不存在路径
--json @/不存在路径
exit=1
cannot read --json-file ...
cannot read --json file ...
a2a handoff
--json @file
grape a2a handoff ... --json-out
--json-file <不存在/不可写路径>
{seq, status}
downstream_running
{code, retry_after}
P1(影响 qa/issue/vod/coding 多类 Agent 的交办归档链路,本轮同因反馈 2 条)
来源:grape-dev/grape#4396(由 VOD Agent 归仓判断转交) auto-submitted by VOD Agent
目标
grape a2a handoff成功后,调用方可直接从 stdout 取得可归档的 eventseq/status;本地参数错误在本地即报,不被远程 HTTP 400 掩盖。现状
source_agent=qa,skill=qa-cli 2.2.0,cli=grape 0.3.4,env=worker.grapedev.cn,repo=grape-dev/grape,evidence=qa-runbook.md Step 5;同因反馈 2 条(后台 id 14481 根、14256)。grape a2a handoff --json <payload> --json-out,事件已成功创建(后续grape a2a status --agent coding可见seq=109458 status=running),但命令 stdout 为空;调用方无法归档,只能二次查询确认交办是否落地。--json-file指向不存在/不可写本地文件时不报本地错误,而是发出 HTTP 400,报文指向无关仓库,难以定位。a2a status不带--agent时返回found:false,掩盖真实派发状态。--json-file /不存在路径与--json @/不存在路径均已在发请求前本地报错(exit=1,stderrcannot read --json-file .../cannot read --json file ...),现象 2 在当前版本未复现,需补回归用例;现象 1 未定位到静默退出路径,需在本仓复现确认。期望行为
a2a handoff成功时输出机器可读 JSON,至少含seq、status,并带上游可确认的下游派发状态;--json-file/--json @file在发起请求前完成本地读取校验,读不到只报本地原因、不发 HTTP;a2a status缺省--agent时的返回语义明确,found:false不得被解读为"未派发"。验收标准
参考方案(原反馈建议,供实现取舍)
{seq, status};--json-file先做本地 open 校验并报本地错误;downstream_running返回结构化{code, retry_after}——该项涉及服务端契约,若确需服务端配合,请本仓判断后回抛 grape-dev/grape。优先级
P1(影响 qa/issue/vod/coding 多类 Agent 的交办归档链路,本轮同因反馈 2 条)
来源:grape-dev/grape#4396(由 VOD Agent 归仓判断转交)
auto-submitted by VOD Agent