Skip to content

chore(ci): remove python-test pnpm bootstrap - #1121

Merged
squne121 merged 7 commits into
mainfrom
worktree-issue-1061-python-test-pnpm
Jun 22, 2026
Merged

squne121 merged 7 commits into
mainfrom
worktree-issue-1061-python-test-pnpm

Conversation

@squne121

@squne121 squne121 commented Jun 21, 2026 •

Copy link
Copy Markdown
Owner

概要

  • この本文更新は reviewer 指摘に対する機械的な修正であり、現 head d61f1df375f3a0f77ab0e0b583382acae8ba2888 の証跡へ同期した。
  • Issue 実装: python-test lane から Node-backed hook tests を分離する #1123 の契約に合わせて、python-test から Node-backed hook tests 2 nodeid を --deselect=<exact nodeid> で除外し、node-backed-hook-tests job へ分離した。
  • ci_test_selection_summary_v1.json を追加し、python-test 側 absent、node-backed 側 exactly 2、union-disjointness を機械検証するようにした。
  • reviewer 向け artifact は upload 前 test -s と if-no-files-found: error で silent-fail しない構成へ強化した。

受け入れ条件の達成状況

  • AC1-AC4: python-test は Node/pnpm bootstrap を戻さず、Node-backed 2 nodeid を exact nodeid deselect し、node-backed-hook-tests で継続実行する。
  • AC5-AC8: docs/dev/test-lane-policy.md、.claude/skills/ci-test-performance/SKILL.md、docs/dev/ci-performance.md、ci_test_selection/v1 の split evidence 運用を変更後の状態へ同期した。
  • AC9-AC12: pnpm typecheck / pnpm lint / pnpm test / pnpm build はローカルで成功した。
  • AC13: 現 head d61f1df375f3a0f77ab0e0b583382acae8ba2888 で required checks は Passed: 14, Failed: 0 だった。
  • AC14: BLOCKER_DECISION_V1 / CI_TEST_PERFORMANCE_DECISION_V1 / TEST_VERDICT_MACHINE_V1 は現 head evidence comment に記録済み。

確認項目

  • pnpm typecheck
  • pnpm lint
  • pnpm test
  • pnpm build
  • rtk gh pr checks 1121 --repo squne121/loop-protocol

検証コマンド結果

  • uv run --locked pytest .claude/hooks/tests/ -q --ignore=.claude/hooks/tests/test_secret_boundary_contract.py --deselect=.claude/hooks/tests/test_generate_session_manifest_from_hook.py::test_wrapper_stdout_is_silent_and_artifact_path_is_overridable --deselect=.claude/hooks/tests/test_generate_session_manifest_from_hook.py::test_wrapper_stderr_redacts_posix_windows_and_wsl_paths → 751/753 tests collected (2 deselected)
  • uv run --locked pytest --collect-only -q .claude/hooks/tests/test_generate_session_manifest_from_hook.py::test_wrapper_stdout_is_silent_and_artifact_path_is_overridable .claude/hooks/tests/test_generate_session_manifest_from_hook.py::test_wrapper_stderr_redacts_posix_windows_and_wsl_paths → 2 tests collected
  • pnpm typecheck → pass
  • pnpm lint → pass
  • pnpm test → pass
  • pnpm build → pass
  • rtk gh pr checks 1121 --repo squne121/loop-protocol → Passed: 14, Failed: 0

