Skip to content

fix: Claude Code 2.1.218 adapter support - #1681

Merged
squne121 merged 2 commits into
mainfrom
worktree-issue-1678-claude-218-adapter
Jul 23, 2026
Merged

squne121 merged 2 commits into
mainfrom
worktree-issue-1678-claude-218-adapter

Conversation

@squne121

Copy link
Copy Markdown
Owner

Summary

  • Claude Code 2.1.218 の実取得済み Write/Edit/Bash wire digest を、policy-domain の version-validated adapter allowlist に追加しました。
  • 既存 Claude 2.1.216 と Codex 0.145 の扱いは変更せず、未対応 Claude version/tool identity は引き続き fail-closed です。

Checks

上記の検査は専用 worktree の current HEAD で実行し、version allowlist の変更と既存 Codex 回帰を同時に確認しました。

AC Status(受入条件の状態)

AC 状態 根拠
AC1 実装済み 2.1.218 Write/Edit/Bash の normalized intent が closed policy-domain contract を通過する test を追加。
AC2 実装済み 2.1.216 compatibility と未対応 version の reject を regression test で固定。
AC3 実装済み official wire の raw/sanitized digest、canonical identity、supported version を fixture に固定。
AC4 実装済み Codex adapter と #1595 parser boundary を変更しない diff/readback。

Allowed Paths Compliance(許可パス適合)

  • scripts/agent-guards/worktree_policy_domain.py
  • tests/agent_guards/test_worktree_policy_domain.py

変更ファイルは上記2件のみです。rename、生成物、設定ファイルは含みません。

Runtime Verification Evidence(実ランタイム証跡)

  • Claude Code 2.1.218、WSL2 Ubuntu 24.04、POSIX path flavor の sanitized official-runtime-wire corpus を使用しました。これは実ランタイムが生成した hook input を、秘密情報を保存せず許可フィールドだけへ射影した証跡です。
  • Write: raw sha256:161b8a8beb999269831c09c3e3050459e549e85221111c04c9687ce21d6367b8、sanitized sha256:819d65d60a8282dddeb25ab308852198cabd804312b8a3b293bc3029c2eafd73。
  • Edit: raw sha256:4e571d256fc56f5dc1cf4cc01554972c479cffdd46eb3dc8a7a71e16d9878e4c、sanitized sha256:01f222e4e123868ab617899db8553ab23e0a5427c21776b299165f450a550e31。
  • Bash: raw sha256:bf330713ca708ad68674fffcfcc539e192e8c02f7d09966f163d3282a5e52929、sanitized sha256:223140cf2b4ead326ef731333f49c6fbf5789a4bae586f4d67badc718c639779。
  • corpus source: 調査: agent-neutral worktree mutation guard input schema の要否を判断する #1663 の .claude/artifacts/issue-refinement-loop/1663/runtime-evidence/。raw payload は保存せず、secret detector は pass です。

この証跡は synthetic repository 上で実行した実ランタイムの sanitized capture です。通常の利用者データ、環境変数、credential、会話内容を capture していません。

Schema Change Applicability

  • decision: not_schema_change
  • reason: WORKTREE_MUTATION_INTENT_V1、WORKTREE_SCOPE_BINDING_V1、WORKTREE_POLICY_DECISION_V1 のキー、型、consumer contract は変更せず、既存 adapter の supported runtime/version tuple を追加するだけです。

Schema Consumer Inventory

変更対象 schema: N/A。machine-readable schema の定義変更はありません。

before/after 差分: runtime support allowlist に Claude Code 2.1.218 の canonical identity(Write/Edit/Bash)を加え、schema shape は不変です。

Consumer 列挙: worktree_policy_domain.py を直接呼ぶ test_worktree_policy_domain.py を更新済みです。raw vendor payload を policy core に渡す consumer は追加しません。

Consumer ファイル 更新有無 備考
scripts/agent-guards/worktree_policy_domain.py 更新済み version allowlist のみに 2.1.218 を追加。
tests/agent_guards/test_worktree_policy_domain.py 更新済み official corpus digest と conformance を固定。

Compatibility Decision(互換性判断)

  • change_type: N/A
  • compatibility: N/A
  • migration_required: N/A
  • migration_or_followup: N/A
  • reason: schema shape の migration は発生しません。既存 2.1.216/Codex behavior は維持します。

Safety Claim Matrix

Claim Implemented? Not controlled Evidence Follow-up
対象 version の adapter identity は closed allowlist で検証する yes runtime wire の全 tool/lifecycle/platform を網羅しない focused pytest 45 passed、#1663 official corpus #1663
未対応 version/tool identity を許可へ変換しない yes hook は security boundary ではない policy-domain regression test #1663

CI Test Performance Decision(CIテスト性能判断)

  • decision: 既存 focused pytest のみを実行し、CI selection/parallelism は変更しません。
  • reason: 実変更は version allowlist と同一 test module の fixture に限定され、workflow/test-plan consumer は変更しません。

Related Issues(関連する作業項目)

Notes

  • PR は Draft として起票し、current-head CI と contract-aware review が完了するまで merge しません。

@github-actions

github-actions Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #1681 closed).

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current-head レビュー判定

LOOP_VERDICT_V2:
  verdict: APPROVE
  reviewed_head_sha: 49358b86af807b3e9373e67d0bde700e37f0209f
  merge_ready: true
  mergeability:
    mergeable: MERGEABLE
    merge_state_status: CLEAN
  blockers: []
  required_auto_actions: []
  auto_fix_applied: []
  follow_up_issue_requests: []
  allowed_paths_gate:
    status: ok
    changed_files_source: github_pull_request_files_api_with_previous_filename
    changed_files:
      - scripts/agent-guards/worktree_policy_domain.py
      - tests/agent_guards/test_worktree_policy_domain.py
  • current head: 49358b86af807b3e9373e67d0bde700e37f0209f
  • CI: CI_VERDICT_SUMMARY_V1.status=all_pass。
  • Issue #1678 の AC1〜AC4、許可パス、runtime evidence、Schema/Safety gates を照合済みです。

@squne121
squne121 marked this pull request as ready for review July 23, 2026 11:19
@squne121
squne121 merged commit bb917a8 into main Jul 23, 2026
22 checks passed
@squne121
squne121 deleted the worktree-issue-1678-claude-218-adapter branch July 23, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

実装: Claude Code 2.1.218 の validated adapter support を追加する

1 participant