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

未关闭
#20,930 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 分钟
30 天内合并 PR
956

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。