Skip to content

実装: .github/ISSUE_TEMPLATE/research.yml から deprecated な state/queued ラベルを除去する #275

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: ".github/ISSUE_TEMPLATE/research.yml から deprecated な state/queued ラベルを除去し、#211 確定方針と整合させる"
change_kind: docs

Parent Issue

なし(単独改善)

Parent Goal Ref

  • Goal: N/A(単独改善)
  • Desired Destination: N/A

Current Validated Scope

  • .github/ISSUE_TEMPLATE/research.yml の labels 配列から state/queued エントリを削除

Remaining Parent Gaps

なし

Outcome

.github/ISSUE_TEMPLATE/research.yml の labels 配列から state/queued が除去され、同ファイル由来の auto-label writer による state/queued 自動付与が停止した状態になっている。repo-wide の state/queued 削除は本 Issue のスコープ外。

In Scope

  • .github/ISSUE_TEMPLATE/research.yml の labels 配列から state/queued を削除する

Out of Scope

  • 他の ISSUE_TEMPLATE ファイルの変更(implementation.yml は既に state/queued なし)
  • state/queued ラベル体系の再設計
  • 「repo-wide state/queued 削除」の完了宣言(本 Issue は research.yml 由来の auto-label writer 除去のみ)

Acceptance Criteria

  • AC1: .github/ISSUE_TEMPLATE/research.yml の labels 配列に state/queued が含まれない
  • AC2: .github/ISSUE_TEMPLATE/research.yml の labels 配列が phase/research と agent/research のみを含む
  • AC3: .github/ISSUE_TEMPLATE/ 配下の全テンプレートファイルに state/queued が含まれない
  • AC4: .github/ISSUE_TEMPLATE/research.yml が YAML としてパース可能で labels キーが配列型である

Verification Commands

  • ! rg -n "state/queued" .github/ISSUE_TEMPLATE/research.yml && echo "PASS" || echo "FAIL" — # AC1: research.yml に state/queued なし
  • python3 -c "import yaml; d=yaml.safe_load(open('.github/ISSUE_TEMPLATE/research.yml')); labels=d.get('labels',[]); assert set(labels)=={'phase/research','agent/research'}, f'FAIL: {labels}'; print('PASS')" — # AC2 # AC4: labels exact match かつ YAML parse 成功
  • ! rg -rn "state/queued" .github/ISSUE_TEMPLATE/ && echo "PASS" || echo "FAIL" — # AC3: 全テンプレートに state/queued なし

Allowed Paths

  • .github/ISSUE_TEMPLATE/research.yml

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

なし

Scope Delta(任意)

N/A

Background

Issue #211(MERGED)で state/queued の自動付与が廃止された。Issue #267 の refinement ループ中に .github/ISSUE_TEMPLATE/research.yml の labels 配列(L6)に state/queued が残存していることを発見。implementation.yml と create_issue_txn.py はすでに state/queued を除外しているが、research.yml は未対応。Issue #267 はこの修正を Out of Scope として明記したため、本 Issue で対処する。

なお .claude/skills/implement-issue/SKILL.md L34 に state/queued への legacy reference(ready tuple 確認)が残存しているが、同ファイルは本 Issue の Allowed Paths 外のため本 Issue では対処しない。

Source

  • dedupe_key: "follow-up:squne121/loop-protocol:issue267:research-yml-queued-label"
  • source_issue: 267

Runtime Verification Applicability

  • decision: not_applicable
  • reason: rg による静的検証のみで AC 確認が完結する。

Delivery Rule

  • 1 Issue = 1 PR
  • Draft PR 既定

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on May 23, 2026
  2. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    判定

    Conditional Go。#275 の最小修正は妥当です。
    .github/ISSUE_TEMPLATE/research.yml の labels から state/queued を削除する変更は、#211 / #267 / #276 の確定方針と整合します。ただし、#275 は 「research issue template の writer 残滓を消す Issue」 に限定して扱うべきです。「state/queued の reader / writer / warning producer をリポジトリ全体からゼロにする」Issue として読むと不完全です。

    GitHub Issue Forms の labels は、そのテンプレートから作成される Issue に自動追加されるため、research.yml に残った state/queued は実際の writer です。これは単なる説明文の残骸ではありません。([GitHub Docs]1) 現在の research.yml には phase/research / state/queued / agent/research が並んでおり、#275 の問題提起は実在します。

    関連 Issue / PR から見た整合性

    #211 では、state/blocked / state/queued を AI 着手可否判定から外し、GitHub native dependency / Depends on #N の close 状態を primary signal にする方針が確定しています。さらに state/queued の自動付与停止、issue-refinement-loop による stale state label cleanup、implementation.yml からの state/queued 削除がスコープ化されています。

    #267 / PR #276 は、その方針を issue-contract-review、impl-review-loop/steps/preparation.md、github-ops.md、issue-refinement-loop に広げ、state/queued の reader / warning producer を対象4ファイル内でゼロにする修正でした。PR #276 本文でも .github/ISSUE_TEMPLATE/research.yml は Known residual: #275 として明示されています。

    GitHub の機能設計から見てもこの方向は妥当です。Issue dependency は blocked by / blocking 関係を表す機能で、blocked issue は UI 上でも blocked と表示されます。一方、labels は Issue / PR / discussion を分類する repository-level metadata です。依存関係や着手可否の正本として label を使うと、二重管理による stale 状態を作ります。([GitHub Docs]2) ([GitHub Docs]3)

    敵対的レビュー

    1. #275 の変更は正しいが、Verification が弱い

    現在の AC は「research.yml に state/queued が含まれない」だけで、最小要件としては足ります。 ただし、VC が rg 1本だけだと YAML 構造破壊、labels 配列の意図しない変更、他テンプレートへの残存を検出できません。

    修正方針: state/queued の削除だけでなく、labels が期待値どおりであること、Issue Template YAML として parse できること、.github/ISSUE_TEMPLATE/*.yml 全体に state/queued が残らないことを検証対象に入れるべきです。

    2. triage-required を research template に足すのは別設計

    implementation.yml は現在 enhancement / phase/implementation / triage-required / agent/implementer で、state/queued は既にありません。 一方、research.yml は phase/research / agent/research が自然です。

    triage-required は follow-up Issue 自動起票時の未評価状態を示す補助ラベルとして定義されています。research template にも常時付けるべきかは別の運用判断です。 #275 で state/queued を triage-required に置換すると、単純削除を超えて research issue の triage モデルを変更します。この Issue では置換せず削除だけが安全です。

    3. 「これで state/queued が完全に消える」とは言えない

    #276 は implement-issue/SKILL.md に残る legacy ready tuple を「別 Issue で対応」として扱っています。 実際、現在の implement-issue/SKILL.md には title 実装: + phase/implementation + state/queued の ready tuple 確認が残っています。

    これは #275 の Allowed Paths 外なので、#275 の実装を止める理由にはなりません。ただし、PR 本文や Issue 完了報告で 「repo-wide に state/queued の reader/writer がゼロ」 と書くのは不正確です。書けるのは 「.github/ISSUE_TEMPLATE/research.yml 由来の auto-label writer を除去した」 までです。

    4. github-ops.md の SSOT 記述との矛盾を解消する効果はある

    docs/dev/github-ops.md は .github/ISSUE_TEMPLATE/*.yml の labels 定義を SSOT として参照すると書いています。一方で同文書は state/queued を deprecated / legacy とし、AI 着手可否・VC・contract-review で参照禁止と定義しています。

    したがって、research.yml に state/queued が残る状態は、テンプレートSSOTとラベル意味論の矛盾です。#275 はこの矛盾を消す小さいが必要な修正です。

    推奨パッチ

     labels:
       - phase/research
    -  - state/queued
       - agent/research

    それ以外は触らない。triage-required 追加、research workflow の再設計、既存 Issue 群の一括 cleanup は #275 のスコープ外にした方がよいです。

    AC / VC 改善案

    Issue #275 の AC は次のように強化するのがよいです。

    ## Acceptance Criteria
    
    - [ ] AC1: `.github/ISSUE_TEMPLATE/research.yml` の `labels` 配列に `state/queued` が含まれない
    - [ ] AC2: `.github/ISSUE_TEMPLATE/research.yml` の `labels` 配列は `phase/research` と `agent/research` のみである
    - [ ] AC3: `.github/ISSUE_TEMPLATE/*.yml` の auto-label 定義に `state/queued` が残っていない
    - [ ] AC4: `.github/ISSUE_TEMPLATE/research.yml` が YAML として parse できる

    推奨 VC:

    # AC1 / AC2: research.yml の labels が期待値どおり
    python - <<'PY'
    from pathlib import Path
    import yaml
    
    p = Path(".github/ISSUE_TEMPLATE/research.yml")
    data = yaml.safe_load(p.read_text())
    labels = data.get("labels", [])
    
    assert "state/queued" not in labels, labels
    assert labels == ["phase/research", "agent/research"], labels
    
    print("PASS: research.yml labels are exact and state/queued-free")
    PY
    
    # AC3: Issue Template 全体の auto-label に state/queued が残っていない
    if rg -n "state/queued" .github/ISSUE_TEMPLATE/*.yml; then
      echo "FAIL: state/queued remains in issue templates"
      exit 1
    else
      echo "PASS: no state/queued in issue templates"
    fi
    
    # AC4: Issue Template YAML が parse できる
    python - <<'PY'
    from pathlib import Path
    import yaml
    
    for p in Path(".github/ISSUE_TEMPLATE").glob("*.yml"):
        data = yaml.safe_load(p.read_text())
        assert isinstance(data, dict), p
        assert "labels" not in data or isinstance(data["labels"], list), p
    
    print("PASS: issue template YAML parse")
    PY

    PR レビューコメント案

    ## Adversarial Review
    
    #275 の最小修正方針は妥当です。GitHub Issue Forms の `labels` はテンプレートから作成される Issue に自動付与されるため、`.github/ISSUE_TEMPLATE/research.yml` に残る `state/queued` は実際の writer です。#211 / #267 / #276 の「state/queued は deprecated / legacy、AI 着手可否・warning producer・auto writer に使わない」という方針と矛盾しています。
    
    ただし、この PR で主張できる範囲は限定してください。
    
    - OK: `.github/ISSUE_TEMPLATE/research.yml` 由来の `state/queued` auto-label writer を除去した
    - NG: repository-wide に `state/queued` reader / writer / warning producer がゼロになった
    
    理由: `implement-issue/SKILL.md` にはまだ legacy ready tuple として `state/queued` 参照が残っています。これは #275 の Allowed Paths 外なので本 PR の blocker ではありませんが、完了報告で過大 claim しないでください。
    
    修正は以下の 1 行削除で十分です。
    
    ```diff
     labels:
       - phase/research
    -  - state/queued
       - agent/research

    triage-required の追加は research issue の triage モデル変更になるため、本 PR では行わない方が安全です。

    VC は rg だけでなく、YAML parse と labels exact match を追加してください。

    
    ## 結論
    
    #275 は **実装してよい** です。ただし、高品質化の要点は「変更を広げること」ではなく、**過大 claim を避け、検証を強くすること**です。
    
    最終的には次の状態が望ましいです。
    
    ```text
    research.yml:
      phase/research
      agent/research
    
    implementation.yml:
      enhancement
      phase/implementation
      triage-required
      agent/implementer
    
    state/queued:
      deprecated / legacy
      auto-label writer なし
      AI 着手可否判定に使わない
      残存参照は cleanup / follow-up 対象として明示
    
  3. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    edit-issue: Issue #275 本文更新(Step 4 refinement feedback 反映)

    変更セクション一覧

    セクション 変更内容
    Outcome repo-wide 誤解を除去。「同ファイル由来の auto-label writer による state/queued 自動付与が停止した状態」と明確化。repo-wide の state/queued 削除は本 Issue のスコープ外 を明示
    Acceptance Criteria AC1 のみ → AC1〜AC4 の 4 件に拡張。AC2(labels exact match)、AC3(全テンプレートチェック)、AC4(YAML parse)を追加
    Verification Commands rg 1 本 → 3 コマンドに強化(rg + Python yaml parse + 全テンプレートチェック)。各コマンドに # AC<N> マーカーを付与
    Out of Scope 「repo-wide state/queued 削除の完了宣言は本 Issue のスコープ外」を追加
    Background .claude/skills/implement-issue/SKILL.md の legacy reference 注記を追加

    変更理由

    reviewer feedback(anchor_comment_feedback)の blocking_issues に対応:

    1. AC/VC 番号不一致(AC1〜AC4 と対応 VC が未追加)を解消
    2. AC2(labels exact match)、AC3(全テンプレートチェック)、AC4(YAML parse)を追加
    3. VC を 3 コマンドに強化
    4. Outcome の「repo-wide state/queued 削除」と誤読される表現を修正
    5. Out of Scope に完了宣言スコープ明示を追加
    6. Background に implement-issue/SKILL.md legacy reference 注記を追加

    Guard 結果サマリ

    all_passed: true
    guards:
      template_guard: pass
      outcome_quality_guard: pass
      diff_threshold:
        passed: true
        orig_lines: 87
        new_lines: 95
      ac_vc_alignment:
        passed: true
        ac_count: 4
        vc_ac_count: 4

    タイトル更新

    なし(title_update.required: false)

    バックアップ

    tmp/issue_275_backup_1779521766.md

  4. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: 完了 (2026-05-23T07:41:05Z)

    • iteration: 1
    • verdict: approve
    • termination_reason: approved
    • 改善履歴:
      • iter 0: AC を 1 件 → 4 件(AC2: labels exact match / AC3: 全テンプレートチェック / AC4: YAML parse)に拡張
      • iter 0: VC を rg 1 本 → 3 コマンド(rg + Python yaml parse + 全テンプレートチェック)に強化
      • iter 0: Outcome の repo-wide 誤読を除去。'research.yml 由来の auto-label writer 除去' と明確化
      • iter 0: Out of Scope に完了宣言スコープ明示を追加
      • iter 0: Background に implement-issue/SKILL.md L34 legacy reference 注記を追加
    • 次アクション: issue-contract-review で着手 preflight を実行してください
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues:
        - request_dedupe_key: "follow-up:squne121/loop-protocol:issue275:implement-issue-skill-state-queued-legacy"
          issue_number: null
          issue_url: null
          status: pending_dedupe_check
    
      note_only_observations:
        - dedupe_key: "note:issue275:vc-ac2-ac4-combined"
          source_url: "https://github.com/squne121/loop-protocol/issues/275"
          summary: "VC2 が AC2 と AC4 を単一 python3 コマンドで同時カバー。個別分離すると pass/fail が明確になるが blocking ではない"
  5. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    FOLLOW_UP_MATERIALIZATION_RESULT_V1 (確定) (2026-05-23T07:44:30Z)

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues:
        - request_dedupe_key: "follow-up:squne121/loop-protocol:issue275:implement-issue-skill-state-queued-legacy"
          issue_number: 291
          issue_url: "https://github.com/squne121/loop-protocol/issues/291"
          status: created
          title: "実装: implement-issue/SKILL.md の legacy ready tuple から state/queued 必須条件を除去する"
    
      note_only_observations:
        - dedupe_key: "note:issue275:vc-ac2-ac4-combined"
          source_url: "https://github.com/squne121/loop-protocol/issues/275"
          summary: "VC2 が AC2 と AC4 を単一 python3 コマンドで同時カバー。個別分離で pass/fail を明確にできるが blocking ではない"
        - dedupe_key: "hygiene:issue153:state-queued-label-removed"
          source_url: "https://github.com/squne121/loop-protocol/issues/153"
          summary: "Issue #153 の stale state/queued ラベルを refinement loop 内 hygiene として削除済み"
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