I need to understand the current queue lifecycle, phase inference, and post-flight…
- User
I need to understand the current queue lifecycle, phase inference, and post-flight behavior in this codebase. Find and summarize the key code for:
- How the current "phase" is inferred from queue items (the "discover phase from item presence" pattern)
- The postflight scan/review/workflow machinery — what phases exist today implicitly
- build_execution_queue() and apply_lifecycle_filter() — how they work
- score_display_mode() and how it determines frozen/live
- The refresh state / plan state — what's persisted today
- How "next" and "plan" commands consume queue state
- Synthetic workflow items (workflow::run-scan, deferred disposition, etc.)
- Any existing phase/lifecycle enums or constants
Look in:
- desloppify/engine/_work_queue/
- desloppify/engine/_plan/
- desloppify/engine/_scoring/
- desloppify/app/commands/next/
- desloppify/app/commands/plan/
- desloppify/app/commands/scan/
Be very thorough — read the actual implementations, not just signatures.
Assistant
I'll conduct a thorough exploration of the queue lifecycle, phase inference, and post-flight behavior. Let me start by mapping out the key files and their relationships.
Assistant
Now let me read the core files systematically. Let me start with the work queue types and lifecycle:
Assistant
Now let me read the synthetic workflow items and other key pieces:
Assistant
Now let me read the scoring and display mode logic:
Assistant
Now let me check the ranking and display score logic:
Assistant
Let me read the next command which consumes queue state, and check the score display mode logic:
Assistant
Now let me check the build_execution_queue and score display mode:
Assistant
Let me search more specifically for score_display_mode:
Assistant
Now let me read the scan command workflow and the plan command:
Assistant
Let me now look at the plan constants and context to understand the workflow IDs and NON_OBJECTIVE_DETECTORS:
Assistant
Now let me check the queue context and check score display mode:
Assistant
Perfect! Now let me read the actual score_display_mode function:
Assistant
Perfect! Now let me check the refresh state/plan persistence to understand what gets stored:
Assistant
Excellent! Now let me check the workflow sync implementations to understand the full picture:
Assistant
Perfect! Now let me create a comprehensive summary document. Let me check one more critical piece - how phases are inferred from item presence in the queue:
Assistant
Now let me create my summary. I have all the information I need:
Assistant