Skip to content

[Feature]: Keep the Harness skill catalog in the reusable request prefix #4247

Closed

Description

@Buktal

Is your feature request related to a problem? Please describe.

#3691 moved <available_skills> into runtime material after the conversation. When a session appends a reply and a new user turn, the next request can diverge from the previous request before reaching the catalog, even when the visible skills are unchanged.

Describe the solution you'd like

Render the Harness skill catalog as a request-only User message immediately after System. Render per-call runtime material after the conversation. If moving the catalog would leave an Assistant message last, place the catalog at the end as a User message. Keep the catalog available after history compaction.

Describe alternatives you've considered

An earlier implementation moves the entire runtime_materials message before history. When a value from ContextBlock.runtime(...) changes, such as a build status, the shared prefix can end before the conversation. Fork commit eb50ccd96

Additional context

On 2.1.0-SNAPSHOT, capture three model requests in one session with a workspace skill and a changing build status. The ordering test fails on main (c1d482900) because the catalog follows the conversation. With the patch, System and catalog text match across the first two requests. The third request shows the updated skill description, and runtime values follow history. Empty-input continuation and history compaction are also covered. Provider cache hits and savings remain unmeasured.

Activity

  1. added a commit that references this issue on Nov 19, 2026
    f4e6a07
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions