Skip to content

feat(engine): implement context budget management in execution loops#520

Merged
Aureliolo merged 14 commits into
mainfrom
feat/context-budget-management
Mar 17, 2026
Merged

feat(engine): implement context budget management in execution loops#520
Aureliolo merged 14 commits into
mainfrom
feat/context-budget-management

fix: preserve all leading SYSTEM messages during compaction

f454896
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed Mar 17, 2026 in 1s

93.12% (-0.04%) compared to b7d8172

View this Pull Request on Codecov

93.12% (-0.04%) compared to b7d8172

Details

Codecov Report

❌ Patch coverage is 88.41463% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.12%. Comparing base (b7d8172) to head (f454896).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/synthorg/engine/loop_helpers.py 27.27% 7 Missing and 1 partial ⚠️
src/synthorg/engine/plan_execute_loop.py 66.66% 2 Missing and 2 partials ⚠️
src/synthorg/engine/context.py 83.33% 2 Missing and 1 partial ⚠️
src/synthorg/engine/checkpoint/resume.py 71.42% 2 Missing ⚠️
src/synthorg/engine/react_loop.py 71.42% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #520      +/-   ##
==========================================
- Coverage   93.16%   93.12%   -0.04%     
==========================================
  Files         506      513       +7     
  Lines       24490    24644     +154     
  Branches     2333     2344      +11     
==========================================
+ Hits        22815    22950     +135     
- Misses       1328     1342      +14     
- Partials      347      352       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.