Repository navigation
feat: add roadmap reference validator - #1264
Conversation
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BEHIND
branch_behind_main: true
baseline_only: false
verification_commands_pass: 3
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- ac: AC1
command: "pnpm test -- tests/docs/validate-roadmap-refs.test.mjs"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "Vitest: 88 files / 1276 tests passed"
- ac: AC2
command: "node scripts/validate-roadmap-refs.mjs"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "Default target docs/product/playable-roadmap.md validated successfully"
- ac: AC3
command: "pnpm lint:docs"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "markdownlint, textlint, and roadmap validator all passed" |
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: "482593a02a3bd873dfa6089c7aa959538754a191"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "BEHIND"
blockers:
- "required CI is failing on the reviewed head: ci_verdict_summary.py returned status=failed with failed_checks=[lint, deploy-pr, PR Body Japanese Check]"
- "required lint/deploy lane is blocked by tests/docs/validate-roadmap-refs.test.mjs:13 where process is not defined; deploy-pr annotation reports Run pnpm lint on that file and process is not defined"
- "required PR Body Japanese Check failed in the Check changed Markdown files step on the reviewed head; the PR changes multiple .md fixtures under tests/fixtures/roadmap-refs/ and the required Japanese-content gate is currently red"
required_auto_actions: - kind: update_branch
executor: implementation-worker
skill: implement-issue.update_branch
blocking_merge_ready: true
mechanical: true
expected_head_sha: "482593a02a3bd873dfa6089c7aa959538754a191"
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
allowed_paths_gate_source: review_subagent
Preview URLPreview removed (PR #1264 closed). |
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BLOCKED
branch_behind_main: false
baseline_only: false
verification_commands_pass: 3
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- ac: AC1
command: "pnpm test -- tests/docs/validate-roadmap-refs.test.mjs"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "88 files, 1276 tests passed"
- ac: AC2
command: "node scripts/validate-roadmap-refs.mjs"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "roadmap references are valid"
- ac: AC3
command: "pnpm lint:docs"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "markdownlint/textlint/validate:roadmap-refs all passed" |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=
MERGEABLE, merge_state_status=CLEAN
Evidence Check
- AC coverage: PR 本文の
## 受け入れ条件の達成状況で #1183 の AC1-AC12 が current contract に対して埋まっていることを確認 - Allowed Paths: changed files は
scripts/validate-roadmap-refs.mjs、package.json、pnpm-lock.yaml、docs/product/playable-roadmap.md、tests/docs/validate-roadmap-refs.test.mjs、tests/fixtures/roadmap-refs/**のみで、#1183 の current Allowed Paths 内 - CI Verification:
ci_verdict_summary.pyを current headbaa3e333917db8fa33df62e11531105161586d04で live 実行し、required checks はstatus=all_pass。stale な旧 review / 旧 TEST_VERDICT は根拠から除外 - 検証コマンド結果: PR 本文の
pnpm test -- tests/docs/validate-roadmap-refs.test.mjs、node scripts/validate-roadmap-refs.mjs、pnpm lint:docsは current head の CI success と整合
Blockers
- なし
Non-blockers
tests/fixtures/roadmap-refs/malformed.mdはmalformed-yaml.mdと重複気味だが、current contract の達成や merge-ready 判定は阻害しない
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "baa3e333917db8fa33df62e11531105161586d04"
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|
TEST_VERDICT_MACHINE: |
|
TEST_VERDICT_MACHINE: |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=
MERGEABLE, merge_state_status=CLEAN
Evidence Check
- AC coverage: #1183 の current contract 更新後も、PR 本文の
## 受け入れ条件の達成状況は AC1-AC12 を継続して満たしている - Verification Commands: current contract の AC12 sentinel は
rg -n "^ - 'victory: \\" docs/product/playable-roadmap.mdに更新されており、PR 差分で追加された single-quotedvictory:` 行と整合する - Allowed Paths: changed files は
scripts/validate-roadmap-refs.mjs、package.json、pnpm-lock.yaml、docs/product/playable-roadmap.md、tests/docs/validate-roadmap-refs.test.mjs、tests/fixtures/roadmap-refs/**のみで、#1183 の current Allowed Paths 内 - Required checks:
mainの branch protection required contexts はtypecheck/lint/test/build/python-test/validate-generated-artifact。current headbaa3e333917db8fa33df62e11531105161586d04の status rollup ですべて SUCCESS を live 確認
Blockers
- なし
Non-blockers
ci_verdict_summary.pyは issue 更新後に再実行された non-requiredPR Body Japanese Checkの skipped duplicate を failed と数えたが、branch protection の required contexts には含まれず、mergeStateStatus=CLEANと current head rollup は整合している
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "baa3e333917db8fa33df62e11531105161586d04"
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
判定REQUEST_CHANGES。 PR #1264 は 参照した文脈関連 Issue #1183 は、PR #1180 の follow-up として、roadmap fenced YAML の parse / duplicate key / field type / path grammar / repo-relative boundary を検証し、M2 のみ expected set / regular-file existence / stale alias を hard fail する契約です。ライフサイクル status や normative authority は out of scope と明記されています。 関連 #1167 / PR #1180 は、M2 の旧 関連 #1171 は、M2 current head の workflow runs は Blocking findingsP0: AC5 の path safety が M2 以外で false-green になるIssue #1183 の AC5 は、 しかし実装では これは M3〜M5 の future destination を existence hard fail しないという契約とは別問題です。存在必須にしないことと、既存 directory / symlink / unsafe path を許すことは違います。例えば M3 に次が入っても、現在の構造だと directory rejection が保証されません。 spec_destination:
- docs/product/features/ — directory should failNode.js の 修正要求:
P1: default target 成功が test harness で検証されていないPR 本文は default target の validator 成功を主張していますが、test harness の default test は つまり、 修正要求: it('GIVEN no flags WHEN validator runs THEN validates default roadmap file successfully', () => {
const result = runValidator([])
expect(result.status).toBe(0)
expect(result.stdout).toContain('[OK]')
expect(result.stderr).toBe('')
})さらに P1:
|
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_pass: 13
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- ac: AC1
command: "test -f scripts/validate-roadmap-refs.mjs"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "present"
- ac: AC2
command: "rg -n 'milestone_id: M2' docs/product/playable-roadmap.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "58:milestone_id: M2"
- ac: AC3
command: "rg -n '"yaml"' package.json"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: '65: "yaml": "^2.8.1"'
- ac: AC4
command: "test -f tests/docs/validate-roadmap-refs.test.mjs"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "present"
- ac: AC5
command: "test -d tests/fixtures/roadmap-refs"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "present"
- ac: AC6
command: "rg -n 'docs/product/features/movement-projectile.md' docs/product/playable-roadmap.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "74:spec_prerequisites and 93:spec_destination"
- ac: AC7
command: "test -f tests/fixtures/roadmap-refs/obsolete-movement-projectile-split.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "present"
- ac: AC8
command: "rg -n '"validate:roadmap-refs"' package.json"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: '14: "validate:roadmap-refs": "node scripts/validate-roadmap-refs.mjs",'
- ac: AC9
command: "test -f tests/fixtures/roadmap-refs/valid.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "present"
- ac: AC10
command: "test -f tests/fixtures/roadmap-refs/malformed-yaml.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "present"
- ac: AC11
command: "rg -n validate:roadmap-refs package.json"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: '13: lint:docs includes validate-refs; 14: validate script present'
- ac: AC12
command: "rg -n 'pnpm lint:docs|validate:roadmap-refs' .github/workflows/ci.yml"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: '193: run_timed pnpm_lint_docs pnpm lint:docs'
- ac: AC13
command: "rg -n "^ - 'victory: `" docs/product/playable-roadmap.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "77: victory clause present" |
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES
Mergeability
- mergeable=
MERGEABLE, merge_state_status=CLEAN
Evidence Check
- Contract snapshot: linked issue #1183 の current contract は #1183 (comment) を正本として参照し、PR の changed files は Allowed Paths 内に収まっていることを live 確認
- Required checks: current head
19d85a2e84e05852608255d1f571c86e441a0fe8に対して branch protection required contextstypecheck/lint/test/build/python-test/validate-generated-artifactがすべて SUCCESS、mergeable=MERGEABLE、mergeStateStatus=CLEANを live 確認 - Verification evidence:
TEST_VERDICT_MACHINEとci_verdict_summary.py --expected-head-sha 19d85a2e84e05852608255d1f571c86e441a0fe8は current head 一致で PASS を確認
Blockers
.github/workflows/ci.ymlを変更している CI 関連 PR ですが、PR 本文・PR comments / reviews・取得可能 artifact 証跡のいずれにもCI_TEST_PERFORMANCE_DECISION_V1が見当たりません。ci-test-performancereviewer gate 上、この head に対する lane classification / baseline inputs / reviewer gate 根拠が欠けているため fail-closed で差し戻します。- PR 本文の
## 受け入れ条件の達成状況が current contract に追随していません。current issue body は AC1-AC13 で、AC12 は既存ciworkflow lint job で validator 実行が走ること、AC13 は default target 成功ですが、PR 本文は AC1-AC12 しかなく current AC12 の明示根拠が欠落しています。current contract に対する AC coverage を PR body で更新してください。
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: "19d85a2e84e05852608255d1f571c86e441a0fe8"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers:
- ".github/workflows/ci.yml changed, but no CI_TEST_PERFORMANCE_DECISION_V1 evidence was found for the reviewed head in the PR body, comments/reviews, or accessible artifacts"
- "PR body AC coverage is stale against linked issue #1183 current contract: current AC12/AC13 are not reflected explicitly in ## 受け入れ条件の達成状況"
required_auto_actions:
- 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
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=
MERGEABLE, merge_state_status=CLEAN
Evidence Check
- Contract snapshot: linked issue #1183 の current contract は #1183 (comment) を正本として参照し、PR の changed files 20 件は current Allowed Paths 内に収まっていることを live 確認
- AC coverage: PR 本文の
## 受け入れ条件の達成状況が current contract の AC1-AC13 を明示的にカバーし、AC12 は既存ciworkflow lint job でpnpm lint:docs実行、AC13 は default target validator success を反映している - Verification evidence: current head
19d85a2e84e05852608255d1f571c86e441a0fe8に対するTEST_VERDICT_MACHINEコメント #1264 (comment) で verification_commands_pass=13 / verification_commands_fail=0 / verification_skipped_count=0 を確認 - Required checks: current head の branch protection required contexts
typecheck/lint/test/build/python-test/validate-generated-artifactはすべて SUCCESS、mergeable=MERGEABLE、mergeStateStatus=CLEANを live 確認 - CI performance evidence: PR 本文に
CI_TEST_PERFORMANCE_DECISION_V1が追加済みで、.github/workflows/ci.yml変更に対する lane classification / baseline inputs / reviewer gate 根拠が current head にひも付いている
Blockers
- なし
Non-blockers
ci_verdict_summary.pyは current head review 中の GitHub run 詳細取得でハングしたため、skill 許容の fallback として livegh pr checks/ mergeability / fresh TEST_VERDICT_MACHINE / current PR body を突き合わせて判定した
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "19d85a2e84e05852608255d1f571c86e441a0fe8"
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
概要
yaml依存と lockfile を追加して継続実行できる状態にしたdocs/product/playable-roadmap.mdの既存 fenced YAML を正規化し、default target の validator 実行が成功するようにしたciworkflow の lint job にpnpm lint:docsを追加し、required CI 経路でも roadmap validator の回帰を検出できるようにした受け入れ条件の達成状況
scripts/validate-roadmap-refs.mjsを追加し、package.jsonにvalidate:roadmap-refsを登録docs/product/playable-roadmap.mdのyaml/ymlfenced block を抽出し、frontmatter を対象外化yamlparser で parse error / duplicate key を non-zero exit に統一spec_prerequisites/spec_destinationを存在時 string array として検証し、duplicate item を failspec_destinationのpath — descriptiongrammar と path safety 検証を実装spec_prerequisites/spec_destinationに expected set と regular-file existence を強制docs/product/features/movement.md/docs/product/features/projectile.mdを failyamlを direct devDependency として lock まで反映--file <path>override を test harness で検証lint:docsにvalidate:roadmap-refsを組み込みciworkflow の lint job でpnpm lint:docsが走り、required CI 経路でも validator 回帰を検出できるdocs/product/playable-roadmap.mdの既存 fenced YAML を正規化し、default target の validator を成功させた検証コマンド結果
CI テスト性能判断
以下は reviewer 向けの機械可読エビデンスで、内容は現行 head の CI 変更範囲に対応しています。
Allowed Paths 遵守
.github/workflows/ci.yml,scripts/validate-roadmap-refs.mjs,package.json,pnpm-lock.yaml,docs/product/playable-roadmap.md,tests/docs/validate-roadmap-refs.test.mjs,tests/fixtures/roadmap-refs/のみに限定実施チェック
pnpm test -- tests/docs/validate-roadmap-refs.test.mjsを実行して PASSnode scripts/validate-roadmap-refs.mjsを実行して PASSpnpm lint:docsを実行して PASSpnpm typecheckは required CI head success で確認済みpnpm buildは required CI head success で確認済みスキーマ変更該当性
スキーマ利用側棚卸し
N/A
reason: 今回は schema_change ではなく、schema consumer inventory の更新対象はないため
Safety Claim Matrix(安全性影響)
N/A
reason:
.claude/**や権限・サンドボックス境界には変更がなく、validator / docs / package script / CI lint wiring のみを変更しているため補足
docs/product/playable-roadmap.mdの fenced YAML reference integrity を継続的に固定する変更