Skip to content

fix: compress lever payload and batch FocusOnVitalFewLeversTask - #134

Closed
82deutschmark wants to merge 2 commits into
PlanExeOrg:mainfrom
VoynichLabs:fix/focus-vital-few-levers-compression
Closed

fix: compress lever payload and batch FocusOnVitalFewLeversTask#134
82deutschmark wants to merge 2 commits into
PlanExeOrg:mainfrom
VoynichLabs:fix/focus-vital-few-levers-compression

Conversation

@82deutschmark

Copy link
Copy Markdown
Collaborator

Compresses enriched-lever JSON to only the 5 fields consumed by the task (lever_id, name, description, synergy_text, conflict_text), makes optional fields Optional, and processes levers in batches of 4 with graceful retries to avoid context limit errors.

@82deutschmark

Copy link
Copy Markdown
CollaboratorAuthor

Closing per Simon's feedback. The compress_lever() approach strips review/consequences fields, losing context the LLM needs for quality assessment. Replacement PR incoming: try full levers first, only fall back to batched+compressed on failure.

82deutschmark added a commit to VoynichLabs/PlanExe2026 that referenced this pull request Mar 6, 2026
FocusOnVitalFewLeversTask now attempts a single LLM call with all
enriched lever fields (review, consequences, options, etc.) first.
Only if that fails (context overflow, HTTP 400, parse error) does
it fall back to batched processing with compressed levers.
This preserves full context for cloud models and large-context local
models while maintaining compatibility with smaller context windows.
Replaces the always-compress approach from PR PlanExeOrg#134 (closed).
82deutschmark added a commit to VoynichLabs/PlanExe2026 that referenced this pull request Mar 6, 2026
FocusOnVitalFewLeversTask now attempts a single LLM call with all
enriched lever fields (review, consequences, options, etc.) first.
Only if that fails (context overflow, HTTP 400, parse error) does
it fall back to batched processing with compressed levers.
This preserves full context for cloud models and large-context local
models while maintaining compatibility with smaller context windows.
Replaces the always-compress approach from PR PlanExeOrg#134 (closed).
82deutschmark added a commit to VoynichLabs/PlanExe2026 that referenced this pull request Mar 6, 2026
FocusOnVitalFewLeversTask now attempts a single LLM call with all
enriched lever fields (review, consequences, options, etc.) first.
Only if that fails (context overflow, HTTP 400, parse error) does
it fall back to batched processing with compressed levers.
This preserves full context for cloud models and large-context local
models while maintaining compatibility with smaller context windows.
Replaces the always-compress approach from PR PlanExeOrg#134 (closed).
82deutschmark added a commit to VoynichLabs/PlanExe2026 that referenced this pull request Mar 6, 2026
FocusOnVitalFewLeversTask now attempts a single LLM call with all
enriched lever fields (review, consequences, options, etc.) first.
Only if that fails (context overflow, HTTP 400, parse error) does
it fall back to batched processing with compressed levers.
This preserves full context for cloud models and large-context local
models while maintaining compatibility with smaller context windows.
Replaces the always-compress approach from PR PlanExeOrg#134 (closed).
82deutschmark added a commit to VoynichLabs/PlanExe2026 that referenced this pull request Mar 6, 2026
FocusOnVitalFewLeversTask now attempts a single LLM call with all
enriched lever fields (review, consequences, options, etc.) first.
Only if that fails (context overflow, HTTP 400, parse error) does
it fall back to batched processing with compressed levers.
This preserves full context for cloud models and large-context local
models while maintaining compatibility with smaller context windows.
Replaces the always-compress approach from PR PlanExeOrg#134 (closed).
82deutschmark added a commit to VoynichLabs/PlanExe2026 that referenced this pull request Mar 6, 2026
FocusOnVitalFewLeversTask now attempts a single LLM call with all
enriched lever fields (review, consequences, options, etc.) first.
Only if that fails (context overflow, HTTP 400, parse error) does
it fall back to batched processing with compressed levers.
This preserves full context for cloud models and large-context local
models while maintaining compatibility with smaller context windows.
Replaces the always-compress approach from PR PlanExeOrg#134 (closed).
Sign up for freeto 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

@82deutschmark