Repository navigation
Closed
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#391"
goal_ref: "issue-refinement-loop の prose 判定を script-first planner/checker に移し、LOOP_STATE と JSON evidence を SSOT にする"
change_kind: workflowParent Issue
Parent Goal Ref
- Goal:
issue-refinement-loopの prose 判定を script-first planner/checker に集約し、LOOP_STATEと JSON evidence を SSOT にして SKILL.md を thin entrypoint 化する準備を整える。 - Desired Destination:
plan_refinement_loop.py+REFINEMENT_LOOP_PLAN_V1JSON Schema + fixture matrix が揃い、SKILL.md は planner 出力を consume するだけになる。
Depends On
- なし(perf(claude): issue-refinement-loop を軽量化する(max_iterations=1 デフォルト / SubAgent 条件付き) #295 / PR perf(#295): issue-refinement-loop の SubAgent spawn 上限を軽量化 — max_iterations=1 + policy state 化 #388 は merged 済み — 履歴は Background 参照)
Current Validated Scope
.claude/skills/issue-refinement-loop/scripts/plan_refinement_loop.pyを新規追加し、Issue body / comments / known_context からREFINEMENT_LOOP_PLAN_V1JSON を stdout 出力する。.claude/skills/issue-refinement-loop/schemas/refinement_loop_plan_v1.jsonを新規追加し、output を JSON Schema (Draft 2020-12) で validation できるようにする。.claude/skills/issue-refinement-loop/fixtures/配下に fixture matrix を配置し、.claude/skills/issue-refinement-loop/tests/に golden JSON 一致テストを追加する。.claude/skills/issue-refinement-loop/SKILL.mdには planner 実行・schema validation・fail_closedhandling・SubAgent routing の最小 wiring のみ追記する。
Remaining Parent Gaps
- SKILL.md 全体の thin entrypoint 化(→ 実装: issue-refinement-loop SKILL.md を thin entrypoint + references 構成へ分割する #393, Phase 2)
- SKILL.md references 分割(→ Phase 2 以降)
- SubAgent prompt の移動(→ 実装: issue-refinement-loop の SubAgent-owned contract migration を行う #394, Phase 3)
- runtime 計測(→ perf(claude): #295 軽量化後の runtime /usage 計測(3 代表 Issue) #389)
Required Skills
- Python 3 /
jsonschema(Draft 2020-12,iter_errors) pytestfixture-driven test 設計- markdown parsing(fenced code / markdown table / Japanese body を含むエッジケース処理)
ghCLI(read-only な Issue / comment 取得)- 既存
plan_issue_scope_rollup.pyの script-first 規約への準拠
Background
- perf(claude): issue-refinement-loop を軽量化する(max_iterations=1 デフォルト / SubAgent 条件付き) #295 / PR perf(#295): issue-refinement-loop の SubAgent spawn 上限を軽量化 — max_iterations=1 + policy state 化 #388 で
investigation_policy/web_research_policyの YAML state は導入されたが、判定自体はまだ SKILL.md prose / Step 0f に残っている。 - Phase 1 では、SKILL.md を薄くする前に、自然言語 guard を deterministic planner/checker script と JSON contract に切り出す。
- 同ディレクトリの
plan_issue_scope_rollup.pyが script-first 実装の先行リファレンス(schema constants / exit code / input hash / confidence enum / signal enum / fixture-driven tests)。本 Issue はこの水準に合わせる。 - 親 perf(claude): issue-refinement-loop を script-first / thin entrypoint 化し OPEN 改善 Issue を段階統合する #391 が Phase 1 着手前に要求する amendment(
REFINEMENT_LOOP_PLAN_V1の input/output schema・reason_code・evidence_spans・confidence・fail_closed・fixture matrix)を本 Issue 本文で吸収する。
Outcome
.claude/skills/issue-refinement-loop/scripts/plan_refinement_loop.pyが存在し、Issue body / comments / known context からREFINEMENT_LOOP_PLAN_V1JSON を stdout に決定論的に出力する。- output は同梱 JSON Schema で validation でき、すべての decision に
reason_code/evidence_spans/confidence/fail_closedが付与される。 - SKILL.md はこの JSON を consume し、
investigation_policy/web_research_policy/ scope signal / follow-up candidate を prose で再判定しない。
REFINEMENT_LOOP_PLAN_V1 Contract
planner の入出力 schema を本 Issue の SSOT として固定する。実装はこの contract に厳密に従い、揺らぎがある場合は fail_closed.required = true とする。
Input
REFINEMENT_LOOP_PLANNER_INPUT_V1:
schema_version: refinement_loop_planner_input/v1
issue:
number: int
title: string
body: string # raw markdown
labels: string[]
comments: # nullable
- id: string
author_login: string
author_association: enum # OWNER|MEMBER|COLLABORATOR|CONTRIBUTOR|NONE
body: string
created_at: iso8601
updated_at: iso8601
known_context: # nullable — orchestrator が把握済みの LOOP_STATE 抜粋
anchor_comment_url: string|null
parent_mode: enum|null # delivery-rollup|single|null
closure_mode: enum|null # child-complete|self|nullOutput
REFINEMENT_LOOP_PLAN_V1:
$schema: "https://json-schema.org/draft/2020-12/schema"
schema_version: refinement_loop_plan/v1
source:
issue_number: int
issue_body_sha256: string # sha256(issue.body, utf-8)
comments_sha256: string|null # sha256(canonical_json(comments))
known_context_sha256: string|null
generated_at: iso8601
decisions:
investigation_policy:
required: boolean
reason_code: InvestigationReason
target_paths: string[] # stable-sorted, deduped
repo_claims: string[]
evidence_spans: EvidenceSpan[]
confidence: enum # deterministic|unknown
web_research_policy:
required: boolean
reason_code: WebResearchReason
critical_external_claims: ExternalClaim[]
evidence_spans: EvidenceSpan[]
confidence: enum # deterministic|unknown
scope_signal_guard:
triggered: boolean
reason_code: ScopeSignalReason
excluded_by_anchor_reframe: boolean
evidence_spans: EvidenceSpan[]
delivery_rollup:
applicable: boolean
unmaterialized_slots: UnmaterializedSlot[]
evidence_spans: EvidenceSpan[]
follow_up_materialization:
candidates: FollowUpCandidate[]
fail_closed:
required: boolean
reason_codes: FailClosedReason[]
human_message: string # 単一行・stdout JSON 外には書かない
EvidenceSpan:
source: enum # issue_body|comment|known_context
source_ref: string|null # comment_id 等。issue_body は null
start_line: int # 1-indexed
end_line: int
text_sha256: string # sha256(該当 span の生文字列)
ExternalClaim:
claim: string
affects: enum # Outcome|InScope|AC|VC|StopCondition
source_hint: string|null
UnmaterializedSlot:
child_title_hint: string
marker: enum # 未起票|unmaterialized|TBD
body_line: int
FollowUpCandidate:
dedupe_key: string # planner が決定論的に算出
summary: string
source_evidence: EvidenceSpanReason Code Enums
InvestigationReason:
- target_paths_present
- repo_fact_claim_in_outcome_or_ac_or_vc
- same_file_scope_rollup_conflict
- reviewer_requested_repo_fact_check
- anchor_comment_requires_fact_check
- no_repo_fact_claim # required=false
- unknown_input_schema # fail_closed
WebResearchReason:
- critical_external_spec_claim
- human_requested_web_verification
- current_cli_api_auth_or_migration_behavior
- no_critical_external_claim # required=false
- unknown_input_schema # fail_closed
ScopeSignalReason:
- new_in_scope_area
- new_allowed_path_layer
- new_unverifiable_ac
- anchor_reframe_exclusion # triggered=false の正当化用
- no_scope_signal
FailClosedReason:
- malformed_machine_readable_contract
- missing_required_section
- ambiguous_scope_signal
- unknown_input_schema
- planner_internal_errorDeterminism / Output Rules
- stdout には JSON のみを出力し、prose / markdown / log を混ぜない。log は stderr。
target_paths/repo_claims/critical_external_claims/candidatesは stable sort + dedupe。- 同一入力に対し
issue_body_sha256+ output JSON が完全一致すること(再実行 idempotent)。 - exit code:
0= success,2= invalid input schema,3= planner internal error。fail_closed.required = trueでも JSON は stdout に出した上で exit0。
Responsibility Boundary(planner が扱わないもの)
planner はポリシー導出のみを所有する。以下は明示的に Out of Scope / Forbidden:
- Gemini retry_count / fallback query / raw grounding state(→
gemini-cli-headless-delegation) - direct_web / direct_cli の選択(→
web-researcher) WEB_RESEARCH_RESULT_V1schema の再定義(→.claude/agents/web-researcher.md)- repo file evidence schema(commit_sha / permalink / excerpt_sha256 等) —
REPO_EVIDENCE_REF_V1を所有する 実装: gemini-cli-headless-delegation に REPO_EVIDENCE_REF_V1 を追加し file evidence の commit_sha 固定・excerpt_sha256 検証を SSOT 化する #248 /gemini-cli-headless-delegation側に委譲。evidence_spansは issue body / comments / known_context の text span に限定 し、repo file evidence を表現しない。 - Issue / PR の mutation(read-only)。
In Scope
plan_refinement_loop.pyの新規追加(read-only CLI、plan_issue_scope_rollup.pyと同等の品質水準)- 上記
REFINEMENT_LOOP_PLAN_V1の JSON Schema 定義ファイル同梱(schemas/refinement_loop_plan_v1.json相当) - 以下の判定を script-first 化する:
investigation_policy.codebase_requiredweb_research_policy.requiredanchor_comment_url明示 / 未指定時の扱い- delivery-rollup parent の未起票 child slot 検出
feedback_update_required/reframe_in_place時の AC/VC 反映確認対象抽出- scope signal guard の対象 / 除外判定(anchor reframe 由来は除外)
- follow-up materialization candidates の抽出
- fixture matrix(下記)を網羅する pytest を追加
- SKILL.md には planner 呼び出し・JSON schema validation・
fail_closedhandling・SubAgent routing のみを wiring(個別 prose 再判定を残さない)
Fixture Matrix(必須)
fixtures/ 配下に以下を全件配置し、各 fixture について golden JSON と完全一致する pytest を用意する:
positive:
- repo_path_in_outcome.md # target_paths 抽出
- critical_external_claim_in_vc.md # web_research_policy=true
- delivery_rollup_unmaterialized.md # (未起票) slot 検出
- anchor_reframe_exclusion.md # scope signal を anchor reframe で除外
negative:
- no_repo_fact_claim.md
- no_critical_external_claim.md
false_positive:
- path_only_in_fenced_code.md # コードブロック内 path を target_paths にしない
false_negative:
- japanese_body.md # 日本語のみで repo_fact を主張
malformed:
- broken_machine_readable_contract.md
- missing_outcome_section.md
partial:
- missing_comments.md # comments_sha256: null
formatting:
- markdown_table_body.md
- fenced_code_in_outcome.mdOut of Scope
- SKILL.md 全体の thin entrypoint 化(→ 実装: issue-refinement-loop SKILL.md を thin entrypoint + references 構成へ分割する #393)
- references 分割
- SubAgent prompt の移動
- perf(claude): #295 軽量化後の runtime /usage 計測(3 代表 Issue) #389 runtime 計測
- 既存 OPEN Issue の close 処理
WEB_RESEARCH_RESULT_V1/REPO_EVIDENCE_REF_V1schema の定義 / 再定義- Gemini retry / fallback / grounding quality gate の planner 側実装
Acceptance Criteria
- AC1:
plan_refinement_loop.pyが存在しREFINEMENT_LOOP_PLAN_V1JSON を stdout に出力する。stdout には markdown / prose を混ぜない。 - AC2: 同梱 JSON Schema(
schemas/refinement_loop_plan_v1.json相当)で output が validation に通り、jsonschemaのiter_errorsベースで全 error を収集できるテストがある。 - AC3:
investigation_policy/web_research_policyのrequired/reason_code/confidence/evidence_spansが fixture matrix(positive / negative / false-positive / false-negative / malformed / partial / formatting)で決定論的に検証され、各 fixture で stdout JSON が golden output と完全一致する。 - AC4: delivery-rollup parent の
(未起票)/ unmaterialized slot をdecisions.delivery_rollup.unmaterialized_slotsに出力できる。 - AC5:
feedback_update_required/reframe_in_place時の AC/VC 反映確認対象をdecisions.scope_signal_guardおよびfollow_up_materializationに出力できる。anchor reframe 由来の scope 拡大はexcluded_by_anchor_reframe: trueで除外される。 - AC6: follow-up materialization candidates を stable な
dedupe_key付きでdecisions.follow_up_materialization.candidatesに出力できる。 - AC7: SKILL.md は planner 実行・JSON schema validation・
fail_closed.required=true時の human_escalation・SubAgent routing のみを記述する。investigation_policy/web_research_policy/ scope signal / follow-up candidate の prose 再判定を残さない。planner failure /fail_closed.required=trueの場合は human_escalation へ進み、SKILL.md 側で推測補完しない。 - AC8:
evidence_spansはsource ∈ {issue_body, comment, known_context}のみを取り、repo file evidence(path / commit_sha / permalink 等)を表現しない(REPO_EVIDENCE_REF_V1/ 実装: gemini-cli-headless-delegation に REPO_EVIDENCE_REF_V1 を追加し file evidence の commit_sha 固定・excerpt_sha256 検証を SSOT 化する #248 への委譲を担保)。 - AC9: planner output は同一入力に対し再実行で完全一致する(idempotent / stable ordering)。
- AC10:
malformed_machine_readable_contract/ambiguous_scope_signal/unknown_input_schemaの fixture でfail_closed.required=trueかつ対応するreason_codesが出る。 - AC11:
pytest/pnpmgate が PASS する。
Verification Commands
VC は baseline で deterministic に fail し、実装後に pass するように test -f / test -d をベースに構成する(token presence は pytest fixture で検証する)。
$ test -f .claude/skills/issue-refinement-loop/scripts/plan_refinement_loop.py # AC1
$ test -f .claude/skills/issue-refinement-loop/schemas/refinement_loop_plan_v1.json # AC2
$ test -f .claude/skills/issue-refinement-loop/fixtures/golden/repo_path_in_outcome.json # AC3
$ test -f .claude/skills/issue-refinement-loop/fixtures/positive/delivery_rollup_unmaterialized.md # AC4
$ test -f .claude/skills/issue-refinement-loop/fixtures/positive/anchor_reframe_exclusion.md # AC5
$ test -f .claude/skills/issue-refinement-loop/fixtures/positive/critical_external_claim_in_vc.md # AC6
$ test -f .claude/skills/issue-refinement-loop/tests/test_skill_md_wiring.py # AC7
$ test -f .claude/skills/issue-refinement-loop/tests/test_evidence_span_source.py # AC8
$ test -f .claude/skills/issue-refinement-loop/tests/test_idempotent.py # AC9
$ test -f .claude/skills/issue-refinement-loop/tests/test_fail_closed.py # AC10
$ test -f .claude/skills/issue-refinement-loop/tests/test_plan_refinement_loop.py # AC11実装完了後の追加検証(VC ではなく impl-review-loop の test-runner が project gate として自動実行する):
uv run pytest .claude/skills/issue-refinement-loop/tests/ -v— 全 fixture / wiring / evidence_span / idempotent / fail_closed の合成テストpnpm typecheck && pnpm lint && pnpm test && pnpm build— 共通 project gate(本 Issue 由来の変更を含む repo 全体の non-regression 確認)
pytest 内では以下を assert する(VC ではなく test の内訳として明記):
test_skill_md_wiring.py: SKILL.md に planner 呼び出し / schema validation / fail_closed handling の wiring が存在し、investigation_policy.codebase_required = (true|false)等の prose 再判定が残っていないこと(AC7)test_evidence_span_source.py: planner 出力のevidence_spans[].sourceがissue_body|comment|known_contextの enum に限定され、repo file evidence(commit_sha/permalink/excerpt_sha256)を扱わないこと(AC8)test_idempotent.py: 同一入力に対し output JSON /issue_body_sha256が完全一致(AC9)test_fail_closed.py: malformed / missing_required_section / ambiguous_scope_signal / unknown_input_schema fixture でfail_closed.required=trueと対応するreason_codesが出る(AC10)- 各 fixture について stdout JSON が
fixtures/golden/<fixture>.jsonと完全一致(AC3) - 出力は
schemas/refinement_loop_plan_v1.jsonの Draft 2020-12 validator で validate し、iter_errorsで全 error を収集できる(AC2)
Allowed Paths
.claude/skills/issue-refinement-loop/scripts/plan_refinement_loop.py.claude/skills/issue-refinement-loop/schemas/refinement_loop_plan_v1.json.claude/skills/issue-refinement-loop/tests/.claude/skills/issue-refinement-loop/fixtures/.claude/skills/issue-refinement-loop/references/refinement-loop-plan-output.md.claude/skills/issue-refinement-loop/SKILL.md(最小 wiring のみ)
Stop Conditions
- SKILL.md の大規模リライトが必要になった場合
- SubAgent prompt の移動が必要になった場合
- JSON schema を caller なしに複数案へ分岐させる必要が出た場合
WEB_RESEARCH_RESULT_V1/REPO_EVIDENCE_REF_V1schema を本 Issue で再定義する必要が出た場合- Gemini retry / fallback / grounding を planner 側で実装する必要が出た場合
- Allowed Paths 外の変更が必要になった場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Runtime Verification Applicability
decision: not_applicable
reason: deterministic script と fixture test による workflow 判定。ゲーム runtime には影響しない。
Delivery Rule
Metadata
Metadata
Assignees
Labels
No labels
Activity
squne121 commentedon May 25, 2026
判定: REQUEST_CHANGES
#392 の方向性は妥当です。#295 / PR #388 で
investigation_policy/web_research_policyはLOOP_STATE化されたものの、判定自体はまだ SKILL.md の prose / Step 0f に残っています。したがってplan_refinement_loop.pyに deterministic planner を抽出する Phase 1 は必要です。ただし、現状の #392 は 親 #391 が Phase 1 前に要求している契約改訂を十分に吸収していません。#391 は #392 に対して、
REFINEMENT_LOOP_PLAN_V1の input/output schema、decision ごとのreason_code、evidence_spans、confidence、fail_closed、negative fixtures、malformed / Japanese / markdown table / fenced code fixture を明示要求しています。一方 #392 本文の AC/VC はrgmarker と “script exists” に寄っており、deterministic planner の品質保証として不足しています。Blocker
1.
REFINEMENT_LOOP_PLAN_V1が schema として固定されていない#392 は “schema の定義” を In Scope に入れていますが、本文に必須 field、enum、fail-closed 条件、hash 対象、line span の表現がありません。これでは実装者ごとに JSON 形状が揺れ、SKILL.md が “consume するだけ” になりません。
最低限、#392 本文に以下を追加してください。
JSON Schema を採用するなら
$schemaを明記し、テストでは schema 自体の検証とiter_errorsによる全 error 収集まで行うべきです。[jsonschema](https://python-jsonschema.readthedocs.io/en/stable/validate/)は Draft 2020-12 validator と schema check / iter_errors を提供しています。(jsonschema)2. 既存の deterministic script 品質に届いていない
同ディレクトリには既に
plan_issue_scope_rollup.pyがあり、read-only CLI、schema constants、exit code、input hash、confidence enum、signal enum を持つ script-first 実装になっています。さらに tests では false positive、Japanese annotation、security keyword 誤検知、current_issue missing などを fixture で潰しています。#392 もこの水準に合わせるべきです。#392 の AC は次のように強化してください。
3.
evidence_spansが #248 と衝突する可能性がある#391 は #392 に
evidence_spansを要求していますが、#248 は別途REPO_EVIDENCE_REF_V1をgemini-cli-headless-delegation側の file evidence SSOT として定義する Issue です。#392 が独自に file evidence schema を作ると、Phase 3 / #394 の SubAgent-owned contract migration と衝突します。#392 の
evidence_spansは、まず Issue body / comment / known_context の text span 限定にしてください。repo file evidence はREPO_EVIDENCE_REF_V1が入るまでverification_status: inconclusiveまたは external ref に留めるべきです。GitHub の branch URL は branch head 更新で内容が変わるため、file evidence を固定するなら commit ID を含む permalink が必要です。([GitHub Docs]2)4. web-researcher / Gemini retry の責務を planner に持ち込む余地がある
#203 は「orchestrator に auth_error retry を持たせる」案でしたが、人間コメントにより責務配置が誤りと判断され、not planned で close されています。#247 では retry / fallback / grounding quality gate を
gemini-cli-headless-delegationとweb-researcher側に集約し、issue-refinement-loopはWEB_RESEARCH_RESULT_V1の consumer 境界に留める設計になっています。したがって #392 の planner は、次だけを出すべきです。
以下は Out of Scope / forbidden と明記してください。
現行 SKILL.md も Step 1b で
WEB_RESEARCH_RESULT_V1を opaque に扱い、schema SSOT をweb-researcher.md側に置く境界を持っています。5. SKILL.md wiring の “再解釈禁止” が弱い
#392 は「SKILL.md は JSON を consume し、個別 prose 条件を再解釈しない」と書いていますが、AC7 は
plan_refinement_loop.py|REFINEMENT_LOOP_PLAN_V1のrgだけです。これは弱いです。AC7 は次のように変えるべきです。
Claude Code の skills docs は、supporting files へ詳細を移し SKILL.md を簡潔に保つこと、SKILL.md は 500 行未満を推奨すること、読み込まれた skill content が context に残ることを明記しています。#392 の wiring は最小化しないと、Phase 2 #393 の thin entrypoint 化をさらに難しくします。([Claude Code]3) ([Claude Code]3)
投稿用レビュー案
最小修正セット
#392 に最低限追加すべきものは以下です。
この修正後なら、#392 は Phase 1 として実装可能です。現状は contract-review で
needs-fixが妥当です。squne121 commentedon May 25, 2026
issue-refinement-loop: 完了 (2026-05-25T14:12:45Z)
scope_cvs_in_scope_mismatchwarning は Current Validated Scope(path 列)と In Scope(semantic token 列)の語彙差に由来する偽陽性で、本 Issue では追加対応不要squne121 commentedon May 25, 2026
Contract Snapshot (2026-05-25T14:17:51Z)
plan_refinement_loop.py) +REFINEMENT_LOOP_PLAN_V1JSON に切り出し、SKILL.md は consume するだけにするtest -fベースの 11 件 + post-impl でuv run pytest/pnpmgate.claude/skills/issue-refinement-loop/{scripts,schemas,tests,fixtures,references}/,SKILL.md.claude/worktrees/issue-392-extract-refinement-deterministic-plannerworktree-issue-392-extract-refinement-deterministic-plannerchore(#392): regenerate uv.lock for jsonschema dependency
squne121 commentedon May 25, 2026
impl-review-loop: 完了 (2026-05-25T14:34:49Z)
Verification 結果
主な実装
.claude/skills/issue-refinement-loop/scripts/plan_refinement_loop.py—REFINEMENT_LOOP_PLAN_V1出力 deterministic CLI.claude/skills/issue-refinement-loop/schemas/refinement_loop_plan_v1.json— Draft 2020-12 JSON Schema.claude/skills/issue-refinement-loop/fixtures/— 13 fixture + golden JSON.claude/skills/issue-refinement-loop/tests/— 5 test module(68 tests).claude/skills/issue-refinement-loop/SKILL.md— Step 0f に最小 wiring 追記(thin entrypoint 化は 実装: issue-refinement-loop SKILL.md を thin entrypoint + references 構成へ分割する #393).claude/skills/issue-refinement-loop/references/refinement-loop-plan-output.md— consumer guideuv.lock— jsonschema 依存追加に伴う再生成(CI fix)Responsibility Boundary 遵守
issue_body|comment|known_contextenum 限定(repo file evidence は 実装: gemini-cli-headless-delegation に REPO_EVIDENCE_REF_V1 を追加し file evidence の commit_sha 固定・excerpt_sha256 検証を SSOT 化する #248 / REPO_EVIDENCE_REF_V1 に委譲)次アクション
fix(#392): implement all 9 blockers for deterministic planner — golde…
feat(#392/B5,B9): implement scope_signal_guard and SKILL.md wiring tests
squne121 commentedon May 25, 2026
impl-review-loop: 完了(2 周目)(2026-05-25T15:04:49Z)
2 周目で対応した OWNER REQUEST_CHANGES の 9 blocker
now: iso8601を追加してgenerated_atを deterministic 化unknown_input_schema/unknownで埋める形に変更、Draft202012Validator + FormatCheckerで全 fixture 検証_extract_critical_external_claimsを comments まで走査するよう実装、comment_requests_web_verification.md/known_context_anchor_reframe.mdfixture 追加_detect_scope_signalsでnew_unverifiable_ac/new_allowed_path_layer/new_in_scope_areaを precedence 付きで検出。anchor reframe コンテキストはexcluded_by_anchor_reframe=trueで抑制。known_context.classification ∈ {feedback_update_required, reframe_in_place}を尊重_remove_fenced_codeを適用、Allowed Paths セクションも target_paths 抽出対象に追加official/api/cli/auth/migration) に縮小、documentation/version等を除外、claims を stable sort + dedupe.github/workflows/ci.ymlの python-test job にuv run --locked pytest .claude/skills/issue-refinement-loop/tests/ -qを追加test_skill_md_does_not_repedge_investigation_logicが Step 0f を heading-based slice しtrue_if_any/false_only_if/policy_derivation:等の forbidden fragments を negative assert。SKILL.md Step 0f から旧 prose 真理表を削除し planner 出力 consume の最小 wiring に置換Verification
関連 commit
94cff36fix(実装: issue-refinement-loop の deterministic planner/checker script を抽出する #392): implement all 9 blockers — 1 周目001f581feat(実装: issue-refinement-loop の deterministic planner/checker script を抽出する #392/B5,B9): scope_signal_guard 実装 + SKILL.md wiring 実効テスト — 2 周目次アクション
feat(#392): extract refinement-loop prose planner to deterministic sc…
squne121 commentedon May 25, 2026
PR #407 merged (2026-05-25T21:45:02Z)。post-merge-cleanup により明示的に close。
squne121 commentedon May 25, 2026
post-merge-cleanup: 完了 (2026-05-25T21:45:15Z)