Skip to content

実装: runtime adapter と worktree policy-domain contract を分離する #1670

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: 1663
goal_ref: "runtime-validated adapter と agent-neutral policy-domain の実装"
change_kind: implementation
dependencies:
  - issue: 1595
    kind: partial
    responsibility: "Bash raw command parser API のみを利用し再実装しない"

Parent Issue

#1663

Parent Goal Ref

Source / Decision Evidence

  • ADR: .claude/artifacts/issue-refinement-loop/1663/runtime-evidence/adr-policy-domain.md
  • Claude/Codex sanitized wire: 同 artifact directory

Outcome

Claude Code/Codex の version-validated adapter が vendor raw payload を
WORKTREE_MUTATION_INTENT_V1へ正規化し、resolver が
WORKTREE_SCOPE_BINDING_V1、shared policy が
WORKTREE_POLICY_DECISION_V1を返す。malformed/unsupported/version mismatch は
fail-closed とし、同一 intent/binding の runtime parity を検証する。

Current Validated Scope

Claude Write と Codex canonical apply_patch の sanitized wire captureを取得済み。
Bash parser は #1595 の公開 API に限定する。

Remaining Parent Gaps

adapter/domain/policy 実装、alias・malformed・Move・binding state・lifecycle parity
のテストと capture corpus を追加する。

In Scope

  • closed domain contracts、resolver、shared policy と Claude/Codex thin adapter。
  • supported version/canonical identity/alias を区別する validation。
  • Move source/destination、POSIX/Windows path flavor、5 binding states の tests。

Out of Scope

Acceptance Criteria

  • AC1: closed intent/binding/decision contract が unknown key、bool-as-int、null、oversize、malformed digest を reject する。
  • AC2: Claude/Codex adapters は raw DTO を policy core へ渡さず canonical identity と alias を区別する。
  • AC3: bound、verified_unbound、unknown、ambiguous、resolution_failed を分離し unsupported/malformed を fail-closed にする。
  • AC4: relative/absolute/traversal/symlink、Move 両側、POSIX/Windows/WSL path semantics を検証する。
  • AC5: captured corpus の同一 normalized intent/binding で decision/reason_code parity を検証する。

Runtime Verification Applicability

runtime_verification_applicability:
  decision: immediate
  applicable_acs: [AC2, AC5]
  execution_environment: "Claude Code 2.1.216、Codex CLI 0.145.0、synthetic Git repository、network-authenticated existing subscription"
  skip_conditions: "runtime/hook trust が利用不能な場合は exit 77 とし PASS にしない"
  fallback_policy: "synthetic fixture、manual payload、fallback result は official wire PASS としない"
  artifact_requirements: ".claude/artifacts/issue-refinement-loop/1663/runtime-evidence/ と implementation worktree artifact に schema/version/digest を保存"

Verification Commands

# AC1
# baseline-expect: fail
$ uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q
# AC2
# baseline-expect: fail
$ uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q
# AC3
# baseline-expect: fail
$ uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q
# AC4
# baseline-expect: fail
$ uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q
# AC5
# baseline-expect: fail
$ uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q

Allowed Paths

  • scripts/agent-guards/worktree_policy_domain.py
  • scripts/agent-guards/worktree_scope_guard.py
  • scripts/agent-guards/codex_apply_patch_adapter.py
  • tests/agent_guards/test_worktree_scope_guard.py
  • tests/agent_guards/test_codex_apply_patch_adapter.py
  • tests/agent_guards/test_worktree_policy_domain.py
  • tests/agent_guards/worktree_scope_guard_testkit.py

Stop Conditions

  • 実装: launcher command 共有 parser(argv boundary 保持・cwd/project_root 対応)を抽出し全 consumer の invocation contract を移行する #1595 の public parser API が未提供の場合、Bash consumer integration は分離して dependency を維持する。
  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • secret を sanitize できない runtime wire は保存・公開せず停止する。

Required Skills

  • Python / pytest

Required Design References

  • docs/dev/hook-boundaries.md
  • docs/dev/agent-skill-boundaries.md
  • docs/dev/schema-governance.md

Delivery Rule

1 Issue = 1 PR

