Repair director queue PR classification from PR #984 review #1043
No reviewers
Labels
No labels
burndown-2026-06
pressure-test
sunday-sprint
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/ward!1043
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-995"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaces PR #984 with the repaired director queue view.
PR #984 was review-blocked on a concrete classification bug:
classifyDirectorQueueOutcomecompareditem.KindagainstbacklogKindPullRequest("pull-request"), but the queue items stored the display prefix ("PR"/"issue") frombacklogEntryKindPrefix, so a done PR carry could never match the PR branch and was mis-actioned as a closeable stale-open done issue.This branch merges the issue-977 queue view and repairs it at the representation seam:
directorQueueItem.Kindnow stores the canonical backlog kind (backlogKindIssue/backlogKindPullRequest); the display prefix is derived only at render time.wait, neverclose stale-open done issue.Kindon every classified item, and assert the rendered view keeps thePR/issueprefixes without counting the done PR toward the close-done action.docs/ward-specs.mdreference and an over-cap comment block inconfigsource.gothat failed the pre-commit suite on every commit; the comment is shrunk to cap and the detail moved intodocs/config-source.md.closes #995
ward.workflow: pull-requests-and-merge
classifyDirectorQueueOutcome compared item.Kind against backlogKindPullRequest ("pull-request"), but the queue items stored the display prefix ("PR"/"issue") from backlogEntryKindPrefix, so a done PR carry could never match the PR branch and was mis-actioned as a closeable stale-open done issue. Store the canonical backlog kind on directorQueueItem and derive the display prefix only at render time, so classification and formatting each read the representation they expect. Tests now cover done PR and done issue outcomes separately, lock the canonical Kind on every classified item, and assert the rendered view keeps the PR/issue prefixes without counting the done PR as a close-done action. Repairs the review finding that blocked PR #984 (issue-977 branch, merged into this branch). closes #995 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>