ai-sdlc-retrospective

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ai-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:
    retrospective.md
    and
    _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
    --quick-flow
    and
    --full-flow
    ; full flow takes precedence.
  • 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
    ai-sdlc-handoff/v1
    with
    result
    ,
    blockers
    ,
    next_required
    , and
    next_optional
    ; every action includes
    reason
    ,
    command
    , and
    expected_artifact
    .
  • Do not create
    summary.txt
    ,
    *-summary.txt
    , or policy patches.
  • 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
    _ai_sdlc/state.toon
    to confirm feature identity and delivery status.
  • --state-check
    is read-only;
    --begin-state
    and
    --complete-state
    are rejected by the finalizer.
  • 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
    artifact_metadata
    using schema
    ai-sdlc-retrospective-metadata/v1
    .
  • Include
    metatags
    for
    ai-sdlc
    ,
    retrospective
    ,
    learning
    , and proposal statuses.
  • Record feature, workspace, flow mode, evidence paths, and decision refs.
  • Markdown文件开头需使用
    ai-sdlc-retrospective-metadata/v1
    schema定义
    artifact_metadata
  • 包含
    ai-sdlc
    retrospective
    learning
    及提案状态的
    metatags
  • 记录特性、工作区、流程模式、证据路径和决策参考。

0.7 Specs Index

0.7 规范索引

  • Read
    specs/_ai_sdlc/specs-index.toon
    or
    specs-refiniment/_ai_sdlc/specs-index.toon
    before targeted evidence reads.
  • Do not refresh
    specs/specs-index.md
    or
    specs-refiniment/specs-index.md
    for a read-only draft.
  • 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
    references/retrospective-contract.md
    before preparing input.
  • Use
    scripts/retrospective.py
    to validate separation, decision safety, and emit or atomically write the canonical report pair.
  • 准备输入前,先阅读
    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 toon
The finalizer never writes any path named by a proposal
target
.
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 toon
最终器绝不会写入任何提案
target
指定的路径。

Purpose

核心目标

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
    decision_ref
    only when a proposal has actually been accepted.
  • 观察结果需锚定到仓库相对路径文件及具体行号。
  • 提案需关联一个或多个观察结果ID。
  • 每条提案需包含目标、负责人、审核状态和下一步动作。
  • 仅当提案已实际被接受时,添加
    decision_ref

Steps

步骤

  1. Review delivery evidence, outcomes, friction, escapes, and effective controls.
  2. Record observations without embedding recommended changes.
  3. Draft proposals that cite observation IDs and identify target plus owner.
  4. Validate evidence lines and governance statuses with the finalizer.
  5. Review proposals with accountable owners and record durable decisions.
  6. Regenerate the report when proposal status changes.
  7. Route accepted work to SDD or the owning policy/configuration workflow.
  1. 评审交付证据、成果、摩擦点、疏漏项及有效管控措施。
  2. 记录观察结果,不嵌入建议变更内容。
  3. 起草提案,引用观察结果ID并明确目标及负责人。
  4. 通过最终器验证证据行和管控状态。
  5. 与负责人评审提案并记录持久化决策。
  6. 提案状态变更时重新生成报告。
  7. 将已接受的工作路由至SDD或所属政策/配置工作流。

Output Spec

输出规范

The TOON schema
ai-sdlc-retrospective/v1
contains observations with exact evidence and proposals with
based_on
,
target
,
change
,
owner
,
status
,
decision_ref
, and
next_action
.
Quality 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/v1
包含带有明确证据的观察结果,以及包含
based_on
target
change
owner
status
decision_ref
next_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:
We learned that the policy should now skip tests.
It mixes observation and policy mutation and has no evidence or decision.
有效已接受提案:
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
    decision_ref
    always fails, including quick flow.
  • 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
    $ai-sdlc-navigator
    to route accepted implementation work.
  • 不得编辑政策、配置、技能或源码目标。
  • 不得代表负责人接受提案。
  • 无持久证据时,不得将轶事转化为观察结果。
  • 不得推进特性生命周期或隐藏失败的提案。
  • 使用
    $ai-sdlc-navigator
    路由已接受的实施工作。