Repository navigation
feat(#393): thin issue-refinement-loop entrypoint - #413
Conversation
判定REQUEST_CHANGES。 ただし、thin entrypoint 化の過程で実行順序と LOOP_STATE 契約が落ちています。 このままマージすると、軽量化には成功しても orchestration semantics が壊れる可能性があります。 良い点Claude Code 公式 docs は、supporting files に詳細を逃がして
SubAgent 側を触っていない点もよいです。Claude Code subagents は独立 context window、custom system prompt、tool access、permission を持つため、 Blockers1. Step 0 の順序が #393 / scope-rollup-policy と矛盾しているPR後の これは既存契約と逆です。#393 は scope rollup preflight と Product/Spec signal detection を Step 0-hygiene より前に実行する前提で書かれており、 修正案: ### Step 0: Preconditions
1. Issue 本文と必要コメントを取得し、`state/needs-human` / `state/done` の hard stop を確認する。
2. `anchor_comment_url` がある場合は snapshot を固定し、対象 Issue 所属を検証する。
3. scope rollup preflight を mutation-free で実行し、`LOOP_STATE.scope_rollup_decision` を記録する。
4. Product/Spec routing signal を検知し、`LOOP_STATE.product_spec_context` を記録する。
5. 本 Issue への refinement 継続が確定した後、stale な `state/blocked` / `state/queued` を hygiene として除去する。これはマージ前に必須修正です。 2.
|
判定: REQUEST_CHANGES寄り。マージ前に 1 点だけ直したいPR #413 は #393 の主目的である Claude Code 公式 docs でも、複雑な skill は supporting files に詳細を分離し、 良い点#393 の AC はかなり消化されています。 前回レビューで問題視されていた Step 0 の順序、routing-critical な
SubAgent 側を触っていない点も妥当です。Claude Code の subagent は独立 context、system prompt、tool access、permission を持つため、 Blocker1.
|
|
CI checks were not attached to the latest head commit, so this PR is being temporarily closed and reopened to retrigger pull_request workflows. |
c49ec89 to
90eabf2
Compare
Summary
issue-refinement-loop/SKILL.mdを thin entrypoint に縮小しつつ、Step 0 の実行順序とLOOP_STATEの routing-critical field を entrypoint 側へ戻しました。受け入れ条件の達成状況
references/index.mdを追加しました。ISSUE_REFINEMENT_LOOP_THIN_ENTRYPOINT_V1を追加しました。SKILL.mdを 235 行 / 10289 bytes に縮小し、500 行以下を満たしました。SKILL.mdから明示リンクしました。plan_refinement_loop.py/REFINEMENT_LOOP_PLAN_V1consume を entrypoint に残しました。SKILL.mdから除去しました。tests/test_thin_entrypoint.pyを追加し、順序と routing-critical fields の回帰も検証するようにしました。references/index.mdにtopic / file / loaded_when / owner / moved_from / must_not列を追加しました。Frontmatter Decision
disable-model-invocation: trueissue-refinement-loopは planner / reviewer / worker を束ねる orchestrator であり、モデル呼び出し自体を禁止すると routing entrypoint の役割を壊すため。pathsfrontmatterMeasurement
SKILL.mdlinesSKILL.mdbytesdescriptioncharsreferences/index.mdcharsreferences/*.mdfile count検証コマンド結果
pnpm typecheckpnpm lintpnpm testpnpm builduv run python3 -m pytest .claude/skills/issue-refinement-loop/tests/ -quv run python3 -m pytest .claude/skills/issue-refinement-loop/tests/test_thin_entrypoint.py -vuv run python3 -m pytest .claude/skills/issue-refinement-loop/tests/test_skill_md_wiring.py -vAllowed Paths 遵守
.claude/skills/issue-refinement-loop/SKILL.md.claude/skills/issue-refinement-loop/references/.claude/skills/issue-refinement-loop/tests/.claude/skills/issue-refinement-loop/fixtures/は未変更Schema Change Applicability
not_schema_changeSchema Consumer Inventory
N/A: schema 変更なし。
Compatibility Decision
N/AN/AN/AN/ASafety Claim Matrix
N/A: safety boundary / auth / sandbox / transport の挙動変更はありません。skill docs と test coverage の再構成のみです。
Notes