Allowed Paths 遵守

  • 変更ファイルは .github/workflows/ci.yml、docs/dev/ci-performance.md、docs/dev/test-lane-policy.md、.claude/skills/ci-test-performance/SKILL.md の 4 ファイルのみ。
  • .claude/hooks/**、scripts/**、package.json、pnpm-lock.yaml など Allowed Paths 外は未編集。

Schema Change Applicability

  • decision: not_schema_change
  • reason: workflow と docs / skill の更新のみで、schema や machine-readable contract 自体は変更していない。

Schema Consumer Inventory

  • この変更は schema 非変更のため、consumer inventory の追加更新は不要。
  • reason: schema を変更しないため inventory は不要。

補足

@github-actions

github-actions Bot commented Jun 21, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #1121 closed).

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST_CHANGES

Mergeability

  • mergeable=MERGEABLE, merge_state_status=BEHIND

Evidence Check

  • Allowed Paths: OK(変更は .github/workflows/ci.yml / docs/dev/ci-performance.md / docs/dev/test-lane-policy.md / .claude/skills/ci-test-performance/SKILL.md のみで、#1061 contract 内)
  • CI Verification: ci_verdict_summary.py が reviewed head 1381f657d81e0d3e02e789cd9182d1c109f80648 で python-test failure を返却
  • TEST_VERDICT_MACHINE: PR body / issue comment / PR review comment 上に machine-readable evidence が見当たらず、PR self-report 単独のため approve 不可
  • CI_TEST_PERFORMANCE_DECISION_V1: PR body に記録あり。ただし reviewer_gate で要求された CI 証跡のうち TEST_VERDICT_MACHINE が未充足

Blockers

  • python-test required check が失敗しています。failed step は pytest hook tests (timed) で、.claude/hooks/tests/test_generate_session_manifest_from_hook.py:63 の private-agent-session-manifest-stop-*.json 未生成 assertion が落ちています。
  • TEST_VERDICT_MACHINE が reviewed head に紐づく形で確認できません。PR body の自己申告のみでは evidence policy 上 APPROVE できません。

Non-blockers

  • PR は MERGEABLE ですが BEHIND のため、blocker 解消後も update branch が必要です。
  • Draft 状態自体は blocker ではありません。

LOOP_VERDICT_V2

verdict: REQUEST_CHANGES
reviewed_head_sha: "1381f657d81e0d3e02e789cd9182d1c109f80648"
merge_ready: false
mergeability:
  mergeable: MERGEABLE
  merge_state_status: BEHIND
blockers:
  - "required CI check `python-test` failed at reviewed head 1381f657d81e0d3e02e789cd9182d1c109f80648; failing step `pytest hook tests (timed)` ended with assertion failure in .claude/hooks/tests/test_generate_session_manifest_from_hook.py:63"
  - "TEST_VERDICT_MACHINE evidence is missing for reviewed head 1381f657d81e0d3e02e789cd9182d1c109f80648; PR body self-report alone is insufficient under PR_REVIEW_JUDGE_VC_EVIDENCE_POLICY"
required_auto_actions:
  - kind: update_pr_body_hygiene
    executor: implementation-worker
    skill: open-pr.update_pr
    blocking_merge_ready: true
    mechanical: true
  - kind: update_branch
    executor: implementation-worker
    skill: implement-issue.update_branch
    blocking_merge_ready: true
    mechanical: true
    expected_head_sha: "1381f657d81e0d3e02e789cd9182d1c109f80648"
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent

Copy link
Copy Markdown
Owner Author

TEST_VERDICT_MACHINE v1

TEST_VERDICT_MACHINE_V1:
  issue_number: 1061
  pr_number: 1121
  pr_head_sha: 1381f657d81e0d3e02e789cd9182d1c109f80648
  mergeable: MERGEABLE
  merge_state_status: BEHIND
  verdict: FAIL
  failure_classification: diff
  note: python-test failed in CI on .claude/hooks/tests/test_generate_session_manifest_from_hook.py::test_wrapper_stdout_is_silent_and_artifact_path_is_overridable after pnpm bootstrap removal. Local pnpm typecheck/lint/test/build passed.
  ac_results:
    AC1: PASS
    AC2: PASS
    AC3: PASS
    AC4: PASS
    AC5: PASS
    AC6: PASS
    AC7: PASS
    AC8: PASS
    AC9: PASS
    AC10: PASS
    AC11: PASS
  github_check_runs:
    typecheck: SUCCESS
    lint: SUCCESS
    test: SUCCESS
    build: SUCCESS
    e2e: SUCCESS
    python-test: FAILURE
    actionlint: SUCCESS
  baseline:
    ci_runtime_baseline_v1_available: false
    classification: baseline_only_not_applicable

@squne121

Copy link
Copy Markdown
Owner Author

Issue #1123 evidence

BLOCKER_DECISION_V1:
  schema: BLOCKER_DECISION_V1
  issue_number: 1123
  related_pr_number: 1121
  pr_head_sha: 3a36b4a0c9fe9b1595c29dcb35a74f881485adbf
  decision: resolved_in_follow_up
  blocker:
    check: python-test
    prior_failure_nodeid: .claude/hooks/tests/test_generate_session_manifest_from_hook.py::test_wrapper_stdout_is_silent_and_artifact_path_is_overridable
    root_cause: python-test fresh runner executed Node-backed hook tests without Node/pnpm dependencies
  resolution:
    dedicated_lane: node-backed-hook-tests
    python_test_keeps_python_only_hooks: true
  allowed_paths_only: true
CI_TEST_PERFORMANCE_DECISION_V1:
  schema: CI_TEST_PERFORMANCE_DECISION_V1
  issue_number: 1123
  pr_number: 1121
  decision_scope: ci_change
  changed_paths:
    - .github/workflows/ci.yml
    - docs/dev/ci-performance.md
    - docs/dev/test-lane-policy.md
    - .claude/skills/ci-test-performance/SKILL.md
  artifact_consistency:
    ci_test_selection_v1_checked: true
    missing_pytest_args:
      - schemas/tests/
  reviewer_gate:
    approve_allowed: true
    required_evidence:
      - TEST_VERDICT_MACHINE
      - CI_CHECK_RUN_SCOPED
  follow_up_required:
    - '#1064 で schemas/tests/ を ci_test_selection/v1 に追加する'
TEST_VERDICT_MACHINE_V1:
  issue_number: 1123
  pr_number: 1121
  pr_head_sha: 3a36b4a0c9fe9b1595c29dcb35a74f881485adbf
  mergeable: MERGEABLE
  merge_state_status: BEHIND
  verdict: PASS_PENDING_UPDATE_BRANCH
  failure_classification: none
  note: GitHub required checks passed on current head; update_branch is still required because mergeStateStatus is BEHIND.

@squne121

Copy link
Copy Markdown
Owner Author
TEST_VERDICT_MACHINE_V1:
  issue_number: 1123
  pr_number: 1121
  pr_head_sha: 96068bdf374981e77e0e246d3ef7a91cf5999733
  mergeable: MERGEABLE
  merge_state_status: CLEAN
  verdict: PASS
  failure_classification: none
  note: update_branch 後の required checks がすべて PASS し、mergeStateStatus も CLEAN へ遷移した。
  github_check_runs:
    typecheck: SUCCESS
    lint: SUCCESS
    test: SUCCESS
    build: SUCCESS
    e2e: SUCCESS
    python-test: SUCCESS
    node-backed-hook-tests: SUCCESS
    actionlint: SUCCESS
    ci-verdict-summary: SUCCESS

@squne121

Copy link
Copy Markdown
Owner Author

TEST_VERDICT_MACHINE_V1: issue_number=1123 pr_number=1121 pr_head_sha=3a36b4a0c9fe9b1595c29dcb35a74f881485adbf mergeable=MERGEABLE merge_state_status=BEHIND verdict=PASS failure_classification=none ac_results=AC1:PASS,AC2:PASS,AC3:PASS,AC4:PASS,AC5:PASS,AC6:PASS,AC7:PASS,AC8:PASS,AC9:PASS,AC10:PASS,AC11:PASS,AC12:PASS,AC13:PASS,AC14:PASS

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOOP_VERDICT_V2

verdict: REQUEST_CHANGES
reviewed_head_sha: "96068bdf374981e77e0e246d3ef7a91cf5999733"
merge_ready: false
mergeability:
  mergeable: "MERGEABLE"
  merge_state_status: "CLEAN"
blockers:
  - "PR body still closes #1061 and cites the Issue #1061 contract snapshot, so the linked implementation issue #1123 is not represented as the canonical closing target for this PR."
  - "Required PR sections for Issue #1123 are missing: `## 受け入れ条件の達成状況`, `## 検証コマンド結果`, and `## Allowed Paths 遵守`. Current-head TEST_VERDICT/CI evidence exists, but AC coverage is not recorded in the canonical PR-body shape."
required_auto_actions:
  - kind: ensure_closing_keyword
    executor: implementation-worker
    skill: open-pr.update_pr
    blocking_merge_ready: true
    mechanical: true
  - kind: update_pr_body_hygiene
    executor: implementation-worker
    skill: open-pr.update_pr
    blocking_merge_ready: true
    mechanical: true
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOOP_VERDICT_V2

verdict: REQUEST_CHANGES
reviewed_head_sha: "96068bdf374981e77e0e246d3ef7a91cf5999733"
merge_ready: false
mergeability:
  mergeable: "MERGEABLE"
  merge_state_status: "UNSTABLE"
blockers:
  - "PR body still closes #1061 and cites the Issue #1061 contract snapshot, so the linked implementation issue #1123 is not represented as the canonical closing target for this PR."
  - "Required PR sections for Issue #1123 are missing: `## 受け入れ条件の達成状況`, `## 検証コマンド結果`, and `## Allowed Paths 遵守`. Current-head TEST_VERDICT/CI evidence exists, but AC coverage is not recorded in the canonical PR-body shape."
required_auto_actions:
  - kind: ensure_closing_keyword
    executor: implementation-worker
    skill: open-pr.update_pr
    blocking_merge_ready: true
    mechanical: true
  - kind: update_pr_body_hygiene
    executor: implementation-worker
    skill: open-pr.update_pr
    blocking_merge_ready: true
    mechanical: true
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Mergeability

  • mergeable=MERGEABLE, merge_state_status=CLEAN

Evidence Check

  • AC coverage: Issue #1123 の AC1-AC14 は PR body の ## 受け入れ条件の達成状況 と ## 検証コマンド結果 で current head 96068bdf374981e77e0e246d3ef7a91cf5999733 に紐づく根拠付きで記録されている。
  • Allowed Paths: changed files は .github/workflows/ci.yml / docs/dev/ci-performance.md / docs/dev/test-lane-policy.md / .claude/skills/ci-test-performance/SKILL.md の 4 件のみで、Issue #1123 の Allowed Paths 内。
  • CI Verification: current-head TEST_VERDICT_MACHINE_V1 comment が mergeable=MERGEABLE, merge_state_status=CLEAN, required checks success を記録している。GitHub live check-runs でも typecheck / lint / test / build / e2e / python-test / node-backed-hook-tests / actionlint / ci-verdict-summary / PR Body Japanese Check は current head で success。
  • CI_TEST_PERFORMANCE_DECISION_V1: evidence comment に存在し、changed paths・artifact consistency・reviewer gate が current head review と矛盾しない。

Blockers

  • なし

Non-blockers

  • Draft 状態自体は blocker ではない。merge_ready は review contract 上の終端条件として true と判定するが、実際の merge には human 側で draft 解除が必要。
  • ci_verdict_summary.py は head に紐づく過去の一時失敗 PR Body Japanese Check を拾って false negative になっていたため、current-head TEST_VERDICT と commit check-runs を正本として判定した。

LOOP_VERDICT_V2

verdict: APPROVE
reviewed_head_sha: "96068bdf374981e77e0e246d3ef7a91cf5999733"
merge_ready: true
mergeability:
  mergeable: "MERGEABLE"
  merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent

@squne121

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST_CHANGES

PR #1121 は 現時点では merge-ready ではありません。実装方針は概ね正しいですが、PR 本文と証跡が 96068bdf... を「現 head」として扱っている一方、GitHub API 上の現在の PR head は aa4808739132beb73fc136c1cc1e767ea7787701 です。PR はまだ draft でもあります。 さらに、私が確認した範囲ではこの current head に紐づく PR-triggered workflow run は取得できませんでした。
したがって、96068bdf... の CI PASS / TEST_VERDICT_MACHINE_V1 は 現 head の証跡としては無効です。

実装方針の評価

方向性は妥当です。#1123 の目的どおり、python-test から Node/pnpm bootstrap を戻さず、Node-backed hook tests だけを分離しています。python-test は setup-python-uv / uv python install / uv sync のみで立ち上がり、Node-backed 2 test は -k not (...) で除外されています。

新設された node-backed-hook-tests job も、setup-node-pnpm、setup-python-uv、pnpm install --frozen-lockfile、uv sync の後に対象 2 nodeid だけを実行しており、設計としては #1123 の AC4 に合っています。 ci-verdict-summary の needs と NEEDS_JSON にも node-backed-hook-tests が追加されています。

外部仕様との照合でも、この分離は正当化できます。GitHub-hosted runner は job を実行するマシンで、通常は job ごとに新しい VM です。actions/setup-node の cache は package manager の global package data 用であり、node_modules は cache しません。つまり Node-backed job では pnpm install --frozen-lockfile を明示する必要があります。([GitHub Docs]1) ([GitHub]2)

Blockers

1. current head 証跡が stale

PR body は 96068bdf... を current head として required checks pass を主張していますが、現在の PR head は aa480873... です。 これは AC13 / AC14 の根拠として致命的です。

修正: aa480873... で CI を再実行し、PR body と PR comment の TEST_VERDICT_MACHINE_V1 / CI_TEST_PERFORMANCE_DECISION_V1 / BLOCKER_DECISION_V1 を current head に更新してください。その後 draft を外すべきです。

2. ci_test_selection/v1 の evidence が分断されている

python-test 側は ci_test_selection artifact を upload し、Node-backed 側は ci_test_selection_node_backed_hook_tests artifact を別名で upload しています。 これ自体は動作しますが、既存の reviewer / judge が単一の ci_test_selection だけを見る設計なら、「Node-backed 2 nodeid が消えた」ように見える危険があります。

修正: 追加の inline Python check で次を機械検証してください。

- python-test collect-only に Node-backed 2 nodeid が含まれない
- node-backed-hook-tests collect-only が exactly 2 nodeid
- 両 artifact の union が意図した coverage と一致

可能なら ci_test_selection_summary_v1.json のような統合 summary artifact も出してください。

3. 証跡 artifact upload が silent-fail し得る

actions/upload-artifact の if-no-files-found: ignore は「警告もエラーも出さず action は fail しない」挙動です。([GitHub]3) 今回の artifact は reviewer gate の証跡なので、ignore は弱いです。

修正: ci_test_selection / ci_verdict_summary 系の証跡 artifact は、少なくとも test -s <file> を upload 前に入れるか、if-no-files-found: error にしてください。

Non-blocking but should fix

-k not (...) より --deselect=<exact nodeid> が安全

pytest の -k は keyword expression で、ファイル名・クラス名・関数名などにマッチします。([pytest ドキュメント]4) 今回のように 2 nodeid を契約で固定するなら、pytest が提供する --deselect=NODEID_PREFIX の方が意図を正確に表現できます。([pytest ドキュメント]5)

推奨形:

uv run --locked pytest .claude/hooks/tests/ -q \
  --ignore=.claude/hooks/tests/test_secret_boundary_contract.py \
  --deselect=.claude/hooks/tests/test_generate_session_manifest_from_hook.py::test_wrapper_stdout_is_silent_and_artifact_path_is_overridable \
  --deselect=.claude/hooks/tests/test_generate_session_manifest_from_hook.py::test_wrapper_stderr_redacts_posix_windows_and_wsl_paths

branch 名と canonical closing target がズレている

PR branch は worktree-issue-1061-python-test-pnpm のままですが、PR body は #1123 を canonical closing target としています。 hook wrapper は payload に issue がない場合、branch / cwd から issue-<N> を解決する設計です。
現状でも PR comment が明示的に #1123 を指していれば実害は限定的ですが、artifact / manifest 系の自動証跡では #1061 に寄る可能性があります。

修正: branch を rename するか、#1123 が canonical target である理由を evidence comment に明記し、manifest 生成系には明示 issue_number: 1123 を渡す方が安全です。

Root cause 確認

元 blocker の原因分析は正しいです。対象 test は Node wrapper を起動して artifact 生成を期待しています。 wrapper は producer failure でも best-effort で exit 0 にするため、Node dependency 不足は return code ではなく artifact 未生成として表面化します。 producer 側 validator は ajv/dist/2020.js と ajv-formats を import し、失敗時に process exit します。 依存自体は package.json devDependencies にあるため、Node-backed job で pnpm install --frozen-lockfile を実行する設計が妥当です。

最終判断

この PR は 実装自体は概ね正しいが、証跡が current head に追従していないため REQUEST_CHANGES です。

最小修正は次です。

  1. current head aa480873... で CI を再実行。
  2. PR body の Current PR head、AC13、検証結果、証跡リンクを current head に更新。
  3. TEST_VERDICT_MACHINE_V1 / CI_TEST_PERFORMANCE_DECISION_V1 を current head で再投稿。
  4. ci_test_selection の split evidence に union/disjointness check を追加。
  5. 証跡 artifact の if-no-files-found: ignore をやめる、または upload 前に存在確認を入れる。
  6. CI green 後に draft を外す。

Copy link
Copy Markdown
Owner Author

Issue #1123 evidence (current head)

BLOCKER_DECISION_V1:
  schema: BLOCKER_DECISION_V1
  issue_number: 1123
  related_pr_number: 1121
  pr_head_sha: bfae0e8bb92cebbfe3e50c9ccd2d05ec556a8963
  decision: resolved_in_follow_up
  blocker:
    check: python-test
    prior_failure_nodeid: .claude/hooks/tests/test_generate_session_manifest_from_hook.py::test_wrapper_stdout_is_silent_and_artifact_path_is_overridable
    root_cause: python-test fresh runner executed Node-backed hook tests without Node/pnpm dependencies
  resolution:
    dedicated_lane: node-backed-hook-tests
    python_test_keeps_python_only_hooks: true
    python_test_deselect_mode: exact_nodeid
    ci_test_selection_summary_artifact: ci_test_selection_summary_v1.json
  allowed_paths_only: true
CI_TEST_PERFORMANCE_DECISION_V1:
  schema: CI_TEST_PERFORMANCE_DECISION_V1
  issue_number: 1123
  pr_number: 1121
  decision_scope: ci_change
  changed_paths:
    - .github/workflows/ci.yml
    - docs/dev/ci-performance.md
    - docs/dev/test-lane-policy.md
    - .claude/skills/ci-test-performance/SKILL.md
  lane_classification:
    fast_static:
      applicable: true
    python_unit:
      applicable: true
    contract_artifact:
      applicable: true
    integration:
      applicable: true
  artifact_consistency:
    ci_test_selection_v1_checked: true
    python_test_node_backed_nodeids_absent: true
    node_backed_collect_only_exactly_two: true
    union_disjointness_verified: true
    summary_artifact: ci_test_selection_summary_v1.json
    missing_pytest_args:
      - schemas/tests/
  risk_flags:
    - schemas/tests/ is still missing from ci_test_selection/v1 and remains tracked by #1064
  reviewer_gate:
    approve_allowed: true
    required_evidence:
      - TEST_VERDICT_MACHINE
      - CI_CHECK_RUN_SCOPED
  follow_up_required:
    - '#1064 で schemas/tests/ を ci_test_selection/v1 に追加する'
TEST_VERDICT_MACHINE_V1:
  issue_number: 1123
  pr_number: 1121
  pr_head_sha: bfae0e8bb92cebbfe3e50c9ccd2d05ec556a8963
  mergeable: MERGEABLE
  merge_state_status: CLEAN
  verdict: PASS
  failure_classification: none
  note: current head で required checks がすべて成功し、split ci_test_selection evidence と artifact fail-close も反映された。
  github_check_runs:
    typecheck: SUCCESS
    lint: SUCCESS
    test: SUCCESS
    build: SUCCESS
    e2e: SUCCESS
    python-test: SUCCESS
    node-backed-hook-tests: SUCCESS
    actionlint: SUCCESS
    ci-verdict-summary: SUCCESS

@squne121

Copy link
Copy Markdown
Owner Author

TEST_VERDICT_MACHINE_V1: issue_number=1123 pr_number=1121 pr_head_sha=bfae0e8bb92cebbfe3e50c9ccd2d05ec556a8963 mergeable=MERGEABLE merge_state_status=CLEAN verdict=PASS failure_classification=none ac_results=AC1:PASS,AC2:PASS,AC3:PASS,AC4:PASS,AC5:PASS,AC6:PASS,AC7:PASS,AC8:PASS,AC9:PASS,AC10:PASS,AC11:PASS,AC12:PASS,AC13:PASS,AC14:PASS verification=python_test_hook_tests_collect_only:PASS,python_test_nodeid_collect_only:PASS,pnpm_typecheck:PASS,pnpm_lint:PASS,pnpm_test:PASS,pnpm_build:PASS,gh_pr_checks:PASS

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST_CHANGES

Mergeability

  • mergeable=MERGEABLE, merge_state_status=BLOCKED

Evidence Check

  • AC coverage: Issue #1123 / PR #1121 の本文自体は AC と Allowed Paths を満たす形で整理されているが、current PR head との整合が崩れている。
  • Allowed Paths: gh pr view 1121 --json files では変更ファイルは .github/workflows/ci.yml、docs/dev/ci-performance.md、docs/dev/test-lane-policy.md、.claude/skills/ci-test-performance/SKILL.md の 4 件のみで contract 内。
  • CI Verification: ci_verdict_summary.py を --expected-head-sha bfae0e8bb92cebbfe3e50c9ccd2d05ec556a8963 で確認した結果、current head は d61f1df375f3a0f77ab0e0b583382acae8ba2888 と判定され、status=stale_head_sha。同 head の checks も 2026-06-21 23:49Z 時点で python-test / node-backed-hook-tests / typecheck / test / build / lint / e2e / deploy-pr が進行中。
  • 検証コマンド結果: current-head TEST_VERDICT_MACHINE / CI evidence が未更新のため、APPROVE 条件を満たさない。

Blockers

  • 2026-06-21 23:48:57Z の merge commit により PR head が d61f1df375f3a0f77ab0e0b583382acae8ba2888 へ更新された。PR body、#issuecomment-4763645037、#issuecomment-4763666064 はいずれも旧 head bfae0e8bb92cebbfe3e50c9ccd2d05ec556a8963 を参照しており stale。
  • current head d61f1df375f3a0f77ab0e0b583382acae8ba2888 の required checks は未完了で、ci_verdict_summary.py は pending/stale refresh が必要と示している。

Non-blockers

  • Draft 状態そのものは blocker ではないが、この review では stale evidence と pending checks が解消するまで merge_ready は false。

LOOP_VERDICT_V2

verdict: REQUEST_CHANGES
reviewed_head_sha: "d61f1df375f3a0f77ab0e0b583382acae8ba2888"
merge_ready: false
mergeability:
  mergeable: "MERGEABLE"
  merge_state_status: "BLOCKED"
blockers:
  - "Current PR head changed to d61f1df375f3a0f77ab0e0b583382acae8ba2888 on 2026-06-21T23:48:57Z, but PR body and current evidence comments still bind to bfae0e8bb92cebbfe3e50c9ccd2d05ec556a8963."
  - "Current-head CI evidence is incomplete: ci_verdict_summary.py reports stale_head_sha for expected bfae0e8..., and the d61f1df... check suite is still pending."
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent

@squne121

Copy link
Copy Markdown
Owner Author

Issue #1123 evidence (current head)

BLOCKER_DECISION_V1:
  schema: BLOCKER_DECISION_V1
  issue_number: 1123
  related_pr_number: 1121
  pr_head_sha: d61f1df375f3a0f77ab0e0b583382acae8ba2888
  decision: resolved_in_follow_up
  blocker:
    check: python-test
    prior_failure_nodeid: .claude/hooks/tests/test_generate_session_manifest_from_hook.py::test_wrapper_stdout_is_silent_and_artifact_path_is_overridable
    root_cause: python-test fresh runner executed Node-backed hook tests without Node/pnpm dependencies
  resolution:
    dedicated_lane: node-backed-hook-tests
    python_test_keeps_python_only_hooks: true
    python_test_deselect_mode: exact_nodeid
    ci_test_selection_summary_artifact: ci_test_selection_summary_v1.json
  allowed_paths_only: true
CI_TEST_PERFORMANCE_DECISION_V1:
  schema: CI_TEST_PERFORMANCE_DECISION_V1
  issue_number: 1123
  pr_number: 1121
  pr_head_sha: d61f1df375f3a0f77ab0e0b583382acae8ba2888
  decision_scope: ci_change
  changed_paths:
    - .github/workflows/ci.yml
    - docs/dev/ci-performance.md
    - docs/dev/test-lane-policy.md
    - .claude/skills/ci-test-performance/SKILL.md
  lane_classification:
    fast_static:
      applicable: true
      evidence:
        - rtk gh pr checks 1121 --repo squne121/loop-protocol => Passed: 14, Failed: 0
      required_commands: []
    python_unit:
      applicable: true
      evidence:
        - python-test SUCCESS on current head
      required_commands: []
    contract_artifact:
      applicable: true
      evidence:
        - ci_test_selection_summary_v1.json confirms split coverage
      required_commands: []
    integration:
      applicable: true
      evidence:
        - deploy-pr SUCCESS on current head
      required_commands: []
  baseline_inputs:
    ci_runtime_baseline_v1_available: false
    run_count: 0
    p50_p95_ready: false
  artifact_consistency:
    ci_test_selection_v1_checked: true
    python_test_node_backed_nodeids_absent: true
    node_backed_collect_only_exactly_two: true
    union_disjointness_verified: true
    summary_artifact: ci_test_selection_summary_v1.json
    missing_pytest_args:
      - schemas/tests/
  risk_flags:
    - schemas/tests/ is still missing from ci_test_selection/v1 and remains tracked by #1064
  reviewer_gate:
    approve_allowed: true
    required_evidence:
      - TEST_VERDICT_MACHINE
      - CI_CHECK_RUN_SCOPED
  follow_up_required:
    - '#1064 で schemas/tests/ を ci_test_selection/v1 に追加する'
TEST_VERDICT_MACHINE_V1:
  issue_number: 1123
  pr_number: 1121
  pr_head_sha: d61f1df375f3a0f77ab0e0b583382acae8ba2888
  mergeable: MERGEABLE
  merge_state_status: CLEAN
  verdict: PASS
  failure_classification: none
  note: current head で required checks が Passed: 14, Failed: 0 となり、split ci_test_selection evidence と artifact fail-close も反映された。
  github_check_runs:
    check-hook-integrity: SUCCESS
    validate-generated-artifact: SUCCESS
    PR Body Japanese Check: SUCCESS
    PR Review Japanese Check (retrospective): SUCCESS
    typecheck: SUCCESS
    lint: SUCCESS
    test: SUCCESS
    build: SUCCESS
    e2e: SUCCESS
    python-test: SUCCESS
    node-backed-hook-tests: SUCCESS
    actionlint: SUCCESS
    ci-verdict-summary: SUCCESS
    deploy-pr: SUCCESS
  github_check_summary:
    passed: 14
    failed: 0

Copy link
Copy Markdown
Owner Author

TEST_VERDICT_MACHINE v1

TEST_VERDICT_MACHINE_V1:
  issue_number: 1123
  pr_number: 1121
  pr_head_sha: d61f1df375f3a0f77ab0e0b583382acae8ba2888
  mergeable: MERGEABLE
  merge_state_status: CLEAN
  verdict: PASS
  failure_classification: none
  ac_results:
    AC1: PASS
    AC2: PASS
    AC3: PASS
    AC4: PASS
    AC5: PASS
    AC6: PASS
    AC7: PASS
    AC8: PASS
    AC9: PASS
    AC10: PASS
    AC11: PASS
    AC12: PASS
    AC13: PASS
    AC14: PASS
  verification:
    python_test_hook_deselection: PASS
    node_backed_hook_tests_collect_only: PASS
    pnpm_typecheck: PASS
    pnpm_lint: PASS
    pnpm_test: PASS
    pnpm_build: PASS
    gh_pr_checks: PASS
  github_check_summary:
    passed: 14
    failed: 0

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Mergeability

  • mergeable=MERGEABLE, merge_state_status=CLEAN

Evidence Check

  • AC coverage: PR 本文の AC1-AC14 自己申告は current-head TEST_VERDICT_MACHINE_V1(d61f1df375f3a0f77ab0e0b583382acae8ba2888)と整合しており、AC1-AC14 はすべて PASS。
  • Allowed Paths: ALLOWED_PATHS_GATE_RESULT_V1.status=ok。変更ファイル 4 件(.github/workflows/ci.yml、docs/dev/ci-performance.md、docs/dev/test-lane-policy.md、.claude/skills/ci-test-performance/SKILL.md)はいずれも Issue #1123 contract snapshot の Allowed Paths 内。
  • CI Verification: current-head evidence comment に BLOCKER_DECISION_V1 と CI_TEST_PERFORMANCE_DECISION_V1 があり、current-head TEST_VERDICT_MACHINE_V1 は verdict: PASS、github_check_summary: passed=14 failed=0。
  • 検証コマンド結果: pnpm typecheck / pnpm lint / pnpm test / pnpm build は pass。python-test 側 deselect と node-backed-hook-tests 側 collect-only 2 nodeid の split evidence も current-head 証跡で確認済み。

Blockers

  • なし

Non-blockers

  • Draft PR だが review blocker ではない。merge_ready 判定は current head の mergeability / blockers / required_auto_actions に基づき true。
  • ci_verdict_summary.py は historical skipped check を fail 寄りに集計したため補助証拠としては不採用。current-head TEST_VERDICT_MACHINE_V1 と live statusCheckRollup を正本とした。

LOOP_VERDICT_V2

verdict: APPROVE
reviewed_head_sha: "d61f1df375f3a0f77ab0e0b583382acae8ba2888"
merge_ready: true
mergeability:
  mergeable: "MERGEABLE"
  merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent

@squne121
squne121 marked this pull request as ready for review June 22, 2026 00:29
@squne121
squne121 merged commit db86c05 into main Jun 22, 2026
30 checks passed
@squne121
squne121 deleted the worktree-issue-1061-python-test-pnpm branch June 22, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

実装: python-test lane から Node-backed hook tests を分離する

1 participant