Skip to content

fix: respect triage plan queue order#652

Draft
ApexWorm wants to merge 1 commit into
peteromallet:mainfrom
ApexWorm:fix/triage-plan-order-and-scope
Draft

fix: respect triage plan queue order#652
ApexWorm wants to merge 1 commit into
peteromallet:mainfrom
ApexWorm:fix/triage-plan-order-and-scope

Conversation

@ApexWorm

Copy link
Copy Markdown

Problem

Manual multi-item triage clusters were rendered ahead of the execution queue based on cluster-map insertion order. This made plan cluster reorder ineffective for collapsed packets. Enrich-quality scoping also admitted empty historical clusters despite being documented as current-cycle scoped.

Fix

  • Order collapsed manual clusters by their first live member in plan["queue_order"], with a stable fallback for unqueued packets.
  • Scope enrich/sense-check quality checks only to clusters overlapping the active triage issue IDs.
  • Add direct regressions for both behaviors.

Validation

  • python3 -m pytest -q desloppify/tests/review/test_work_queue_plan_order_and_triage.py desloppify/tests/plan/test_auto_cluster.py desloppify/tests/commands/plan/test_triage_split_modules_direct.py — 118 passed
  • python3 -m ruff check --select F ...
  • python3 -m py_compile ...
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant