Skip to content

fix: producer receipt に command_manifest_sha256 を独立再計算で伝播する - #1843

Merged
squne121 merged 6 commits into
mainfrom
worktree-issue-1711-producer-receipt-command-manifest-sha256
Jul 29, 2026
Merged

squne121 merged 6 commits into
mainfrom
worktree-issue-1711-producer-receipt-command-manifest-sha256

Conversation

@squne121

@squne121 squne121 commented Jul 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • test-verdict-execution-record.yml の producer receipt が command_manifest_sha256 を伝播できず、final contract の再構築が pre-execution 契約と一致せず常に pass_eligible: false になる回帰を修正する。
  • assemble-contract / build-receipt に --command-id を追加し、両ステップが COMMAND_MANIFEST から独立に再計算した SHA256 を突き合わせることで、missing / malformed / tampered / self-attested な manifest と final-contract self-copy を fail-closed で拒否する(AC1/AC2)。
  • 人間レビュアー(squne121)の PR #1843 REQUEST_CHANGES(reviewed_head_sha: db855a1432154c442302e4a4bccb0004a43ca403)で指摘された 6 件の trust-boundary blocker に対応するため、workflow を trusted-preflight -> untrusted-execution -> trusted-receipt の 3-job 分離へ再設計した。
  • schemas/test-verdict-execution-record.schema.json / schemas/test-verdict-producer-receipt.schema.json に source(repository_id / repository_full_name / commit_sha / tree_sha / execution_run_id / execution_job_id)を additive 必須フィールドとして追加し、producer -> receipt -> controlled_skill_mutation_exec.py publish consumer まで同一 source tuple を bind した。
  • 上記 schema 変更に伴い、Allowed Paths 外だった .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py の既存 fixture 25 件が新 schema と不整合になったため、人間の明示承認(2026-07-29、Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 本文の Scope Delta 参照)により Allowed Paths を拡張し、fixture のみを更新した(本体コード materialize_test_verdict_artifact.py は変更なし)。
  • scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py に導入した E501(120 桁超)7 件を、引数の複数行展開でリント修正した(機能変更なし)。

人間レビュー Blocker 対応状況

reviewed_head_sha: db855a1432154c442302e4a4bccb0004a43ca403 に対する LOOP_VERDICT_V2 の 6 blocker それぞれへの対応:

Blocker 対応内容
target_pr_head_not_executed(対象PRのコードを実行せず PASS receipt を生成できる) untrusted-execution job を新設し、対象 PR の exact head SHA を source/ ワークスペースへ checkout、harness/(default branch)側の producer script が source/ 配下の pytest target を実際に実行する構成へ変更した(COMMAND_MANIFEST の argv は {source_root} プレースホルダを実行直前にのみ実 path 置換し、manifest_sha256 自体はプレースホルダ形のまま独立計算される)。
untrusted_pr_controlled_action_and_python_executed(trusted job が PR-controlled action/python を実行) trusted-preflight / trusted-receipt は default branch の ${{ github.sha }} のみを checkout し、PR コードを一切 checkout・実行しない。PR コードは untrusted-execution job(contents: read のみ、secrets/OIDC/write token 不在)でのみ checkout・実行される。
source_provenance_self_attested(provenance が PR 側スクリプトの自己申告) assemble-source-provenance(PR checkout 内で動作する自己申告 CLI)を廃止し、resolve_trusted_source() を新設。trusted job のみが GitHub REST API(PR head object と GET commit の commit.tree.sha)から repository id/full_name/commit_sha/tree_sha を解決し、対象 PR の checkout を一切参照しない。
source_provenance_not_bound_to_record_receipt_schema_consumer(provenance が schema/consumer に bind されていない) source フィールドを execution-record / producer-receipt 両 schema に additive 必須フィールドとして追加し、build_record_for_command() / build_receipt() へ配線した。classify_source_binding() が record の source claim と trusted-receipt job が独立再解決した最終 source を突合し、missing/malformed/tampered を reason_category で fail-closed 拒否する。controlled_skill_mutation_exec.py の publish consumer 側にも source.repository_full_name == repo / source.commit_sha == expected_head_sha 等のクロスチェックを追加した。
trusted_head_preflight_occurs_after_untrusted_execution(trusted preflight が untrusted 実行より後に発生) trusted-preflight job を DAG の先頭に配置し、expected_head_sha が対象 PR の実際の現在 head であることを untrusted job 起動前に REST API で検証する。untrusted-execution は needs: trusted-preflight で、trusted job の出力(独立解決済み commit_sha/tree_sha)にのみ bind して checkout する(dispatcher の raw 入力を直接 checkout しない)。
command_manifest_binding_optional_fail_open(command_manifest_sha256 検証を省略できる fail-open) build_receipt() から expected_manifest_sha256=None の optional 経路を削除し必須引数化、CLI build-receipt --command-id も必須化した(省略時は argparse 段階で fail)。_load_json_inputs() で JSON 読込失敗も reason_category=input_json_invalid として fail-closed に統一した。

Checks

  • uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q → 52 passed
  • uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_publish_exec.py -q → 24 passed
  • uv run --locked pytest .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py -q → 33 passed
  • 各 AC の Verification Command(-k フィルタ)を実行した(下記「検証コマンド結果」参照)。今回の trust-boundary 再設計でテスト名が変化したため、Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 記載の一部 -k フィルタ文字列(test_exact_source_provenance_binding / test_trusted_untrusted_execution_boundary)は現行テストにマッチしない。該当 AC の意図(exact source provenance binding / trust boundary separation)は test_given_source_checkout_ref_when_resolved_then_it_is_bound_to_trusted_preflight_output_not_raw_input 等、名称変更後のテストで継続してカバーされていることを確認した。Issue 側の Verification Commands 更新要否は人間判断を仰ぐ。
  • uv run --locked ruff check scripts/agent-ops/test_verdict_execution_record_producer.py scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py scripts/agent-guards/controlled_skill_mutation_exec.py scripts/agent-guards/tests/test_test_verdict_publish_exec.py .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py → All checks passed
  • .github/ci/python-test-plan.json は変更不要(対象ディレクトリは既に登録済み)

CI_TEST_PERFORMANCE_DECISION_V1

CI_TEST_PERFORMANCE_DECISION_V1:
  schema: CI_TEST_PERFORMANCE_DECISION_V1
  issue_number: 1711
  pr_number: 1843
  decision_scope: ci_change
  changed_paths:
    - .github/workflows/test-verdict-execution-record.yml
    - scripts/agent-ops/test_verdict_execution_record_producer.py
    - scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py
    - scripts/agent-guards/controlled_skill_mutation_exec.py
    - scripts/agent-guards/tests/test_test_verdict_publish_exec.py
    - schemas/test-verdict-execution-record.schema.json
    - schemas/test-verdict-producer-receipt.schema.json
    - .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py
  lane_classification:
    - path: .github/workflows/test-verdict-execution-record.yml
      lane: contract_artifact
    - path: scripts/agent-ops/test_verdict_execution_record_producer.py
      lane: contract_artifact
    - path: scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py
      lane: contract_artifact
    - path: scripts/agent-guards/controlled_skill_mutation_exec.py
      lane: contract_artifact
    - path: scripts/agent-guards/tests/test_test_verdict_publish_exec.py
      lane: contract_artifact
    - path: schemas/test-verdict-execution-record.schema.json
      lane: contract_artifact
    - path: schemas/test-verdict-producer-receipt.schema.json
      lane: contract_artifact
    - path: .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py
      lane: python_unit
  ci_runtime_baseline_v1_available: false
  artifact_consistency: python-test-plan.json は scripts/agent-guards/tests/ と .claude/skills/impl-review-loop/tests/ をいずれも既に対象に含めており、追加登録は不要。pytest 実行対象と ci_test_selection/v1 の乖離なし。
  notes: 対象 workflow は workflow_dispatch 専用の protected default-branch producer であり、通常 CI required job の実行時間には影響しない。追加したジョブ(trusted-preflight / untrusted-execution / trusted-receipt の 3-job 分離)は同一 workflow 内の別ジョブであり、通常 CI の python-test / lint / build レーンには含まれない。schema ファイルの additive 変更はスキーマ validator のみを対象とし、既存 consumer の required フィールド集合が増えるが `additionalProperties: false` の型そのものは維持しているため fast パスへの影響はない。

Schema Change Applicability

  • decision: schema_change
    (additive versioned extension として、既存 major を維持したまま required フィールドを追加した判定である)

schemas/test-verdict-execution-record.schema.json と schemas/test-verdict-producer-receipt.schema.json の両方に source(repository_id / repository_full_name / commit_sha / tree_sha / execution_run_id / execution_job_id)を 必須 フィールドとして追加した。これは Issue #1711 の Scope Decision (B) と Stop Conditions が明示的に許可する「additive versioned extension」であり、既存の major(schema_version: 1)は変更していない。schema / title の const 値、既存 required フィールド、他フィールドの型・pattern は変更していない。

Schema Consumer Inventory

source(repository_id / repository_full_name / commit_sha / tree_sha / execution_run_id / execution_job_id)を execution-record / producer-receipt schema へ additive 必須フィールドとして追加した前後の consumer 差分:

# before(変更前)
schemas/test-verdict-execution-record.schema.json / test-verdict-producer-receipt.schema.json は
producer / subject / contract / executions / per_ac / pass_eligible のみを required とし、
source repository/commit/tree の provenance は schema にも consumer にも存在しなかった。
# after(変更後)
両 schema に source を required フィールドとして追加し、下記 3 consumer が
source の存在・整合性を検証するよう更新した。
Consumer ファイル 更新有無 備考
scripts/agent-ops/test_verdict_execution_record_producer.py 更新あり build_record_for_command() / build_receipt() / classify_source_binding() が record の source claim と trusted-receipt job が独立再解決した最終 source を突合し、missing/malformed/tampered を fail-closed 拒否する。
scripts/agent-guards/controlled_skill_mutation_exec.py 更新あり _validate_test_verdict_publish_fields() が receipt の source.repository_full_name / source.commit_sha を publish transaction の repo / expected_head_sha とクロスチェックする。
.claude/skills/impl-review-loop/scripts/materialize_test_verdict_artifact.py(および adjudicate_vc_result.py) 更新なし(fixture のみ更新) 既存の schema validation 経由で source の required 制約を自動的に検証する。モジュール本体のロジック変更は不要だったため、対応するテスト fixture(.claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py)のみ新 schema に合わせて更新した。

いずれも source 欠落・不整合を fail-closed で拒否することを、それぞれの pytest スイートで確認済み(本 PR の Checks セクション参照)。

Safety Claim Matrix

.github/workflows/ と scripts/agent-ops/ / scripts/agent-guards/ を変更しているため safety-sensitive PR として本セクションを記載する。

