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-08 11:39:08 +02:00
2026-06-09 12:48:04 -07:00
2026-06-24 13:24:10 -07:00
2026-06-22 13:19:40 -07:00
2026-06-24 21:29:11 +00:00
2026-06-24 17:49:00 -07:00
2026-06-18 11:54:49 -07:00
2026-06-24 18:00:06 -07:00
2026-06-24 13:25:44 -07:00
2026-06-24 13:08:14 -07:00
2026-06-24 15:06:53 -07:00
2026-06-23 00:02:33 +00:00
2026-06-18 19:31:19 +00:00
2026-06-11 18:16:39 -07:00
2026-06-22 04:25:07 -07:00
2026-06-13 21:43:39 -07:00
2026-06-24 13:25:44 -07:00
2026-06-24 18:00:06 -07:00
2026-06-22 13:19:40 -07:00
2026-06-22 13:03:11 -07:00
2026-06-11 18:16:39 -07:00
2026-06-11 18:16:39 -07:00
2026-06-23 15:14:13 -07:00
2026-06-11 22:37:26 -07:00
2026-06-23 15:14:13 -07:00
2026-06-22 23:56:16 -07:00
2026-06-01 21:25:42 -07:00
2026-06-22 17:56:04 -07:00
2026-06-15 20:10:53 -07:00
2026-06-24 23:24:01 +01:00
2026-06-21 13:35:25 -07:00
2026-06-24 04:03:04 +00:00
2026-06-24 23:24:01 +01:00
2026-06-22 11:11:25 -07:00
2026-06-24 18:03:44 -07:00
2026-06-24 13:24:10 -07:00
2026-06-24 16:04:51 -07:00
2026-06-24 20:52:36 +01:00
2026-06-05 15:41:13 -07:00
2026-06-24 13:08:14 -07:00
2026-06-24 20:52:36 +01:00
2026-06-24 12:50:18 -07:00
2026-06-15 21:53:47 -07:00
2026-06-13 21:43:39 -07:00
2026-06-24 23:56:50 +01:00
2026-06-19 12:47:53 -07:00
2026-06-22 11:11:25 -07:00
2026-06-24 18:03:44 -07:00
2026-06-24 22:58:34 +01:00
2026-06-24 22:58:34 +01:00
2026-06-15 15:12:26 -07:00
2026-06-03 19:08:19 -07:00
2026-06-12 19:52:49 +00:00
2026-06-18 14:09:38 +02:00
2026-06-24 03:10:20 +00:00
2026-06-24 13:24:10 -07:00
2026-06-24 15:43:10 +01:00
2026-06-04 09:53:08 -04:00
2026-06-23 00:53:09 +00:00
2026-06-24 03:10:20 +00:00
2026-06-24 03:10:20 +00:00
2026-06-24 13:21:16 -07:00
2026-06-04 09:53:08 -04:00
2026-06-24 03:10:20 +00:00
2026-06-23 22:51:19 +01:00
2026-06-23 12:13:54 -07:00
2026-06-24 18:03:44 -07:00
2026-06-23 17:46:54 -07:00
2026-06-24 13:08:14 -07:00
2026-06-22 23:56:16 -07:00
2026-06-23 12:29:46 -07:00
2026-06-12 19:52:49 +00:00
2026-06-23 03:09:20 +00:00
2026-06-11 18:16:39 -07:00
2026-06-23 19:36:17 -07:00
2026-06-24 13:08:14 -07:00
2026-06-24 13:24:10 -07:00
2026-06-24 13:08:14 -07:00
2026-06-24 20:53:27 +00:00
2026-06-24 13:25:44 -07:00
2026-06-24 22:33:18 +00:00
2026-06-13 21:43:39 -07:00
2026-06-13 21:43:39 -07:00
2026-06-24 20:59:53 +01:00
2026-06-24 23:56:50 +01:00
2026-06-24 23:56:50 +01:00
2026-06-11 18:16:39 -07:00
2026-06-04 09:16:03 -07:00