Temporarily skipped assessments select an empty next queue while planned fixes remain open
Potentially related to #813, but reproduced before finishing implementation and without modifying the installed tool.
Environment: Desloppify 1.0, Windows/PowerShell. Installed source inspected read-only.
Reproduction:
- Complete review triage and retain active manual clusters containing open review findings in queue_order.
- Fix and resolve some findings. Their dimensions become stale while other planned implementation clusters remain open.
- Temporarily defer subjective::* assessments with plan skip --review-after 1 to finish overlapping implementation before the next scan.
- Focus an active remaining cluster and run next. Promoting/reordering does not help.
Actual: next reports Queue: 0 items and recommends a scan, while plan queue still reports planned open implementation work. Remaining findings are open, not suppressed, and belong to active clusters with unchecked steps. No triage/workflow stages are pending.
A read-only snapshot showed phase assessment and two execution items, both temporarily skipped subjective IDs. Open implementation findings were in backlog_items.
Expected: skipped assessments should not select a phase that becomes empty after skip filtering. Open planned implementation should remain executable, or the CLI should explain an unsatisfied gate instead of reporting completion.
Source evidence:
- engine/_work_queue/snapshot.py: _subjective_partitions builds candidates without filtering plan.skipped; _build_item_partitions includes stale dimensions without remaining findings in postflight_assessment_items; _phase_for_snapshot chooses assessment while persisted lifecycle phase is plan; _execution_items_for_phase selects assessments instead of explicit implementation candidates.
- Later engine/_work_queue/finalize.py:_plan_presort calls plan_order.separate_skipped, removing the selected assessments. Phase selection is not repeated.
Workaround: after verifying all requested cluster findings remain open, next --status all --cluster
Suggested regression: one open planned review finding, two stale assessed dimensions with no remaining findings, completed triage, active manual cluster, persisted plan lifecycle, temporary skips on both dimensions. Assert next exposes planned work. Repeat without focus, with --include-skipped, and after skip expiry on the next scan. Check reconcile and snapshot phase derivation together.