Skip to content

FM Phase 3: Tiered payload assembly + context budget + shrinking #23

Open

Description

@diskerror

Build payloads from the storage hierarchy instead of flat "last N turns".

  • L1 within verbatim_turns/verbatim_minutes
  • L3 within configured window
  • L2/L4/L5/L6 via memory search (relevance-gated); L6 filtered to current
  • Token estimation per section, percentage-based allocation from max_context (budget_persona_pct, budget_session_pct, budget_summaries_pct, budget_search_pct, budget_reserve_pct)
  • Shrinking: cut from priority 9 upward (see design doc table); never cut new user message or previous raw turn

Files: chat_sessions.{h,cpp}, config.{h,cpp}

Activity

  1. added
    backendServer / API work
    fading-memoryFading memory / chat manager design
    chatRagger Chat (Role 2) / proxy (Role 3)
    on Apr 20, 2026
  2. added 5 commits that reference this issue on Jun 6, 2026
  3. diskerror commented on Aug 8, 2026

    @diskerror
    OwnerAuthor

    Payload assembly can be triggered before it's triggered by the agent framework and be aware of cache validity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendServer / API workchatRagger Chat (Role 2) / proxy (Role 3)fading-memoryFading memory / chat manager design

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions