Skip to content

M30: resilient compaction with fallback and persistence #792

@bug-ops

Description

@bug-ops

Make compaction resilient to failures, add progressive fallback, persist compacted state.

Gap: Zeph has only proactive compaction with no fallback and in-memory-only state. Missing: reactive compaction on ContextLengthExceeded, middle-out tool removal fallback, structured multi-section compaction prompt, and durable compaction via SQLite persistence.

Acceptance Criteria

  • Reactive compaction on ContextLengthExceeded
  • Middle-out progressive tool response removal fallback
  • Structured 9-section compaction prompt
  • Persist compacted state to SQLite

Depends on: M28 (#790)
Ref: .local/plan/m27-m31-context-memory-improvements.md

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestepicMilestone-level tracking issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions