Repository navigation
実装: retro_live_verification に Issue/PR 二対象 closure bundle と親契約準拠の live 検証境界を追加する - #1747
Merged
Merged
Conversation
…sertionsを実行するよう修正する target_type === 'pull_request' の条件分岐によりissue targetではcontext-assertions live bindingが完全にスキップされ、常にok:trueとして扱われていた欠陥を修正する。 argument-freeなfixture既定値と既存の負テストにgate-resolve-result-issue(-mismatch).json を追加し、issue targetでのfail-closed挙動を回帰保証する。
execution_boundary.trusted_actor_id_allowlist(optional)を追加。宣言時は login一致に加えnumeric GitHub user idの一致も要求し、trust判定を malformed/duplicate判定より先に行うようcheckCanonicalComment/planPostを 再構成。非trusted markerはcanonical候補数から除外し、trusted markerの malformed/duplicateのみfail-closedにする。フィールド未指定時はv2の login-only挙動を完全に維持する。
…を追加する(既存v2契約は後方互換) - runtime_provenance に node/pnpm/lockfile digest/gh CLI version/GitHub API version/workflow run identity を追加(すべてoptional、digest対象外のため既存digestに非影響) - --require-runtime-provenance / --max-capture-to-post-lag-seconds / --posted-at フラグを check-retro-live-verification.mjs に追加 - pr_review_binding に selected_review_comment_id / selected_review_thread_node_id を追加(AC5-7準備、未指定時はdigest不変) - 103 targeted tests pass, typecheck pass, argument-free defaults unaffected
…取得しselected ID相互結合を検証する - github-comments.mjs: fetchReviewsPage/fetchReviewThreadsPage/fetchPullRequestReviewSurfaceLiveを追加。GraphQL errorsとrepository/pullRequest nullを明示的にfail-closed、pagination(top-levelとthread内commentsサブconnection双方)のhasNextPage/page budgetをfail-closedで検出 - check-retro-live-verification.mjs: evaluatePrReviewSurfaceBindingを追加(review>=1/review comment>=1/resolved thread>=1、selected review/comment/threadの相互結合、stale PR head検出)。--refetch-pr-review-surfaceフラグでfixture/live両対応 - tests: AC5-7用13ケース + 未テストだったAC13/AC15(checkRuntimeProvenanceComplete/checkCaptureToPostLag)用10ケースを追加。123 targeted tests pass、typecheck/lint clean、既存v2契約に非影響(オプトインフラグのみ)
- generate-retro-live-verification.mjs: canonicalizeLoopV1/canonicalJsonStringifyLoopV1(NFC normalization付き、既存v2のcanonicalize/canonicalJsonStringifyとは独立、既存digestに非影響)とcomputeResolvedCommentSetDigestを追加。repo_id/target_node_id/comment_id/author_id/created_at/updated_at/body_sha256(+review_state/review_commit_id/thread_resolved)の正規tupleから算出し、canonicalization_profile: loop-comment-set-canonical-json-v1をバインド - schema: resolved_comment_set_digest(optional, additive)フィールドを追加 - check-retro-live-verification.mjs: evaluateResolvedCommentSetDigestと--recompute-digests/--comment-set-jsonフラグを追加。manifest側にフィールドが無ければfail-closed、profile不一致もfail-closed - tests: 決定論性/順序非依存/identity束縛/mutable-comment検出/body差し替え検出/NFC正規化/pass-fail両経路で11ケース追加。133 targeted tests pass、typecheck/lint clean
…ector-only表記境界の検証を追加する
- chatgpt-retrospective-result.schema.json: no_findings_rationale(optional, minLength 40)を追加。空findings時の要件本体はchecker側(--require-findings-or-rationale)で強制し、schemaはtrivial-empty文字列のみ拒否
- check-retro-live-verification.mjs: 標準alone --schemaモード(--manifest-jsonを要求しない)を追加。
- evaluateFindingsOrRationale: findings空時にno_findings_rationale欠落/空/定型文プレースホルダ("no findings"等)をfail-closed
- validateAgainstSchemaFile: 汎用ajv検証ヘルパー(generate側のloadAjvを再利用、export追加)
- --schema chatgpt_retrospective_result/v1 --require-findings-or-rationale / --check-execution-boundary --input <file> を追加
- AC11の operator_attested/machine_verified 区別は既存 docs/schemas/chatgpt-retro-execution-proof.schema.json の proof_strength enum(machine_verified/declared_by_session_operator の閉じたenum + machine_verifies_actual_chatgpt_tool_boundary: const false)で既に構造的に強制済みと判明。--check-execution-boundaryはこのschemaへの検証入口を追加するのみ
- tests: 16ケース追加(findings有無/boilerplate拒否/schema正負パス/proof_strength enum正負パス/CLI subprocessエンドツーエンド)。149 targeted tests pass、typecheck/lint clean
…ontext assertionを必須化する - docs/schemas/retro-live-verification-dual-target.schema.json を新規追加(v2 schema fileは無変更) - check-retro-live-verification.mjs に --schema retro_live_verification/v3 standalone modeを追加 - issue_target/pull_request_targetの双方でassert-live context assertionを無条件実行(AC2の二対象版) - per-target isolationでエラーを[issue_target]/[pull_request_target]接頭辞で区別
…/pagination-incompleteをfail-closedで検証する - GraphQL errorsあり、repository/pullRequest null、reviews/threads page budget exhausted、 thread内comments sub-connectionのpagination incompleteをそれぞれ独立テスト化 - zero review objectがevaluatePrReviewSurfaceBindingで拒否されることを結合確認 - 複数ページのreviewsが正しく連結されることの正常系も追加
分割代入での_omitパターンがno-unused-varsに引っかかるため、 明示的なdeleteに変更した(挙動は変わらない)。
…etro-live-closure
Contributor
Preview URLPreview removed (PR #1747 closed). |
CI runnerのfresh checkoutにはtmp/が存在せずwriteFileSyncがENOENTで失敗していた。 mkdirSync(recursive)を追加して解消する。
squne121
commented
Jul 25, 2026
squne121
left a comment
Owner
Author
There was a problem hiding this comment.
PR Review 判定
独立再検証の結果、PR #1747(head 00e2dde8ab2ada8919088890ece7b5ed87fc00a4)を APPROVE とする。
- CI:
test/deploy-pr/verify-staticを含む全14チェックが最新headでSUCCESS(前回指摘のENOENT修正commit00e2dde8で解消済み)。 - Allowed Paths gate:
status: ok、変更ファイル13件すべてIssue #1415のAllowed Paths内、violation無し。 - Linked issue #1415 のcontract snapshot(
CONTRACT_REVIEW_RESULT_V1 status: go、#1415 (comment) )と整合。 - Overlap preflightがhuman_review_requiredとした候補#1501はCLOSED済みであることを独立確認済み(並行作業ではない)。
- mergeability:
MERGEABLE/BEHIND(origin/mainに対して遅れているのみ、conflictではない)。merge_ready: falseはこのBEHIND状態による機械的なupdate_branch要求のみが理由。
LOOP_VERDICT_V2:
verdict: APPROVE
reviewed_head_sha: "00e2dde8ab2ada8919088890ece7b5ed87fc00a4"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "BEHIND"
blockers: []
required_auto_actions:
- kind: update_branch
executor: implementation-worker
skill: implement-issue.update_branch
mechanical: true
blocking_merge_ready: true
expected_head_sha: "00e2dde8ab2ada8919088890ece7b5ed87fc00a4"
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: "ok"
producer_role: "review_subagent"
worker_report_used_as_canonical: false
changed_files_source: "git_diff_name_status_find_renames_z"
diff_base_sha: "a8192e42708013bb9a0e5baafc1c451b0071c9d5"
reviewed_head_sha: "00e2dde8ab2ada8919088890ece7b5ed87fc00a4"
contract_fingerprint:
issue_number: 1415
contract_source_kind: "issue_comment"
contract_source_id: "5078326885"
contract_body_sha256: "sha256:a9981b2fbd940f75cfab3d4a6e881e588f1ceeade2652169303fb0fca2098b46"
base_ref: "main"
base_sha_at_snapshot: "6ef22c17877ddd887091ad15f8b34d23ca71c49a"
changed_files_count: 13
violations: []…etro-live-closure
squne121
marked this pull request as ready for review
July 25, 2026 11:49
This was referenced Jul 25, 2026
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.
retro_live_verification: Issue/PR 二対象 closure bundle と親契約準拠の live 検証境界を実装する
Summary
Issue #1415 の Acceptance Criteria(AC1〜AC15)に基づき、
retro_live_verification(#1709 で実装済みのv2)を拡張し、Issue #1153 と PR #1411 を単一の canonical parent verification comment で束縛する二対象(dual-target)構造retro_live_verification/v3を追加した。既存v2の argument-free デフォルト・fixture・#1709 の AC は一切壊さず、後方互換の追加実装のみで完結させている。Current repo reality / contract drift(現状と契約との乖離)
chatgpt-retro-context:assert-live/retro-live-verification:generate,post,verify等)は実在していた。本 PR に先立ち Issue 本文を live 状態に合わせて修復済み(change_kind: workflow→mixed、Allowed Paths を N/A から実ファイル列挙へ変更)。v2実装が以下の点で Parent Closure Proof Contract(導入: EntireCLI + Latitude の観測データを agent_run_report に接続し、GitHub 経由の ChatGPT レトロ動線を確立する #1153 /docs/dev/agent-run-report.md)と OWNER anchor comment(P0-1〜P0-6, P1-6, P1-7)の要求を満たしていないことが判明した。これが本 PR の実装スコープ。Scope Delta
docs/schemas/retro-live-verification-dual-target.schema.jsonとdocs/schemas/chatgpt-retrospective-result.schema.jsonを追加した(Issue 本文側も同時更新済み)。実装の結果、retro_live_verification.schema.jsonへの非破壊的追記ではなく、v2/v3 の判別を明確にするため sibling schema ファイルとして分離する設計を採った。check_implementation_overlap.py)は候補 実装: CHATGPT_RETRO_CONTEXT marker候補判定を厳密化し、resolve-liveにfail-closed assertionを追加する #1501 との構造シグナル一致(shared_output_schema: CHATGPT_RETRO_CONTEXT_V1)によりroute: human_review_requiredを返した。候補 実装: CHATGPT_RETRO_CONTEXT marker候補判定を厳密化し、resolve-liveにfail-closed assertionを追加する #1501 は CLOSED・マージ済み(実装: ChatGPT GitHub connector retro E2E proof を live 環境で検証し resolve-live status を記録する #1415 が依存する前提修正 Issue そのもの、並行作業ではない)であることを live 確認済みであり、実際の merge collision リスクは無いと判断して人手レビューを完了させた上で本 PR を作成している(evidence_sha256: sha256:172bea66fcbc57324ae2049cfd3d32c4dfcc81bf8470dc6c9e607b7bceb82711)。Acceptance Criteria matrix(受け入れ基準対応表)
rgassert-livecontext assertion 必須実行check-retro-live-verification.mjs:target_type === 'pull_request'限定分岐を撤廃--expected-*は resolver 同一実行から自己コピーせず、呼び出し側が独立に指定する契約を維持(既存 v2 契約)trusted_actor_id_allowlist(optional, additive)を追加。trust 判定を malformed/duplicate 判定より先に実行fetchPullRequestReviewSurfaceLive()を新規実装(github-comments.mjsの GraphQL pagination パターンを再利用)resolved_comment_set_digestをrepo_id/target_node_id/comment_id/author_id/created_at/updated_at/body_sha256から算出、--recompute-digestschatgpt-retrospective-result.schema.json新規、--require-findings-or-rationale/--check-execution-boundarytests/retro-live-verification.test.tsに追加--max-capture-to-post-lag-seconds(既定 900)retro_live_verification/v3(--schema retro_live_verification/v3)を非破壊追加Verification Commands results(検証コマンド実行結果)
worktree(origin/main マージ後、head は本 PR の head と一致)で実行:
対象テスト(
tests/retro-live-verification.test.ts/tests/chatgpt-retro-context-assert-live.test.ts/tests/agent-logs/chatgpt-retro-context-marker.test.ts)は上記pnpm testの全体実行に含まれる。Issue #1415 記載の live GitHub 実行を要する AC(
# preflight-scope: runtime_onlyマーカー付き VC)は、本 PR マージ後に origin/main の clean checkout から実行し、#1153 / PR #1411 への artifact chain 投稿をもって別途検証する(Issue 本文の Stop Conditions・Runtime Verification Applicability 参照)。Runtime Verification Applicability
Schema Change Applicability
Schema Consumer Inventory
Before(変更前)
retro_live_verification/v2のみ存在。trusted_actor_id_allowlist、resolved_comment_set_digestの正規tuple構成要素、runtime_provenanceのnode/pnpm/lockfile/gh/API version/workflow run identityフィールドは存在しなかった。chatgpt_retrospective_result/v1、retro_live_verification/v3は存在しなかった。After(変更後)
retro_live_verification/v2に上記フィールドをoptional追加。新規retro_live_verification/v3(dual-target)とchatgpt_retrospective_result/v1をsibling schemaとして追加。scripts/check-retro-live-verification.mjsscripts/generate-retro-live-verification.mjsscripts/post-retro-live-verification.mjsscripts/agent-logs/lib/github-comments.mjsSafety Claim Matrix
pnpm test(1801/1801 pass, 既存fixture/argument-freeデフォルトの回帰テスト含む)errors/null/pagination incomplete はfail-closedoperator_attested(machine_verifiedではない)--check-execution-boundaryテストgit diff --stat確認)Backward compatibility / migration decision(後方互換性・移行方針)
retro_live_verification/v2の既存挙動・fixture・#1709のACは変更していない。新規フィールドは全てoptionalで、未指定時はv2の既存パスを通る。v3は完全に新規のsibling schemaであり、v2からの自動migrationは発生しない(呼び出し側が明示的に--schema retro_live_verification/v3を指定した場合のみv3経路に入る)。CI Test Performance Decision(CIテスト性能判断)
本PRは既存テストファイル(
tests/retro-live-verification.test.ts等)への追加のみで、新規テストファイル・新規CI lane・新規workflow jobは追加していない。既存のpnpm test(vitest run)の実行時間への影響は追加テストケース分のみ(実測: 1801テスト、Duration 19.17s、既存ベースラインと同等)。Overlap Preflight Evidence(衝突事前検査の証跡)
Checks
pnpm typecheckpasspnpm lintpasspnpm testpass(1801/1801)pnpm buildpassgit diff --stat origin/mainで確認済み)Notes
.claude/skills/issue-contract-review/scripts/pnpm_gate_registry.pyはIssue本文のAllowed Pathsに含めているが、本PRでは変更していない(VCのlive実行コマンドはcontract-review baseline preflightではpreflight-scope: runtime_onlyとして分離済みのため、pnpm gate registryの拡張は本PRの必須スコープではないと判断)。Closes #1415(本Issueをクローズする)