Skip to content

fix(memory): archive runaway memory before AI compaction#1704

Merged
chubes4 merged 1 commit intomainfrom
fix-daily-memory-overflow
May 1, 2026
Merged

fix(memory): archive runaway memory before AI compaction#1704
chubes4 merged 1 commit intomainfrom
fix-daily-memory-overflow

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 1, 2026

Summary

  • Add a deterministic Daily Memory overflow path for runaway MEMORY.md files before invoking AI compaction.
  • Archive whole tail sections verbatim to daily memory and leave an Archived Memory Overflow pointer in MEMORY.md.
  • Keep normal AI compaction unchanged for moderately sized memory files.

Why

Franklin's live MEMORY.md reached ~248KB. The normal single-request compaction path now reaches OpenAI correctly, but the provider returns 0 bytes for the oversized request until the full request timeout expires. This circuit breaker preserves the runaway content without sending the whole file to the model.

Tests

  • php tests/daily-memory-overflow-split-smoke.php
  • homeboy lint data-machine --path /Users/chubes/Developer/data-machine@fix-daily-memory-overflow --file inc/Engine/AI/System/Tasks/DailyMemoryTask.php
  • homeboy lint data-machine --path /Users/chubes/Developer/data-machine@fix-daily-memory-overflow --file tests/daily-memory-overflow-split-smoke.php
  • homeboy audit data-machine --path /Users/chubes/Developer/data-machine@fix-daily-memory-overflow --changed-since origin/main

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Diagnosed the runaway daily-memory compaction failure, implemented the deterministic overflow split, and ran focused verification. Chris remains responsible for review and merge.

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented May 1, 2026

Homeboy Results — data-machine

Lint

⚠️ Homeboy core PR-comment rendering currently supports the default audit,lint,test review report only. Check the action logs for lint.

Test

⚠️ Homeboy core PR-comment rendering currently supports the default audit,lint,test review report only. Check the action logs for test.

Audit

⚠️ Homeboy core PR-comment rendering currently supports the default audit,lint,test review report only. Check the action logs for audit.

Tooling versions
  • Homeboy CLI: homeboy 0.135.0+af44d40e
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: cfa76d3
  • Action: Extra-Chill/homeboy-action@v2

@chubes4 chubes4 merged commit 99124e1 into main May 1, 2026
3 checks passed
@chubes4 chubes4 deleted the fix-daily-memory-overflow branch May 1, 2026 15:01
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