Michael Bolin
f15df624a6
core: add configurable <context_window_guidance> message ( #29936 )
...
## Why
This PR adds a configurable `<context_window_guidance>` developer
section immediately after `<context_window>`. Harness integrations need
this section to give the model deployment-specific instructions for
preparing for context-window transitions.
## What changed
- Add an optional `features.token_budget.guidance_message` config with a
1,000-byte runtime cap and generated schema support.
- Render configured guidance as a developer `ContextualUserFragment`
wrapped in `<context_window_guidance>` immediately after
`<context_window>`.
- Omit the section when guidance is unset, empty, or whitespace-only.
- Preserve the resolved value in config locks and classify persisted
guidance as contextual developer content.
- Add integration coverage for rendered content and ordering.
2026-06-24 18:03:44 -07:00
..
2026-06-22 23:37:49 +00:00
2026-06-08 13:55:15 -07:00
2026-06-08 13:55:15 -07:00
2026-06-23 14:15:20 +02:00
2026-06-15 21:53:47 -07:00
2026-06-22 23:56:16 -07:00
2026-06-23 21:45:06 +00:00
2026-06-23 22:48:06 -07:00
2026-06-23 12:13:54 -07:00
2026-06-15 21:53:47 -07:00
2026-06-15 21:53:47 -07:00
2026-06-23 17:23:38 -07:00
2026-06-24 13:24:10 -07:00
2026-06-24 17:49:00 -07:00
2026-05-14 16:15:56 -07:00
2026-06-08 13:55:15 -07:00
2026-06-22 16:45:14 -07:00
2026-06-22 11:11:25 -07:00
2026-06-18 11:54:49 -07:00
2026-06-24 00:15:04 -07:00
2026-06-24 17:49:00 -07:00
2026-06-19 05:35:57 -07:00
2026-06-15 21:53:47 -07:00
2026-06-18 14:09:38 +02:00
2026-06-23 18:51:49 -07:00
2026-06-23 10:23:25 -04:00
2026-06-22 11:54:44 -07:00
2026-06-15 21:53:47 -07:00
2026-06-23 14:27:13 -07:00
2026-06-22 16:45:14 -07:00
2026-06-17 06:03:00 +00:00
2026-06-08 13:55:15 -07:00
2026-06-15 21:53:47 -07:00
2026-06-23 18:29:27 +01:00
2026-06-22 16:45:23 -07:00
2026-06-17 08:50:39 -07:00
2026-06-23 18:29:27 +01:00
2026-05-18 21:03:51 -07:00
2026-06-23 14:15:20 +02:00
2026-06-23 22:48:06 -07:00
2026-06-15 21:53:47 -07:00
2026-06-10 20:42:55 -07:00
2026-06-08 13:55:15 -07:00
2026-06-22 10:05:36 +02:00
2026-06-23 14:27:13 -07:00
2026-06-23 22:48:06 -07:00
2026-06-22 20:44:48 -07:00
2026-06-08 13:55:15 -07:00
2026-06-24 17:49:00 -07:00
2026-06-08 13:55:15 -07:00
2026-06-23 21:50:50 +00:00
2026-06-10 20:42:55 -07:00
2026-06-22 16:45:23 -07:00
2026-06-22 16:45:14 -07:00
2026-06-22 16:45:14 -07:00
2026-06-08 13:55:15 -07:00
2026-06-22 11:11:25 -07:00
2026-06-24 01:06:29 +00:00
2026-06-15 21:53:47 -07:00
2026-06-08 13:55:15 -07:00
2026-06-15 21:53:47 -07:00
2026-06-16 20:45:57 +00:00
2026-06-24 21:29:11 +00:00
2026-06-15 21:53:47 -07:00
2026-06-08 13:55:15 -07:00
2026-06-23 18:51:49 -07:00
2026-06-23 10:23:25 -04:00
2026-06-08 13:55:15 -07:00
2026-06-22 11:11:25 -07:00
2026-06-23 21:45:06 +00:00
2026-06-23 16:49:13 -07:00
2026-06-23 17:23:38 -07:00
2026-06-22 19:51:03 -07:00
2026-06-08 13:55:15 -07:00
2026-06-22 16:45:23 -07:00
2026-06-23 14:27:13 -07:00
2026-06-23 14:27:13 -07:00
2026-06-15 21:53:47 -07:00
2026-06-08 13:55:15 -07:00
2026-06-23 21:45:06 +00:00
2026-06-15 21:53:47 -07:00
2026-06-23 21:50:50 +00:00
2026-06-08 13:55:15 -07:00
2026-06-08 13:55:15 -07:00
2026-06-23 14:15:20 +02:00
2026-06-24 18:03:44 -07:00
2026-06-15 21:53:47 -07:00
2026-06-15 21:53:47 -07:00
2026-06-15 21:53:47 -07:00
2026-06-22 10:05:11 -07:00
2026-06-15 21:53:47 -07:00
2026-06-08 13:55:15 -07:00
2026-06-24 05:23:29 +00:00
2026-06-18 16:13:07 -07:00
2026-06-08 13:55:15 -07:00
2026-06-16 10:37:06 -07:00
2026-06-23 21:45:06 +00:00
2026-06-19 05:35:57 -07:00
2026-06-08 13:55:15 -07:00
2026-06-15 21:53:47 -07:00
2026-06-18 14:09:38 +02:00