Skip to content

実装: chatgpt_retro_execution_proof/v1 の evidence_refs 解決範囲を marker refs まで拡張する - #1800

Merged
squne121 merged 1 commit into
mainfrom
worktree-issue-1799-chatgpt-retro-evidence-refs-additional-comments
Jul 26, 2026
Merged

squne121 merged 1 commit into
mainfrom
worktree-issue-1799-chatgpt-retro-evidence-refs-additional-comments

Conversation

@squne121

@squne121 squne121 commented Jul 26, 2026 •

Copy link
Copy Markdown
Owner

chatgpt_retro_execution_proof/v1 の evidence_refs 解決範囲を marker refs まで拡張する

本PRは Issue #1799(Closes #1799)を解決する。

Summary

scripts/check-chatgpt-retro-e2e-proof.mjsのisResolvableEvidenceRef()は、chatgpt_retrospective_result/v1のfindings[].evidence_refs[](kind: "github_comment")を、以下3種類のURLのみ解決可能と認めていた:

  • proof.operation_index_ref.comment_url
  • proof.pr_review_surface_live_proof_ref.comment_url
  • proof.chatgpt_context.marker_comment_url

Issue #1415の作業中、外部ChatGPTセッションから取得した genuine な chatgpt_retrospective_result/v1 が、正当な証拠としてagent_run_report/v1コメント・agent_retro_index/v1コメント・PR reviewコメントも引用していたが、これらはevidence_refs.unresolvableとして誤って拒否されていた(コード内コメントで既に「follow-up issueへ意図的に据え置かれたスコープ」として文書化済みの既知gap)。

Root cause / 変更内容

docs/schemas/chatgpt-retro-execution-proof.schema.jsonのchatgpt_contextにadditive optional field additional_resolvable_comment_refs: [{comment_url, payload_digest}]を追加し、isResolvableEvidenceRef()を拡張してこの新フィールドに列挙されたcomment_url + digest完全一致のエントリも解決可能と判定するようにした。既存required field・既存propertyは無変更。

Scope Overlap Note(overlap preflight human_review_required の非衝突判断)

check_implementation_overlap.pyはOPEN Issue #1415との構造的シグナル一致(shared_output_schema: CHATGPT_RETRO_CONTEXT_V1、AC番号がAC1-AC5で一致)によりroute: human_review_requiredを返した。以下の理由により非衝突と判断し、PR作成を進めた:

  • structural_signals.edit_intent_match: false、shared_specific_edit_targets: [] — 実質的な編集対象の一致はなく、AC番号の偶然の一致とスキーマ名の言及一致のみ
  • 依存の向きは逆: #1415自身が最新コメント(ISSUE_1415_EXECUTION_RESULT_V6)で「#1799の完了を待つ」と明記しており、#1415は本PRと同じファイルを同時に編集する計画を持たない
  • #1799自体が#1415の作業中に発見されたgapのfollow-upとして起票されたものであり、Issue #1799のcontract snapshotのScope Overlap Noteで同じ非衝突理由を記録済み
  • issue-contract-reviewはこのoverlapを踏まえた上で#1799にstatus: goを出している

Verification Commands results(検証コマンド実行結果)

$ pnpm typecheck  → pass
$ pnpm lint       → pass
$ pnpm test       → pass(100 files / 1829 tests、既存1826+新規3)
$ pnpm build      → pass

CI Test Performance Decision(CIテスト性能判断)

schema: CI_TEST_PERFORMANCE_DECISION_V1
lane_classification: no_new_lane
reason: >-
  既存Vitestスイートへのテストケース追加のみ。新規CI lane・新規job・新規trigger条件は
  追加していない。
new_ci_jobs: []
lane_migration_required: false

Runtime Verification Applicability(動作検証適用性)

decision: immediate
github_api_required: false
applicable_acs: [AC1, AC2, AC3, AC4, AC5]
execution_environment: vitest
skip_conditions:
  allowed: false
fallback_policy:
  allowed: false
reason: >-
  全ACはVitestユニットテストで決定論的に検証可能。live GitHub API呼び出しは不要。

Schema Change Applicability

- decision: schema_change
  reason: >-
    docs/schemas/chatgpt-retro-execution-proof.schema.jsonへadditive optional field
    (chatgpt_context.additional_resolvable_comment_refs)を追加。既存required/propertyは無変更。

Schema Consumer Inventory

