Repository navigation
docs: align web-researcher retry boundary (#247) - #403
Conversation
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: ○。PR 本文の
## 受け入れ条件の達成状況で AC0-AC5 が root command とともに達成済み - Allowed Paths: 遵守。差分は
.claude/agents/web-researcher.md、.claude/skills/gemini-cli-headless-delegation/SKILL.md、.claude/skills/issue-refinement-loop/SKILL.mdのみ - CI Verification:
typecheck/lint/python-test/test/buildがすべて pass - 検証コマンド結果: issue #247 の 6 本の
rg/sed検証とrtk pnpm typecheck/lint/test/buildが PASS
Blockers
- なし
Non-blockers(任意改善)
- なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: d2c721c503f7e420f941b6f91c3e2de1b7b2080a
follow_up_issue_requests: []
判定: REQUEST_CHANGESPR #403 の方向性は妥当です。#247 の狙いである「 ただし、現状のまま merge すると 契約文書内に矛盾が残るため、既存 APPROVE は覆してよいです。 Blockers1.
|
…split schema_ssot from delegation refs, unify failure_class condition, clarify wrapper retry as governance - issue-refinement-loop/SKILL.md: remove `#203 integration point` HTML comment that contradicted `must_not_store: retry_count`; split `schema_ssot` (web-researcher.md only) from `delegation_contract_refs` (gemini-cli wrapper) so WEB_RESEARCH_RESULT_V1 has a single SSOT - web-researcher.md: allow `failure_class` to be set on `status: inconclusive` (e.g. `grounding_failure`) so Grounding Quality Gate no longer contradicts the schema rule - gemini-cli-headless-delegation/SKILL.md: mark Grounded Research Retry Policy as governance-only and defer wrapper script behavior / attempt metadata fields to `references/usage-contract.md` and `scripts/run_gemini_headless.py` Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
REQUEST_CHANGES 対応報告(commit 63f267d)レビュー(comment 4534715981)の 4 件の Blocker すべてに対応しました。 Blocker 1:
|
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: ○。Issue #247 の AC0-AC5 すべてが達成済み
- AC0:
.claude/skills/issue-refinement-loop/SKILL.mdにStep 1b は WEB_RESEARCH_RESULT_V1 を opaque に扱う境界記載確認 - AC1:
.claude/skills/gemini-cli-headless-delegation/SKILL.mdにGrounded Research Retry Policy記載確認 - AC2:
.claude/agents/web-researcher.mdにGrounding Quality Gate記載確認 - AC3:
.claude/agents/web-researcher.mdにCritical-Claims-Only Direct Fallback記載確認 - AC4:
.claude/agents/web-researcher.mdの WEB_RESEARCH_RESULT_V1 schema にstatus: inconclusive/failure_class: grounding_failure記載確認 - AC5:
.claude/agents/web-researcher.mdにattempts:/unresolved_risks:/ fallback失敗規則記載確認
- AC0:
- Allowed Paths: 遵守。変更ファイルは 3 ファイルのみ(
.claude/agents/web-researcher.md、.claude/skills/gemini-cli-headless-delegation/SKILL.md、.claude/skills/issue-refinement-loop/SKILL.md) - CI Verification: 全 check PASS(typecheck、lint、python-test、test、build)
- 検証コマンド結果: PR 本文に記載の 11 個の検証すべて PASS
Blocker Status(前回 REQUEST_CHANGES 4 件の対応確認)
- ✅
#203 integration point残骸コメント削除:issue-refinement-loop/SKILL.mdline 694 のコメント削除確認 - ✅
schema_ssot二重 SSOT 解消:WEB_RESEARCH_RESULT_V1SSOT を web-researcher.md のみに、gemini-cli-headless-delegation は delegation_contract_refs に分離確認 - ✅
failure_class適用条件統一:status: failed | inconclusiveでgrounding_failure設定可能に統一確認 - ✅ wrapper-level retry を governance のみへ後退:
Grounded Research Retry Policyを governance と明示、実装は references/usage-contract.md へ参照転記確認
Blockers
- なし
Non-blockers(任意改善)
- なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 63f267dda12ec030af689d99914885818f099a7d
follow_up_issue_requests: []
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE. All 4 blockers from previous REQUEST_CHANGES have been addressed.
Verdict: APPROVEMergeability
Evidence Check
Blockers
Non-blockers
LOOP_VERDICTverdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 63f267dda12ec030af689d99914885818f099a7d
follow_up_issue_requests: [] |
Re-review of PR #403 (HEAD=63f267d)SummaryAll 4 blockers from the previous REQUEST_CHANGES (comment 4534715981) have been addressed in commit 63f267d. Issue #247's AC0-AC5 acceptance criteria are all met. CI checks all pass. Allowed Paths are strictly observed (3 files only). This PR is ready for merge. Detailed Blocker Resolution
AC Coverage (Issue #247)
Allowed Paths (Issue #247)Changed files: 3 (all within scope)
CI StatusAll checks PASS:
Merge Assessment
|
* feat: migrate SubAgent-owned contracts to agents and refine I/O schemas * fix: resolve review blockers for PR #416 - Fix broken YAML frontmatter in web-researcher.md - Unify REVIEW_ISSUE_RESULT_V1 field names (verdict, blocking_issues) - Align codebase-investigator evidence schema with REPO_EVIDENCE_REF_V1 - Re-apply critical fix to check_issue_contract.py (scope amended) - Update test_check_issue_contract.py to expect 13 checks - Add scripts/validate_agent_skill_frontmatter.py guard * fix: address final blockers for PR #416 - Unified REVIEW_ISSUE_RESULT_V1 schema (removed final_verdict/blocking_findings) - Aligned CODEBASE_INVESTIGATION_RESULT_V1 with REPO_EVIDENCE_REF_V1 (no redefinition) - Updated inconclusive promotion rule (prohibit authoritative use) - Added failure_class to research attempt log (align with #247) - Removed hidden non-breaking spaces (U+00A0) - Updated test expectations and frontmatter linting * fix: align with Allowed Paths and confirmed schema designs - Remove check_issue_contract.py and rational doc (out of scope) - Align web-researcher.md with #247/PR #403 exactly - Align codebase-investigator.md with #248/PR #406 exactly - Unify issue-reviewer.md to one canonical schema - Correct issue-author.md opaque feedback handling
Summary
WEB_RESEARCH_RESULT_V1の SSOT を.claude/agents/web-researcher.mdに寄せ、status/failure_class/attempts/unresolved_risksを明文化gemini-cli-headless-delegationに wrapper-level の 1 回 retry 境界を追加し、quality gate / direct fallback はweb-researcher側責務に分離issue-refinement-loopをWEB_RESEARCH_RESULT_V1の opaque consumer に縮退し、retry state を保持しない境界を追記受け入れ条件の達成状況
.claude/skills/issue-refinement-loop/SKILL.mdにStep 1b は WEB_RESEARCH_RESULT_V1 を opaque に扱う境界を追加sed -n '720,730p' .claude/skills/issue-refinement-loop/SKILL.md.claude/skills/gemini-cli-headless-delegation/SKILL.mdにGrounded Research Retry Policyを追加rg -n "Grounded Research Retry Policy|transient CLI failure|credential mutation なし" .claude/skills/gemini-cli-headless-delegation/SKILL.md.claude/agents/web-researcher.mdにGrounding Quality Gateと判定条件を追加rg -n "Grounding Quality Gate|citation_count|evidence_count|claim coverage|topic drift" .claude/agents/web-researcher.md.claude/agents/web-researcher.mdにCritical-Claims-Only Direct Fallbackを追加rg -n "Critical-Claims-Only Direct Fallback|fallback は critical claims のみを対象にする" .claude/agents/web-researcher.mdWEB_RESEARCH_RESULT_V1にinconclusive/grounding_failureを含む schema を追加rg -n "status: ok \| inconclusive \| failed \| insufficient_context|failure_class: null \| auth_error \| capability_unavailable \| query_error \| grounding_failure|verdict: supported \| contradicted \| inconclusive" .claude/agents/web-researcher.mdattempts:/unresolved_risks:と fallback failure 規則を追加rg -n "attempts:|unresolved_risks:|fallback failed critical claims remain in unresolved_risks" .claude/agents/web-researcher.md検証コマンド結果
sed -n '720,730p' .claude/skills/issue-refinement-loop/SKILL.mdrg -n "Grounded Research Retry Policy|transient CLI failure|credential mutation なし" .claude/skills/gemini-cli-headless-delegation/SKILL.mdrg -n "Grounding Quality Gate|citation_count|evidence_count|claim coverage|topic drift" .claude/agents/web-researcher.mdrg -n "Critical-Claims-Only Direct Fallback|fallback は critical claims のみを対象にする" .claude/agents/web-researcher.mdrg -n "status: ok \| inconclusive \| failed \| insufficient_context|failure_class: null \| auth_error \| capability_unavailable \| query_error \| grounding_failure|verdict: supported \| contradicted \| inconclusive" .claude/agents/web-researcher.mdrg -n "attempts:|unresolved_risks:|fallback failed critical claims remain in unresolved_risks" .claude/agents/web-researcher.mdrtk pnpm typecheckrtk pnpm lintrtk pnpm testrtk pnpm buildAllowed Paths 遵守
.claude/agents/web-researcher.md.claude/skills/gemini-cli-headless-delegation/SKILL.md.claude/skills/issue-refinement-loop/SKILL.mdChecks
pnpm typecheckpnpm lintpnpm testpnpm buildSchema Change Applicability
schema_changeWEB_RESEARCH_RESULT_V1の producer-consumer contract と wrapper retry policy の consumer 境界を変更したためSchema Consumer Inventory
変更対象 schema:
WEB_RESEARCH_RESULT_V1before/after 差分:
Consumer 列挙(rg コマンド例と結果):
$ rg -l "WEB_RESEARCH_RESULT_V1|failure_class|verification_route|unresolved_risks|claim_id|grounding_failure" .claude docs .github .claude/agents/web-researcher.md .claude/skills/gemini-cli-headless-delegation/SKILL.md .claude/skills/issue-refinement-loop/SKILL.mdConsumer 更新状況:
.claude/agents/web-researcher.md.claude/skills/issue-refinement-loop/SKILL.mdinsufficient_contextrouting を追記.claude/skills/gemini-cli-headless-delegation/SKILL.mdCompatibility Decision
additivebackward_compatiblenoN/Aweb-researcherSSOT 参照に寄せる追加・明確化であり、既存 route 名や top-level key を削除していないためSafety Claim Matrix
auth_error/ transient CLI failure に限定し 1 回だけ実行するrg結果、rtk pnpm lintissue-refinement-loopは retry state を保持せずWEB_RESEARCH_RESULT_V1の consumer に留まるsed結果、AC0/AC4 の schema 整合web-researcher側に閉じるrg結果Notes
Closes #247