Claim Implemented? Not controlled Evidence Follow-up
final contract の command_manifest_sha256 が pre-execution 契約と独立再計算で一致するまで producer receipt は pass_eligible にならない Yes - test_given_independent_manifest_recompute_when_assembled_twice_then_both_* / final_contract_self_copy / malformed / mismatch / tampered / self_attested 系テスト 10 件 pass -
trusted-preflight / trusted-receipt job は対象 PR のコードを一切 checkout・実行しない Yes - test_given_trusted_preflight_job_when_parsed_then_it_never_checks_out_target_pr_source / test_given_workflow_yaml_when_parsed_then_trusted_and_untrusted_jobs_are_structurally_separated -
untrusted-execution job に secrets / OIDC / write token が渡らない Yes - test_given_untrusted_execution_job_when_parsed_then_no_secrets_oidc_or_write_token_present -
対象 PR の source checkout ref は生の dispatcher 入力ではなく trusted-preflight の独立解決出力に bind される Yes - test_given_source_checkout_ref_when_resolved_then_it_is_bound_to_trusted_preflight_output_not_raw_input -
source provenance(repository_id/full_name/commit_sha/tree_sha)は PR-controlled コードではなく trusted job の REST API readback のみから解決される Yes - test_resolve_trusted_source_rejects_commit_sha_not_matching_expected / test_resolve_trusted_source_rejects_repository_full_name_mismatch / test_resolve_trusted_source_accepts_well_formed_matching_input -
trusted-receipt job が最終 source を独立に再解決し、record の source claim との drift を fail-closed で拒否する Yes - test_given_trusted_tree_sha_differs_from_artifact_tree_sha_when_receipt_built_then_rejected / test_given_source_repository_id_missing_when_receipt_built_then_rejected / test_given_source_missing_entirely_when_receipt_built_then_rejected -
build-receipt --command-id の省略は fail-closed(fail-open な optional 経路が存在しない) Yes - test_build_receipt_cli_requires_command_id_argument -
trusted-preflight が失敗した場合 untrusted-execution job は起動しない Yes - test_given_trusted_preflight_job_fails_then_untrusted_execution_job_never_runs(needs: trusted-preflight の DAG 依存を静的解析で確認) -
publish consumer(controlled_skill_mutation_exec.py)が receipt の source を publish transaction の repo/head と独立にクロスチェックする Yes - scripts/agent-guards/tests/test_test_verdict_publish_exec.py 24 件 pass(source mismatch を含む) -
build-record / build-receipt の失敗が upload-artifact の missing-file エラーで隠れない Yes - test_given_build_receipt_cli_with_missing_manifest_when_invoked_then_failure_reason_category_printed / test_given_workflow_when_rendered_then_legacy_failure_shape_is_preserved_on_receipt_build_failure / test_given_build_record_cli_with_bad_input_json_when_invoked_then_reason_category_printed -
protected default-branch post-merge canary の実 runtime readback(REST artifact id/digest/run/head/expired/schema/pass_eligible/source repo・commit・tree binding) Not yet 実 workflow_dispatch 環境が必要なため Runtime Verification Applicability の手順に従い merge 後に別途 dispatch し、証跡コメントを残してから Issue を明示 close する #1711(deferred to post-merge canary, this Issue自身)
悪意ある pyproject.toml build backend や .github/actions/setup-python-uv の改変が provenance 取得経路に影響しない Partial trusted job は default branch checkout のみで PR 改変版の action/pyproject を一切参照しないため、構造上影響を受けない設計になっているが、専用の adversarial 改変テストは追加していない test_given_pr_controlled_setup_action_when_source_checkout_modifies_it_then_it_is_never_invoked 1 件で setup action 不使用は確認済み。build backend 改変シナリオの専用テストは未追加 #1711(本 PR のスコープ外と判断、必要なら本 Issue の後続 follow-up として別途起票)

Notes

  • Related issue: 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711
  • 本 PR は Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 の Scope Decision (B) に基づき、trust boundary 分離(trusted-preflight / untrusted-execution / trusted-receipt の 3-job separation)と exact-head provenance を In Scope として実装した。
  • 人間レビュアー(squne121)の PR fix: producer receipt に command_manifest_sha256 を独立再計算で伝播する #1843 REQUEST_CHANGES(reviewed_head_sha: db855a1432154c442302e4a4bccb0004a43ca403)に対応するため、schema へ source 必須フィールドを追加した結果、Allowed Paths 外の test_materialize_test_verdict_artifact.py の既存 fixture 25 件が新 schema と不整合になった。人間の明示承認(2026-07-29)により Allowed Paths を拡張し、fixture のみ(本体コード変更なし)を更新した。詳細は Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 本文の Scope Delta セクションを参照。
  • docs/dev/agent-skill-boundaries.md / docs/dev/workflow.md / docs/dev/runtime-verification-policy.md は Allowed Paths に含まれているが、既存の記述にこの producer / workflow 固有の consumer inventory セクションが存在しないため、本 PR では変更していない(doc 追加が必要と判断される場合は follow-up で対応)。
  • 本 PR は Relates to #1711 の関係とし、自動クローズ keyword(Closes 系)と 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 を隣接させて記載しない(Issue 本文の Delivery Rule のとおり、protected default-branch canary の evidence comment と readback 完了後にのみ人間が explicit close する)。
  • 本 skill wrapper(open_pr.py)は linked issue の state に応じて自動クローズ keyword を本文末尾へ機械的に追記する仕様がある。人間レビュアーは merge 前に本文末尾のリンク行を確認し、Issue が意図せず自動クローズされないことを確認してほしい。
  • Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 の Verification Commands セクションに記載された -k フィルタ文字列のうち AC3/AC4 用の 2 つ(test_exact_source_provenance_binding / test_trusted_untrusted_execution_boundary)は、今回の trust-boundary 再設計に伴うテスト名変更により現行テストへマッチしない。該当 AC の意図自体は名称変更後のテスト(上記 Safety Claim Matrix 参照)で継続してカバーされていることを確認したが、Issue 本文の Verification Commands 更新要否は human judgment を仰ぐ。

受け入れ条件の達成状況

Issue #1711 の Acceptance Criteria(AC1〜AC7)に対する現時点の達成状況を記載する。

  • AC1 (ac1_independent_manifest_recompute): 達成(local pytest PASS)。independent_manifest_recompute / final_contract_self_copy / malformed / mismatch / tampered / self_attested 系テスト 10 件が pass し、missing/malformed/mismatch/tampered/self-attested manifest と final-contract self-copy を fail-closed で拒否することを確認した。
  • AC2 (ac2_chain_binding): 達成(local pytest PASS)。matching_readbacks テスト 1 件が pass し、assemble-contract -> build-record -> final assemble-contract -> build-receipt --schema が独立再計算 SHA を全段へ束縛し、schema は additive extension のまま pass_eligible を判定することを確認した。
  • AC3 (ac3_exact_source_provenance): 静的・fixture 駆動の検証(test_given_source_checkout_ref_when_resolved_then_it_is_bound_to_trusted_preflight_output_not_raw_input / test_resolve_trusted_source_* 等)は local pytest PASS。Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 の Runtime Verification Applicability(decision: immediate, mode: protected_default_branch_post_merge_canary)により、実 workflow_dispatch 環境での REST readback(source repo/commit/tree の binding 確認)は merge 後の protected default-branch canary で実施予定(現時点では deferred)。
  • AC4 (ac4_trust_boundary): 静的・fixture 駆動の検証(test_given_untrusted_execution_job_when_parsed_then_no_secrets_oidc_or_write_token_present / test_given_workflow_yaml_when_parsed_then_trusted_and_untrusted_jobs_are_structurally_separated 等)は local pytest PASS。実行時の trust boundary の runtime evidence は AC3 と同様に merge 後の protected default-branch canary で実施予定(現時点では deferred)。
  • AC5 (ac5_failure_diagnostics): 達成(local pytest PASS)。failure_reason or legacy or upload 系テスト 4 件が pass し、direct receipt-build failure が machine-readable reason category を保持し、upload missing-file masking を成功証拠として受理しないことを確認した。
  • AC6 (ac6_non_regression): 達成(local pytest PASS)。フルスイート scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py 52 件、scripts/agent-guards/tests/test_test_verdict_publish_exec.py 24 件、.claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py 33 件がすべて pass。subject identity・artifact digest・per-AC coverage・fail-closed consumer checks が green であることを確認し、producer→receipt→consumer contract が source を含む同一 provenance/manifest digest に束縛されることを確認した。schema は既存 major を維持し、source フィールドは additive versioned extension として schema validation と consumer transition(producer / publish exec / materializer の 3 consumer)で検証した。
  • AC7 (ac7_protected_canary_readback): 静的・fixture 駆動の検証(test_protected_default_branch_canary_readback 1 件)は local pytest PASS だが、AC の本質である実 protected default-branch bootstrap/post-merge canary の dispatch と REST readback(artifact IDs/digest/run/head/expiry/schema/PASS eligibility/source repo・commit・tree binding)は merge 後に別途実施予定(現時点では deferred)。evidence comment 投稿後に Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 を explicit close する。

検証コマンド結果

PR head SHA 022e8a98356bdaba2df5b47e9b5186e2884b369d の worktree で実行した結果を記載する。

# AC1
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q -k 'independent_manifest_recompute or final_contract_self_copy or malformed or mismatch or tampered or self_attested'
10 passed, 42 deselected

# AC2
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q -k 'matching_readbacks'
1 passed, 51 deselected

# AC3/AC4(Issue記載の-kフィルタ文字列は再設計後のテスト名と不一致。意図は下記の名称変更後テストで継続カバー)
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q -k 'trusted_source or trusted_and_untrusted_jobs or trust_boundary or source_checkout_ref or no_secrets_oidc_or_write_token'
6 passed, 46 deselected

# AC5
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q -k 'failure_reason or legacy or upload'
4 passed, 48 deselected

# AC6
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q
52 passed
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_publish_exec.py -q
24 passed
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py -q
33 passed

# AC7(静的・fixture 検証のみ。protected default-branch canary の実 dispatch/readback は merge 後に別途実施)
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q -k 'test_protected_default_branch_canary_readback'
1 passed, 51 deselected

# ruff(対象ファイルの静的検査)
$ uv run --locked ruff check scripts/agent-ops/test_verdict_execution_record_producer.py scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py scripts/agent-guards/controlled_skill_mutation_exec.py scripts/agent-guards/tests/test_test_verdict_publish_exec.py .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py
All checks passed!

Allowed Paths 遵守

本 PR の変更ファイルは、人間の明示承認によって拡張された Issue #1711 の Allowed Paths に含まれるファイルに限定されている。

  • .github/workflows/test-verdict-execution-record.yml
  • scripts/agent-ops/test_verdict_execution_record_producer.py
  • scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py
  • schemas/test-verdict-execution-record.schema.json
  • schemas/test-verdict-producer-receipt.schema.json
  • scripts/agent-guards/controlled_skill_mutation_exec.py
  • scripts/agent-guards/tests/test_test_verdict_publish_exec.py
  • .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py(人間の明示承認による Scope Delta 拡張、fixture-only 更新)

docs/dev/agent-skill-boundaries.md / docs/dev/workflow.md / docs/dev/runtime-verification-policy.md も Allowed Paths に含まれているが、本 PR では変更していない(上記 Notes セクション記載のとおり)。Allowed Paths 外のファイル変更は含まれない。

Runtime Verification Evidence(実行時検証証跡)

Issue #1711 の Runtime Verification Applicability は decision: immediate, mode: protected_default_branch_post_merge_canary, applicable_acs: [AC1, AC2, AC3, AC4, AC5, AC6, AC7] と定義されている。

  • AC1/AC2/AC5/AC6 は local pytest(static/fixture-driven)のみで意味的に検証可能な範囲であり、上記のとおり全て PASS した。
  • AC3/AC4/AC7 は本質的に protected default-branch workflow_dispatch 環境と REST API readback を要する runtime canary evidence(artifact IDs/name/digest、run/head、source repo/commit/tree、expiry、schema、PASS eligibility、digest/manifest binding、untrusted job の token/secrets/OIDC absence)を必要とする。この runtime canary は merge 後に別途 dispatch する(現時点では deferred)。
  • 手順(Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 Runtime Verification Applicability の procedure に準拠): (1) static/fixture verification 完了(本 PR で完了済み)→ (2) merge 後に protected default-branch bootstrap/post-merge canary を exact PR head SHA で dispatch → (3) REST API で artifact IDs/name/digest、run/head、source repo/commit/tree、expired、schema、PASS eligibility、digest/manifest binding を readback → (4) untrusted job の token/secrets/OIDC absence を workflow evidence で確認 → (5) evidence comment を Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 に投稿し、その後にのみ explicit close する。
  • Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 の Delivery Rule のとおり、本 PR は Relates to #1711 の関係を維持し Closes #1711 は使用しない。merge 後の runtime canary evidence comment 投稿・readback 完了後に人間が Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 を explicit close する。