# before
chatgpt_context: {
  marker_comment_url, marker_digest, resolve_live_status, ...
  // isResolvableEvidenceRef() は operation_index_ref.comment_url /
  // pr_review_surface_live_proof_ref.comment_url / chatgpt_context.marker_comment_url
  // の3種類のURLのみを解決可能と認めていた
}
# after
chatgpt_context: {
  marker_comment_url, marker_digest, resolve_live_status, ...
  additional_resolvable_comment_refs: [{ comment_url, payload_digest }]  // additive optional
  // isResolvableEvidenceRef() はこの新フィールドのエントリと comment_url + digest が
  // 完全一致した github_comment evidence_ref も解決可能と判定する
}

既存required field・既存propertyは無変更。

Consumer table(消費者一覧)

Consumer ファイル 更新有無 備考
scripts/check-chatgpt-retro-e2e-proof.mjs 更新あり isResolvableEvidenceRef()拡張。本schemaの主要な直接消費者
tests/chatgpt-retro-e2e-proof-check.test.ts 更新あり 新規テストケース追加(AC2/AC3/AC4)
scripts/check-retro-live-verification.mjs 更新なし --check-execution-boundaryモードでvalidateAgainstSchemaFile()により本schemaを直接検証するが、field名依存の分岐を持たない汎用schema検証のため、additive optional field追加による影響なし
tests/retro-live-verification.test.ts 更新なし EXECUTION_PROOF_SCHEMA_FILEとして本schemaファイルを参照するが、既存requiredフィールドの検証のみのため影響なし
scripts/generate-retro-live-verification.mjs 更新なし 別スキーマのgeneratorであり本schemaを直接生成しないため影響なし

上記5ファイルが本スキーマを参照する全消費者であり、他に直接消費するproducerは存在しない。

Safety Claim Matrix

Claim Implemented? Not controlled Evidence Follow-up
新フィールドはadditive optionalであり既存契約を破壊しない Yes - 既存fixtureの後方互換テスト(AC3)PASS -
digest不一致の追加参照はunresolvableのまま Yes - 新規テストケース(AC4)PASS -

Backward compatibility / migration decision(後方互換性・移行方針)

新フィールドはoptionalであり、既存proof(フィールドなし)は引き続き従来通り動作する。破壊的変更なし。

Notes

  • 本PRは#1415作業中に発見された既存の意図的スコープ据え置き(isResolvableEvidenceRef()直前のコード内コメントで既に文書化済み)を解消するfollow-up実装。
  • chatgpt-retro-context-marker.schema.jsonのrefs object自体の構造変更、resolve-liveの出力仕様変更はOut of Scope(Issue #1799本文参照)。

Checks

  • pnpm typecheck pass
  • pnpm lint pass
  • pnpm test pass(1829/1829)
  • pnpm build pass
  • Allowed Paths内ファイルのみ変更(3ファイル)
  • 既存fixture・既存契約の回帰なし

…s まで拡張する (#1799)

isResolvableEvidenceRef() が operation_index_ref / pr_review_surface_live_proof_ref /
chatgpt_context.marker_comment_url の3種類しか github_comment kind を解決できず、
run_report / retro_index コメント等の正当な marker 由来証跡が unresolvable 誤判定
されていた。additive optional な chatgpt_context.additional_resolvable_comment_refs
({comment_url, payload_digest}[])をスキーマに追加し、resolver がこの一覧との
comment_url + digest 一致を条件に追加解決できるようにする。既存 required/property・
既存 fixture の後方互換性は維持する。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

github-actions Bot commented Jul 26, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #1800 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.

PR Review 判定

前回のブロッカー(Schema Consumer Inventory不完全)はPR本文修正で解消を確認。scripts/check-retro-live-verification.mjsとtests/retro-live-verification.test.tsをrgで実際に本schemaを参照していることを独立確認し、additive optional fieldのため両ファイルへの影響なしという記載内容の妥当性を検証した。head SHA変更なし・CI全green・Allowed Paths gate ok。

LOOP_VERDICT_V2:
  verdict: APPROVE
  reviewed_head_sha: "85d2fc0bcee94f0ad63a41e56163ca55c780085a"
  merge_ready: true
  mergeability:
    mergeable: "MERGEABLE"
    merge_state_status: "CLEAN"
  blockers: []
  required_auto_actions: []
  allowed_paths_gate:
    status: "ok"
    violations: []
    contract_fingerprint:
      issue_number: 1799
      contract_source_id: "5083682096"
      base_sha_at_snapshot: "4d336ed9dc35e30c9e29426506a5b011c304686d"

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.

実装: chatgpt_retro_execution_proof/v1 の evidence_refs 解決範囲を marker refs(run_report/retro_index コメント)まで拡張する

1 participant