Repository navigation
fix: test_issue_1952回帰テストのrepo_root誤指定による.claude/.claude迷子ディレクトリ生成を修正する - #2072
Merged
Merged
Conversation
…#2071) test_scalar_authority_route_still_writes_runtime_provenance_sidecar が build_provenance()/write_provenance_artifact() に SKILL_ROOT.parent.parent (.claude/ ディレクトリ自体)を repo_root として渡していたため、 .claude/.claude/artifacts/issue-refinement-loop/9951952/ という迷子 ディレクトリを毎回生成し、finally ブロックの cleanup パスとも不一致で 削除されなかった。SKILL_ROOT.parent.parent.parent(真のリポジトリルート) を渡すよう修正し、cleanup 用 artifact_dir も実際の書き込みパスと一致 させた。既存の .claude/.claude/ stray directory は削除済み。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
3 tasks
Contributor
Preview URLPreview removed (PR #2072 closed). |
Owner
Author
PR Review Verdict (impl-review-loop, fresh review)Verdict: APPROVE Confirmed against live state
Warnings(blocker ではない)
verdict: APPROVE
reviewed_head_sha: "488bc8554a6f2d6e5187d0ea374034d19954a14f"
blockers: []P0/P1 blocker 0件・全 required CI green のため |
6 tasks
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.
Summary
Closes #2071(Issue #2071 の単一テスト修正を完了する PR)。
test_scalar_authority_route_still_writes_runtime_provenance_sidecarがbuild_provenance()とwrite_provenance_artifact()に.claude/をrepo_rootとして渡していたため、.claude/.claude/artifacts/issue-refinement-loop/9951952/に迷子ディレクトリが生成され、cleanup と不一致になっていた不具合を修正する。変更内容
repo_rootをSKILL_ROOT.parent.parent.parent(真のリポジトリルート)へ修正artifact_dirを実際の artifact パスに一致させた受け入れ条件の達成状況
690cba79c7d66323cc05fc5c9c777498b814f8b5でrg -n "SKILL_ROOT.parent.parent.parent" .claude/skills/issue-refinement-loop/tests/test_issue_1952_trusted_directive_regression.pyを実行し、3 箇所検出した。uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_issue_1952_trusted_directive_regression.py::test_scalar_authority_route_still_writes_runtime_provenance_sidecar -qを実行し、1 passed。実行後に.claude/.claudeが不存在であることを確認した。uv run --locked pytest .claude/skills/issue-refinement-loop/scripts/tests/test_repair_issue_contract.py::test_new_allowed_path_baseline_fail .claude/skills/issue-refinement-loop/scripts/tests/test_repair_issue_contract.py::test_rg_exit2_new_file -qを実行し、2 passed。さらにuv run --locked pytest .claude/skills/issue-refinement-loop/tests/ .claude/skills/issue-refinement-loop/scripts/tests/ -qを3回連続実行し、各回 exit 0 と実行後の.claude/.claude不存在を確認した。Checks
rg -n "SKILL_ROOT.parent.parent.parent" .claude/skills/issue-refinement-loop/tests/test_issue_1952_trusted_directive_regression.py(3 箇所検出)uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_issue_1952_trusted_directive_regression.py::test_scalar_authority_route_still_writes_runtime_provenance_sidecar -q(1 passed)uv run --locked pytest .claude/skills/issue-refinement-loop/scripts/tests/test_repair_issue_contract.py::test_new_allowed_path_baseline_fail .claude/skills/issue-refinement-loop/scripts/tests/test_repair_issue_contract.py::test_rg_exit2_new_file -q(2 passed)uv run --locked pytest .claude/skills/issue-refinement-loop/tests/ .claude/skills/issue-refinement-loop/scripts/tests/ -q(3 回連続、各回 exit 0)git diff --check origin/main...HEADSchema Change Applicability
not_schema_changeSchema Consumer Inventory
N/A。schema 変更はないため consumer 更新は不要。
Safety Claim Matrix
.claude/.claudeを生成しない。1 passed、full suite 3 回連続 exit 0、各回.claude/.claude不存在検証コマンド結果
690cba79c7d66323cc05fc5c9c777498b814f8b5の required CI:validate-generated-artifact、typecheck、lint、test、buildはすべて成功。Allowed Paths 遵守
.claude/skills/issue-refinement-loop/tests/test_issue_1952_trusted_directive_regression.pyのみであり、Issue 実装: test_issue_1952回帰テストのrepo_root誤指定による.claude/.claude迷子ディレクトリ生成を修正する #2071 の Allowed Paths に一致する。Notes