Give work-items one status rule and a hold verb that follows status-storage

オープン
#20,930 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, shell

調査の方向性

Read plugins/work-items/tools/work-item-tracker/CONTRACT.md around lines 474–479 and plugins/work-items/reference/tracker-seam.md around line 221 to trace the conflicting status rules. Then inspect the tracker seam and binding configuration for status-storage, hold_states, hold_labels, and role_labels. Done means both documents describe one rule and the seam provides a hold and release operation that works for each storage mode.

索引モデルが issue の本文から書いたものです。

説明

Steps to reproduce
  1. In a repository whose tracker binding reports status-storage = field, publish an item; create-item moves a status name such as agent-ready into the Work status field and drops it from the labels.
  2. To hold the item for a person, add the human-gated label (default needs-human) with a label edit, as a session naturally does.
  3. Ask whether the item is held.
Expected behavior

One rule answers that question, and the seam offers one way to apply a hold that works whatever status-storage reports, so a caller never chooses between a label and the field.

Actual behavior

The plugin states two rules that disagree:

  • plugins/work-items/tools/work-item-tracker/CONTRACT.md:474-479 (frontier selection): on field storage "The field can only add a hold", and "the labels decide everything else". Under this rule the label edit holds the item.
  • plugins/work-items/reference/tracker-seam.md:221 ("Reading an item's status"): "An item's status is its Work status value alone". Under this rule the label edit is ignored and the item still reads agent-ready.

There is no seam verb that applies a hold through whichever storage the binding uses (set-fields takes raw field and option ids; label edits go straight to the provider), so a session picks one by hand and cannot tell from either document whether it worked.

Severity

Medium

Severity justification

A session holding an item for an owner decision can believe it is held while an autonomous lane may still pick it up, or the reverse; nothing fails loudly either way. No wrong change merges by itself, but owner-reserved work can start without the owner.

Suggested fix location
  • CONTRACT.md and reference/tracker-seam.md: state one status rule and have the other cite it.
  • The tracker seam: add a hold/release verb (for example set-status <id> <state>) that reads status-storage and writes the role label or the Work status option to match, driven by the binding's config.hold_states, config.hold_labels and config.role_labels, with no repository or organization literal.
Environment

work-items plugin on main, GitHub adapter, a binding with Work status field storage; observed 2026-12-03.

主要言語
Shell
スター
22
フォーク
2
平均マージ
3時間 20分
マージ済み PR(30日)
956

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

melodic-software/claude-code-plugins のほかの issue

melodic-software/claude-code-plugins の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。