Repository navigation
Open
Labels
agent/researchHandled by research agentphase/researchResearch phase issuestate/queuedQueued for implementation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: research
parent_issue: "none"
goal_ref: "pr-reviewer-lite(.codex/agents/pr-reviewer-lite.toml)が LOOP_VERDICT_V2 契約・canonical pair(pr-reviewer/pr-review-judge)と drift した parallel implementation であるという事実を確定し、移行するか廃止するかを implementation Issue が起票可能な状態にする"
change_kind: research-onlyParent Issue
なし(単独改善)
Related Issue
- 実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744(実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する)— 本 Issue は 実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 の
## Out of Scopeに明記された follow-up。実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 はpr-reviewer-liteを対象から明示的に除外し、本 Issue へのリンクのみを Notes for Reviewer に記録している。 - 親 Issue 実装: Agent/Skill の重複を削減し progressive disclosure へ移行する #1732(
pr-reviewerAgent /pr-review-judgeSkill 重複削減の親 tracker)
Background
.codex/agents/pr-reviewer-lite.tomlが実在し、「小さな docs-only / small diff PR 向けの軽量 reviewer」として、canonical pair(.claude/agents/pr-reviewer.md/.claude/skills/pr-review-judge)とは別系統の contract を保持しているpr-reviewer-lite.tomlのOUTPUT_CONTRACTはLOOP_VERDICT相当の structured output を返すとのみ記載し、canonical pair が正本とするLOOP_VERDICT_V2schema(.claude/skills/pr-review-judge/schemas/loop-verdict-v2.schema.json、実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 で新設予定)との対応が本文上で確認できないpr-reviewer-lite.tomlはEXECUTION_POLICYで「pr-review-judgeskill を正本とする」と記載しつつ、model/default_permissions/ fail-closed routing 条件など独自の parallel implementation を保持しており、V1/camelCase 相当の contract drift のリスクがある(OWNER 指摘: P1-2, https://github.com/squne121/loop-protocol/issues/1744#issuecomment-5078663933)- 実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 は
pr-reviewer-liteをLOOP_VERDICT_V2契約へ移行する、または廃止する実装そのものを Out of Scope とし、本 follow-up Issue へリンクのみを記録する方針で確定している
Outcome
pr-reviewer-lite の現状 contract(.codex/agents/pr-reviewer-lite.toml の入出力・routing・schema 参照)と canonical pair の LOOP_VERDICT_V2 契約との差分が明確になり、「LOOP_VERDICT_V2 へ移行する」か「廃止する」かの採用方針が確定し、その方針を実行する implementation Issue(または pr-reviewer-lite.toml の削除 PR)が起票可能な状態になっていること
In Scope
.codex/agents/pr-reviewer-lite.tomlの現行 contract(input/output/routing/schema 参照)の棚卸しpr-reviewer-liteの実際の呼び出し元・runtime consumer(存在すれば)の調査(他 skill / workflow / CI からの参照有無)LOOP_VERDICT_V2契約(実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 で正本化される.claude/skills/pr-review-judge/schemas/loop-verdict-v2.schema.jsonおよびreferences/loop-verdict-v2-schema.md)との fields/enum/routing の差分比較- 「移行」案(
pr-reviewer-liteを canonical pair のLOOP_VERDICT_V2producer に合わせて改修する)と「廃止」案(pr-reviewer-lite.tomlを削除し軽量 reviewer 用途を canonical pair の lightweight path に統合する)の比較検討 - 採用方針の決定と、それを実行する implementation Issue の起票
Out of Scope
pr-reviewer-lite.tomlの実装コード変更そのもの(移行実装または削除実装は本 Issue の成果物として起票する後続 implementation Issue が扱う).claude/agents/pr-reviewer.md/.claude/skills/pr-review-judgecanonical pair 自体の変更(実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 の Scope).claude/settings.jsonのRead(**/.claude/**)deny rule 再設計(実装: Skill references/ の read permission と Agent/Skill 契約 strict validator を追加する #1745 の Scope)
Acceptance Criteria
- AC1:
.codex/agents/pr-reviewer-lite.tomlの contract 内容(input/output/routing/schema 参照)が本 Issue 本文に記載されている - AC2:
LOOP_VERDICT_V2契約との差分(一致する点・drift している点)が本 Issue 本文に記載されている - AC3: 「移行」または「廃止」の採用方針が本 Issue 本文に明記され、判断理由が記載されている
- AC4: 採用方針を実行する implementation Issue が起票され、本 Issue がその Issue を link している
- AC5: 本 Issue は close 可能、もしくは追加調査要件が明示されている
Verification Commands
# AC1
# baseline-expect: fail
$ rg -c "LOOP_VERDICT_V2" .codex/agents/pr-reviewer-lite.toml# AC2
# baseline-expect: fail
$ gh issue view THIS_ISSUE_NUMBER --repo squne121/loop-protocol --json body -q .body# AC3
# baseline-expect: fail
$ gh issue view THIS_ISSUE_NUMBER --repo squne121/loop-protocol --json body -q .body# AC4
# baseline-expect: fail
$ gh issue view NEW_IMPLEMENTATION_ISSUE_NUMBER --repo squne121/loop-protocol# AC5
# baseline-expect: fail
$ gh issue view THIS_ISSUE_NUMBER --repo squne121/loop-protocol --json state -q .stateAllowed Paths
- 読み取り専用。リポジトリ変更なし(既定)
Stop Conditions
- Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
- Allowed Paths 外への書き込みを試みた場合は即停止
- 権限不足(permission denied)により操作が完了できない場合は即停止
- 成果物の書き込みに失敗した場合(I/O エラー等)は即停止
Handoff Contract
Current Objective:pr-reviewer-liteの LOOP_VERDICT_V2 移行 or 廃止方針を確定するBounded Current Context:.codex/agents/pr-reviewer-lite.tomlの contract、実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 の canonical pair 契約、OWNER P1-2 指摘(issuecomment-5078663933)Open Questions:pr-reviewer-liteの実際の runtime consumer の有無、移行コストと廃止時の代替経路Next Action: 調査結果に基づき implementation Issue を起票するArtifact Refs: 実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744, 実装: Agent/Skill の重複を削減し progressive disclosure へ移行する #1732, 実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 (comment)
Notes for Reviewer
- 本 Issue は 実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 の issue-refinement-loop 中の OWNER
issue-contract-reviewコメント(P1-2, blocking_parent_closure: true)に基づく follow-up として起票された blocking_parent_closure: trueは「本 follow-up Issue が起票されていることが 実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 の親 Issue 実装: Agent/Skill の重複を削減し progressive disclosure へ移行する #1732 クローズの前提条件である」ことを意味し、本 Issue 自体の実装完了を 実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744 のマージ条件にするものではない
Metadata
Metadata
Assignees
Labels
agent/researchHandled by research agentphase/researchResearch phase issuestate/queuedQueued for implementation
Activity