Activity

  1. squne121 commented on Jul 22, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-22T12:19:06Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1670
      body_sha256: "sha256:f8fbffb2c39dfa51f32e36281a4b2083c368d5e3e1089da6186bbe5c9be09015"
      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:f8fbffb2c39dfa51f32e36281a4b2083c368d5e3e1089da6186bbe5c9be09015","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_scope_guard.py -q","command_hash":"sha256:6fd3a7e3e0ff69fbcc59ba02ff65a2e09463b3b4a585a4b32faa6cc8b1b1241b","execution_key_hash":"sha256:bbbc8d385e0138490d421edf0b0e015210d2434a814b2e4872124ee106a4a1b5","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["........................................................................ [ 31%]","........................................................................ [ 62%]","........................................................................ [ 93%]","................                                                         [100%]","232 passed in 18.39s"],"stdout_truncated":false,"stdout_original_line_count":6,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":19189,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC2","line":4,"raw_command":"uv run --locked pytest tests/agent_guards/test_codex_apply_patch_adapter.py -q","command_hash":"sha256:b623c9bddc48bff2cbc20339699e19b21aec54c0df280d9e639ce3cf83754d3c","execution_key_hash":"sha256:4e58d5e946f7e416ee877830727229e0b23a9209cd4516cb4d35ce658032869e","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[".................                                                        [100%]","17 passed in 1.17s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":1369,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC3","line":6,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_scope_guard.py -q","command_hash":"sha256:6fd3a7e3e0ff69fbcc59ba02ff65a2e09463b3b4a585a4b32faa6cc8b1b1241b","execution_key_hash":"sha256:11474d5179c6de5cb88e5ffcb6c618031815e8f17ed68cc475abd164406fecf2","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["........................................................................ [ 31%]","........................................................................ [ 62%]","........................................................................ [ 93%]","................                                                         [100%]","232 passed in 18.60s"],"stdout_truncated":false,"stdout_original_line_count":6,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":18778,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":8,"raw_command":"uv run --locked pytest tests/agent_guards/test_codex_apply_patch_adapter.py -q","command_hash":"sha256:b623c9bddc48bff2cbc20339699e19b21aec54c0df280d9e639ce3cf83754d3c","execution_key_hash":"sha256:57c8ac39c0684b51b4a646b315a3211e1fb0b3e653c6555a9c0c5c772aed5ad2","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[".................                                                        [100%]","17 passed in 1.14s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":1527,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC5","line":10,"raw_command":"uv run --locked pytest tests/agent_guards -q","command_hash":"sha256:f08affa2cf0e41fc145aee697b68798b3c7868998a8cee96b68a63e72b7d3cad","execution_key_hash":"sha256:ad5b9b93848d11ef2c1a8984388f9cb1dc022d638e644fc295720682cabf217f","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["........................................................................ [ 27%]","........................................................................ [ 55%]","........................................................................ [ 82%]",".............................................                            [100%]","261 passed in 20.59s"],"stdout_truncated":false,"stdout_original_line_count":6,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":20849,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null}]
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1670,"contract_source_kind":"issue_comment","contract_source_id":"5045681565","contract_body_sha256":"sha256:f8fbffb2c39dfa51f32e36281a4b2083c368d5e3e1089da6186bbe5c9be09015","allowed_paths_normalized_sha256":"1011629fd20daee46670315a5cf677a715f29c7a9e1219117732fefc239171c5","base_ref":"main","base_sha_at_snapshot":"96095c50a577ee07ebaf423c64fc0b35863fd8e9"}
  2. squne121 commented on Jul 22, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-22T13:00:22Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1670
      body_sha256: "sha256:fb9a9da75387d330ee6e637f40a1ee4b4ec7b3cbd2480ddde6c6a99e5b206f00"
      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:fb9a9da75387d330ee6e637f40a1ee4b4ec7b3cbd2480ddde6c6a99e5b206f00","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:c9589ee9159a6acece6504f5bcd20ef601d364efe5cb243baf6d69d1232e052c","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":160,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC2","line":6,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:a553136d4d09fdd7e280600be6e1b85af93a8d7bc8e199c0a81c91d9212e8920","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":168,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":5,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC3","line":9,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:cad59aa382e9008869c5436e2cb8f5f7bb9013b1973127b3800690c8577a778a","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":175,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":8,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC4","line":12,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:ea366c1ca4f34cf3c7e978571bf581adeeee1b132870b6a41b5d9ed2d9434797","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":164,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":11,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC5","line":15,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:2da15b20952da80495abe882d7acd792c87f91bb48026ee0912275be699a4386","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":166,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":14,"raw":"# baseline-expect: fail"},"strict":null,"repair":null}]
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1670,"contract_source_kind":"issue_comment","contract_source_id":"5046059925","contract_body_sha256":"sha256:fb9a9da75387d330ee6e637f40a1ee4b4ec7b3cbd2480ddde6c6a99e5b206f00","allowed_paths_normalized_sha256":"afe75c3462713fcdbd5a4ba177fd80b80f6cf7f6fa1b2112002efe89bd84848b","base_ref":"main","base_sha_at_snapshot":"96095c50a577ee07ebaf423c64fc0b35863fd8e9"}
  3. squne121 commented on Jul 22, 2026

    @squne121
    OwnerAuthor

    実装前重複確認

  4. squne121 commented on Jul 22, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-22T13:15:32Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1670
      body_sha256: "sha256:83f17628cbb5e37694bd1da945ad1a5d0554f197145283f70be1fc984b46eacf"
      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:83f17628cbb5e37694bd1da945ad1a5d0554f197145283f70be1fc984b46eacf","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:c9589ee9159a6acece6504f5bcd20ef601d364efe5cb243baf6d69d1232e052c","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":166,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC2","line":6,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:a553136d4d09fdd7e280600be6e1b85af93a8d7bc8e199c0a81c91d9212e8920","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":150,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":5,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC3","line":9,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:cad59aa382e9008869c5436e2cb8f5f7bb9013b1973127b3800690c8577a778a","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":147,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":8,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC4","line":12,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:ea366c1ca4f34cf3c7e978571bf581adeeee1b132870b6a41b5d9ed2d9434797","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":158,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":11,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC5","line":15,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:2da15b20952da80495abe882d7acd792c87f91bb48026ee0912275be699a4386","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":162,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":14,"raw":"# baseline-expect: fail"},"strict":null,"repair":null}]
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1670,"contract_source_kind":"issue_comment","contract_source_id":"5046230242","contract_body_sha256":"sha256:83f17628cbb5e37694bd1da945ad1a5d0554f197145283f70be1fc984b46eacf","allowed_paths_normalized_sha256":"afe75c3462713fcdbd5a4ba177fd80b80f6cf7f6fa1b2112002efe89bd84848b","base_ref":"main","base_sha_at_snapshot":"96095c50a577ee07ebaf423c64fc0b35863fd8e9"}
  5. squne121 commented on Jul 22, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-22T14:48:21Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1670
      body_sha256: "sha256:83f17628cbb5e37694bd1da945ad1a5d0554f197145283f70be1fc984b46eacf"
      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:83f17628cbb5e37694bd1da945ad1a5d0554f197145283f70be1fc984b46eacf","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:c9589ee9159a6acece6504f5bcd20ef601d364efe5cb243baf6d69d1232e052c","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":151,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC2","line":6,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:a553136d4d09fdd7e280600be6e1b85af93a8d7bc8e199c0a81c91d9212e8920","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":163,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":5,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC3","line":9,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:cad59aa382e9008869c5436e2cb8f5f7bb9013b1973127b3800690c8577a778a","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":160,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":8,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC4","line":12,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:ea366c1ca4f34cf3c7e978571bf581adeeee1b132870b6a41b5d9ed2d9434797","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":164,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":11,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC5","line":15,"raw_command":"uv run --locked pytest tests/agent_guards/test_worktree_policy_domain.py -q","command_hash":"sha256:834e57da959df4877d5e1447a17c08c7ed799a067b77ea0f48107fb1f0a44402","execution_key_hash":"sha256:2da15b20952da80495abe882d7acd792c87f91bb48026ee0912275be699a4386","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_guards/test_worktree_policy_domain.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":155,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":14,"raw":"# baseline-expect: fail"},"strict":null,"repair":null}]
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1670,"contract_source_kind":"issue_comment","contract_source_id":"5047658853","contract_body_sha256":"sha256:83f17628cbb5e37694bd1da945ad1a5d0554f197145283f70be1fc984b46eacf","allowed_paths_normalized_sha256":"afe75c3462713fcdbd5a4ba177fd80b80f6cf7f6fa1b2112002efe89bd84848b","base_ref":"main","base_sha_at_snapshot":"3fc87ea1d1f867e6c7854fbfea786c99fbe7f86b"}
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

    phase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions