-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
背景
quality_gates は現在ピースYAMLのムーブメント定義でしか指定できない。しかし npm run test:e2e のようなプロジェクト固有の検証要件は builtin ピースに埋め込むべきではない。
実例: default-test-first-mini ピースで TAKT 本体を開発した際、implement/supervise が npm run test:e2e を実行せず CI が失敗した。
提案
プロジェクト config (.takt/config.yaml) およびグローバル config (~/.takt/config.yaml) で quality_gates をオーバーライドできるようにする。
解決順(優先度高→低)
- プロジェクト
.takt/config.yamlのpiece_overrides - グローバル
~/.takt/config.yamlのpiece_overrides - ピースYAML のムーブメント定義
設定例
# .takt/config.yaml
piece_overrides:
quality_gates:
- E2Eテスト(npm run test:e2e)が全てパスすることムーブメント名指定も検討:
piece_overrides:
movements:
implement:
quality_gates:
- E2Eテスト(npm run test:e2e)が全てパスすること
supervise:
quality_gates:
- npm run test:e2e が全てパスしていることマージ戦略
quality_gatesは 追加マージ(ピースYAML の gates + config の gates)- 全ムーブメント共通指定とムーブメント名指定の両方をサポート
- 適用対象を
edit: trueのムーブメントのみに限定するオプションも検討
関連
src/infra/config/loaders/pieceParser.ts— 現在の quality_gates パースsrc/core/piece/instruction/InstructionBuilder.ts— quality_gates インジェクションsrc/infra/config/project/projectConfig.ts— プロジェクト configsrc/infra/config/global/globalConfig.ts— グローバル config
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels