Skip to content

実装: state ラベル体系再定義 (state/queued vs state/ready 役割分担) (A2) #76

Closed as not planned

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: 40
goal_ref: "GitHub Issue の state ラベル体系を再定義し、state/queued (DoR 未充足) と state/ready (DoR 充足済み・AI 着手可能) の役割分担を docs/dev/github-ops.md と .github/ISSUE_TEMPLATE で整合させる"
change_kind: docs
allowed_paths:
  - docs/dev/github-ops.md
  - .github/ISSUE_TEMPLATE/implementation.yml
  - .github/ISSUE_TEMPLATE/parent.yml
  - .github/ISSUE_TEMPLATE/research.yml
acceptance_criteria_count: 5
verification_kind: deterministic

Parent Issue

#40

Parent Goal Ref

  • Goal: GitHub マイルストーン運用(DoR 基準 / state ラベル体系 / Plan Mode スキップルール)をエージェントスキルへ統合し、AI が自律的にマイルストーン進捗を判定・操作できる基盤を整備する
  • Desired Destination: .github/ISSUE_TEMPLATE/*.yml と docs/dev/github-ops.md の state ラベル体系が整合している(state/queued vs state/ready の役割分担が確定している)

Current Validated Scope

  • docs/dev/github-ops.md の state ラベルセクションに state/queued と state/ready の役割分担を明文化する
  • .github/ISSUE_TEMPLATE/implementation.yml、parent.yml、research.yml の labels フィールドを、決定された state ラベルセットと整合させる
  • state/queued vs state/ready の役割分担決定の根拠を docs/dev/github-ops.md に記載する

Remaining Parent Gaps

Outcome

docs/dev/github-ops.md の state ラベルセクションに state/queued と state/ready の役割分担が明文化されたファイルが存在し、.github/ISSUE_TEMPLATE/*.yml の labels フィールドが決定された state ラベルセットと整合している状態で、grep -E 'state/queued|state/ready' docs/dev/github-ops.md がヒットを返す。

In Scope

  • docs/dev/github-ops.md の state ラベルセクション拡張(state/queued vs state/ready 役割分担の明文化)
  • .github/ISSUE_TEMPLATE/implementation.yml、parent.yml、research.yml の labels フィールド見直し(state ラベル定義との整合)
  • state/queued vs state/ready の役割分担決定の根拠記述(新設 vs 拡張の判定理由を含む)

Out of Scope

Acceptance Criteria

Verification Commands

# AC1
grep -E 'state/queued|state/ready' docs/dev/github-ops.md

# AC2
grep -E '判定理由|根拠|なぜ' docs/dev/github-ops.md

# AC3
grep -E 'state/(queued|ready)' .github/ISSUE_TEMPLATE/implementation.yml
grep -E 'state/(queued|ready)' .github/ISSUE_TEMPLATE/parent.yml
grep -E 'state/(queued|ready)' .github/ISSUE_TEMPLATE/research.yml

# AC4
grep -E '#61' docs/dev/github-ops.md

# AC5
grep -E '#72|DoR' docs/dev/github-ops.md

# Standard gates
pnpm typecheck
pnpm lint
pnpm test
pnpm build

Allowed Paths

  • docs/dev/github-ops.md
  • .github/ISSUE_TEMPLATE/implementation.yml
  • .github/ISSUE_TEMPLATE/parent.yml
  • .github/ISSUE_TEMPLATE/research.yml

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • 既存 state/queued を破壊的に廃止する判断が必要になった場合は ADR を起こす
  • state/in-progress / state/review / state/done 等の既存 state ラベル全体に影響が及ぶ場合は本 Issue スコープを超えるので別 Issue へ分割
  • create-issue skill の自動付与 logic を本 PR で変更しそうになった場合は停止(Issue 実装: create-issue skill で起票時に implementation Issue 標準ラベル (state/queued + phase/implementation + agent/implementer + enhancement) を自動付与する #61 のスコープ)
  • A1 (実装: DoR (Definition of Ready) 基準を docs/dev/dor.md に明文化する (A1) #72) で DoR 基準がまだ未定義の場合、本 Issue の AC5 を満たすために A1 完了を待つ
  • ISSUE_TEMPLATE の YAML スキーマ全体を再設計しそうになった場合は別 Issue へ分割
  • ChatGPT 提案の state/ready 引用元の信頼性が確認できない場合は判定根拠から除外して人間判断へ

Required Skills

なし

Scope Delta(任意)

N/A

Delivery Rule

Refs #40, #72, #61

Activity

  1. added
    enhancement
    state/queued
    on May 19, 2026
  2. squne121 commented on May 19, 2026

    @squne121
    OwnerAuthor

    create-issue transaction partial-failure

    Issue: #76
    Failure stage: sub-issue-readback
    Message: parent read-back mismatch

    Requested:

    Failure context:
    matching_issue_numbers=[76]
    issue_number=76

    Recovery hint: sub-issue-readback failed for #76 under parent #40.
    Manual re-register command (idempotent: 既存関係 readback で確認後に再実行(重複登録は API がエラーを返す可能性あり)):

    1. まず readback で関係の有無を確認する:
      gh api repos/実装: state ラベル体系再定義 (state/queued vs state/ready 役割分担) (A2) #76/parent
    2. 未登録が確認できた場合のみ登録 mutation を実行する:
      gh api repos/導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40/sub_issues --method POST -F sub_issue_id=<child_db_id>
      Lookup child database ID:
      gh api graphql -f query='query{repository(owner:"",name:""){issue(number:76){databaseId}}}'
      Verify:
      gh api repos/実装: state ラベル体系再定義 (state/queued vs state/ready 役割分担) (A2) #76/parent

    Please recover deterministically before re-running the create issue transaction.

  3. squne121 commented on May 20, 2026

    @squne121
    OwnerAuthor

    人間指摘。
    state/ready は自動的に付与されるのか?それともAIが付与しなおす必要があるのか?
    後者の場合、その手間、使われるusage、確率論的に採用したくない。
    IssueのブロッカーIssueを設定して、ブロッカーIssueをクローズしたら着手可能と分かりやすい、みたいな仕組みなら採用したい。

    Decision

    state/ready は採用しない、または primary signal として採用しない。

    AI 着手可能性の source of truth は GitHub Issue dependency / blocker の解消状態とする。

    • state/queued: 起票済み・未着手キュー。AI着手可能を意味しない。
    • blocker/dependency open: 着手不可。
    • blocker/dependency all closed: 着手可能。
    • state/in-progress: AI または人間が実際に作業開始した状態。

    state/ready を使う場合も、AI判断で付与しない。決定的スクリプトまたはGitHub Actionsによる派生ラベルに限定する。

    state/ready をAIが付け直す運用 → 不採用
    state/ready を人間が付ける運用 → 不採用
    state/ready を決定的スクリプトが付ける運用 → 可能だが優先度低
    blocking issue / dependency close を着手可能条件にする運用 → 採用推奨

    Issueはクローズ、適宜修正して。

  4. squne121 commented on May 20, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: 完了 — #76 は Decision により close (2026-05-20T05:53:41Z)

    issue-refinement-loop を本 Issue(指定コメント issuecomment-4494634709 を対象)に実行した結果。

    結果サマリ

    判断

    指定コメント(#76 (comment) )は本 Issue の前提そのものを覆す人間 Decisionを含む:

    • state/ready は primary signal として不採用(AI 判断での付与も禁止)
    • AI 着手可能性の source of truth は GitHub Issue の blocker/dependency 全 close 状態とする
    • 「Issue はクローズ、適宜修正して」と明示

    本 Issue は Outcome / In Scope / AC の全体で「state/queued vs state/ready 役割分担」を前提にしており、本文を磨いても Decision と整合しない。よって refinement loop の出力として 本 Issue をクローズし、Decision を反映した代替 Issue を起票した。

    後続 Issue

    恒久化

    project-constitution「Issue コメントは永久仕様にしない」に従い、Decision の恒久仕様化は #92(docs/dev/github-ops.md)が担う。parent #40 の Child Issues / Decisions Fixed / Open Questions も更新済み。

    次アクション: #92 を issue-contract-review で preflight し実装着手。

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

    enhancementstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions