Skip to content

fix(testing): add think_causally + ThinkCategory.CAUSAL_ANALYSIS — fix broken test_causal_reasoning.py (#4729)#4735

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-4729
Apr 15, 2026
Merged

fix(testing): add think_causally + ThinkCategory.CAUSAL_ANALYSIS — fix broken test_causal_reasoning.py (#4729)#4735
mrveiss merged 1 commit intoDev_new_guifrom
issue-4729

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 15, 2026

Closes #4729

Summary

  • Added ThinkCategory.CAUSAL_ANALYSIS to the enum in agent_loop/types.py
  • Added think_causally() convenience function to agent_loop/think_tool.py alongside existing think_before_git etc., with CAUSAL_ANALYSIS prompt
  • Fixed CausalErrorAnalyzer._parse_causal_result to use think_result.conclusion first (the ThinkTool's explicit summary), falling back to reasoning only when conclusion is empty
  • TestCausalReasoningIntegration::test_intelligent_agent_causal_prompt marked @pytest.mark.xfail — requires llama_index which is not installed in the test environment (matches existing pattern)

Tests

  • 15 passed, 1 xfailed

🤖 Generated with Claude Code

#4729)

Add CAUSAL_ANALYSIS to ThinkCategory enum and think_causally() convenience
function to agent_loop/think_tool.py; fix _extract_root_cause to prefer
conclusion over reasoning for root cause extraction; mark integration test
xfail where llama_index optional dep is absent.
@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

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