Skip to content

Enforce lossless Prefill token budgets - #216

Merged
FluffyAIcode merged 1 commit into
mainfrom
AgentMemory/lossless-prefill-token-budget-0721
Jul 21, 2026
Merged

Enforce lossless Prefill token budgets#216
FluffyAIcode merged 1 commit into
mainfrom
AgentMemory/lossless-prefill-token-budget-0721

Conversation

@FluffyAIcode

Copy link
Copy Markdown
Owner

Summary

  • cap Strategy Prefill at 4096 tokens using complete active-leaf ancestry and exact relevant experiment records
  • cap Generator/Critic Prefill at 6144 tokens with preflight rejection instead of truncation
  • remove results tail slicing and prose-plan step truncation while preserving full Critic context

Test plan

  • targeted AutoResearch tests: 41 passed
  • compile supervisor and GAN REPL
  • verify over-budget inputs remain unchanged and are rejected before remote Prefill

The uncommitted candidate.py file is active runtime state and is excluded.

Made with Cursor

Bound Strategy and GAN Prefill inputs with hard admission checks while preserving complete active-branch semantics and rejecting over-budget prompts without truncation.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 21, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@FluffyAIcode
FluffyAIcode merged commit 87b93fd into main Jul 21, 2026
7 checks passed
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