Repository navigation
Closed as not planned
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
Parent Issue
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1645"
goal_ref: "#1645 Goal: 保護された GitHub Actions producer から current-head TEST_VERDICT trust chain を再開可能にする"
change_kind: workflowParent Goal Ref
- Goal: 実装: current-head TEST_VERDICT artifact の sanctioned producer を追加する #1645 の protected producer が current PR HEAD・Issue contract・per-AC execution record を同一 trust chain で照合できるようにする。
- Desired Destination: 本 Issue は producer 拡張だけを担い、後続 publisher/materializer が利用できる versioned receipt を default branch から発行可能にする。
Current Validated Scope
- default branch の
.github/workflows/test-verdict-execution-record.ymlと producer が現在uv.pytest.execution-recordの単一 manifest entry に固定されている。 - 実装: 回帰テスト: CLOSED native predecessor の候補外 hydration/readback 経路を固定する #1766 の AC1-AC3 は native-dependencies pytest を実行する protected producer の allowlist binding を必要とする。
Remaining Parent Gaps
- publisher/adjudicator/materializer と 実装: 回帰テスト: CLOSED native predecessor の候補外 hydration/readback 経路を固定する #1766/test: CLOSED predecessor の候補外 readback を固定 (#1766) #1817 本文・実装の更新。
- merge/dispatch の運用実行、producer receipt の consumer 側統合。
Outcome
更新された workflow、producer、guard contract test(必要時のみ test plan)を含む 1 PR が default branch の versioned COMMAND_MANIFEST から #1766 用 command_id を選択し、AC1-AC3 に束縛された execution record / producer receipt を発行でき、全 fail-closed 契約テストが PASS した状態を成果物とする。
In Scope
- protected workflow の execute/assemble-contract/build-record/build-receipt が同一の allowlisted command_id と manifest SHA を使用するようにする。
uv.pytest.issue-1766-native-dependenciesの manifest entry を次の値で追加し、covers_acs をAC1,AC2,AC3に固定する。- argv:
["uv", "run", "--locked", "pytest", "{source_root}/.claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py", "-q"] - cwd:
repo_root - timeout:
300
- argv:
- workflow input は quoted env 経由で渡し、Python が command allowlist を検証する。Issue markdown は argv 選択元にしない。
- workflow source SHA と対象 PR head SHA を別 subject として保持し、unknown command_id、AC set mismatch、manifest mismatch、head/body drift を fail closed にする。
- target PR code job に secrets/OIDC/write token を渡さず、raw
bash -c/evalを許可しない。 - 現行の producer unit/contract tests に 実装: 回帰テスト: CLOSED native predecessor の候補外 hydration/readback 経路を固定する #1766 manifest、workflow wiring、unknown command/AC/manifest drift の deterministic tests を追加する。
Out of Scope
- materializer、publisher/adjudicator、consumer の変更。
- Issue 実装: 回帰テスト: CLOSED native predecessor の候補外 hydration/readback 経路を固定する #1766 / test: CLOSED predecessor の候補外 readback を固定 (#1766) #1817 の本文または実装変更。
- merge/dispatch の operational execution。
- generic shell escape、任意 argv/cwd/timeout、Issue markdown 由来のコマンド実行。
Acceptance Criteria
- AC1: default branch の versioned
COMMAND_MANIFESTにuv.pytest.issue-1766-native-dependenciesが一意に存在し、argv/cwd/timeout/covers_acs が指定値と一致し、manifest SHA が execution record と producer receipt に同一値で記録される。 - AC2: protected workflow の execute、assemble-contract、build-record、build-receipt が同じ allowlisted command_id を quoted env から受け取り、Issue markdown を argv source にせず、unknown command_id・AC set mismatch・manifest mismatch を fail closed する。target PR code job は secrets/OIDC/write token を持たない。
- AC3: workflow source SHA が対象 PR head SHA と独立して subject に束縛され、head/body drift、raw
bash -c/eval、任意 shell escape を拒否し、現行および追加された guard contract tests が deterministic に PASS する。
Verification Commands
# AC1
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q
# AC2
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -q
# AC3
$ uv run --locked pytest scripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py -qAllowed 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.py.github/ci/python-test-plan.json(必要な場合のみ)
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- command allowlist、manifest SHA、head/body binding が fail-open になる場合
Required Skills
なし
Required Design References
docs/dev/workflow.mddocs/dev/agent-skill-boundaries.mdschemas/test-verdict-execution-record.schema.jsonschemas/test-verdict-producer-receipt.schema.json
Runtime Verification Applicability
decision: deferred
reason: "protected workflowの実dispatchとreceipt live readbackは、producer extensionがdefault branchへマージされた後にIssue #1766 / PR #1817のcurrent headへ束縛して実行する。"
deferred_to: "Issue #1766 Phase 4"
deferred_destination: "Issue #1766 Phase 4"
deferred_verification_condition: "default branch dispatch後にexecution-record/producer-receipt artifactをlive readbackし、current-head/body-SHA/manifest bindingを検証する"
required_after_merge:
- workflow_dispatch on default branch with an allowlisted command_id
- execution-record and producer-receipt artifact live readback
- current-head/body-SHA/manifest binding verificationDelivery Rule
- 1 Issue = 1 PR。専用 isolated worktree で実装し、Draft PR として 実装: current-head TEST_VERDICT artifact の sanctioned producer を追加する #1645 にリンクする。
- producer extension の authority は merge 後の default branch に限定する。実装: current-head TEST_VERDICT artifact の sanctioned producer を追加する #1645 の他 child と同一ファイルを並行変更しない。
Scope Delta
N/A
Notes for Reviewer
- Scope Collision (C1): related_issue=実装: controlled direct fallback executors #1775, 実装: 全test inventoryとcross-job証跡をfail-close化する #1762, 実装: python-test-planをstrict schema化し期限付きquarantine契約を導入する #1761, 実装: pr-reviewer/pr-review-judge の重複を削減し preload を追加する #1744, 実装: required CI を snapshot read-only に固定し baseline canonicalization を reviewed PR 境界に限定する #1388, 実装: playtest-log の JSON Schema / validator の追加 #420, 改善: implement-issue SKILL に Allowed Paths 外 consistency 更新の明示ルールと Schema Consumer Inventory iteration 更新ガイドラインを追加 #239, 改善: executable bit audit CI guard の適用範囲を .claude/skills 外のスクリプトへ拡張する #213, 実装: .claude/skills 配下スクリプトの executable bit を監査し CI guard を追加する #205; overlapping_paths=.github/ci/python-test-plan.json, .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.
- non_conflict_reason: 既存候補は fallback executor、全体 test inventory、python-test-plan schema、PR reviewer、VRT、旧汎用 scripts、または広域 workflow 規則であり、実装: 回帰テスト: CLOSED native predecessor の候補外 hydration/readback 経路を固定する #1766 の native-dependencies command_id と protected TEST_VERDICT producer trust chain を所有しない。
- edit_intent: 本 Issue は 実装: current-head TEST_VERDICT artifact の sanctioned producer を追加する #1645 の Child A として上記 4 ファイルの限定部分だけを変更し、既存の単一 command producer を複数 allowlisted Issue VC に拡張する。
- dependency ordering: 実装: current-head TEST_VERDICT artifact の sanctioned producer を追加する #1645 parent の producer layer。publisher/materializer child に先行し、実装: 回帰テスト: CLOSED native predecessor の候補外 hydration/readback 経路を固定する #1766/test: CLOSED predecessor の候補外 readback を固定 (#1766) #1817 の編集は行わない。
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity
squne121 commentedon Jul 29, 2026
Contract Review Result
squne121 commentedon Jul 30, 2026
クローズ理由(owner決定)
親Issue #1645 が issuecomment-5136560892 の理由でクローズされたため、その child である本Issue(protected TEST_VERDICT producer の allowlisted Issue VC への拡張)も同時にクローズする。
#1860(AIエージェント運用を minimal harness へ縮退し、過剰な control-plane を廃止する)の方針、および #1856 による TEST_VERDICT の advisory 降格と整合しないため、本Issueの拡張方向は追求しない。
決定内容は issuecomment-5136559104 に記録済み。