trusted producer harness の final assemble-contract が command_manifest_sha256
を含まないため build-receipt の stable 判定が常に False になっていた回帰を
修正する。assemble-contract / build-receipt に --command-id を追加し、両者が
COMMAND_MANIFEST から独立に再計算した SHA を突き合わせて
missing/malformed/tampered/self-attested/final-contract self-copy を
fail-closed で拒否する。あわせて対象 PR の exact head SHA を別ジョブ
(resolve-untrusted-source, secrets/OIDC/write token なし) で checkout し、
source provenance (commit/tree) を trusted producer job が独立検証する
trust boundary を追加し、build-record/build-receipt 失敗を upload-artifact
の missing-file エラーで隠さず直接診断するステップを追加した。

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

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #1843 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 #1843 レビュー結果(iteration 1 / 再レビュー)

確認した内容

  1. PR本文の必須セクション: 全て存在を確認済み。## 受け入れ条件の達成状況(AC1〜AC7)、## 検証コマンド結果(実行結果付き)、## Allowed Paths 遵守、## Runtime Verification Evidence、## Safety Claim Matrix、## Schema Change Applicability / ## Schema Consumer Inventory すべて記載済み。head SHA は不変(db855a1432154c442302e4a4bccb0004a43ca403)で body-only 更新であることを確認。
  2. Closes #1711 不在の扱い: Issue #1711 本文の ## Delivery Rule を直接確認し、PR body relation は "Relates to #1711" とし、"Closes #1711" は使用しない と明記されていることを検証した。blocker としない。
  3. Mergeability: mergeable: MERGEABLE, mergeStateStatus: CLEAN, isDraft: true(Draft自体はblockerでない)。
  4. CI証拠: ci_verdict_summary.py --pr 1843 --expected-head-sha db855a1432154c442302e4a4bccb0004a43ca403 を実行し exit 0 / status: all_pass、全 required check SUCCESS を確認。
  5. Allowed Paths gate(review_subagent 独立再計算): allowed_paths_review_gate.py を git_diff_name_status_find_renames_z で実行。結果 status: ok、violations: []。変更ファイル3件(.github/workflows/test-verdict-execution-record.yml, scripts/agent-ops/test_verdict_execution_record_producer.py, scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py)は全て Allowed Paths 内。
  6. AC coverage / 実装の実体確認: git diff で実差分を直接読み、AC1(classify_contract_manifest_binding による独立再計算・missing/malformed/tampered/self_attested 拒否)、AC2(--command-id を assemble-contract/build-receipt へ追加し独立 SHA を全段束縛)、AC3/AC4(resolve-untrusted-source 別ジョブ・contents: read のみ・secrets/OIDC/write token 不在・assert-source-provenance fail-closed)、AC5(build-receipt 失敗時に reason_category を先に印字してから upload-artifact に到達する診断ステップ)が実際にコードへ反映されていることを確認した。AC3/AC4/AC7 は Issue の Runtime Verification Applicability(decision: immediate, mode: protected_default_branch_post_merge_canary)に従い post-merge canary へ deferred — Issue 契約自身が規定した正当な手順であり blocker ではない。
  7. Schema / Safety gate: not_schema_change 宣言と実差分(schema ファイル変更なし)が一致。Safety Claim Matrix が存在し、Not controlled 行(AC7 canary readback)も bounded な follow-up(#1711自身、evidence 後 explicit close)付きで妥当。

Blocker

なし。

LOOP_VERDICT_V2:
  verdict: APPROVE
  reviewed_head_sha: "db855a1432154c442302e4a4bccb0004a43ca403"
  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"
    producer_role: "review_subagent"
    worker_report_used_as_canonical: false
    changed_files_source: "git_diff_name_status_find_renames_z"
    changed_files:
      - ".github/workflows/test-verdict-execution-record.yml"
      - "scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py"
      - "scripts/agent-ops/test_verdict_execution_record_producer.py"
    violations: []
    contract_fingerprint:
      issue_number: 1711
      contract_source_kind: "issue_comment"
      contract_source_id: "5110748528"
      contract_body_sha256: "sha256:92634e157055d3e91799ce3b1162eced9f762c6dba30a6389ac536f0320f32fa"
      allowed_paths_normalized_sha256: "d2cfefea28ce600dd5e0063a8e38bfd07d35a7b1d90c319dc1899e30a1215f7f"
      base_ref: "main"
      base_sha_at_snapshot: "63fb1a92257e712b02a78241351637087f66ee26"

@squne121

Copy link
Copy Markdown
Owner Author

判定

REQUEST_CHANGES — 現状はマージ不可です。

レビュー対象は head SHA db855a1432154c442302e4a4bccb0004a43ca403。PRはopen・Draftで、GitHub上はmergeable、CIも成功しています。しかし、CIが検証しているのは主として静的な文字列条件であり、Issue #1711が要求する「対象PRのexact sourceを実行した証拠」にはなっていません。

Blocker 1:対象PRのコードを実行せず、対象PRがPASSしたreceiptを生成できる

resolve-untrusted-source は対象PRのSHAをcheckoutしますが、実施しているのはcommit/treeの取得だけです。実際の execute --command-id uv.pytest.execution-record は、後続のtrusted produce jobがdefault branchの ${{ github.sha }} をcheckoutしたworkspace上で実行しています。

しかも COMMAND_MANIFEST はdefault branch側の scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py を実行し、AC1〜AC5をcoveredと自己宣言するだけです。対象PRのtreeをテスト対象として渡す処理はありません。

したがって、現在のchainは実質的に次の意味になります。

対象PRのHEAD SHAを確認した
+
default branch上のproducerテストが通った
=
対象PRのHEADを実行してPASSした

この推論は成立しません。Issue #1711のAC3は、対象PR exact headを実行し、source repository ID・commit SHA・treeをexecution recordとreceiptにbindすることを明示的に要求しています。

修正条件: trusted harnessのテストコードと対象PR sourceを別checkoutにし、trusted harnessが対象PR sourceを明示的な入力として検証しなければなりません。


Blocker 2:「PRコードを実行しない」というコメントと実装が正反対

workflowコメントは「subject PRのコードを実行しない」と主張していますが、PR headをcheckoutした直後に以下を実行しています。

- uses: ./.github/actions/setup-python-uv
- run: uv run --locked python3 scripts/agent-ops/test_verdict_execution_record_producer.py ...

ローカルActionとPythonスクリプトは、いずれもcheckoutした対象PRが自由に変更できるファイルです。つまり resolve-untrusted-source はgit plumbingだけを読むjobではなく、明確にPR-controlled codeを実行しています。

さらに uv run は実行前にproject environmentを同期し、pyproject.toml にbuild systemがあればprojectをbuild/installします。対象PRがbuild backendや依存関係を変更できる以上、producer script以外にも実行surfaceが存在します。([Astral Docs]1)

persist-credentials: false はGit credentialの永続化を止めるだけです。Actionは github.token contextへアクセスでき、今回のローカルActionはcacheをデフォルトのauto設定で利用しています。権限がcontents: readに制限されているためrepository writeの影響は抑えられますが、provenance artifactの偽造、tokenの読み取り、cache/stateへの干渉というsurfaceは残ります。 ([GitHub Docs]2)

GitHubの公式セキュリティガイダンスでも、untrusted checkout後にPR-controlledなinstall/build/scriptを実行する構成は任意コード実行として扱われ、PR内容はpassive dataとしてのみ処理するよう求められています。([GitHub Docs]2)


Blocker 3:source provenanceが自己申告で、record・receipt・schema・consumerにbindされていない

assemble-source-provenance 自体が対象PR側のPythonコードです。その出力をtrusted jobが検査していますが、検査内容は以下にとどまります。

  • repository_full_name が文字列一致
  • commit_sha がdispatcher入力と一致
  • tree_sha が40桁hex形式

tree_sha はtrusted sourceから再計算・照合されていません。PR-controlled scriptは、正しいcommit SHAと任意の40桁tree SHAを出力できます。

さらに、このprovenanceはexecution recordにもproducer receiptにも格納されていません。

  • execution-record schemaのsubjectはPR番号、head repository ID、head SHAだけ

  • receipt schemaも同じ

  • 両schemaとも additionalProperties: false

  • downstream publisher consumerもsource repository ID・tree・provenance digestを検証していない

PR本文は not_schema_change としていますが、Issue #1711のAC6は必要なsource fieldsをadditive versioned extensionとしてschema validationし、consumer transitionまで実装することを要求しています。現在の実装では、その要件を構造上満たせません。

schema_change / not_schema_change というラベルの解釈にIssue内の曖昧さはありますが、少なくとも次のフィールドがschema-validated artifactに存在しなければAC3/AC6は達成できません。

{
  "source": {
    "repository_id": 123,
    "repository_full_name": "owner/repo",
    "commit_sha": "...",
    "tree_sha": "...",
    "execution_run_id": 123,
    "execution_job_id": 456
  }
}

Blocker 4:trusted preflightより先に、dispatcher指定SHAのコードを実行している

DAGは以下の順です。

resolve-untrusted-source
  ↓
produce
  ├─ PR REST readback
  └─ expected_head_shaとの照合

つまり、expected_head_sha が本当に指定PRのcurrent headかをtrusted APIで検証する前に、そのSHAのローカルActionとPythonコードを実行しています。

GitHubの現在の仕様では、通常はrepositoryへのwrite accessを持つユーザーが workflow_dispatch を起動できます。GitHub自身もmanual-trigger abuse対策として、workflow_dispatch をmaintainer等へ制限するexecution protectionを推奨しています。本リポジトリでそのactor restrictionが有効である証拠は、PR・Issue・runtime evidenceにはありません。([GitHub Docs]3)

修正条件: 最初にtrusted preflight jobを置き、GitHub APIからPRのhead repository ID、head repository full name、commit SHA、tree SHAを解決してください。untrusted execution jobは、そのtrusted outputだけを入力にする必要があります。


High:command_manifest_sha256 検証をCLI利用者が省略できる

build_receipt() は expected_manifest_sha256 is None の場合、manifest binding検証を完全にスキップします。CLIの --command-id もoptionalです。

現在のworkflowは --command-id を渡していますが、security boundaryとして公開されているCLI/APIがfail-openです。呼び出し側が省略すると、recordとfinal contractに同じ自己申告SHAを入れたschema-valid receiptを生成できます。

修正条件:

  • build-receipt --command-id をrequiredにする
  • build_receipt() からoptionalな None 経路を削除する
  • 可能ならrecord内のexecution command IDから再計算し、外部入力に依存しない
  • command ID、manifest SHA、execution argv_sha256 の三者一致を必須にする

Medium:テストは脅威モデルではなく、文字列の存在を検証している

追加されたAC3テストは、workflow内に特定文字列があることを確認し、tree_sha = "b" * 40 を正常値として受理しています。AC4テストもuntrusted job部分に github.token や secrets. という文字列がないことだけを確認しています。ローカルAction、PR-controlled Python、uv run、implicit token accessは検出しません。AC7もruntime canaryではなく文字列確認です。

そのため31件のpytest成功は、上記の誤った設計仮定をそのまま固定しただけです。既存レビューが「blockerなし」とした根拠も、別jobの存在とtoken文字列の不在を中心としており、同じblind spotがあります。

リポジトリの通常レビューloopは、明示的にadversarial reviewを採用しない方針です。このPRのようなGitHub Actions trust-boundary変更だけでも、独立したsecurity-boundary reviewを必須化すべきです。


Medium:AC5のmachine-readable diagnosticsも部分的

_cmd_build_record() は例外をmachine-readableな reason_category に変換していません。_cmd_build_receipt() もtry/exceptの対象は build_receipt() のみで、JSON読込やschema validationは範囲外です。これらはPython tracebackの後、workflow側の包括的な execution_record_build_failed / producer_receipt_build_failed に集約されます。

少なくとも次を個別分類すべきです。

input_json_invalid
schema_validation_failed
manifest_binding_failed
artifact_readback_failed
source_provenance_failed
receipt_not_pass_eligible

推奨アーキテクチャ

trusted-preflight
  - default branch上のworkflow/harnessのみ
  - GitHub APIでPR head repo ID / SHA / treeを解決
  - PRコードをcheckout・実行しない
          ↓
untrusted-execution
  - exact PR sourceをsource/へcheckout
  - trusted harnessをharness/へ別checkout
  - source側の .github/actions やproducer scriptを使用しない
  - secrets/OIDCなし、cache無効、token最小化
  - 可能ならcontainer内でsourceを実行
          ↓
trusted-receipt
  - PRコードをcheckout・実行しない
  - artifactをuntrusted dataとして解析
  - workflow run/job metadataとGitHub API readbackを照合
  - source repo ID / commit / treeをrecord・receiptへbind
  - schemaとconsumerで同一性を検証

GitHubが示す標準的な分離は、unprivilegedな pull_request workflowでuntrusted codeを実行し、必要なら workflow_run のtrusted workflowで結果を処理する方式です。ただし、前段から渡されたartifact自体もuntrustedであり、trusted側で実行してはいけません。([GitHub Docs]2)

必須追加テスト

  1. 対象PRが .github/actions/setup-python-uv/action.yml を改変しても、そのActionが実行されない。
  2. 対象PRがproducer scriptを「常に正しいprovenanceを出す」実装へ改変してもreceiptが生成されない。
  3. 悪意あるpyproject.toml build backendがprovenance取得経路で実行されない。
  4. trusted APIから取得したtree SHAとartifact内tree SHAが異なる場合はfail。
  5. source repository ID欠落・不一致でconsumerがfail。
  6. build-receipt の --command-id 省略時はargparse段階でfail。
  7. trusted preflight失敗時にuntrusted execution jobが起動しない。
  8. runtime canaryがrecord・receipt・consumerの全段で同一source tupleを確認する。

構造化判定

LOOP_VERDICT_V2:
  verdict: REQUEST_CHANGES
  reviewed_head_sha: "db855a1432154c442302e4a4bccb0004a43ca403"
  merge_ready: false
  blockers:
    - target_pr_head_not_executed
    - untrusted_pr_controlled_action_and_python_executed
    - source_provenance_self_attested
    - source_provenance_not_bound_to_record_receipt_schema_consumer
    - trusted_head_preflight_occurs_after_untrusted_execution
    - command_manifest_binding_optional_fail_open
  required_auto_actions: []
  auto_fix_applied: []
  follow_up_issue_requests: []

command_manifest_sha256 の伝播修正自体は妥当な方向ですが、それによって従来 pass_eligible: false で止まっていたchainを有効化するには、上記のsource execution・provenance bindingを先に完成させる必要があります。現状でmanifest修正だけを通すと、**「対象PRを実行していないのに、対象PR current-headのPASS receiptを発行できる」**状態になります。

squne121 added 3 commits July 29, 2026 19:10
…追随させる (#1711)

PR #1843 の人間 REQUEST_CHANGES に対応するため、TEST_VERDICT_EXECUTION_RECORD_V1 /
TEST_VERDICT_PRODUCER_RECEIPT_V1 schema に repository_id/repository_full_name/
commit_sha/tree_sha/execution_run_id/execution_job_id を含む `source` 必須
additive フィールドを追加した。これにより Allowed Paths 外の
test_materialize_test_verdict_artifact.py の既存 fixture が新 schema と
不整合になったため、人間の明示承認により Allowed Paths を拡張し、
fixture のみ(本体コードは変更なし)を新 schema に合わせて更新する。
… を修正する

untrusted_job_id="$(...)" の外側二重引用符に -c 内の二重引用符文字列が
ネストし、custom shell splitter が内側の ; を top-level 区切りと誤認識
していた(unsupported_shell_grammar)。job_id は数値のみで word-splitting
の懸念がないため、外側の引用符を除去して checker が解釈できる grammar
にした。動作(untrusted-job.jsonからjob_id抽出しGITHUB_OUTPUTへ)は不変。

Relates to #1711
@squne121

Copy link
Copy Markdown
Owner Author

CI_TEST_PERFORMANCE_DECISION_V1

CI_TEST_PERFORMANCE_DECISION_V1:
  schema: CI_TEST_PERFORMANCE_DECISION_V1
  issue_number: 1711
  pr_number: 1843
  decision_scope: ci_change
  changed_paths:
    - .github/workflows/test-verdict-execution-record.yml
  lane_classification:
    - path: .github/workflows/test-verdict-execution-record.yml
      lane: contract_artifact
      rationale: "workflow file の shell grammar 修正のみ。lane 構成・実行時間・並列度は変更なし。"
  ci_runtime_baseline_v1_available: false
  risk_flags: []
  summary: "governed Python invocation policy checker が誤検知していた unsupported_shell_grammar (job_id 抽出の nested double-quote) を、引用符を1段減らす書き換えで解消。lane classification / runtime への影響なし。"

scripts/ci/check_python_invocation_policy.py --strict で該当2箇所の unsupported_shell_grammar violation を解消(0 violations, 75 surfaces, 14 exceptions loaded)。

pr-review-judge iteration 3 で発見された runtime バグを修正する。
untrusted-execution job 内の「Verify checked-out source tree matches
trusted-resolved identity」ステップが `uv run --locked` を呼び出すが、
これは同 job の setup-python-uv ステップより前に配置されていたため、
fresh ubuntu-latest runner では `uv: command not found` で job が
即座に失敗する(AC1 が担う中核 job そのものが動作しない)。

setup-python-uv ステップをこの検証ステップより前に移動して解消した。

既存テスト test_given_workflow_when_rendered_then_setup_python_uv_is_used_before_uv_commands
は workflow 全文中の setup-python-uv / uv run の最初の出現位置を
グローバルに比較するのみで、job ごとのステップ順序を検証していなかった
ため、この class の順序バグを見逃していた。yaml.safe_load した
workflow を各 job ごとにスコープして setup-python-uv ステップが
その job の最初の uv run ステップより前に来ることを検証するよう強化した。
バグを再導入すると red になることを確認済み。
@squne121

Copy link
Copy Markdown
Owner Author

CI_TEST_PERFORMANCE_DECISION_V1(iteration 3 追記)

CI_TEST_PERFORMANCE_DECISION_V1:
  schema: CI_TEST_PERFORMANCE_DECISION_V1
  issue_number: 1711
  pr_number: 1843
  decision_scope: ci_change
  changed_paths:
    - .github/workflows/test-verdict-execution-record.yml
    - scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py
  lane_classification:
    - path: .github/workflows/test-verdict-execution-record.yml
      lane: contract_artifact
      rationale: "untrusted-execution job 内のステップ順序修正のみ(setup-python-uvをuv使用ステップより前へ移動)。job数・並列度・runs-on・timeout-minutesは不変。実行時間への影響なし。"
    - path: scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py
      lane: python_unit
      rationale: "既存テスト1件をグローバル文字列比較からjobスコープ判定へ強化。テスト数増減なし(52件のまま)。"
  ci_runtime_baseline_v1_available: false
  risk_flags: []
  summary: "pr-review-judge iteration 3で発見されたruntimeバグ(untrusted-execution jobでuv run --lockedがsetup-python-uvより前に実行されfresh runnerでuv: command not foundとなり中核jobが即座に失敗する)を修正。setup-python-uvステップを検証ステップより前に移動。既存の順序検証テストがjob単位でなくworkflow全文のグローバル最初出現位置比較だったため見逃していたclassのバグを検出できるよう、yaml.safe_load後にjobごとにスコープした順序検証へ強化した(バグ再導入でredになることを確認済み)。lane構成・実行時間への影響なし。"

Verification: Issue #1711 AC1-AC7 全 Verification Commands、scripts/agent-guards/tests/test_test_verdict_publish_exec.py、.claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py、uv run --locked python scripts/ci/check_python_invocation_policy.py --strict を再実行し全て 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.

PR #1843 レビュー結果(iteration 3 再レビュー、head 32f277e)

確認した内容

  1. 順序バグの修正確認: .github/workflows/test-verdict-execution-record.yml を直接読み、untrusted-execution job内で「Verify checked-out source tree matches trusted-resolved identity」(uv run使用) が ./harness/.github/actions/setup-python-uv の後に移動されたことを確認した(123行目 setup → 129-132行目 verify)。trusted-preflight job・produce job も含め、他に同種の「uvステップがsetup-python-uvより前」というバグが残っていないことを全ステップ走査で確認した。iteration 3 のコミット(32f277e5)の diff は該当ファイル1箇所(5行入替)のみで、他ロジックへの副作用なし。
  2. テスト強化の実効性検証: test_given_workflow_when_rendered_then_setup_python_uv_is_used_before_uv_commands が旧来のグローバル文字列位置比較から yaml.safe_load によるjobスコープ順序検証へ変わっていることを確認。実際に mutation test(旧コミットのworkflow内容へ一時的に差し戻し→再テスト→即座に復元)を実施し、退行時に明確に fail することを独立検証した(false green ではない)。
  3. VC 再実行(全て独立に再現): test_test_verdict_execution_record_workflow.py -q → 52 passed、AC1系(-k 'source')→ 14 passed、AC4系(-k 'untrusted or trusted_preflight or workflow_yaml')→ 8 passed、test_test_verdict_publish_exec.py -q → 24 passed、test_materialize_test_verdict_artifact.py -q → 33 passed、check_python_invocation_policy.py --strict → 0 violations。
  4. CI: ci_verdict_summary.py --pr 1843 --expected-head-sha 32f277e5 → status: all_pass、exit 0。head一致・stale なし。
  5. Allowed Paths gate: Issue #1711 本文の Allowed Paths(Scope Delta 拡張済み、fixture ファイルを含む)と PR の8変更ファイルを突合し、Allowed Paths 外の変更が0件であることを確認した。
  6. 人間指摘6件のtrust-boundary blockerのregression確認: iteration 3 自体は workflow順序修正+テスト強化の2ファイルのみに厳密限定。scope混入なし。
  7. Mergeability: mergeable: MERGEABLE, mergeStateStatus: CLEAN。

blocker なし。

LOOP_VERDICT_V2:
  verdict: APPROVE
  reviewed_head_sha: "32f277e50f7932b2786a9ade9eeadb368e5bd509"
  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
    producer_role: review_subagent
    worker_report_used_as_canonical: false
    changed_files_source: git_diff_name_status_find_renames_z
    changed_files:
      - ".github/workflows/test-verdict-execution-record.yml"
      - "scripts/agent-ops/test_verdict_execution_record_producer.py"
      - "scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py"
      - "scripts/agent-guards/tests/test_test_verdict_publish_exec.py"
      - "scripts/agent-guards/controlled_skill_mutation_exec.py"
      - "schemas/test-verdict-execution-record.schema.json"
      - "schemas/test-verdict-producer-receipt.schema.json"
      - ".claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py"
    violations: []
    note: "8 changed files すべて Issue #1711 本文の Allowed Paths(Scope Delta 拡張後)に一致。"

@squne121
squne121 marked this pull request as ready for review July 29, 2026 12:55
@squne121
squne121 merged commit 7fdcfb8 into main Jul 29, 2026
25 checks passed
@squne121
squne121 deleted the worktree-issue-1711-producer-receipt-command-manifest-sha256 branch July 29, 2026 12:55
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.

1 participant