fix: compact cleanup, ingestBatch parallelism, trimToBudget early exit #6

Merged
jason.woltje merged 1 commits from fix/compact-ingest-trim into main 2026-03-06 19:05:20 +00:00
Owner

Fixes mosaic/openclaw-openbrain-context#4

  • compact(): deletes summarized thoughts after archiving (prevents unbounded storage growth)
  • ingestBatch(): chunked Promise.all with concurrency cap of 5 (was sequential)
  • trimToBudget(): break instead of continue — stops iterating when budget exhausted
  • Tests updated for all three behaviors
Fixes mosaic/openclaw-openbrain-context#4 - compact(): deletes summarized thoughts after archiving (prevents unbounded storage growth) - ingestBatch(): chunked Promise.all with concurrency cap of 5 (was sequential) - trimToBudget(): break instead of continue — stops iterating when budget exhausted - Tests updated for all three behaviors
jason.woltje added 1 commit 2026-03-06 19:05:14 +00:00
jason.woltje merged commit d1fe20a2e9 into main 2026-03-06 19:05:20 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/openclaw-openbrain-context#6