[Fix] review orchestrator の Agent 起動に run_in_background: false を明示指定#215
Merged
Conversation
…を明示指定 (#208) Claude Code v2.1.198 以降、Agent ツールで起動した subagent は既定でバックグラウンド実行される。 review/SKILL.md の reviewer/evaluator/fixer/汎用Agent 起動箇所にはこの明示指定が無く、 完了待機の手段(allowed-tools に Monitor/TaskOutput 無し)も存在しないため、 Issue #200(1層下の reviewer→codex exec 境界)と同型の問題が orchestrator→Agent 境界に残存していた。 PR #206 の指示パターンを踏襲し、同期実行 [MANDATORY] 節を追加し全5箇所の Agent 起動ブロックに run_in_background: false を明示。回帰防止テストを新規追加。 Closes #208
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
/forge:revieworchestrator (plugins/forge/skills/review/SKILL.md) が reviewer / evaluator / fixer / 汎用 Agent (関連コード探索) を起動する全5箇所にrun_in_background: falseを明示指定DES-029にも同期実行契約を反映Closes #208
背景
Claude Code v2.1.198 以降、Agent ツールで起動した subagent は既定でバックグラウンド実行される。
review/SKILL.mdの Agent 起動箇所にはこの明示指定が無く、完了待機の手段(allowed-toolsにMonitor/TaskOutput無し)も存在しないため、Issue #200(1層下のreviewerAgent →codex exec境界、PR #206 で対応済み)と同型の問題が、1層上のorchestrator→Agentツール境界に残存していた。やったこと
plugins/forge/skills/review/SKILL.mdに「Agent 起動時の同期実行 [MANDATORY]」節を新規追加(1箇所に集約)し、reviewer起動×2 / evaluator起動 / fixer起動 / 汎用Agent起動(関連コード探索)の全5箇所の起動コードブロックにrun_in_background: falseを明示追加docs/specs/forge/design/DES-029_skill_agent_launch_contract_design.mdのシーケンス図 (§4.2/§4.3) をrun_in_background: falseに更新し、§6.7 として同期実行契約を追記(実装レビューで設計SSOTとの乖離を指摘され対応)tests/forge/review/test_orchestrator_agent_sync_execution.pyを新規追加(7テスト): 同期実行ルールの明示・各Agent起動ブロックへのrun_in_background: false指定を静的検証やらないこと(このプルリクエストのスコープ外とすること)
allowed-toolsへのMonitor/TaskOutputの追加(DES-029 の設計方針、reviewer/evaluator/fixer は Monitor を持たないことと整合させるため、同期実行の明示指定のみで対処する)レビュー観点
python3 -m unittest discover -s tests1448件 passdprint checkpassレビューレベル
Lv0: まったく見ないでAcceptするLv1: ぱっとみて違和感がないかチェックしてAcceptするLv3: 実際に環境で動作確認したうえでAcceptする