I need to understand the flow of: when a finding that was added via subjective review…
- User
I need to understand the flow of: when a finding that was added via subjective review gets resolved/completed, does that mark the corresponding subjective dimension as stale?
Search thoroughly for:
- How subjective dimensions and stale tracking work - look in
desloppify/engine/_plan/stale_dimensions.pyand related files - How findings get resolved/completed - look in resolve commands (
desloppify/app/commands/resolve/) - How the "next" command completes items - look in
desloppify/app/commands/next.pyand next_parts/ - Any code that marks dimensions as stale when findings are resolved
- The subjective dimension definitions in
desloppify/core/subjective_dimensions.py - How subjective review findings are stored and what detector names they use
Read the full contents of these key files:
- desloppify/engine/_plan/stale_dimensions.py
- desloppify/core/subjective_dimensions.py
- desloppify/app/commands/resolve/cmd.py
- desloppify/app/commands/next.py (focus on the resolution/completion flow)
I want to know:
- What triggers a dimension to be marked stale?
- When a subjective finding is resolved, is there any code path that calls the stale dimension marking?
- If not, is this a gap/bug?
- How subjective dimensions and stale tracking work - look in
Assistant
I'll search thoroughly through the codebase to understand the flow of subjective dimension staleness tracking when findings are resolved.
Assistant
Now let me search for more context on how findings are resolved and if there's any code that marks dimensions as stale when findings change:
Assistant
Let me search more specifically for where dimensions are marked stale and look at the scoring code:
Assistant
Now let me search for where
needs_review_refreshis set - this appears to be the flag for marking dimensions as stale:Assistant
Perfect! Now let me read the key file that sets
needs_review_refresh:Assistant
Excellent! Now let me search for where subjective findings from the "review" detector are added/created to understand the full flow:
Assistant
Now let me check the review preflight code that clears the
needs_review_refreshflag:Assistant
Now let me check the state.py module to understand how
resolve_findingsis called:Assistant
Let me check if there's a state.py wrapper:
Assistant
Perfect! Now let me look at the test file to understand the behavior better:
Assistant
Excellent! Now let me check test_stale_dimensions to see the full picture:
Assistant
Perfect! Now I have a comprehensive understanding. Let me create a final summary document by searching for any additional context on how the resolve command interacts with the stale tracking:
Assistant
Perfect! Now let me check the merge.py file to understand the mechanical change staling:
Assistant