Doctor detect and fix closed issues with open workflow labels #145
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#145
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
Doctor reads issue files through normalized in-memory labels, so closed issues that still carry an open workflow label (
open,ready,active,blocked) in frontmatter are invisible to audits and doctor-fix.Goal
Report workflow label/state mismatches during
pnpm backlog:doctorand relabel them viapnpm backlog:doctor:fix --apply.Acceptance Criteria
--strictfails when mismatches remaindone/abandoned(oropenfor open issues)Validation Commands
node --test scripts/issue-sync-lib.test.mjspnpm test:scriptsImplementation Summary
Doctor scans raw frontmatter labels for workflow/state mismatches (closed+open label, open+done/abandoned). doctor-fix --apply relabels to done/abandoned or open; --strict fails while mismatches remain. Added planWorkflowLabelFixes helpers and unit tests.