From aeb42f8250cdb05eadef019b5db8f98421dd98bd Mon Sep 17 00:00:00 2001 From: randypanding Date: Wed, 19 Aug 2026 03:35:51 +0000 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20AR-6=20handoff=20=E9=94=80=E6=AF=81?= =?UTF-8?q?=E5=89=8D=E7=BD=AE=E6=8E=AA=E8=BE=9E=E5=AF=B9=E9=BD=90=E5=8D=95?= =?UTF-8?q?=E4=B8=80=E7=9C=9F=E6=BA=90=E2=80=94=E2=80=94team=20=E4=BE=A7?= =?UTF-8?q?=E9=98=BB=E5=A1=9E/stewardship=20=E4=BE=A7=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=EF=BC=88=E7=BA=A2=E9=98=9F=20#18=EF=BC=8CADR-0016=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit team.schema 与 GOVERNANCE 声称"handoff 全部完成才允许销毁",但单一真源 team-collaboration.yaml 规定销毁前置=after-handoff(team_side);adr-write/ memory-distill 等由 curator 异步消费归档资产执行、不阻塞销毁。措辞错位 制造"owner 依赖项卡死归档"的假想死锁(红队 #18 内核)。 --- governance/GOVERNANCE.yaml | 6 +++--- standards/agent/team.schema.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/governance/GOVERNANCE.yaml b/governance/GOVERNANCE.yaml index d8042e9..7e37ba7 100644 --- a/governance/GOVERNANCE.yaml +++ b/governance/GOVERNANCE.yaml @@ -168,7 +168,7 @@ domains: intent: "双层控制:软引导(AGENTS.md/identity/skill 正文)+ 硬边界(工具面裁剪→权限引擎→凭据→平台防线);冲突时硬控制优先;拦截记录进事件流" strength: enforced - id: AR-6 - intent: "团队必须声明 lifecycle;ephemeral 团队 archive_to+handoff 全部完成才允许销毁;persistent 团队(team:stewardship——ADR-0004 规划名 governance-core 的落地形态)对治理资产持续负责" + intent: "团队必须声明 lifecycle;ephemeral 团队 archive_to+team 侧 handoff 全部完成才允许销毁(stewardship 侧项由 curator 异步消费归档资产执行,不阻塞销毁——红队 #18 措辞对齐,ADR-0016);persistent 团队(team:stewardship——ADR-0004 规划名 governance-core 的落地形态)对治理资产持续负责" strength: enforced platform: {github: {mechanism: script, entry: agent-registry/scripts/validate.py, check: lifecycle}} - id: AR-7 @@ -222,8 +222,8 @@ flows: rules: - {step: 1, action: "从 agent-registry 声明实例化 team(引用 id@version)", gate: AR-1} - {step: 2, action: "运行期事件按 event.schema 追加到数据层;拦截记录 tool_called.denied_by", policies: [AR-5, AR-7]} - - {step: 3, action: "ephemeral 完成→执行 handoff:artifacts 走 PR、经验提炼 skill、关键决策升 ADR、轨迹归档", policy: AR-6} - - {step: 4, action: "persistent 团队(team:stewardship)审核归档资产入库;handoff_done 审计", policy: AR-6} + - {step: 3, action: "ephemeral 完成→执行 team 侧 handoff:artifacts 走 PR、retrospective、轨迹归档(销毁前置只含 team 侧项)", policy: AR-6} + - {step: 4, action: "persistent 团队(team:stewardship)消费归档资产异步执行 stewardship 侧 handoff(memory-distill/adr-write)并审核入库;handoff_done 审计", policy: AR-6} portability: neutral: [intent, strength, verify, risk_posture, flows] # 平台无关,直接搬运 diff --git a/standards/agent/team.schema.yaml b/standards/agent/team.schema.yaml index 309b12d..6a74485 100644 --- a/standards/agent/team.schema.yaml +++ b/standards/agent/team.schema.yaml @@ -129,7 +129,7 @@ properties: description: "ephemeral 必填:资产沉淀目标 persistent 团队(team:)" handoff: type: array - description: "销毁前强制移交动作;全部完成才允许销毁(AR-6);每项执行者见 team-collaboration PART 2 对应原型 lifecycle.handoff" + description: "销毁前强制移交动作(AR-6)。销毁前置=team 侧项全部完成(after-handoff(team_side)——team-collaboration PART 2 对应原型 lifecycle.handoff);stewardship 侧项(memory-distill/adr-write 等)由 curator 消费归档资产异步执行,不阻塞销毁(destroy_scope:数据层制品/事件不随队销毁)。红队 #18:措辞对齐单一真源,消除 owner 依赖项卡死归档的假想死锁" items: {enum: [artifacts-pr, memory-distill, skill-extract, adr-write, trace-archive, retrospective, incident_report, retro_24h, followup_backlog_merge, retro_debt_tracking]} destroy_policy: {enum: [after-handoff, manual], description: "after-handoff=移交完成自动销毁;persistent 团队用 manual"} destroy_condition: From 35044061e1a50fab8745233ea0c6841475a00ff3 Mon Sep 17 00:00:00 2001 From: randypanding <66171646@users.noreply.github.com> Date: Wed, 19 Aug 2026 03:58:44 +0000 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20flows.step4=20=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E6=80=81=E5=AE=A1=E8=AE=A1=E6=98=8E=E7=A1=AE=E5=8F=8C=E4=BE=A7?= =?UTF-8?q?=E4=BF=A1=E5=8F=B7=EF=BC=88review=20=E4=BF=AE=E5=A4=8D=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qodo 意见:step 4 仍审计 handoff_done,但该布尔表达"全部 handoff 完成", 无法在 stewardship 侧异步工作未完时证明 team 侧前置已满足。 修复:run_finished.handoff_done 仅表达 team 侧销毁前置完成; stewardship 侧完成态由 handoff_step(side=stewardship_side) 事件逐项 留痕(event.schema v1.1,PR #47)——append-only 事件流可分别回放 双侧完成态,消除单一布尔的语义过载。 --- governance/GOVERNANCE.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/governance/GOVERNANCE.yaml b/governance/GOVERNANCE.yaml index 7e37ba7..43791bf 100644 --- a/governance/GOVERNANCE.yaml +++ b/governance/GOVERNANCE.yaml @@ -223,7 +223,7 @@ flows: - {step: 1, action: "从 agent-registry 声明实例化 team(引用 id@version)", gate: AR-1} - {step: 2, action: "运行期事件按 event.schema 追加到数据层;拦截记录 tool_called.denied_by", policies: [AR-5, AR-7]} - {step: 3, action: "ephemeral 完成→执行 team 侧 handoff:artifacts 走 PR、retrospective、轨迹归档(销毁前置只含 team 侧项)", policy: AR-6} - - {step: 4, action: "persistent 团队(team:stewardship)消费归档资产异步执行 stewardship 侧 handoff(memory-distill/adr-write)并审核入库;handoff_done 审计", policy: AR-6} + - {step: 4, action: "persistent 团队(team:stewardship)消费归档资产异步执行 stewardship 侧 handoff(memory-distill/adr-write)并审核入库;完成态审计走事件流——run_finished.handoff_done 仅表达 team 侧销毁前置完成,stewardship 侧由 handoff_step(side=stewardship_side) 事件逐项留痕(评审项:单一布尔无法承载双侧完成态)", policy: AR-6} portability: neutral: [intent, strength, verify, risk_posture, flows] # 平台无关,直接搬运