Skip to content

[BUG] Context [Execution] truncated — Capsule Preview diff bloats prompt to 70KB+ #552

@zhuyankarl

Description

@zhuyankarl

Environment

  • Evolver version: 1.86.0
  • Node.js: v22.22.1
  • Platform: Linux x64

Problem

The gep_prompt_Cycle_*.txt files generated by dispatch.js consistently have Context [Execution]: truncated to just ...[TRUNCATED]... (39 bytes). This means the subagent receives NO execution instructions.

Root Cause

The Context [Injection Hint] section is bloated to ~54KB due to:

  1. Capsule Preview diff field — each capsule embeds a full git diff (~8.5KB), 3 capsules = 25KB of diffs not useful for strategy decisions
  2. Gene Preview learning_history and anti_patterns fields — verbose text
  3. Total prompt reaches 77KB, exceeding dispatch.js internal size limit → Execution truncated

Evidence

Context [Injection Hint]:: 54,850 bytes  (74% of total)
Context [Execution]:: 39 bytes  ← TRUNCATED
Total: 76,815 bytes

After stripping verbose fields: 35,971 bytes (53% reduction).

Suggested Fix

  1. Strip diff from Capsule Preview (or make opt-in)
  2. Strip learning_history/anti_patterns from Gene Preview
  3. Or: increase/remove internal prompt size limit

Workaround

Post-processing script strips verbose fields. Reduces tokens but cannot restore already-truncated Execution section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions