Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .agents/skills/agent-delivery-estimation/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ unknownを発見したら、まず4種類へ分類する。

## Structural unknown

scope、dependency、architecture等が未確定でWork Graph自体が安定しない。
scope、dependency、architecture等が未確定でWork Graph自体が安定しない。`github-delivery` の release scope admission gate([adaptive-release-batching.md](../github-delivery/references/adaptive-release-batching.md))で `critical-path` 基準(`requirement_confirmed`、`bug_reproduced_or_pinpointed`[`bug` は `true`、`feature`/`chore` は `"not-applicable"`]、`acceptance_executable`、`dependency_owner_identified`、`validation_path_defined`、`promoted_by_calendar_only: false`)を満たさない項目は、calendar target だけで `critical-path` へ昇格せず `research-discovery` / `backlog` へ分離する。

結果:

Expand Down Expand Up @@ -710,6 +710,8 @@ IssueのSizeはcalendar durationと同義にしない。

週次sprint cadenceはplanning cadenceであり、「すべてのscopeが1週間で完了する」というestimateではない。

active release の進捗・滞留・連続 delta の読み取り専用 evidence snapshot には `scripts/delivery-status/delivery-status.mts`(`--snapshot-out` / `--prev-snapshot`)を利用する。GitHub snapshot 単体では calibrated WU や joint observation を供給しないため、sample policy を満たすまで `forecastStatus: unavailable` とし P50/P80/P95 を生成しない。

## parallel-orchestration

agent数、WIP、spawn数を増やす前に、現在のbottleneckとparallelism evidenceを確認する。
Expand Down
6 changes: 5 additions & 1 deletion .agents/skills/agent-recovery/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Git外の操作は特に危険。

可能ならidempotency keyを使用する。

side effect前にintent、後にresult/remote identifierをdurable journalへ記録する。実行直前にcurrent fencing tokenを検証し、recovery時はownership取得後にremote actual stateを確認してからretryする。
side effect前にintent、後にresult/remote identifierをdurable journalへ記録する。実行直前にcurrent fencing tokenを検証し、recovery時はownership取得後にremote actual stateを確認してからretryする。GitHub review/Issue投稿失敗時のfinding永続化・重複抑止・再発追跡には `scripts/review-findings/cli.mts` を使用する。

`command returned no response = operation did not happen` と推測してはいけない。

Expand Down Expand Up @@ -276,6 +276,10 @@ agentはcontext不足になる前に:

長い会話要約やprivate reasoningを保存するのではなく、fresh agentが再実行可能なoperational stateへ圧縮する。

checkpointにはcanonical requirement(Issue / Spec / ADR等)のrefと必要なrevision、未反映の重要な要求・決定を識別できる形で残す。要求の正本がない長期taskでは、compaction前に必要な内容を適切なdurable artifactへ選別して保存する。checkpointの要約を新たな仕様の正本にしない。

復旧後のagentは正本を直接再読し、目的・制約・受入基準をcheckpointと照合する。原文へアクセスできない場合は出典・版が明確なimmutableな抜粋を使い、重要な差異や欠落を推測で補わず解決する。実行状態の復元だけで要求の保持を確認済みにしない。

## 12. Recovery test

recovery policyはdocumentだけで終わらせない。
Expand Down
8 changes: 7 additions & 1 deletion .agents/skills/correctness-assurance/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
name: correctness-assurance
description: 重要な不変条件・事前条件・事後条件を抽出し、型・静的解析・runtime assertion・テスト・property/differential testing・formal verification・reviewの中から最小十分な保証手段を設計する時に使用する。
metadata:
requires-skills: system-quality
---

# Correctness Assurance

## 要求保存と改善の証拠

[system-quality](../system-quality/SKILL.md) の契約に従い、要求充足、候補間の改善、既知欠陥排除、最適性を別々に扱う。実装から期待値を逆算せず、比較候補へ同じ要求と環境条件を適用する。前提強化・入力除外・証明対象縮小は契約変更として元の根拠と照合する。証明は実ソースの意味論との対応が確立した範囲に限る。必要な保証を満たした後に重複を除くのであり、保証範囲を「最小」に縮小しない。

