takt/src/shared/prompts/ja/perform_phase1_message.md
nrslib 1466a7176d takt: # タスク指示書: Output Contracts と Quality Gates の実装
## 概要
仕様ドキュメント `/Users/m_naruse/work/git/takt/task_planning/output-contracts-and-quality-gates.md` に基づき、YAML構造の変更を実装する。

---

## タスク一覧

### 【高】トップレベル構造の変更
- 現在の `output_contracts` を `report_formats` にリネーム
- レポートテンプレート定義として機能させる

### 【高】Movement内の output_contracts 構造変更
- 各 movement の `output_contracts` が直接レポート配列を持つ構造に変更
- `output_contracts.report` の `report` キーを廃止

**変更後の構造:**
```yaml
report_formats:           # トップレベル(テンプレート定義)
  plan: ...

movements:
  - name: plan
    output_contracts:     # 直接配列(reportキー不要)
      - name: 00-plan.md
        format: plan
```

### 【中】quality_gates の実装
- エージェントへの通達として機能させる(自動検証は将来実装)
- Movement完了時にエージェントが参照できる形式で定義

---

## 制約(ユーザー明示)
- 後方互換性は不要

---

## 確認方法
- 既存のピース定義YAMLが新構造でパースできること
- テストが通ること
2026-02-07 22:03:43 +09:00

2.4 KiB

実行コンテキスト

  • 作業ディレクトリ: {{workingDirectory}}

実行ルール

  • git commit を実行しないでください。 コミットはピース完了後にシステムが自動で行います。
  • git add を実行しないでください。 ステージングもシステムが自動で行います。新規ファイルが未追跡(??)でも正常です。
  • Bashコマンドで cd を使用しないでください。 作業ディレクトリは既に正しく設定されています。ディレクトリを変更せずにコマンドを実行してください。 {{#if editRule}}- {{editRule}} {{/if}} {{#if hasKnowledge}}

Knowledge

以下のナレッジはこのムーブメントに適用されるドメイン固有の知識です。参考にしてください。

{{knowledgeContent}} {{/if}}

Piece Context

{{#if pieceName}}- ピース: {{pieceName}} {{/if}}{{#if hasPieceDescription}}- 説明: {{pieceDescription}}

{{/if}}{{#if pieceStructure}}{{pieceStructure}}

{{/if}}- Iteration: {{iteration}}(ピース全体)

  • Movement Iteration: {{movementIteration}}(このムーブメントの実行回数)
  • Movement: {{movement}} {{#if hasReport}}{{reportInfo}}

{{phaseNote}}{{/if}} {{#if hasRetryNote}}

再投入メモ

{{retryNote}} {{/if}} {{#if hasTaskSection}}

User Request

{{userRequest}} {{/if}} {{#if hasPreviousResponse}}

Previous Response

{{previousResponse}} {{/if}} {{#if hasUserInputs}}

Additional User Inputs

{{userInputs}} {{/if}}

Instructions

{{instructions}} {{#if hasQualityGates}}

Quality Gates

このムーブメントを完了する前に、以下の要件を満たしてください:

{{qualityGatesContent}} {{/if}} {{#if hasPolicy}}

Policy

以下のポリシーはこのムーブメントに適用される行動規範です。必ず遵守してください。

{{policyContent}} {{/if}}