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