correctness assuranceは、単一の手法で「正しさ」を保証することではない。

**何を正しいと呼ぶのかを性質ごとに分解し、その性質に対して最小十分なassurance mechanismを割り当て、保証できた範囲・保証していない範囲・前提を明示する。**
Expand Down Expand Up @@ -430,7 +436,7 @@ Evidence
- toolchain/version
```

「tests green」「proof green」だけで終了しない。
「tests green」「proof green」だけで終了しない。actual execution と reported claim の乖離(0 件実行 silent pass、index silent fallback、未検証 prose mirror)の機械検証契約は [gate-honesty](../quality-gate/references/gate-honesty.md) を参照する。

## 15. Reproducibility

Expand Down
6 changes: 6 additions & 0 deletions .agents/skills/design-refinement/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
name: design-refinement
description: 非自明なfeature・architecture・product designを実装計画へ渡す前に、repository evidenceからfactと未決定事項を整理し、本当に必要なuser decisionだけを質問する時に使用する。
metadata:
requires-skills: system-quality
---

# Design Refinement

## 全体構成の比較

要求変更や再構成では [system-quality](../system-quality/SKILL.md) を適用する。現状修正案と、要求・維持条件・外部制約から状態・責務・境界を構成する案を比較する。既存内部構造や変更量の小ささを前提にしない。比較のために要求を縮小せず、実証された改善は利用側移行と旧構造撤去まで実装へ渡す。

非自明なtaskでは、質問を作る前にprojectを読む。
目的はuserを大量の質問でinterviewすることではなく、**read relentlessly, ask minimally** を実行し、implementationが暗黙のassumptionに依存しない状態へすることである。

Expand Down
10 changes: 8 additions & 2 deletions .agents/skills/engineering-decisions/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
name: engineering-decisions
description: 実装・設計・修正方針を自律的に決定する時に、project内の優先順位を確認し、不要なuser escalationを避けるために使用する。
metadata:
requires-skills: system-quality
---

# Engineering Decisions

## 品質判断の境界

要求保存・全体構成・改善関係は [system-quality](../system-quality/SKILL.md) に従う。既存慣例、局所性、実装の容易さだけで候補を選ばない。要求の根拠、現状の事実、内部慣例を分離し、要求縮小・無根拠な互換性義務・証拠のすり替えを候補へ適用する。既知違反の不在を最適性と同一視しない。

開発判断は会話上の思いつきや局所的な実装だけで決めない。

## 1. Canonical decision precedence
Expand Down Expand Up @@ -117,7 +123,7 @@ significant decisionは必要に応じて:

## 7. Naming / responsibility

filename / directory / function / class / component等の名前は、その対象が**所有する責務**を表す。
filename / directory / function / class / component等の名前は、その対象が**所有する責務**を表す。実装・機能追加時にも [code-naming](../code-naming/SKILL.md) を適用し、既存の所有者・兄弟entry・参照箇所を読んでから新規配置を決める。

ancestor path / namespace / ownerも名前の一部として評価し、上位階層ですでに表現されている意味をleafで無意味に繰り返さない。

Expand All @@ -131,7 +137,7 @@ ancestor path / namespace / ownerも名前の一部として評価し、上位
- `misc`
- `manager`

同一directory階層のparallel entryは**おおむね10以内**をheuristicとする。hard limitではないが大幅に超える場合は複数責務の混在を疑い、domain / feature / responsibility / lifecycle等の実質的境界で分割する。数合わせだけの中間directoryは作らない。
同一directory階層でparallel entryが**おおむね10を超える**場合は構造を調べるheuristicとする。数は合否条件ではない。類似名の兄弟、責務の重複、親子の語の反復は少数でも問題になり得る。新しいentryが既存の構造を不整合にするなら、その既存側も同じ変更で統合・再配置する。数合わせの中間directoryは作らない。

## 8. Design-first lifecycle

Expand Down
24 changes: 11 additions & 13 deletions .agents/skills/github-delivery/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ GitHubの標準branch protection/rulesetではPR head branch patternを直接制

readiness reportでは `ruleset enforced` と `merge-executor policy enforced` を区別する。外部guardがない場合、GitHub UIで任意headからのPR mergeを完全に禁止できるとは報告しない。Agentがmerge APIを呼ぶ直前には必ずbase/headを再取得してpreflightする。

初期化時にrepositoryのmain protection/rulesetを実際に確認する。設定変更権限がある場合は上記baselineへ作成・修復し、権限がない場合は差分をblockerとして報告する。
初期化時にrepositoryのmain protection/rulesetとmerge methodを確認する。今回の依頼に設定変更が含まれ、操作権限がある場合は上記baselineへ作成・修復する。調査・提案では現状と差分を報告する。依頼に含まれる変更が権限不足で行えない場合は、その差分をblockerとして報告する。

## Weekly planning / adaptive release batching

Expand All @@ -98,19 +98,17 @@ canonical format:

`release-<major>-<minor>-<patch>`

release train開始時に`main`からbranchを切る。緊急patchもrelease PRを経由する。候補はscope・公開価値・滞留・変更リスク・release-only実測コストで判定し、PR数だけで決めない。freezeとcarry-overは [adaptive-release-batching.md](./references/adaptive-release-batching.md) に従う。
release train開始時に`main`からbranchを切る。緊急patchもrelease PRを経由。候補はscope・価値・滞留・リスク・release-only実測コストで判定しPR数だけで決めない。手順は [adaptive-release-batching.md](./references/adaptive-release-batching.md)・[scope-authority-reconciliation.md](./references/scope-authority-reconciliation.md) に従う。

### Delivery forecast / capacity

1週間はplanning cadenceであり、選んだscopeが必ず1週間で完了するというestimateではない。
1週間はplanning cadenceであり、完了時期のestimateではない。release/milestoneの完了時期・capacity・carry-over・agent数変更効果の判断には `agent-delivery-estimation` Skillを使う。

release / roadmap / milestoneの完了時期、release date、capacity、carry-over、agent数変更による短縮効果を判断する場合は `agent-delivery-estimation` Skillを使用する。

- IssueのSizeをcalendar durationとして扱わない
- AI自身の「数日・数ヶ月」という主観的estimateをrelease dateの根拠にしない
- dependency graph、Work Unit、observed throughput、human review capacity、CI/external wait、usage limitを使う
- material unknownがある場合は `complete / conditional / unavailable` を維持し、日付を捏造してfieldを埋めない
- sprintごとの実績を次のforecast calibrationへ戻す
- Issue Sizeをcalendar durationにせず、AIの主観estimateも根拠にしない
- Work Unit、dependency、実測throughput、human/CI/external wait、usage limitを使う
- active releaseの観測snapshot/deltaには `scripts/delivery-status/`(`--snapshot-out`/`--prev-snapshot`)を使う
- material unknown時は `complete/conditional/unavailable` を維持し日付を捏造しない
- sprint実績を次回calibrationへ戻す

## Issue

Expand Down Expand Up @@ -334,7 +332,7 @@ Draftは未完了作業の一時状態である。次の条件をすべて満た


- Issue acceptance criteriaを実装済み
- current SHAに対するticket-level integration quality gateを実行済み
- current SHAに対するstage-specific ticket-level integration quality gateを実行済み
- blocking known issueが解消済み、または明示的にscope外
- PR description / assignee / labels / reviewer metadataが現在の実装と一致
- required reviewerをrequest済み。meaningful reviewer不在はreview/merge semanticsへ影響する場合だけreaderに必要な形で説明し、mutable stateとして恒常的にserializeしない
Expand Down Expand Up @@ -393,11 +391,11 @@ intended baseを安全に復元できない等、本当に解けない場合だ

## Release integration

release branchは複数ticketの統合結果を保持するrelease train integration lineであり、1週間のplanning windowと1:1ではない。
release branchはticketを集約する開発中のintegration lineであり、常時release-readyではない(ADR-0036)。

release branchはrelease train開始時に作成する。GitHubは`main`と差分がない状態ではPRを作れないため、release branchに最初のmeaningful integrated differenceが入った直後にDraft release PRを作成する。zero-diff release branchだけはDraft PR invariantの例外である。

Draft release PRにもassignee / reviewer / labels / release goal / included Issuesを設定し、release期間中維持する。release readiness条件を満たしたらDraftのまま残さずReady for reviewへ遷移する。validationのmutable stateはGitHub checks等のcanonical surfaceで追跡し、PR proseにはrelease判断に必要な意味だけを書く。
Draft release PRにもassignee / reviewer / labels / release goal / included Issuesを維持し、readiness達成後はReadyへ遷移する。mutable validation stateはGitHub checks等を正本にし、PR本文には判断に必要な意味だけ書く。

release候補を選択しscope/current SHAをfreezeした後、release branch上でfull applicable quality gateを実行する。freeze中の新規ticket landingは禁止し、修正でSHAが変わった場合はapplicable gateを再実行する([candidate review](./references/adaptive-release-batching.md))。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

判定に必要な最小情報:

- integrated ticket IDs / dependency graph / scope admission state(未確定要求をcritical pathへ入れない)
- integrated ticket IDs / dependency graph / scope admission state(未確定要求をcritical pathへ入れない。scope・owner承認の照合は [scope-authority-reconciliation.md](./scope-authority-reconciliation.md) に従う)
- user-facing value・priority・security impact・urgency・external deadlines
- earliest integrated-but-unpublished change、elapsed waiting time、未公開変更の件数とリスク面
- changed areas / interfaces / persistence / deployment / reversibility、必要なrelease-wide verification
Expand All @@ -18,6 +18,20 @@

PR数・変更ファイル数は変更量の一部であり、それだけでrelease eligibility、安全性、費用を決定しない。quality gateを削って費用を最適化しない。`quality-gate` がCI resource evidenceを、`agent-delivery-estimation` が日程/待ち時間の根拠を提供する。

## 1.5 Release scope admission gate(#54)

**release scope admission**(critical path へ載せてよいか)と **release terminal gate**(freeze 済み候補を公開してよいか)は別の責務である。calendar target や期限の設定だけ(`promoted_by_calendar_only: true`)で未確定項目を release critical path へ昇格させない。

各項目は track を `critical-path` / `research-discovery` / `backlog`、種別(`item_type`)を `bug` / `feature` / `chore` に分類する。`candidate` へ進むには最低 1 件以上の `critical-path` 項目が必要であり、`critical-path` へ組み込む項目は次の 5 基準と非 calendar 昇格(`promoted_by_calendar_only: false`)を満たすこと:

- **`requirement_confirmed`**: 実装判断可能な程度に要求が確定している(`true`)
- **`bug_reproduced_or_pinpointed`**: `item_type: "bug"`(または未指定)は再現済み・独立証跡による修正対象特定が必須(`true`、`"not-applicable"` 不可)。非 bug 項目(`feature` / `chore`)は `"not-applicable"`(または `true`)とする
- **`acceptance_executable`**: acceptance criteria が実行可能である(`true`)
- **`dependency_owner_identified`**: dependency / blocker owner が特定されている(`true`)
- **`validation_path_defined`**: validation path が定義されている(`true`)

いずれかを満たさない項目は `research-discovery` または `backlog` として実行自体は妨げずに分離し、`agent-delivery-estimation` の **Structural unknown**(未解消のまま critical path へ混ぜると Work Graph 不安定・`forecast_status: unavailable`)として扱う。明示的な判断なしに release critical path や release candidate へ昇格しない。

## 2. Outcomeは3種類

| Outcome | 意味 |
Expand Down
Loading
Loading