Skip to content

fix: make ExpertDetails summary fields optional to handle LLM output variability#156

Merged
neoneye merged 1 commit intoPlanExeOrg:mainfrom
VoynichLabs:fix/pre-project-assessment-resilience
Mar 7, 2026
Merged

fix: make ExpertDetails summary fields optional to handle LLM output variability#156
neoneye merged 1 commit intoPlanExeOrg:mainfrom
VoynichLabs:fix/pre-project-assessment-resilience

Conversation

@82deutschmark
Copy link
Collaborator

ExpertDetails class in pre_project_assessment.py had two required fields that LLM output sometimes doesn't include. Changed combined_summary and go_no_go_recommendation to Optional[str] with default empty strings to allow graceful handling when LLM omits these fields.

@neoneye neoneye merged commit d85daff into PlanExeOrg:main Mar 7, 2026
3 checks passed
@neoneye neoneye deleted the fix/pre-project-assessment-resilience branch March 7, 2026 02:57
82deutschmark added a commit to VoynichLabs/PlanExe2026 that referenced this pull request Mar 7, 2026
feedback_root_cause is the last field in NegativeFeedbackItem.
Local LLMs consistently omit trailing required fields in nested
JSON list items, causing 3 validation errors for ExpertConsultation
in ExpertReviewTask.

Confirmed failure: ExpertReviewTask failed 2026-03-06 22:57 EST
on Mac Mini M4 Pro 64GB with Qwen 3.5-35B-A3B (num_output=8192).
Same truncation pattern as SelectScenarioTask (PlanExeOrg#153) and
PreProjectAssessmentTask (PlanExeOrg#155, PlanExeOrg#156).
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.

2 participants