Skip to content

実装: fallback parserでcontract fingerprintのJSON flow mappingを保持する #1927

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "controlled contract snapshot の strict parser 契約を維持し、PyYAML 非利用時にも producer が出力する JSON flow mapping を型損失なく authority comparator へ渡す"
change_kind: code

Parent Issue

none(#1153 の終了コメントを発見元として参照する単独改善)

Parent Goal Ref

Current Validated Scope

Remaining Parent Gaps

なし。この修正のマージ後、#1153 は別の fresh execution で再検証する。

Outcome

PyYAML が利用できない環境でも strict JSON flow mapping を dict / list として保持し、malformed 又は Python literal を fail-closed に拒否する parser と回帰テストが追加され、指定 test・lint・diff check が PASS する Draft PR が作成されている状態。

In Scope

  • fallback scalar の trim 後の先頭が { または [ の場合だけ json.loads() で strict JSON を解析し、JSON object / array をそれぞれ dict / list として保持する。
  • malformed JSON flow collection は通常文字列へ降格せず、明示的な parse failure にする。
  • PyYAML 無効化時の parser unit regression と、producer comment body → parser → verify_snapshot_authority_postcondition() のネットワークなし回帰を追加する。
  • 導入: EntireCLI + Latitude の観測データを agent_run_report に接続し、GitHub 経由の ChatGPT レトロ動線を確立する #1153 と同じ body SHA と 7 key fingerprint shape を fixture として使い、1 field mismatch、string fingerprint、key 欠落・余分な key の拒否を固定する。

Out of Scope

Acceptance Criteria

  • AC1: PyYAML import/load を強制的に使えない状態で、実 producer と同形式の inline JSON object が expected_contract_fingerprint の dict として保持され、7 key と値が損失しない。
  • AC2: fallback で inline JSON array は list として保持し、plain scalar、boolean、null、integer、quoted string、既存 product_spec_gate nested scalar mapping を回帰させない。
  • AC3: malformed {...} / [...] は文字列成功へ降格せず parse failure となる。
  • AC4: Python dict literal、tuple、set、single quote 依存構文、arbitrary Python literal、曖昧 YAML tag を strict JSON として受理しない。
  • AC5: 値の途中に { を含む通常 plain string を JSON flow collection と誤解析しない。
  • AC6: 導入: EntireCLI + Latitude の観測データを agent_run_report に接続し、GitHub 経由の ChatGPT レトロ動線を確立する #1153 の body SHA / fingerprint shape を使う networkless producer comment → fallback parser → authority postcondition 統合テストが成功し、comparator を mock しない。
  • AC7: fingerprint の1値変更、string 型、key 欠落、余分な key は authority_comment_fingerprint_mismatch 又は fingerprint readiness failure として fail-closed になる。
  • AC8: body SHA、product gate fingerprint、base binding、trusted publisher binding の既存検証を回帰させない。

Verification Commands

# AC1
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q

# AC2
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q

# AC3
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q

# AC4
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q

# AC5
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q

# AC6
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot_fingerprint_patch.py .claude/skills/impl-review-loop/tests/test_contract_snapshot_author_binding.py -q

# AC7
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot_fingerprint_patch.py .claude/skills/impl-review-loop/tests/test_contract_snapshot_author_binding.py -q

# AC8
# baseline-expect: pass
# preflight-scope: pr_review_only
$ uv run --locked ruff check .claude/skills/issue-contract-review/scripts/contract_review_result_parser.py .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot_fingerprint_patch.py .claude/skills/impl-review-loop/tests/test_contract_snapshot_author_binding.py

# AC8
# baseline-expect: pass
$ git diff --check

Allowed Paths

  • .claude/skills/issue-contract-review/scripts/contract_review_result_parser.py
  • .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py
  • .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py
  • .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot_fingerprint_patch.py
  • .claude/skills/impl-review-loop/tests/test_contract_snapshot_author_binding.py

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合。
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合。
  • fingerprint schema、producer/comparator 比較規則の変更が必要になった場合。
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)。
  • 後続 Phase / 別スコープへの波及が判明した場合。
  • nested SubAgent delegation が必要になった場合。
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合。
  • producer が無効な serialization を出している、又は comparator の緩和が必要と判明した場合。
  • PyYAML と fallback の出力を同一型契約へ収束できない、又は malformed input を成功扱いしないと既存テストを通せない場合。
  • 同一問題を修正する OPEN PR が発見された、又は unrelated な既存失敗との因果を証明できない場合。

Required Skills

  • Python
  • pytest
  • JSON

Required Design References

  • docs/dev/workflow.md#Issue 駆動開発フロー
  • docs/dev/agent-skill-boundaries.md#Loop Sequencing & Preconditions
  • https://github.com/squne121/loop-protocol/issues/1153#issuecomment-5150887495

Scope Collision

Runtime Verification Applicability

decision: not_applicable
reason: "strict parser と authority-bound snapshot contract の networkless unit/integration regression で完結し、外部 runtime は変更しない"

Delivery Rule

1 Issue = 1 Draft PR。auto merge は禁止する。default branch へ修正が反映された後だけ、#1153 の current body SHA を再取得し、fresh contract review と controlled ensure_contract_snapshot --mode auto --post を1回実行する。その新しい authority comment が fingerprint を dict として parse でき、body SHA・product gate・base binding・fingerprint postcondition を満たしたときだけ #1153 の issue-refinement-loop を再開する。

Notes for Reviewer

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    triage-required
    on Aug 1, 2026
  2. squne121 commented on Aug 1, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-08-01T10:16:10Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1927
      body_sha256: "sha256:a1e12663af984ae3a3fcdaeb3fee89d87e91ae4714f83014b32b60f98b78f0ad"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"applicable","decision":"pass","triggers":{"docs_product_allowed_paths":false,"tasks_md_mentioned":false,"specify_artifact_mentioned":false,"generated_task_mentioned":false,"product_spec_context_present":false,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:a1e12663af984ae3a3fcdaeb3fee89d87e91ae4714f83014b32b60f98b78f0ad","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q","command_hash":"sha256:0c98ce996dfb8281ab8b3f4a08c8b28e3ca333d84e32695f861c8ec93e7eead3","execution_key_hash":"sha256:2d2ada6711bce3612cd3372f9dd39861911860d058fcd30016802f191bc10a46","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[".......................................................                  [100%]","55 passed in 0.05s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":281,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC2","line":7,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q","command_hash":"sha256:0c98ce996dfb8281ab8b3f4a08c8b28e3ca333d84e32695f861c8ec93e7eead3","execution_key_hash":"sha256:cf1f1891c7d971973b95d5ad82390d8d2882bd4a2dd255a668e3325010fe3887","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[".......................................................                  [100%]","55 passed in 0.05s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":246,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":6,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC3","line":11,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q","command_hash":"sha256:0c98ce996dfb8281ab8b3f4a08c8b28e3ca333d84e32695f861c8ec93e7eead3","execution_key_hash":"sha256:943eb77a4166e1df9f784266086063a8ac9e7a59658c92fd30c017f8df973887","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[".......................................................                  [100%]","55 passed in 0.04s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":225,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":10,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC4","line":15,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q","command_hash":"sha256:0c98ce996dfb8281ab8b3f4a08c8b28e3ca333d84e32695f861c8ec93e7eead3","execution_key_hash":"sha256:49c31238dfda70e705851dc2a675321d722b2b5e1c5a58c9a862ebb207b70aee","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[".......................................................                  [100%]","55 passed in 0.04s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":223,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":14,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC5","line":19,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q","command_hash":"sha256:0c98ce996dfb8281ab8b3f4a08c8b28e3ca333d84e32695f861c8ec93e7eead3","execution_key_hash":"sha256:84c8ee7b01fd754f7d6d4f398f0c1fc72d9e99d75aee9df85c83e9288ef11b38","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[".......................................................                  [100%]","55 passed in 0.04s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":227,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":18,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":23,"raw_command":"uv run --locked pytest .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot_fingerprint_patch.py .claude/skills/impl-review-loop/tests/test_contract_snapshot_author_binding.py -q","command_hash":"sha256:42acd2927ced4462eee318766a489dbd91f76f4d92422f822b6844e005c8f51f","execution_key_hash":"sha256:3d071b058dc5e8546a9e5e8cc8cceccf74f7973b16170f75e062f34f8ee8fa3c","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["........................................................................ [ 52%]","................................................................         [100%]","136 passed, 2 deselected in 0.30s"],"stdout_truncated":false,"stdout_original_line_count":4,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":489,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":22,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC7","line":27,"raw_command":"uv run --locked pytest .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot_fingerprint_patch.py .claude/skills/impl-review-loop/tests/test_contract_snapshot_author_binding.py -q","command_hash":"sha256:42acd2927ced4462eee318766a489dbd91f76f4d92422f822b6844e005c8f51f","execution_key_hash":"sha256:ca0a1153739f59134fe7a12fa39c63dc137e27ea8d179638093335b433ae72a0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["........................................................................ [ 52%]","................................................................         [100%]","136 passed, 2 deselected in 0.28s"],"stdout_truncated":false,"stdout_original_line_count":4,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":475,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":26,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC8","line":32,"raw_command":"ruff check .claude/skills/issue-contract-review/scripts/contract_review_result_parser.py .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot_fingerprint_patch.py .claude/skills/impl-review-loop/tests/test_contract_snapshot_author_binding.py","command_hash":"sha256:a86f309677864c56abcaefea772387b785692b9ec865c64b546d4da01411c008","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":30,"raw":"# baseline-expect: pass"},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC8","line":36,"raw_command":"git diff --check","command_hash":"sha256:466c2f308b48c7661d646fdd068fbecea974c665fe65dbf8ed508f224180ce0b","execution_key_hash":"sha256:2f2ce679fe9fde55723c0da67bfe6bd8ccc079152587fc6be61283cb3dee80cb","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":35,"raw":"# baseline-expect: pass"},"strict":null,"repair":null}]
        declared_path_overlap: {"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"14f1f5ce51d9f7a2218281fcc4a1490ce0666853","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":1921,"title":"実装: worktree 内の Claude Code/Codex CLI runtime smoke を herdr で観測する共有 Skill を追加する","base_ref_name":"main","head_ref_name":"worktree-issue-1887-runtime-smoke-skill","head_ref_oid":"ed95289888b03e77a876df9b4f599c7fe3aca88a","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1921","changed_files_count_graphql":11},{"number":1922,"title":"feat(codex): canonical dispatch instructionをNative V2 shapeへ移行","base_ref_name":"main","head_ref_name":"worktree-issue-1838-native-v2-dispatch","head_ref_oid":"87ab5eec87b8c0ad401df3f47e0336c490983936","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1922","changed_files_count_graphql":6},{"number":1925,"title":"feat(ui): move running combat HUD into a compact battle-stage overlay (#1375)","base_ref_name":"main","head_ref_name":"worktree-issue-1375-combat-hud-overlay","head_ref_oid":"186036d0fdfd4073b957d78fd21df8aa58ff68ba","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1925","changed_files_count_graphql":25}],"fetched_count":4,"totalCount":4,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:fe835041e470c2e1cb6ee33fd2af88188865ce09bbcb0ec1c7d1dfe7d1504669","errors":[]},"inventory_digest_extended":"sha256:41b336e756d19a4a4b417c5d5b32f3d24d3a23deafac84701bdf7d57b7bc1297","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1927,"contract_source_kind":"issue_comment","contract_source_id":"5150986468","contract_body_sha256":"sha256:a1e12663af984ae3a3fcdaeb3fee89d87e91ae4714f83014b32b60f98b78f0ad","allowed_paths_normalized_sha256":"bdbae2bf1c1dda9c2067cba8229abaee3f447a3a86582f7bd0db1f576af3670c","base_ref":"main","base_sha_at_snapshot":"14f1f5ce51d9f7a2218281fcc4a1490ce0666853"}
  3. squne121 commented on Aug 1, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-08-01T10:48:04Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1927
      body_sha256: "sha256:a1e12663af984ae3a3fcdaeb3fee89d87e91ae4714f83014b32b60f98b78f0ad"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"applicable","decision":"pass","triggers":{"docs_product_allowed_paths":false,"tasks_md_mentioned":false,"specify_artifact_mentioned":false,"generated_task_mentioned":false,"product_spec_context_present":false,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:a1e12663af984ae3a3fcdaeb3fee89d87e91ae4714f83014b32b60f98b78f0ad","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q","command_hash":"sha256:0c98ce996dfb8281ab8b3f4a08c8b28e3ca333d84e32695f861c8ec93e7eead3","execution_key_hash":"sha256:2d2ada6711bce3612cd3372f9dd39861911860d058fcd30016802f191bc10a46","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["...............................................................          [100%]","63 passed in 0.05s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":233,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC2","line":7,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q","command_hash":"sha256:0c98ce996dfb8281ab8b3f4a08c8b28e3ca333d84e32695f861c8ec93e7eead3","execution_key_hash":"sha256:cf1f1891c7d971973b95d5ad82390d8d2882bd4a2dd255a668e3325010fe3887","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["...............................................................          [100%]","63 passed in 0.05s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":226,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":6,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC3","line":11,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q","command_hash":"sha256:0c98ce996dfb8281ab8b3f4a08c8b28e3ca333d84e32695f861c8ec93e7eead3","execution_key_hash":"sha256:943eb77a4166e1df9f784266086063a8ac9e7a59658c92fd30c017f8df973887","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["...............................................................          [100%]","63 passed in 0.05s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":239,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":10,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC4","line":15,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q","command_hash":"sha256:0c98ce996dfb8281ab8b3f4a08c8b28e3ca333d84e32695f861c8ec93e7eead3","execution_key_hash":"sha256:49c31238dfda70e705851dc2a675321d722b2b5e1c5a58c9a862ebb207b70aee","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["...............................................................          [100%]","63 passed in 0.04s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":210,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":14,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC5","line":19,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py -q","command_hash":"sha256:0c98ce996dfb8281ab8b3f4a08c8b28e3ca333d84e32695f861c8ec93e7eead3","execution_key_hash":"sha256:84c8ee7b01fd754f7d6d4f398f0c1fc72d9e99d75aee9df85c83e9288ef11b38","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["...............................................................          [100%]","63 passed in 0.04s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":226,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":18,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":23,"raw_command":"uv run --locked pytest .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot_fingerprint_patch.py .claude/skills/impl-review-loop/tests/test_contract_snapshot_author_binding.py -q","command_hash":"sha256:42acd2927ced4462eee318766a489dbd91f76f4d92422f822b6844e005c8f51f","execution_key_hash":"sha256:3d071b058dc5e8546a9e5e8cc8cceccf74f7973b16170f75e062f34f8ee8fa3c","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["........................................................................ [ 52%]",".................................................................        [100%]","137 passed, 2 deselected in 0.28s"],"stdout_truncated":false,"stdout_original_line_count":4,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":467,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":22,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC7","line":27,"raw_command":"uv run --locked pytest .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot_fingerprint_patch.py .claude/skills/impl-review-loop/tests/test_contract_snapshot_author_binding.py -q","command_hash":"sha256:42acd2927ced4462eee318766a489dbd91f76f4d92422f822b6844e005c8f51f","execution_key_hash":"sha256:ca0a1153739f59134fe7a12fa39c63dc137e27ea8d179638093335b433ae72a0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["........................................................................ [ 52%]",".................................................................        [100%]","137 passed, 2 deselected in 0.29s"],"stdout_truncated":false,"stdout_original_line_count":4,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":487,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":26,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC8","line":32,"raw_command":"ruff check .claude/skills/issue-contract-review/scripts/contract_review_result_parser.py .claude/skills/issue-contract-review/tests/test_contract_review_result_parser.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot_fingerprint_patch.py .claude/skills/impl-review-loop/tests/test_contract_snapshot_author_binding.py","command_hash":"sha256:a86f309677864c56abcaefea772387b785692b9ec865c64b546d4da01411c008","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":30,"raw":"# baseline-expect: pass"},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC8","line":36,"raw_command":"git diff --check","command_hash":"sha256:466c2f308b48c7661d646fdd068fbecea974c665fe65dbf8ed508f224180ce0b","execution_key_hash":"sha256:2f2ce679fe9fde55723c0da67bfe6bd8ccc079152587fc6be61283cb3dee80cb","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":35,"raw":"# baseline-expect: pass"},"strict":null,"repair":null}]
        declared_path_overlap: {"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"4e59b8be7c19384b53584ea29a8ac67894e424ba","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":1925,"title":"feat(ui): move running combat HUD into a compact battle-stage overlay (#1375)","base_ref_name":"main","head_ref_name":"worktree-issue-1375-combat-hud-overlay","head_ref_oid":"2aa0abd474774f14530d251498e05220d0f14726","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1925","changed_files_count_graphql":28},{"number":1929,"title":"fix(issue-contract-review): fallback parserでcontract fingerprintのJSON flow mappingを保持する","base_ref_name":"main","head_ref_name":"worktree-issue-1927-fallback-parser-contract-fingerprint","head_ref_oid":"35dfae414db5be6671463f4dfc9fba8adb683c7b","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1929","changed_files_count_graphql":3},{"number":1930,"title":"feat(vrt): required CI の snapshot write を拒否する","base_ref_name":"main","head_ref_name":"worktree-issue-1388-vrt-snapshot-policy","head_ref_oid":"fd0697916f7be8c16e50ff83f2b9afff2f926e8e","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1930","changed_files_count_graphql":7},{"number":1931,"title":"fix(gemini-delegation): AGY headless prompt の leading slash-command を fail-closed 拒否する (#1928)","base_ref_name":"main","head_ref_name":"worktree-issue-1928-agy-leading-slash-policy","head_ref_oid":"7620f66154c24d435f7cc5032348083d8e12b965","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1931","changed_files_count_graphql":2}],"fetched_count":5,"totalCount":5,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:f29c73d923f57b693b0f9ca60b6f4c27f31d706bbc3a00d419cd5e7b9ce08f91","errors":[]},"inventory_digest_extended":"sha256:1242e7a4fde75881d798173ed4e7919d978262e19038bf8624d88306a6ab690e","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1927,"contract_source_kind":"issue_comment","contract_source_id":"5151090384","contract_body_sha256":"sha256:a1e12663af984ae3a3fcdaeb3fee89d87e91ae4714f83014b32b60f98b78f0ad","allowed_paths_normalized_sha256":"bdbae2bf1c1dda9c2067cba8229abaee3f447a3a86582f7bd0db1f576af3670c","base_ref":"main","base_sha_at_snapshot":"4e59b8be7c19384b53584ea29a8ac67894e424ba"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementationtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions