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

Offen
#20,930 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
github, shell

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Shell
Sterne
22
Forks
2
Ø Merge
3 Std. 20 Min.
Gemergte PRs (30 T.)
956

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus melodic-software/claude-code-plugins

Alle Issues in melodic-software/claude-code-plugins

Ähnliche Issues

Weitere Issues zu Shell/Bash

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.