Won Park
520e13a4bc
Allow configuring the Guardian prompt template ( #45516 )
...
## What changed
Add `auto_review.experimental_policy_template` to override the Guardian prompt template in `config.toml`. Trim the configured value and ignore it when empty. Prefer the override over the model catalog template, retaining the bundled template as the final fallback.
The template's `{{ tenant_policy_config }}` placeholder is replaced with the resolved Guardian policy.
## Testing
Extend tests to cover template deserialization, trimming, precedence over the catalog template, and rendered policy text in Guardian inference requests.
GitOrigin-RevId: 85b4a8fc193a42735354894203ccbd1f738a3b58
2026-09-14 21:06:36 +00:00
..
2026-09-12 00:12:26 +00:00
2026-09-14 19:11:29 +00:00
2026-08-21 19:04:32 +00:00
2026-09-03 02:09:10 +00:00
2026-09-03 02:09:10 +00:00
2026-08-05 18:09:26 +00:00
2026-09-09 03:17:48 +00:00
2026-09-04 18:30:26 +00:00
2026-09-04 18:30:26 +00:00
2026-08-21 21:41:55 +00:00
2026-08-21 21:41:55 +00:00
2026-08-11 23:31:26 +00:00
2026-09-12 00:12:26 +00:00
2026-08-03 17:29:42 +00:00
2026-06-02 13:18:59 -07:00
2026-09-04 10:12:03 +00:00
2026-08-21 21:41:55 +00:00
2026-08-21 21:41:55 +00:00
2026-08-10 11:22:55 +00:00
2026-09-11 00:03:40 +00:00
2026-09-14 21:06:36 +00:00
2026-08-07 23:43:14 +00:00
2026-08-10 11:22:55 +00:00
2026-09-10 23:08:23 +00:00
2026-09-10 21:41:39 +00:00
2026-08-28 23:03:05 +00:00
2026-08-09 00:57:15 +00:00
2026-08-20 20:08:11 +00:00
2026-08-20 14:13:56 +00:00
2026-08-20 14:13:56 +00:00
2026-07-16 09:00:51 +00:00
2026-09-11 14:25:56 +00:00
2026-08-20 05:24:56 +00:00
2026-07-31 16:28:22 +00:00
2026-09-14 16:30:00 +00:00
2026-09-14 16:30:00 +00:00
2026-08-17 16:20:52 +00:00
2026-08-17 16:20:52 +00:00
2026-09-11 14:25:56 +00:00
2026-09-14 16:30:00 +00:00
2026-09-09 17:45:17 +00:00
2026-09-09 17:45:17 +00:00
2026-09-10 21:41:39 +00:00
2026-09-10 21:41:39 +00:00
2026-08-24 19:52:27 +00:00
2026-09-11 00:03:40 +00:00
2026-09-11 00:03:40 +00:00
2026-07-20 13:45:29 +00:00
2026-04-30 14:26:14 -07:00
2026-08-20 07:03:02 +00:00
2026-03-25 12:57:42 -07:00
2026-08-16 20:27:05 +00:00
2026-09-05 21:28:11 +00:00
2026-07-21 18:23:26 +00:00
2026-07-21 18:23:26 +00:00
2026-08-11 10:20:54 +00:00
2026-08-17 10:01:59 +00:00
2026-09-09 17:45:17 +00:00
2026-09-10 21:41:39 +00:00
2026-09-11 00:55:51 +00:00
2026-09-11 00:55:51 +00:00
2026-06-02 13:18:59 -07:00
2026-06-02 13:18:59 -07:00
2026-07-23 00:02:15 +00:00
2026-08-01 17:43:03 +00:00
2026-09-13 18:53:06 +00:00
2026-09-08 10:55:48 +00:00
2026-09-14 16:30:00 +00:00