ai-sdlc-retrospective
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseai-sdlc-retrospective: Reviewable Delivery Learning
ai-sdlc-retrospective:可审核的交付学习
Internal AI SDLC skill, not client-facing by default. Every rule below is important to follow. None of it can be skipped. Retrospectives propose improvements; they never silently change policy.
内部AI SDLC技能,默认不面向客户。 以下每条规则都必须遵守,无一例外。 回顾仅提出改进建议,绝不会擅自修改政策。
0. Skill Card
0. 技能卡片
- Skill name:
ai-sdlc-retrospective - Primary audience: Delivery, Dev, QA, BA
- Supporting audience: PM, platform maintainers
- Audience tags: Delivery, Dev, QA, BA, PM
- SDLC stage: Post-delivery learning
- Purpose: Separate evidence-backed observations from governed improvements.
- Output: and
retrospective.md_ai_sdlc/retrospective.toon
- 技能名称:
ai-sdlc-retrospective - 核心受众:交付团队、开发人员、QA、BA
- 支持受众:项目经理(PM)、平台维护人员
- 受众标签:Delivery、Dev、QA、BA、PM
- SDLC阶段:交付后学习
- 目的:将循证观察结果与受管控的改进建议分离。
- 输出:和
retrospective.md_ai_sdlc/retrospective.toon
0.1 Required Inputs
0.1 必填输入项
- Completed or paused feature root.
- Retrospective JSON containing observations and proposals.
- Exact artifact or validation evidence for every observation.
- 已完成或暂停的特性根目录。
- 包含观察结果和提案的回顾JSON文件。
- 每条观察结果对应的明确工件或验证证据。
0.2 Clarification Rules
0.2 澄清规则
- Ask only when evidence, proposal owner, or intended policy target is unclear.
- Keep observed facts separate from interpretation and proposed change.
- Do not mark a proposal accepted without a durable decision reference.
- Do not infer approval from implementation, silence, or prior chat.
- 仅在证据、提案负责人或目标政策不明确时提问。
- 将观察事实与解读、拟议变更分开记录。
- 无持久决策参考时,不得标记提案已接受。
- 不得从实施情况、沉默或过往对话中推断批准意向。
0.2.1 Flow Mode Flags
0.2.1 流程模式标记
- Support and
--quick-flow; full flow takes precedence.--full-flow - Quick flow permits draft proposals but still requires observation evidence.
- Full flow additionally requires every proposal to have an owner and every accepted proposal to have a decision reference.
- Neither mode applies proposals or edits target files.
- 支持和
--quick-flow;完整流程优先级更高。--full-flow - 快速流程允许生成提案草稿,但仍需提供观察证据。
- 完整流程额外要求每条提案都有负责人,且每条已接受的提案都有决策参考。
- 两种模式均不会应用提案或编辑目标文件。
0.3 Output Rules
0.3 输出规则
- Return observation and proposal counts, accepted-decision coverage, blockers, and output paths directly in the Codex response.
- Before the final response, emit with
ai-sdlc-handoff/v1,result,blockers, andnext_required; every action includesnext_optional,reason, andcommand.expected_artifact - Do not create ,
summary.txt, or policy patches.*-summary.txt - Preserve rejected and deferred proposals for learning history.
- 在Codex响应中直接返回观察结果和提案数量、已接受决策覆盖率、阻塞点及输出路径。
- 在最终响应前,发送包含、
result、blockers和next_required的next_optional;每个操作需包含ai-sdlc-handoff/v1、reason和command。expected_artifact - 不得创建、
summary.txt或政策补丁文件。*-summary.txt - 保留被拒绝和延期的提案,用于学习历史记录。
0.4 Artifact Routing
0.4 工件路由
- Write human output to .
<feature-root>/retrospective.md - Write machine output to .
<feature-root>/_ai_sdlc/retrospective.toon - Keep proposal target paths as references only.
- Apply accepted improvements later through the target-owning workflow.
- 将面向人类的输出写入。
<feature-root>/retrospective.md - 将面向机器的输出写入。
<feature-root>/_ai_sdlc/retrospective.toon - 仅保留提案目标路径作为参考。
- 通过目标所属工作流后续应用已接受的改进建议。
0.5 Feature State Machine
0.5 特性状态机
- Retrospective is a utility workflow and does not advance feature lifecycle.
- Read to confirm feature identity and delivery status.
_ai_sdlc/state.toon - is read-only;
--state-checkand--begin-stateare rejected by the finalizer.--complete-state - A proposal decision changes proposal governance status, not lifecycle state.
- 回顾是实用工作流,不会推进特性生命周期。
- 读取确认特性标识和交付状态。
_ai_sdlc/state.toon - 为只读;最终器会拒绝
--state-check和--begin-state指令。--complete-state - 提案决策仅更改提案的管控状态,不改变生命周期状态。
0.6 Artifact Metadata And Metatags
0.6 工件元数据与元标签
- Markdown starts with using schema
artifact_metadata.ai-sdlc-retrospective-metadata/v1 - Include for
metatags,ai-sdlc,retrospective, and proposal statuses.learning - Record feature, workspace, flow mode, evidence paths, and decision refs.
- Markdown文件开头需使用schema定义
ai-sdlc-retrospective-metadata/v1。artifact_metadata - 包含、
ai-sdlc、retrospective及提案状态的learning。metatags - 记录特性、工作区、流程模式、证据路径和决策参考。
0.7 Specs Index
0.7 规范索引
- Read or
specs/_ai_sdlc/specs-index.toonbefore targeted evidence reads.specs-refiniment/_ai_sdlc/specs-index.toon - Do not refresh or
specs/specs-index.mdfor a read-only draft.specs-refiniment/specs-index.md - Refresh indexes only through the owning workflow after durable report writes.
- 在读取目标证据前,先读取或
specs/_ai_sdlc/specs-index.toon。specs-refiniment/_ai_sdlc/specs-index.toon - 对于只读草稿,不得刷新或
specs/specs-index.md。specs-refiniment/specs-index.md - 仅在写入持久报告后,通过所属工作流刷新索引。
References
参考资料
- Read before preparing input.
references/retrospective-contract.md - Use to validate separation, decision safety, and emit or atomically write the canonical report pair.
scripts/retrospective.py
- 准备输入前,先阅读。
references/retrospective-contract.md - 使用验证分离度、决策安全性,并生成或原子性写入标准报告对。
scripts/retrospective.py
Script Usage
脚本使用示例
bash
python3 skills/ai-sdlc-retrospective/scripts/retrospective.py specs/payments --input /tmp/retro.json --emit --quick-flow
python3 skills/ai-sdlc-retrospective/scripts/retrospective.py specs/payments --input /tmp/retro.json --write --full-flow --format toonThe finalizer never writes any path named by a proposal .
targetbash
python3 skills/ai-sdlc-retrospective/scripts/retrospective.py specs/payments --input /tmp/retro.json --emit --quick-flow
python3 skills/ai-sdlc-retrospective/scripts/retrospective.py specs/payments --input /tmp/retro.json --write --full-flow --format toon最终器绝不会写入任何提案指定的路径。
targetPurpose
核心目标
Create a durable learning loop where teams can improve the harness from real
delivery evidence without allowing an AI session to self-modify governance.
创建持久化学习循环,让团队能够基于真实交付证据改进工具,同时避免AI会话自行修改管控规则。
Inputs
输入要求
- Anchor observations to repository-relative files and positive line numbers.
- Reference proposals back to one or more observation IDs.
- Give every proposal a target, owner, review status, and next action.
- Add only when a proposal has actually been accepted.
decision_ref
- 观察结果需锚定到仓库相对路径文件及具体行号。
- 提案需关联一个或多个观察结果ID。
- 每条提案需包含目标、负责人、审核状态和下一步动作。
- 仅当提案已实际被接受时,添加。
decision_ref
Steps
步骤
- Review delivery evidence, outcomes, friction, escapes, and effective controls.
- Record observations without embedding recommended changes.
- Draft proposals that cite observation IDs and identify target plus owner.
- Validate evidence lines and governance statuses with the finalizer.
- Review proposals with accountable owners and record durable decisions.
- Regenerate the report when proposal status changes.
- Route accepted work to SDD or the owning policy/configuration workflow.
- 评审交付证据、成果、摩擦点、疏漏项及有效管控措施。
- 记录观察结果,不嵌入建议变更内容。
- 起草提案,引用观察结果ID并明确目标及负责人。
- 通过最终器验证证据行和管控状态。
- 与负责人评审提案并记录持久化决策。
- 提案状态变更时重新生成报告。
- 将已接受的工作路由至SDD或所属政策/配置工作流。
Output Spec
输出规范
The TOON schema contains observations with exact
evidence and proposals with , , , , ,
, and .
ai-sdlc-retrospective/v1based_ontargetchangeownerstatusdecision_refnext_actionQuality gate:
- Pass when observations and proposals are separate, evidence is exact, every proposal traces to an observation, and accepted proposals cite a decision.
- Fail when a proposal is presented as an observation, approval is implied, or target policy content would be mutated by finalization.
TOON schema 包含带有明确证据的观察结果,以及包含、、、、、和的提案。
ai-sdlc-retrospective/v1based_ontargetchangeownerstatusdecision_refnext_action质量门禁:
- 当观察结果与提案分离、证据明确、每条提案可追溯至观察结果,且已接受提案引用决策时,视为通过。
- 当提案被当作观察结果呈现、隐含批准意向,或最终化会修改目标政策内容时,视为失败。
Examples
示例
Valid accepted proposal:
json
{"id":"PROP-001","based_on":["OBS-002"],"target":"skills/_shared/validation-policy.json","change":"Add the deterministic retry fixture to standard validation.","owner":"Dev","status":"accepted","decision_ref":"DEC-014","next_action":"Implement through a traced SDD task."}Invalid counter-example: It
mixes observation and policy mutation and has no evidence or decision.
We learned that the policy should now skip tests.有效已接受提案:
json
{"id":"PROP-001","based_on":["OBS-002"],"target":"skills/_shared/validation-policy.json","change":"Add the deterministic retry fixture to standard validation.","owner":"Dev","status":"accepted","decision_ref":"DEC-014","next_action":"Implement through a traced SDD task."}无效反例: 该表述混淆了观察结果与政策修改,且无证据或决策支持。
We learned that the policy should now skip tests.Edge Cases
边缘情况
- A retrospective with observations and no proposals is valid.
- Rejected proposals retain their evidence links and rationale in .
next_action - An accepted proposal without always fails, including quick flow.
decision_ref - A target may not exist yet; the report records it without creating it.
- 仅包含观察结果、无提案的回顾是有效的。
- 被拒绝的提案需保留证据链接及中的理由。
next_action - 无的已接受提案始终失败,包括快速流程。
decision_ref - 目标可能尚未存在;报告仅记录该目标,不会创建它。
Scope Boundary
范围边界
- Do not edit policy, configuration, skill, or source targets.
- Do not accept proposals on behalf of owners.
- Do not turn anecdotes into observations without durable evidence.
- Do not advance feature lifecycle or hide failed proposals.
- Use to route accepted implementation work.
$ai-sdlc-navigator
- 不得编辑政策、配置、技能或源码目标。
- 不得代表负责人接受提案。
- 无持久证据时,不得将轶事转化为观察结果。
- 不得推进特性生命周期或隐藏失败的提案。
- 使用路由已接受的实施工作。
$ai-sdlc-navigator