You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Keep the Harness skill catalog in the reusable request prefix #4247
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
perf(harness): place the skill catalog before conversation history (a…