Skip to content

FM Phase 3b: Composable PayloadBuilder + recipes #24

Open

Description

@diskerror

Refactor Phase 3 assembly as a source pipeline instead of hard-coded sequence.

  • PayloadSource interface (name, priority, produce, estimate_tokens)
  • PayloadBuilder runs sources (parallel where safe), applies budget + shrinking
  • Each current payload item becomes a source subclass: persona, dynamic_system, raw_turns, turn_summaries_recent, turn_summaries_search, session_summary, project_summary, rag, decisions, tools, new_user_message
  • Recipes in config: [recipe.default], [recipe.lean], [recipe.research], [recipe.fresh_subject] — named ordered lists with per-source budget caps
  • Agents override via X-Ragger-Recipe header or body ragger_overrides

Files: new include/ragger/payload_builder.h, new src/payload_builder.cpp, chat_sessions.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. diskerror commented on Aug 8, 2026

    @diskerror
    OwnerAuthor

    There are situations where building a payload is useful.

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