Skip to content

実装: profile×provider contract matrix の直交フィールド設計と GitHub capability tier の ADR 判断 #1821

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: research
parent_issue: "#1265"
goal_ref: "profile×provider contract matrix の次元分離と GitHub capability tier の設計判断を ADR に固定し、実装を後続 Issue へ安全に委譲する"
change_kind: design

Parent Issue

#1265

Parent Goal Ref

  • Goal: Gemini CLI → Antigravity CLI (agy) provider migration の機能同等性を評価し、改善計画を実行する
  • Owner anchor: #5118111375
  • Destination: 本 Issue は ADR による設計判断だけを完了し、schema v2 の実装は必ず後続 implementation Issue に委譲する

Current Validated Scope

  • profile/provider の状態を availability・parity・safety・auth・operational state に分離する設計判断
  • GitHub capability grant を endpoint/permission 単位へ分解し、読み取り・metadata・Issue・PR・comment・review・contents・workflows・merge を混同しない設計判断
  • ADR を docs/adr/0006-profile-provider-contract-capability-design.md に追加する
  • 後続 implementation Issue の契約(JSON Schema、semantic validator、positive/negative fixture、catalog/docs 登録、consumer inventory、migration rule)を本 Issue に固定する

Remaining Parent Gaps

  • schema v2 の YAML、コード、validator、pytest、fixture、catalog 登録は本 Issue の scope 外であり、後続 implementation Issue が担当する
  • #1814 が未解決の間は、verified write、mutation、auto-eligible の capability を実装済み・検証済みと主張してはならない

Outcome

ADR が追加され、次の設計判断が明文化された状態を成果とする。Issue 本文の判断だけでは完了とせず、ADR の存在・必須節・後続 Issue 契約をレビュー可能な形で残す。

Background

#1806 の単一 4 値 enum は availability(実装状況)、parity(同等性)、safety(安全性)、auth(認証)を混在させる。また github_research は読み取り、提案生成、書き込みの権限境界を表現できない。Owner anchor #5118111375 に基づき、今回は実装ではなく ADR-only の設計判断を行う。

github_authoring は GitHub capability ではなく、候補を生成する proposal/output mode として扱う。#1814 が blocks する verified/mutation/auto-eligible write claims を ADR に明記し、許可のない書き込み能力を推論しない。

In Scope

  • 直交フィールド(profile/task-intent、capability sets、credential permissions、safety enforcement、auth、operational state、routing policy)の設計と採否判断
  • capability grant の endpoint/permission mapping。少なくとも metadata、issues、PRs、comments、reviews、contents、workflows、merge を個別に区別する
  • github_authoring を proposal/output mode として定義すること
  • #1814 による verified/mutation/auto-eligible write claim の禁止条件を設計へ反映すること
  • docs/adr/0006-profile-provider-contract-capability-design.md の新規追加
  • 後続 implementation Issue の必須契約を本 Issue に記録すること

Out of Scope

  • .claude/skills/gemini-cli-headless-delegation/config/profile_provider_contract_matrix.yaml の変更
  • schema v2 の実装、schema/semantic validator の実装、pytest またはその他テストの追加・変更
  • positive/negative fixture、schemas/catalog.yaml、docs/dev/schema-governance.md の登録変更
  • consumer の移行、generated projection、dual-read/dual-write の実装
  • AGY または GitHub への mutation、verified write、auto-eligible write の有効化

Acceptance Criteria

  • AC1: ADR に profile/task-intent、capability sets、credential permissions、safety enforcement、auth、operational state、routing policy の各節があり、各節に採否または設計決定が記録されている
  • AC2: ADR の capability grant 表が metadata、issues、PRs、comments、reviews、contents、workflows、merge を別行で endpoint と permission に対応付け、grant/deny と根拠を示している
  • AC3: ADR が github_authoring を proposal/output mode と定義し、GitHub capability として扱わないこと、かつ 実装: AGY permission/hook boundary の hermetic evidence を整備する #1814 が verified/mutation/auto-eligible write claims を block することを明記している
  • AC4: ADR が次の後続 implementation Issue 契約を必須化している: JSON Schema、semantic validator、positive/negative fixtures、schemas/catalog.yaml と docs/dev/schema-governance.md の登録、consumer inventory、migration rule(atomic cutover / generated projection / dual-read のいずれか)。manual dual-write は禁止する
  • AC5: ADR が matrix YAML、schema v2 実装、validator、pytest、fixture、catalog/docs 登録を現在 scope 外と明記し、実装を別 Issue へルーティングする

