[Phase 6] test(ai): 안전 분석 경로 검증 및 문서화 - #79
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds intent-driven worker fallback, updates safety and price analysis wording, parameterizes Supabase session settings, expands safety analysis tests, and documents the F-4 safety batch and API flow. ChangesF-4 Safety Analysis Feature, Fixes, and Documentation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@backend-ai/app/clients/llm_client.py`:
- Around line 182-184: The intent hydration in generate_answer() is promoting
HUG_CALC into workers_called, but the method still lacks a dedicated HUG_CALC
handling branch and falls back to the generic response. Update the routing in
llm_client.py so generate_answer() recognizes HUG_CALC as a valid task path and
returns the appropriate task-specific answer instead of the generic “질문 의도를…”
fallback; if intent hydration is meant only for renderable intents, add a guard
around the workers_called assignment to exclude HUG_CALC.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 074a5a1b-f498-4c37-99a9-020f87e61cc6
📒 Files selected for processing (14)
backend-ai/app/clients/llm_client.pybackend-ai/app/clients/spring_client.pybackend-ai/app/clients/supabase_client.pybackend-ai/app/graph/state.pybackend-ai/app/services/analysis_answer_service.pybackend-ai/tests/test_agent_chat.pybackend-ai/tests/test_analysis_answer_generation.pybackend-ai/tests/test_safety_analysis.pybackend-ai/tests/test_spring_client.pydocs/06_EXTERNAL_APIS.mddocs/07_DOMAIN_MODEL.mddocs/08_API_SPEC.mddocs/09_BATCH_INGESTION.mddocs/11_ROADMAP.md
변경 내용
SAFETY_ANALYSIS가 Spring Bootsafety-summary의 사전 계산 안전 점수와 시설 개수를 카드/답변에 명확히 노출하도록 검증을 추가했습니다.intent기반 단위 테스트도workers_called없이 동작하도록 호환성을 보강했습니다.연결 이슈
테스트 체크리스트
C:\Users\Linear\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe -m pytest tests --basetemp ..\.tmp\pytest3 -p no:cacheprovider./mvnw.cmd test리뷰 포인트
safety-summary와 DB precomputed rows만 사용하는 계약을 테스트/문서로 고정했습니다.Summary by CodeRabbit
New Features
Bug Fixes