Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1645"
goal_ref: "trusted producer と対象 PR exact-source execution を分離し、current-head provenance と command_manifest_sha256 を pre-contract/record/final-contract/receipt 全段へ独立束縛して fail-closed にする"
change_kind: codeParent Issue
Parent Goal Ref
- Goal: trusted producer harness の証跡と対象 PR の実行結果を同一の exact source provenance、Issue contract、per-AC execution record、artifact digest、publisher receipt に束縛する。
- Related dependencies: 実装: current-head TEST_VERDICT artifact の sanctioned producer を追加する #1645, 実装: HEAD-bound TEST_VERDICT publisher transaction を追加する #1647, 実装: TEST_VERDICT consumer integration を追加する #1648(参照のみ。この Issue では変更しない)。
Current Validated Scope
- 既存 producer chain では receipt への
command_manifest_sha256伝播欠落が upload の missing-file error に隠れるため、直接の build failure と reason category を保持する必要がある。 - 現行 workflow は default branch producer contract test を実行するだけで対象 PR head の exact source execution を証明しないため、B の controlled reframe で provenance/trust boundary を追加する。
Remaining Parent Gaps
- 実装: current-head TEST_VERDICT artifact の sanctioned producer を追加する #1645/実装: HEAD-bound TEST_VERDICT publisher transaction を追加する #1647/実装: TEST_VERDICT consumer integration を追加する #1648 の本文・dependency graph の更新は対象外だが、producer receipt を受理する TEST_VERDICT_MACHINE consumer の限定的な契約 wiring は本 Issue に含める。
- artifact schema major の移行は本 Issue では行わず、既存 schema を保持した additive versioned extension のみ許可する。
Scope Decision (B)
- Reviewer feedback anchor comment に対する B: controlled reframe を採用した。
- 明示承認済みの scope expansion として、target PR exact-source/current-head provenance、trusted producer harness と untrusted PR source execution の境界、runtime verification を本 Issue の契約へ取り込む。
command_manifest_sha256の独立再計算・final contract 伝播・direct failure diagnostics は従来どおり維持する。
Outcome
.github/workflows/test-verdict-execution-record.yml と producer 回帰テストが、trusted checkout の COMMAND_MANIFEST を独立再計算し、pre-contract・execution record・final contract・producer receipt の全段を同一 SHA に束縛する。trusted producer harness は別 checkout/worktree/job で untrusted 対象 PR source execution から分離され、対象 PR の exact head SHA を実行する。untrusted execution には secrets、OIDC、write token を渡さず、実行した source repository ID・commit SHA・tree を execution record/receipt に bind する。対象 PR head を実行していない record は current-head PASS として受理しない。欠落・malformed・不一致・tampered provenance/manifest/record は fail-closed で拒否され、直接の receipt-build failure と reason category が観測できる。protected default-branch canary の REST artifact readback(ID/name/digest/run/head/expired/schema/pass eligibility/digest binding)を確認し、証跡コメント後にのみ close 可能とする。
In Scope
.github/workflows/test-verdict-execution-record.ymlの trusted producer harness と untrusted PR source execution の別 checkout/worktree/job 境界、権限分離、exact-head checkout、current-head provenance、protected-default-branch bootstrap/post-merge canary。scripts/agent-ops/test_verdict_execution_record_producer.pyで trusted checkoutCOMMAND_MANIFESTを再計算し、missing/malformed/mismatch/tampered/self-attested manifest、source repo/commit/tree 欠落または不一致、未実行 PR head を拒否する。command_manifest_sha256を pre-contract→record→final contract→receipt へ独立に伝播し、final contract が record の自己コピーだけにならないことを検証する。- untrusted PR source job の checkout source を対象 PR exact SHA に固定し、secrets/OIDC/write token を環境へ渡さないことを workflow と guard test で確認する。
scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.pyと関連 fixture で、実 workflow composition、provenance binding、権限境界、legacy failure shape、machine-readable reason category、non-regression を検証する。docs/agent-opsproducer、workflow、TEST_VERDICT_MACHINE/v2 reader、guard tests の consumer inventory と contract mapping を更新する。- test-verdict execution-record/producer-receipt schema に source repository ID・commit SHA・tree と producer→receipt→consumer binding を検証可能にする additive versioned extension を追加し、既存 schema を壊さない consumer transition を実装する。
Out of Scope
- 実装: current-head TEST_VERDICT artifact の sanctioned producer を追加する #1645/実装: HEAD-bound TEST_VERDICT publisher transaction を追加する #1647/実装: TEST_VERDICT consumer integration を追加する #1648 の本文・コード・workflow の変更、TEST_VERDICT コメント marker/idempotency、HEAD barrier、GitHub API 権限設定そのものの変更。
- artifact schema major の移行・新 major schema の導入(既存 schema と
not_schema_change互換性を維持する)。 - 実装: current-head TEST_VERDICT artifact の sanctioned producer を追加する #1645/実装: HEAD-bound TEST_VERDICT publisher transaction を追加する #1647/実装: TEST_VERDICT consumer integration を追加する #1648 の Issue 本文・dependency graph 更新。
- artifact schema の major breaking change、新 major の置換、または広範な consumer migration。
- target PR 以外の任意 source 実行、remote write/force-push、secrets/OIDC/write token の付与。
Acceptance Criteria
- AC1 (
ac1_independent_manifest_recompute): dedicated test/command が trusted checkoutCOMMAND_MANIFESTから SHA を独立再計算し、missing/malformed/mismatch/tampered/self-attested manifest と final-contract self-copy を fail-closed で拒否する。
- AC2 (
ac2_chain_binding):assemble-contract -> build-record -> final assemble-contract -> build-receipt --schemaが一つの独立再計算 SHA を全段へ束縛し、schema はnot_schema_changeのままpass_eligibleを判定する。
- AC3 (
ac3_exact_source_provenance): trusted harness が untrusted 対象 PR source を別 checkout/worktree/job で exact head SHA として実行し、source repository ID・commit SHA・tree を schema validation 済みの execution record と producer receipt に bind する。対象 PR head を実行していない、欠落・不一致・改ざんされた provenance は PASS 不可。
- AC4 (
ac4_trust_boundary): trusted producer harness と untrusted PR code execution が checkout/worktree/job と権限境界で分離され、untrusted job に secrets・OIDC・write token が存在しないことを workflow static guard、fixture、runtime evidence が証明する。
- AC5 (
ac5_failure_diagnostics): direct receipt-build failure が machine-readable reason category と legacy run/artifact failure shape を保持し、upload missing-file masking を成功証拠として受理しない。
- AC6 (
ac6_non_regression): subject identity、artifact digest、per-AC coverage、default-branch protection、fail-closed consumer checks が green で、producer→receipt→consumer contract が同一 provenance/manifest digest に束縛される。schema は既存 major を維持し、必要な source fields は additive versioned extension として schema validation と consumer transition で検証する。
- AC7 (
ac7_protected_canary_readback): protected default-branch bootstrap/post-merge canary を実行し、REST readback で artifact IDs/names/digests、run/head、source repo/commit/tree、expiry、schema、PASS eligibility、digest/manifest binding を確認してから evidence comment を残す。Issue は自動 close せず、証跡後の explicit close とする。
Verification Commands
# 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'
# AC2
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q -k 'matching_readbacks'
# AC3
# exact PR source execution、source repo/commit/tree schema validation、未実行 target の fail-closed を検証
# 静的/fixture検証のテスト名は trust-boundary 再設計(human REQUEST_CHANGES 対応)で変更された。
# runtime canary(実 workflow dispatch + REST readback)は下記 preflight-scope: runtime_only のまま。
# preflight-scope: runtime_only
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q -k 'source'
# AC4
# trusted harness/untrusted code separation と no secrets/OIDC/write token を検証
# 静的/fixture検証のテスト名は trust-boundary 再設計(human REQUEST_CHANGES 対応)で変更された。
# runtime canary(実 workflow dispatch + REST readback)は下記 preflight-scope: runtime_only のまま。
# preflight-scope: runtime_only
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q -k 'untrusted or trusted_preflight or workflow_yaml'
# AC5
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q -k 'failure_reason or legacy or upload'
# AC6
# producer→receipt→consumer contract、additive schema validation、consumer transition と regression tests
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q
# AC7
# preflight-scope: runtime_only
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q -k 'test_protected_default_branch_canary_readback'Runtime Verification Applicability
decision: immediate
mode: protected_default_branch_post_merge_canary
required: true
applicable_acs: [AC1, AC2, AC3, AC4, AC5, AC6, AC7]
execution_environment: protected_default_branch_workflow_dispatch; GitHub Actions REST readback; exact PR head SHA; no secrets/OIDC/write token in untrusted job
skip_conditions: [workflow_not_on_default_branch, exact_pr_head_unavailable, source_provenance_missing_or_mismatch, receipt_artifact_missing, command_manifest_sha256_missing_or_mismatch]
fallback_policy: fail_closed_no_pass; local fixture or trusted-main-only execution cannot substitute for exact PR source/current-head runtime evidence
artifact_requirements: [execution_record_artifact, producer_receipt_artifact, command_manifest_sha256, source_repository_id, source_commit_sha, source_tree, artifact_digest, rest_readback]
procedure:
- static/fixture verification を完了する
- merge 後に protected default-branch bootstrap/post-merge canary を exact PR head SHA で dispatch する
- REST API で artifact IDs/name/digest、run/head、source repo/commit/tree、expired、schema、PASS eligibility、digest/manifest binding を readback する
- untrusted job の token/secrets/OIDC absence を workflow evidence で確認する
- evidence comment を投稿し、その後にのみ explicit close を行うAllowed Paths
.github/workflows/test-verdict-execution-record.ymlscripts/agent-ops/test_verdict_execution_record_producer.pyscripts/agent-guards/tests/test_test_verdict_execution_record_workflow.pydocs/dev/agent-skill-boundaries.mddocs/dev/workflow.mddocs/dev/runtime-verification-policy.mdschemas/test-verdict-execution-record.schema.jsonschemas/test-verdict-producer-receipt.schema.jsonscripts/agent-guards/controlled_skill_mutation_exec.pyscripts/agent-guards/tests/test_test_verdict_publish_exec.py.claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合(
not_schema_change違反)。ただし additive versioned extension と限定的な consumer wiring は許可する。 - 既存 schema の major breaking change、新 major への置換、または広範な consumer migration が必要になった場合
- trusted/untrusted checkout・worktree・job 分離、exact head、source repo/commit/tree binding、または token/secrets/OIDC 境界を runtime で証明できない場合
command_manifest_sha256の独立再計算・final contract 伝播・direct failure diagnostics が成立しない場合- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Required Skills
なし
Required Design References
- docs/dev/agent-skill-boundaries.md
- docs/dev/workflow.md
- docs/dev/runtime-verification-policy.md
Scope Delta
- B の明示承認により、target PR exact-source/current-head provenance と protected workflow trust boundary(trusted producer/untrusted execution 分離、exact SHA、無権限実行、source repo/commit/tree binding)を Out of Scope から In Scope へ拡張した。
command_manifest_sha256の独立再計算、pre-contract→record→final-contract→receipt 伝播、direct failure diagnostics、protected canary/readback は維持した。- artifact schema major breaking change、広範な consumer migration、実装: HEAD-bound TEST_VERDICT publisher transaction を追加する #1647/実装: TEST_VERDICT consumer integration を追加する #1648 dependency 更新は Out of Scope として固定し、source provenance fields と producer→receipt→consumer wiring は additive versioned extension の範囲で許可した。
- Allowed Paths に
docs/dev/runtime-verification-policy.mdを追加し、runtime evidence 要件を明示した。 - 人間レビュアー(squne121)の PR fix: producer receipt に command_manifest_sha256 を独立再計算で伝播する #1843 REQUEST_CHANGES(trust-boundary blocker、コメント)に対応するため、producer receipt/execution-record schema へ
source(repository_id/repository_full_name/commit_sha/tree_sha/execution_run_id/execution_job_id)を additive 必須フィールドとして追加した結果、Allowed Paths 外の.claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.pyの既存 fixture が新 schema と不整合になることが判明した。人間の明示承認(2026-07-29)により、Allowed Paths に同ファイル(fixture-only 更新、本体コードの変更は不要)を追加した。 - 同 trust-boundary 再設計に伴い workflow を
trusted-preflight → untrusted-execution → trusted-receiptの3 job分離へ再構成し、静的/fixture テストの一部関数名が変更された(AC意図自体は変わらない)。これにより AC3/AC4 の Verification Commands の-kフィルタ文字列が旧テスト名を参照したまま失効していたため、現行テスト名に一致する-kへ機械的に更新した(AC の意味論・runtime canary 要件は変更していない)。
Delivery Rule
- 1 Issue = 1 PR
- worktree で作業し、Draft PR を既定とする。
- PR body relation は
Relates to #1711とし、Closes #1711は使用しない。protected default-branch canary の evidence comment と readback 完了後にのみ explicit close を行う。
Activity
squne121 commentedon Jul 24, 2026
Contract Review Result
squne121 commentedon Jul 24, 2026
Contract Review Result
squne121 commentedon Jul 27, 2026
#1766 からの current-head routing evidence
5e39ca27825d76873b285de39a195a8d8f2311fd)VC_ADJUDICATION_RESULT_V1は blocking となった。test_verdict_execution_record_producer.pyのCOMMAND_MANIFESTがuv.pytest.execution-record(実装: protected TEST_VERDICT execution artifact producer を追加する #1646 bootstrap test)だけを許可し、実装: 回帰テスト: CLOSED native predecessor の候補外 hydration/readback 経路を固定する #1766 の Issue 固有 VC を protected workflow で実行・per-AC binding できないこと。ci-verdict-summary-v2は CI check 集約であり、contract body SHA・diff・Allowed Paths・全 AC の command hash/runtime result を持つTEST_VERDICT_MACHINE/v2の代替にはならない。#1766の Allowed Paths を producer/workflow へ拡張する案は、正式 overlap preflight で本 Issue と同一の3パスに対するdecision: duplicate(goal_ref_duplicate)となったため採用しない。#1766 は本 Issue(および親 #1645 の trust-chain)で protected producer が Issue 固有 VC を正当に扱える状態になった後、fresh head/body binding で verification を再開する。このコメントは current-head の routing evidence であり、#1711 の既存契約・Allowed Paths をこの場で変更するものではない。
squne121 commentedon Jul 27, 2026
判定
STOP / NEEDS_REFRAME
Issue #1711 が対象としている欠落伝播バグ自体は実在します。しかし、現在の契約のまま
command_manifest_sha256を単純に receipt へコピーすると、fail-closed で止まっていた trust chain を、意味的に不正な PASS が通る状態へ変える危険があります。特に、「対象 主
EAD のコードを実行していない
親 Issue #1645 は、current PR HEAD、Issue contract、per-AC execution record、artifact digest、publisher receipt を一つの trust chain に束縛することを目標にしています。
ところが現在の workflow は、default branch の
${{ github.sha }}を checkout し、その作業ツリー上で固定されたuv.pytest.execution-recordを実行しています。対象 PR の SHA はsubject.pr_head_shaとして記録されるだけで、checkout も実行対象への使用もされていません。さらに producer 自身が、このコマンドを「Issue #1646 専用の bootstrap contract test」であり、一般的な per-AC producer ではないと明記しています。実行されるのも producer workflow の contract test 一本です。
したがって現在の証跡が証明できるのは、概ね次だけです。
これは「対象 PR HEAD の Verification Commands が成功した」という証明ではありません。SLSA の provenance モデルでも、実際に使用した source commit は resolved dependency として記録・束縛される必要があります。 ([SLSA]1)
必要な処置
#1711 の狭い propagation 修正とは分けて、少なくとも以下を設計し直す必要があります。
expected_head_shaの exact commit を別ディレクトリまたは別 job で checkout する。これは #1711 の Stop Conditions に抵触する親設計上の欠陥です。単純な回帰修正として処理すべきではありません。
P0-2 — AC1 は tautological self-copy でも達成できる
現在のデータフローは次のようになっています。
assemble-contractはlinked_issue_numberとissue_body_sha256だけを生成する。build_record_for_commandが内部でcommand_manifest_sha256を追加する。assemble-contractを使うため、final contract には manifest SHA がない。build_receiptはfinal_contract == record["contract"]を要求し、receipt にはfinal_contractをそのまま格納する。command_manifest_sha256を必須としている。つまり、実 run の失敗は偶発的な workflow mapping 漏れではなく、contract assembly の責務が二つの経路で非対称になっていることが原因です。
ここで
final_contract = record["contract"]のようにコピーすれば一見直りますが、それは record 自身が主張する manifest SHA を record 自身で承認する自己証明です。PR #1683 でも、record からの自己コピーは tautological であるとして、subject/contract の独立した final readback に修正したと説明されています。最低限必要な実装
assemble-contractに--command-idを渡し、trusted checkout 上のCOMMAND_MANIFESTから SHA を独立計算する。build_record_for_commandは SHA を黙って上書きせず、入力 contract の SHA が resolved manifest と一致することを検証する。build_receiptも、record と final contract の文字列比較だけでなく、trusted manifest から再計算した値との一致を検証する。既存 schema は既に正しいため、schema change は不要です。
P1-1 — 現在の regression test は実際の故障経路を通っていない
既存の positive test は、final contract として
record["contract"]を直接渡しています。つまり、実 workflow が行う「final Issue readback →assemble-contract」を省略し、最初から manifest SHA 入りの contract を自己コピーしています。schema test も同じ経路を使用しているため、実 workflow で receipt schema validation が失敗する問題を検出できませんでした。
さらに Issue #1711 の AC3 は、テストファイルに run ID
30120049703と artifact ID8606984998が文字列として存在することしか確認していません。これは regression fixture の存在確認にも、故障の再現確認にもなりません。必要なテストは次です。
assemble-contract → build-record → final assemble-contract → build-receipt --schemaを通す。pass_eligible=trueの receipt が生成される。ACごとに同じテストファイル全体を実行するのではなく、要件に対応する名前付き test node を Verification Command に指定すべきです。
P1-2 — post-merge canary と自動クローズが両立していない
GitHub の
workflow_dispatchは workflow ファイルが default branch に存在する必要があり、実行時のGITHUB_SHAは dispatch 対象 ref の最新 commit です。したがって trusted default-branch producer の修正は、基本的にマージ後でなければ runtime 証明できません。 ([GitHub Docs]2)Issue #1711 は
immediate_and_post_merge_canaryを要求していますが、Delivery Rule は通常の「1 Issue = 1 PR」です。PR にCloses #1711を付けると、canary 成功前に Issue が closed され、#1646 と同じ失敗を繰り返します。実際の run
30120049703は、execution record の upload までは成功しましたが、producer receipt の upload で failure となり、以後の REST identity verification と pass gate は skipped されました。クローズ条件を変更すべきです。
Relates to #1711とし、merge 時には自動クローズしない。pass_eligible=true、manifest SHA 一致を確認する。GitHub artifact API が返す ID、digest、workflow run identity は、この readback の authority として利用できます。 ([GitHub Docs]3)
P1-3 — #1647 と #1648 の dependency graph が古い
Publisher の #1647 は「Child A の valid receipt」を前提としており、consumer integration の #1648 は Child A/B の完了を前提としています。しかし両 Issue とも #1711 を明示的な blocker にしていません。
#1646 が closed 扱いのままなので、計画上は #1647 が着手可能に見えます。現在の producer は正常な receipt を作れず、さらに current-head provenance も成立していません。
必要な変更は以下です。
P2 — 本当の失敗理由が upload error に隠されている
Build producer receiptはcontinue-on-error: trueになっています。そのため schema validation で receipt が生成されなくても workflow は続行し、次のUpload producer receiptが「ファイルなし」で失敗します。actions/upload-artifactのif-no-files-found: errorは、対象ファイルが存在しない場合に upload step を失敗させる仕様です。 ([GitHub]4)fail-closed 自体は正しいものの、診断点がずれています。
continue-on-errorを外す。missing_command_manifest_sha256またはmanifest_digest_mismatchを確認する。推奨する Issue #1711 の再定義
#1711 は次の二段階に分けるのが妥当です。
局所的回帰修正
親 trust-chain の設計修正
前者だけを実装する場合でも、成果を「current-head TEST_VERDICT の修復」と表現してはいけません。現時点で修復できるのは、bootstrap producer contract test の receipt integrityまでです。
最終判断
現 Issue 本文のまま実装開始不可です。
最低でも次の三点を本文へ反映してから、fresh contract review を取り直す必要があります。
加えて、current-head provenance の欠陥は別の P0 blocker として親 #1645 に戻すべきです。
[確認に使用した artifact 8606984998](sandbox:/mnt/data/execution-record-8606984998.zip)
squne121 commentedon Jul 28, 2026
Contract Review Result
squne121 commentedon Jul 28, 2026
Contract Review Result
fix: actionlint shellcheck SC1083 対応で tree sha 取得コマンドを quote する (#1711)
squne121 commentedon Jul 28, 2026
implement-issue: 実装完了 (2026-07-28T23:26:26Z)
.claude/worktrees/issue-1711-producer-receipt-command-manifest-sha256worktree-issue-1711-producer-receipt-command-manifest-sha256proceed_with_collision_evidence(evidence_sha256: sha256:39770749423496925232aee5d72ea6211520fd8c7093e846070bd3dfedcd4778)Closesは使用せずRelates to #1711とした。PR body に自動クローズ抑制の経緯を明記している。AC3/AC4/AC7 は静的・fixture 駆動の検証であり、protected default-branch post-merge canary の実 runtime readback は merge 後に別途実行し、証跡コメント後に人間が explicit close する。squne121 commentedon Jul 28, 2026
impl-review-loop: 完了 (2026-07-28T23:43:35Z)
squne121 commentedon Jul 29, 2026
impl-review-loop: 人間判断要請 (2026-07-29T10:04:43Z)
経緯
人間レビュアー(squne121)が PR #1843 に対し詳細な REQUEST_CHANGES を投稿し(https://github.com/squne121/loop-protocol/pull/1843#issuecomment-5115949000)、以前の pr-reviewer APPROVE 判定を覆しました。指摘は trust-boundary の本質的欠陥(対象PRコードを実際には実行せずにPASS receiptを発行できる問題)で、4件の Blocker + High + Medium×2 でした。
implementation-worker が全 Blocker/High/Medium を解消する trust-boundary 再設計(3-job separation: trusted-preflight → untrusted-execution → trusted-receipt、REST-onlyでのsource解決、schemaへの
sourceフィールド additive追加等)を実装し、対象範囲内の既存テスト(test_test_verdict_execution_record_workflow.py52件、test_test_verdict_publish_exec.py24件)は全てpassすることを確認しました。ブロック理由(control-plane が独立検証済み)
Blocker 3 の要求(
sourceフィールドをschema必須にする)を満たすと、Allowed Paths 外のファイル.claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.pyの既存テストが 25件 fail します(uv run --locked pytest .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py -qで実際に確認、25 failed, 8 passed)。これは Issue #1711 自身の Stop Condition「Allowed Paths 外の変更が必要と判明した場合」に該当します。sourceを任意(optional)にすれば regressionは避けられますが、それは人間の High blocker(command_manifest_sha256のoptional fail-open)と同種の fail-open パターンを再導入することになり、レビュー意図と矛盾します。選択肢
.claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py(fixture更新のみ、本体コード変更は不要)を追加し、そのfixtureを新schemaに合わせて更新する。.claude/skills/impl-review-loop側の consumer 更新を切り出し、本 Issue ではsourceを一時的に optional のまま進める(ただし上記の fail-open 再導入リスクあり)。人間の明示判断をお願いします。判断後、iteration 2 を継続します(実装は worktree 内に未commit・未push で保持済み:
.claude/worktrees/issue-1711-producer-receipt-command-manifest-sha256)。fix: producer receipt/execution-record schema の source 必須化に fixture を…
fix: E501 line-length違反をguardテストの引数改行で解消する (#1711)
squne121 commentedon Jul 29, 2026
Contract Review Result
fix: python invocation policy checker が誤検知する job_id 抽出の shell grammar…
fix: untrusted-execution job の uv 実行順序を setup-python-uv 後に修正する (#1711)
squne121 commentedon Jul 29, 2026
impl-review-loop: 完了 (2026-07-29T10:54:29Z)
この iteration での主な経緯
source必須フィールド追加でAllowed Paths外の既存テストが破壊される問題が発覚 → 人間の明示承認によりAllowed PathsへScope Delta追加(fixture更新のみ)。uv runがsetup-python-uvより先に実行される順序バグ)を発見・修正、job-scoped順序検証テストを追加。fix: producer receipt に command_manifest_sha256 を独立再計算で伝播する (#1843)
squne121 commentedon Jul 29, 2026
Runtime Verification Evidence: protected default-branch post-merge canary (2026-07-29T13:05Z)
Issue #1711 の Runtime Verification Applicability(
decision: immediate,mode: protected_default_branch_post_merge_canary)に基づき、PR #1843 マージ後に protected default-branch canary を dispatch し、REST API で readback しました。Dispatch
workflow_dispatchonmain(workflow source SHA:7fdcfb8402d81ed35dcd6686423918efa984f473、PR fix: producer receipt に command_manifest_sha256 を独立再計算で伝播する #1843 merge commit)target_pr_number=1843,linked_issue_number=1711,expected_head_sha=32f277e50f7932b2786a9ade9eeadb368e5bd509(PR fix: producer receipt に command_manifest_sha256 を独立再計算で伝播する #1843 の実際の head SHA),expected_issue_body_sha256=sha256:81bbb09532045422615f2ab86ba7d07e5d3b4ba4230fee55357dbf1cacf31593(現在の Issue 実装: producer receipt に command_manifest_sha256 を伝播する回帰修正 #1711 body SHA)trusted-preflight→untrusted-execution→produce(全てsuccess)Source binding(trusted REST readback のみで解決、PR-controlled codeは未参照)
{ "commit_sha": "32f277e50f7932b2786a9ade9eeadb368e5bd509", "repository_full_name": "squne121/loop-protocol", "repository_id": 1240734733, "tree_sha": "59ddeb45cf286c5555de1d138a9f6d903e81cd84" }producer receipt / execution record 双方の
sourceフィールドが上記と完全一致することを確認しました(subject.pr_head_sha=32f277e50f7932b2786a9ade9eeadb368e5bd509とも一致)。Artifact readback(REST API、自前で再ダウンロードして digest 再計算)
sha256:3f786c30573cc562d35097f3f1e197fa2b9e85e739c0e57f307928420a007ac2sha256:3f786c30573cc562d35097f3f1e197fa2b9e85e739c0e57f307928420a007ac2expired: false(全 artifact)TEST_VERDICT_EXECUTION_RECORD_V1/TEST_VERDICT_PRODUCER_RECEIPT_V1(schema_version: 1、not_schema_change維持、sourceは additive extension として存在)pass_eligible: true(producer receipt / execution record 双方)command_manifest_sha256:sha256:17517d6909cd3dd85551812a197288c0ca4430be9677c4730a8f383f1527ef89(producer receipt のcontract.command_manifest_sha256と execution record のcontract.command_manifest_sha256が一致、独立再計算による pre-contract→record→receipt 束縛を確認)exec-uv-pytest-execution-recordはexit_code: 0,status: pass,fallback_detected: false,skipped: false,timed_out: falseexec-uv-pytest-execution-recordに紐づくTrust boundary(untrusted job の secrets/OIDC/write token 不在)
untrusted-executionjob のログを直接確認し、GH_TOKEN/secrets/OIDC/ write 権限に関する記述が一切ないことを確認しました(permissions: {contents: read}のみで、ジョブログにも token 露出なし)。結論
AC1, AC2, AC3, AC4, AC5, AC6 の runtime canary evidence が揃いました(実行内容は全 AC 共通の単一 pytest コマンドで、per_ac coverage が AC1〜AC5 をカバー。AC6 は non-regression として全体 pass で担保)。
AC7(protected canary readback 自体)はこの canary run そのものが該当し、上記 artifact readback(ID/name/digest/run/head/expired/schema/pass eligibility/digest binding)を実施・確認しました。
すべての readback を control-plane が独立に再計算・突合した上で本コメントを投稿しています(producer/receiptの自己申告をそのまま転記していません)。
次のアクション: 本 Issue の Delivery Rule に従い、この evidence 確認後に人間が explicit close を判断してください。
squne121 commentedon Jul 29, 2026
protected default-branch post-merge canary の runtime evidence 確認完了(https://github.com/squne121/loop-protocol/issues/1711#issuecomment-5118167039)。人間承認により Delivery Rule に従い explicit close します。