Verification Commands

# AC1
# proposed ADR file is absent
# baseline-expect: fail
$ test -f docs/adr/0006-profile-provider-contract-capability-design.md
# AC2
# proposed ADR file is absent
# baseline-expect: fail
$ test -f docs/adr/0006-profile-provider-contract-capability-design.md
# AC3
# proposed ADR file is absent
# baseline-expect: fail
$ test -f docs/adr/0006-profile-provider-contract-capability-design.md
# AC4
# proposed ADR file is absent
# baseline-expect: fail
$ test -f docs/adr/0006-profile-provider-contract-capability-design.md
# AC5
# proposed ADR file is absent
# baseline-expect: fail
$ test -f docs/adr/0006-profile-provider-contract-capability-design.md

Allowed Paths

  • docs/adr/0006-profile-provider-contract-capability-design.md

Stop Conditions

  • Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
  • Allowed Paths 外への書き込みを試みた場合は即停止
  • 権限不足(permission denied)により操作が完了できない場合は即停止
  • 成果物の書き込みに失敗した場合(I/O エラー等)は即停止
  • #1814 の block を解除するための verified/mutation/auto-eligible write 実装または権限変更が必要になった場合
  • matrix YAML、schema v2 実装、validator、pytest、fixture、catalog/docs 登録または consumer migration が必要になった場合(後続 implementation Issue へルーティングする)
  • Allowed Paths 外の変更、外部サービス mutation、権限昇格、または追加のスコープ分割が必要になった場合

Required Skills

  • ADR 執筆
  • JSON Schema 設計
  • capability / credential permission モデリング

Required Design References

Scope Delta(任意)

  • 旧案の matrix YAML を Allowed Paths から除外し、ADR-only に限定
  • issue_kind を design に変更
  • schema v2 実装・テストを後続 implementation Issue へ移管

Runtime Verification Applicability

  • decision: not_applicable
  • reason: ADR の静的内容のみを検証し、プロセス起動・外部通信・実行時 I/O を伴わない

Handoff Contract

  • ADR 完了後、schema v2 の実装は mandatory follow-up implementation Issue へ引き渡す。本 Issue で実装・テスト・consumer migration を開始しない。
  • follow-up implementation Issue は、JSON Schema、semantic validator、positive/negative fixtures、schemas/catalog.yaml と docs/dev/schema-governance.md の登録、consumer inventory、migration rule(atomic cutover / generated projection / dual-read のいずれか)を必須成果とする。
  • migration rule は一つを選択して明記し、manual dual-write は禁止する。follow-up Issue は本 ADR の設計判断と 実装: AGY permission/hook boundary の hermetic evidence を整備する #1814 の write-claim block を参照して起票する。

Notes for Reviewer

  • Human decision: routing_override: proceed_to_rewrite, consume_iteration: true
  • unchanged_body_rerun は禁止。本文は owner anchor #5118111375 に再束縛する
  • github_authoring は proposal/output mode であり、metadata/issues/PR/comments/reviews/contents/workflows/merge の capability grant を暗黙に付与しない
  • 後続 implementation Issue は、migration rule を atomic cutover / generated projection / dual-read のいずれか一つとして明示し、manual dual-write を禁止する

Delivery Rule

  • 1 Issue = 1 PR
  • 本 Issue の deliverable は ADR のみ。schema v2 実装は後続 implementation Issue の 1 Issue = 1 PR 契約で扱う

Source

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on Jul 27, 2026
  2. squne121 commented on Jul 29, 2026

    @squne121
    OwnerAuthor

    判定: REQUEST_CHANGES

    Issue #1821 は方向性自体は妥当です。単一4値enumの次元混在を解消し、GitHub操作を権限別に分割する必要性はあります。

    ただし現状は、「直交化」も「capability tier化」も定義が不十分で、採用・不採用という文言だけを記録して完了できる設計です。実装に進む前のADRとしても不足しています。

    Issue #1821 には現在コメントがなく、確認できた関連PRは前提となるv1 matrixを実装したマージ済みPR #1823です。#1821自身の実装PRはまだ確認できません。

    Blocker 1: 提案フィールドは直交しておらず、auth が消えている

    Issueのタイトルと背景は availability / parity / safety / auth の分離を目的としていますが、実際の提案フィールドは次です。

    • availability
    • unsupported_reason
    • parity
    • safety
    • operational_state
    • auto_eligible

    独立した auth フィールドがありません。 operational_state: auth_limited のような値に吸収すると、認証方式、必要権限、credentialの到達性、実行時状態が再び1つの値に混在します。

    さらに、以下の境界が未定義です。

    • availability と operational_state の違い
    • parity の比較対象provider、capability、基準version
    • safety が表すものが、権限設定・sandbox・wrapper制約・実証状態のどれか
    • auto_eligible が機能能力なのかrouting policyなのか

    実コード上の auto_eligible 相当値は PROVIDER_AUTO_ELIGIBLE_PROFILES というrouting policyであり、現在は no_tools と proposal_only だけです。providerの能力そのものではありません。

    必須修正

    少なくとも次の5領域に分離してください。

    capability:
      availability: implemented | deferred | unsupported | unverified
      unsupported_reason: upstream | repo_policy | auth_policy | version_gate | null
    
    parity:
      reference_provider: gemini | agy | null
      reference_capability_set: github.read/v1
      status: full | partial | none | not_applicable | unverified
    
    safety:
      mutation_surface: none | comment | issue_metadata | pull_request | contents | workflow
      enforcement_layer: provider_permission | wrapper_allowlist | sandbox | none
      enforcement_status: verified | partially_verified | claimed | unverified
      permission_mode: strict | request_review | sandbox | always_proceed | not_applicable
    
    auth:
      mechanism: github_app | fine_grained_pat | oauth | none
      required_permissions: {}
      operational_status: available | auth_limited | unavailable | unverified
    
    routing:
      auto_eligible: false
      policy_version: provider_auto_policy_v1
      reason_code: profile_not_auto_eligible

    Blocker 2: github_research をprofile名の増殖で分割すべきではない

    提案されている次のtierは、タスク目的・出力形式・権限を混在させています。

    • github_read
    • github_authoring
    • github_comment_write
    • github_issue_pr_write

    特に github_authoring (mutation:false) はGitHub capabilityではありません。これはGitHubへアクセスせず文章を生成する proposal_only、または出力モードです。

    また、github_comment_write と github_issue_pr_write は粗すぎます。GitHub側ではIssues、Pull requests、Contents、Workflowsなどが別のpermission familyであり、最小権限で個別に付与することが前提です。Issueコメント、PR conversationコメント、PR review、Issue更新、PR作成、branch/content変更、workflow変更を同一tierにしてはいけません。([GitHub Docs]1)

    リポジトリ自身も、read-only、write、cleanupを異なる実行権限として扱っています。

    推奨構造

    profileはタスク意図として維持し、capabilityを別registryにしてください。

    profiles:
      github_research:
        requested_capability_set: github.read/v1
    
    capability_sets:
      github.read/v1:
        mutation: false
        actions:
          - github.metadata.read
          - github.issues.read
          - github.pulls.read
    
      github.issue-comment.write/v1:
        mutation: true
        actions:
          - github.issues.read
          - github.issue-comments.write
    
      github.pr-review.write/v1:
        mutation: true
        actions:
          - github.pulls.read
          - github.reviews.write
    
      github.issue-maintenance.write/v1:
        mutation: true
        actions:
          - github.issues.write

    少なくとも以下は別capabilityにすべきです。

    • metadata read
    • issues read
    • pull requests read
    • issue comment write
    • PR conversation comment write
    • PR review write
    • issue metadata write
    • pull request metadata write
    • repository contents write
    • workflow write
    • merge操作

    Blocker 3: safety とwrite maturityの判断が #1814 を無視している

    Issue #1821 は #1806 のマージだけを依存条件としています。しかし、親 #1265 のsecurity evidenceを扱うIssue #1814は現在も未完了で、本文でも「実AGYのpermission/hook境界が証明されるまでAC9を完了扱いにしない」と明記しています。

    これは #1821 の safety およびmutation capabilityのmaturity gateに直接関係します。

    Antigravity CLIはファイル編集、tool calling、command executionを行えるagentであり、公式permission engineは allow / ask / deny と対象actionを組み合わせる構造です。またheadless実行時のpermission適用やpermission関連の挙動は1.1.xでも更新されています。静的なwrapper policyだけでwrite capabilityを「安全」と判定することはできません。([GitHub]2)

    必須修正

    • blocked_by: ["#1814"] を追加する

    • taxonomyやschema設計自体は進めてよい

    • ただし次の値は禁止する

      • safety.enforcement_status: verified
      • mutation capabilityのavailability: implemented
      • write capabilityのauto_eligible: true
    • #1814のlive negative E2E、side-effect不在、provider version gateの証跡を採用条件にする

    Blocker 4: schema governanceが再びスコープ外になっている

    リポジトリの規約上、producer/consumer境界を越えるmachine-readable YAMLはschemaです。

    既存v1はPR #1823で追加されましたが、Allowed Pathsの都合により次が保留されています。

    • schemas/catalog.yaml 登録
    • docs/dev/schema-governance.md 登録

    PR本文でも明示的に未実施です。

    現在の検索結果でも、v1 schemaに関係する資産はmatrix、provider mapping、自己検証テストの3つだけです。

    一方、schema catalogの通常エントリは、producer、consumer、compatibility、validation、migration、last verifiedまで持っています。

    #1821は再びこれらをAllowed Pathsに含めず、実装もテストもスコープ外です。

    次のいずれかに統一すべきです。

    1. 設計ADR Issueに変更する

      • issue_kind: design
      • タイトルから「実装」を外す
      • matrix YAMLをAllowed Pathsから外す
      • mandatory follow-up implementation Issueの契約をACに含める
    2. schema v2実装Issueにする

      • JSON Schema
      • validator
      • positive/negative fixtures
      • catalog登録
      • schema governance登録
      • consumer migration
      • tests
        をIn Scopeへ追加する

    現在の「実装Issueだが、実装はOut of Scope」は成立していません。

    Blocker 5: Acceptance Criteriaがgrep theatreのまま

    AC1とAC2は、見出し直後に 採用 または 不採用 が存在することしか要求していません。AC3もフィールド名一覧がADRまたはIssueコメントにあれば通ります。

    次のような矛盾した設計でもACを満たします。

    availability: implemented
    unsupported_reason: upstream
    safety: guaranteed_read_only
    mutation: true
    auto_eligible: true
    auth:
      operational_status: available
      required_permissions: {}
    parity: full

    JSON Schema Draft 2020-12では、if / then / else、dependentSchemas、unevaluatedProperties: false などを使って状態間の制約を表現できます。(JSON Schema)

    最低限、以下をnegative fixtureで拒否してください。

    • implemented と非nullの unsupported_reason
    • write capabilityとguaranteed_read_only
    • write capabilityのauto_eligible: true
    • parity: full だが比較対象なし
    • authがavailableだが認証方式・必要permission・観測証跡なし
    • enforcement_status: verified だがruntime evidenceなし
    • unknown field
    • duplicate YAML key

    Blocker 6: dual-write / dual-readを決める前にconsumer inventoryが必要

    PR #1823時点のv1 schema consumerは、実質的に自己検証テストだけで、#1821は「将来のconsumer候補」とされています。

    この状態でdual-writeを採用すると、人間がv1とv2を別々に編集する2つの正本が発生します。

    推奨順序は次です。

    1. 実consumerを列挙する
    2. runtime consumerがなければatomic cutover
    3. v1互換が必要なら、v2からv1を決定論的に生成する
    4. 手作業のdual-writeは禁止する
    migration:
      canonical_schema: profile_provider_contract_matrix/v2
      legacy_projection:
        target: profile_provider_contract_matrix/v1
        mode: generated
        projection_function: derive_legacy_value

    derive_legacy_value の優先順位も明文化が必要です。例えば unsafe、unsupported_by_design、deferred、implemented のどれを優先するかを人間判断に残してはいけません。

    Major: 親Issueと関連Issueの依存関係が不足している

    親 #1265 は現在もopenであり、profile matrixだけでなくschema consistency、security evidence、GitHub方針などをclose条件にしています。

    #1821の「AC5〜AC10は本Issueと無関係」という整理は誤りです。

    • v2 schema化はschema consistencyに直結
    • auth / safety はAC9 security evidenceに直結
    • GitHub capability分割はgithub_research方針に直結
    • v2に移行すると既存 legacy_decision の再評価が必要

    また、provider-mapping.md には現在も古いgemini-first記述が残り、Issue #1804がその修正を追跡しています。

    依存関係は最低でも次に修正すべきです。

    depends_on:
      - "#1806"   # v1 baseline
      - "#1804"   # provider auto docs consistency
    blocked_by:
      - "#1814"   # real AGY permission boundary

    Major: v1のevidenceモデルをそのまま引き継いではならない

    v1 validatorは、closed key set、enum、ファイル存在、path traversal、duplicate keyなどには強い実装です。

    しかし意味上のdrift検証は、ほぼ github_research/agy と AGY_SUPPORTED_PROFILES の一致確認だけです。

    v2ではセル全体のevidence配列ではなく、claim単位に証拠を束縛してください。

    evidence:
      - claim_path: safety.enforcement_status
        kind: live_test
        ref: test_agy_real_permission_boundary_e2e.py::test_profile_denied
        observed_at: "..."
        repo_sha: "..."
        provider_version: "..."
        auth_mode: "..."
        result: pass
        reverify_when:
          - provider_version_changed
          - permission_policy_changed

    修正版Acceptance Criteria案

    1. ADRにprofile、capability set、credential scope、runtime state、rollout policyの責務境界を定義する。
    2. github_authoring をGitHub capabilityから除外し、proposal/output modeとして扱う。
    3. GitHub actionをIssues、Pull requests、Reviews、Contents、Workflows等に分割し、各capabilityに必要permissionを列挙する。
    4. v2 JSON Schemaとsemantic validatorを実装するfollow-up Issueを必須起票し、Issue番号をADRに記録する。
    5. consumer inventoryを作成し、atomic cutover、generated projection、dual-readのいずれかを根拠付きで選ぶ。manual dual-writeは禁止する。
    6. schemas/catalog.yaml と docs/dev/schema-governance.md への登録をfollow-upのACに含める。
    7. #1814完了前はwrite capabilityをimplemented、verified、auto_eligibleにできない条件を明記する。
    8. positive/negative fixtureでフィールド間invariantを検証する。
    9. field単位のprovenance、freshness、provider version、repo SHA、auth modeを必須化する。
    10. 親 導入: Gemini CLI → Antigravity CLI (agy) provider migration: 機能同等性評価と改善計画 #1265 のmatrix ACと legacy_decision への影響を更新する。

    結論

    採用すべき方向は、「profileを4つに増やす」ことではありません。

    正しい分離は次です。

    Profile = タスクの意図
    Capability set = 実行を許可する操作集合
    Credential permissions = 実際に付与されたGitHub権限
    Safety enforcement = その権限を制約する技術的境界
    Operational state = 現在その環境で利用可能か
    Routing policy = 自動選択対象にするか

    この責務分離に修正し、#1814、schema governance、consumer inventoryを依存条件へ組み込むまでは、#1821を実装開始可能なIssueとして扱うべきではありません。

  3. squne121 commented on Jul 29, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

    The loop has terminated and requires human review. Cause: human judgment required

    Blockers

    "reviewer_false_positive_suspected"
    
    "VCP_UNEXPECTED_PASS が parent replay taxonomy で checker_gap として二回連続し、同一本文での自動書き換えは許可されない"
    
    "owner anchor の設計修正要求は確認済みだが、deterministic review routing が Step 4 を許可しない"
    
  4. squne121 commented on Jul 29, 2026

    @squne121
    OwnerAuthor

    推奨判断

    reviewer_false_positive_suspected を否定し、valid reviewer finding + replay taxonomy defect と判定してください。

    Issue #1821 は同一本文のまま再レビューせず、OWNER anchor を反映した Step 4 の本文書き換えを許可するのが妥当です。

    human_decision:
      reviewer_false_positive: false
      reviewer_finding_valid: true
      owner_anchor_classification: feedback_update_required
      routing_override: proceed_to_rewrite
      consume_iteration: true
      unchanged_body_rerun: prohibited
      resume_condition:
        - owner anchor の設計要求を Issue 本文へ反映
        - Verification Commands の unexpected-pass を修正
        - body hash 更新後に refinement loop を再実行

    根拠1:VCP_UNEXPECTED_PASS は taxonomy の欠落

    contract_readiness_check.py は unexpected_pass を検出すると、category から VCP_UNEXPECTED_PASS という rule_id を生成します。ところが replay taxonomy の unexpected_pass entry は reviewer code として "unexpected_pass" しか登録していません。したがって、同じ決定論的エラーなのに VCP_UNEXPECTED_PASS が unknown code となり、checker_gap に誤分類されています。

    同じ問題は過去の VCP_BROAD_SEARCH_PATH_UN では alias を明示登録して解決しており、テストも「rule ID、category、短縮名を同一 taxonomy entry に正規化する」ことを要求しています。VCP_UNEXPECTED_PASS にも同じ対応が必要です。

    根拠2:実際に Issue 本文の VC に欠陥がある

    AC3 の次のコマンドは、検索結果が0件でも docs/adr ディレクトリの走査自体が成功すれば終了コード0になります。

    find docs/adr -iname "*profile-provider-matrix*"

    そのため baseline-expect: fail の VC として成立せず、unexpected_pass は正当な検出です。Issue 本文にはこのコマンドが明記されています。

    修正後は ADR のファイル名を確定し、次のように存在を終了コードで判定する形が適切です。

    $ test -f docs/adr/<確定したADRファイル名>.md

    根拠3:OWNER anchor は deterministic replay とは別の入力経路

    リポジトリの契約では、anchor comment の分類・正規化・Step 4 への引き渡しは orchestrator の責務です。issue-reviewer は anchor の domain judgment を行わない設計になっています。

    また、anchor handling 契約は、正規化された anchor_comment_feedback を Step 4 に渡すことを明示しています。

    したがって、OWNER anchor の修正指示まで reviewer replay の checker coverage で棄却する現在の routing は不適切です。今回の停止は「人間の設計判断が必要」なのではなく、主に以下の制御プレーン不整合です。

    1. VCP_UNEXPECTED_PASS alias 欠落
    2. OWNER anchor feedback lane が replay arbitration によって遮断されている
    3. 同一本文での再試行だけが許可され、必要な Step 4 rewrite に到達できない

    #1821 本体に対する設計判断

    直交化は採用、capability 分離も採用。ただし現 Issue のフィールド案と profile 名増殖案はそのまま採用しない、という判断を推奨します。

    現行 v1 は各セルを単一4値 value で表し、安全性や認証上の制約を自由記述の known_gaps に押し込んでいます。実際に implemented としながら「guaranteed read-only ではない」などの制約が併記されており、次元混在の指摘は妥当です。

    また github_research × agy は upstream 能力ではなく、wrapper policy を理由に unsupported_by_design としているため、provider capability、repo policy、現在の運用状態を分離する必要があります。

    本文は次の方針へ修正するのが適切です。

    • Issue を 実装Issueではなく設計ADR Issue に変更する

      • タイトルから「実装」を外す
      • issue_kind: design
      • matrix YAML 自体は Allowed Paths から外す
    • profile はタスク意図として維持する

    • GitHub権限は action 単位の capability_set registry に分離する

    • github_authoring は capability ではなく proposal_only または output mode として扱う

    • 少なくとも以下を別責務にする

      • availability
      • parity
      • auth / credential permissions
      • safety enforcement
      • operational state
      • routing policy
    • write capability は Issues、PR conversation、PR review、Issue metadata、PR metadata、Contents、Workflow、Merge に分割する

    • evidence はセル全体ではなく claim path 単位に束縛する

    • manual dual-write は禁止し、atomic cutover または v2 から v1 への generated projection を選ぶ

    • schema v2 実装用 follow-up Issue の起票をADR完了条件にする

    さらに、#1814 は現在も open で実AGY permission boundaryを扱っているため、write capability の implemented、safety の verified、auto_eligible: true は #1814 完了まで禁止する必要があります。

    #1804 も open で同じ provider-mapping.md の整合性修正を扱っているため、編集順序または明示的依存関係も必要です。

    PR #1823 も、v1 の consumer が自己検証テスト中心であり、schema catalog と governance 登録が未実施であることを明記しています。したがって、consumer inventory と governance を先に確定するという anchor の要求は妥当です。

    制御プレーン側の別修正

    #1821 の本文修正とは別に、refinement loop へ以下の修正が必要です。

    {
        "entry_id": "unexpected_pass",
        "reviewer_codes": [
            "unexpected_pass",
            "vcp_unexpected_pass",
            "VCP_UNEXPECTED_PASS",
        ],
        ...
    }

    併せて、次の回帰テストを追加します。

    • 3つの alias がすべて unexpected_pass に正規化される
    • readiness error が VCP_UNEXPECTED_PASS のとき deterministic_fail_confirmed
    • checker_gap、checker_gap_repeated、reviewer_false_positive_suspected に遷移しない
    • OWNER anchor が feedback_update_required の場合、replay の checker coverage 不足だけで Step 4 を禁止しない

    結論として、今回はレビューを棄却せず、本文を書き換えてループを再開する判断が適切です。

  5. changed the title [-]実装: profile×provider contract matrix の 4値enumを直交フィールド(availability/parity/safety/auth)へ拡張しgithub_researchをcapability tier分割する[/-] [+]profile×provider contract matrix の直交フィールド設計と GitHub capability tier の ADR 判断[/+] on Jul 29, 2026
  6. squne121 commented on Jul 29, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-29T13:52:11Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1821
      body_sha256: "sha256:4a3e0a71ce417e8d804398703cc69cb0b8da06ea1b19f58f3bf1d657ffcc4bd9"
      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:4a3e0a71ce417e8d804398703cc69cb0b8da06ea1b19f58f3bf1d657ffcc4bd9","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":4,"raw_command":"test -f docs/adr/0006-profile-provider-contract-capability-design.md","command_hash":"sha256:bf80010414164c6161f43e98572092b29b4258464e5387ed760f69a94573065e","execution_key_hash":"sha256:ef3877c28ed1d6cfc7a7e958fe85681b15cac89340f687312400a151edcf1d82","runner":"exec","exit_code":1,"classification":"expected_fail","category":"file_not_found_expected","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","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":1,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":3,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC2","line":4,"raw_command":"test -f docs/adr/0006-profile-provider-contract-capability-design.md","command_hash":"sha256:bf80010414164c6161f43e98572092b29b4258464e5387ed760f69a94573065e","execution_key_hash":"sha256:ef3877c28ed1d6cfc7a7e958fe85681b15cac89340f687312400a151edcf1d82","runner":"dedup_replay","exit_code":1,"classification":"expected_fail","category":"file_not_found_expected","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","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":1,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":3,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"dedup":{"source_command_hash":"sha256:bf80010414164c6161f43e98572092b29b4258464e5387ed760f69a94573065e","source_execution_key_hash":"sha256:ef3877c28ed1d6cfc7a7e958fe85681b15cac89340f687312400a151edcf1d82","source_result_index":0,"source_ac":"AC1","source_line":4}},{"ac":"AC3","line":4,"raw_command":"test -f docs/adr/0006-profile-provider-contract-capability-design.md","command_hash":"sha256:bf80010414164c6161f43e98572092b29b4258464e5387ed760f69a94573065e","execution_key_hash":"sha256:ef3877c28ed1d6cfc7a7e958fe85681b15cac89340f687312400a151edcf1d82","runner":"dedup_replay","exit_code":1,"classification":"expected_fail","category":"file_not_found_expected","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","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":1,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":3,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"dedup":{"source_command_hash":"sha256:bf80010414164c6161f43e98572092b29b4258464e5387ed760f69a94573065e","source_execution_key_hash":"sha256:ef3877c28ed1d6cfc7a7e958fe85681b15cac89340f687312400a151edcf1d82","source_result_index":0,"source_ac":"AC1","source_line":4}},{"ac":"AC4","line":4,"raw_command":"test -f docs/adr/0006-profile-provider-contract-capability-design.md","command_hash":"sha256:bf80010414164c6161f43e98572092b29b4258464e5387ed760f69a94573065e","execution_key_hash":"sha256:ef3877c28ed1d6cfc7a7e958fe85681b15cac89340f687312400a151edcf1d82","runner":"dedup_replay","exit_code":1,"classification":"expected_fail","category":"file_not_found_expected","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","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":1,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":3,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"dedup":{"source_command_hash":"sha256:bf80010414164c6161f43e98572092b29b4258464e5387ed760f69a94573065e","source_execution_key_hash":"sha256:ef3877c28ed1d6cfc7a7e958fe85681b15cac89340f687312400a151edcf1d82","source_result_index":0,"source_ac":"AC1","source_line":4}},{"ac":"AC5","line":4,"raw_command":"test -f docs/adr/0006-profile-provider-contract-capability-design.md","command_hash":"sha256:bf80010414164c6161f43e98572092b29b4258464e5387ed760f69a94573065e","execution_key_hash":"sha256:ef3877c28ed1d6cfc7a7e958fe85681b15cac89340f687312400a151edcf1d82","runner":"dedup_replay","exit_code":1,"classification":"expected_fail","category":"file_not_found_expected","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","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":1,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":3,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"dedup":{"source_command_hash":"sha256:bf80010414164c6161f43e98572092b29b4258464e5387ed760f69a94573065e","source_execution_key_hash":"sha256:ef3877c28ed1d6cfc7a7e958fe85681b15cac89340f687312400a151edcf1d82","source_result_index":0,"source_ac":"AC1","source_line":4}}]
        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":"7fdcfb8402d81ed35dcd6686423918efa984f473","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":1817,"title":"test: CLOSED predecessor の候補外 readback を固定 (#1766)","base_ref_name":"main","head_ref_name":"worktree-issue-1766-closed-native-predecessor-regression-v2","head_ref_oid":"1f22ea7ad8556982e0e8bd8d533e63ff3ed0aada","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1817","changed_files_count_graphql":1},{"number":1819,"title":"実装:#1797_C2a-successor-structural-collisionのhuman-review-route修正","base_ref_name":"main","head_ref_name":"worktree-issue-1797-c2a-successor-collision","head_ref_oid":"02856e9c7f5ee0c9d07dcafbc67106bc1c063bc6","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1819","changed_files_count_graphql":5},{"number":1832,"title":"fix(refinement): 全終端理由で follow-up materialization 結果を出力 (#1321)","base_ref_name":"main","head_ref_name":"worktree-issue-1321-follow-up-materialization-all-reasons","head_ref_oid":"31ac20913386ef2b0a91057fbf1de491a9286af2","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1832","changed_files_count_graphql":2}],"fetched_count":4,"totalCount":4,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:c12f35242349a814ebc48078fddd0dbf0633d591d39569f9a8860822d8c3d338","errors":[]},"inventory_digest_extended":"sha256:a14c964c31b7107a9ffb517ba9f8826e4ba3ee4d6a1884ea53401ac8338560de","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":1821,"contract_source_kind":"issue_comment","contract_source_id":"5118677630","contract_body_sha256":"sha256:4a3e0a71ce417e8d804398703cc69cb0b8da06ea1b19f58f3bf1d657ffcc4bd9","allowed_paths_normalized_sha256":"522a69503b7adcacaf5f06670f4894a9de257dfbc8a3ddea8f2fe5073a57bf17","base_ref":"main","base_sha_at_snapshot":"7fdcfb8402d81ed35dcd6686423918efa984f473"}
  7. squne121 commented on Jul 29, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Approved

    The issue has been approved and is ready for implementation.

    LOOP_HANDOFF_RESULT_V1:
      status: impl_ready
      routing_action: run_impl_review_loop
      contract_review:
        status: go
        gate_result: fresh_go
        latest_comment_url: https://github.com/squne121/loop-protocol/issues/1821#issuecomment-5118677630
        generated_at: '2026-07-29T13:52:11Z'
        body_sha256: sha256:4a3e0a71ce417e8d804398703cc69cb0b8da06ea1b19f58f3bf1d657ffcc4bd9
      metadata:
        title_prefix_ready: true
        phase_label_ready: true
      auto_fixes:
        result: auto_fixed
        required: []
        skipped: []
      blockers: []
      permissions:
        unavailable: []
      generated_at: '2026-07-29T13:52:11Z'
      checked_body_sha256: sha256:4a3e0a71ce417e8d804398703cc69cb0b8da06ea1b19f58f3bf1d657ffcc4bd9
      checker_exit_code: 0
      missing_sections: []
      missing_contract_keys: []
  8. changed the title [-]profile×provider contract matrix の直交フィールド設計と GitHub capability tier の ADR 判断[/-] [+]実装: profile×provider contract matrix の直交フィールド設計と GitHub capability tier の ADR 判断[/+] on Jul 29, 2026
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/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions