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

Aperta
#20,930 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github, shell

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Shell
Stelle
22
Fork
2
Merge medio
3h 20m
PR unite (30g)
956

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di melodic-software/claude-code-plugins

Tutte le issue di melodic-software/claude-code-plugins

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.