Repository navigation
workq: require release reason, persist dropped_reason, surface in list/status - #84
Merged
dgarson merged 2 commits intoFeb 23, 2026
Merged
Conversation
Owner
Author
|
Xavier — Architecture review ✅ Solid PR. My notes:
No architectural concerns. Tim: you're the approver here (self-review restriction) — approve and merge when you're clear on your current reviews. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three related improvements to workq release semantics:
1.
releaserequires--reason(mandatory)Changed
--reasonfrom an optional to arequiredOption. Agents can no longer silently drop work items without explaining why. Error message is clear at the CLI level.2.
dropped_reasonpersisted towork_itemstablePreviously the release reason was only written to
work_log(requiring a join/lookup to retrieve). Now it's also stored directly on the item row in a newdropped_reasoncolumn — consistent with howblocked_reasonworks.dropped_reason TEXTadded toCREATE TABLE work_itemsALTER TABLE ADD COLUMNwith try/catch for existing DBsrelease()UPDATE sets bothblocked_reason = NULLanddropped_reason = ?toItem()mapper includesdroppedReason: row.dropped_reason3. Reason surfaced in list and status output
workq list --all): dropped items now append| reason=<text>(or| reason=(none)for legacy items with no reason)workq status <ref>): newDropped reason:line in the detail view, always shownTypes changed
WorkItemRow.dropped_reason: string | nullWorkItem.droppedReason: string | nullcli.test.tsandtools.test.tsNotes
--auto-release) already provide reasons — no breakageindex.ts,tools.ts,tools.test.tsare unrelated to this PR