Andrei Eternal
913aad4d3c
Add allow_managed_hooks_only hook requirement ( #20319 )
...
## Why
Enterprise-managed hook policy needs a narrow way to require Codex to
ignore user-controlled lifecycle hooks without adopting the broader
trust-precedence model from earlier hook work. This keeps the policy
anchored in `requirements.toml`, so admins can opt into managed hooks
only while normal `config.toml` files cannot enable the restriction
themselves.
## What changed
- Added `allow_managed_hooks_only` to the requirements data flow and
preserved explicit `false` values.
- Also adds it to /debug-config
- Marked MDM, system, and legacy managed config layers as managed for
hook discovery.
- Updated hook discovery so `allow_managed_hooks_only = true`:
- keeps managed requirements hooks and managed config-layer hooks,
- skips user/project/session `hooks.json` and `[hooks]` entries with
concise startup warnings,
- skips current unmanaged plugin hooks,
- ignores any `allow_managed_hooks_only` key placed in ordinary
`config.toml` layers.
2026-05-12 19:05:25 -07:00
..
2026-05-12 10:43:17 -03:00
2026-03-28 11:23:07 -06:00
2026-05-12 10:43:17 -03:00
2026-05-12 17:56:30 -07:00
2026-05-05 11:17:47 -07:00
2026-05-06 18:08:31 -07:00
2026-05-01 09:39:48 -07:00
2026-05-09 16:10:56 -03:00
2026-04-21 17:10:36 +00:00
2026-05-04 16:11:15 -03:00
2026-05-12 10:43:17 -03:00
2026-04-07 08:03:35 -07:00
2026-04-30 22:42:48 -07:00
2026-05-11 21:08:40 -03:00
2026-05-10 20:42:11 +00:00
2026-05-05 11:17:47 -07:00
2026-05-10 20:42:11 +00:00
2026-05-10 11:45:49 -03:00
2026-04-30 11:34:34 -07:00
2026-05-12 10:43:17 -03:00
2026-05-06 08:35:42 -07:00
2026-04-30 11:34:34 -07:00
2026-05-12 10:43:17 -03:00
2026-04-30 11:34:34 -07:00
2026-05-11 21:08:40 -03:00
2026-05-12 10:43:17 -03:00
2026-04-30 10:52:19 -07:00
2026-04-13 18:27:00 -07:00
2026-04-10 20:25:31 -07:00
2026-05-07 20:31:41 -07:00
2026-05-04 16:11:15 -03:00
2026-05-12 17:33:33 -07:00
2026-04-20 16:12:17 -07:00
2026-05-05 16:18:02 +00:00
2026-03-28 11:23:07 -06:00
2026-04-29 17:22:41 -07:00
2026-03-28 11:23:07 -06:00
2026-05-02 01:20:57 +00:00
2026-04-25 22:00:32 -03:00
2026-05-12 19:05:25 -07:00
2026-04-30 10:52:19 -07:00
2026-04-30 11:34:34 -07:00
2026-03-28 11:23:07 -06:00
2026-04-17 17:58:32 -07:00
2026-05-09 16:10:56 -03:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-05-05 17:09:25 -03:00
2026-05-11 21:08:40 -03:00
2026-04-30 22:42:07 -07:00
2026-05-10 20:42:11 +00:00
2026-05-09 21:17:30 +00:00
2026-05-01 09:39:48 -07:00
2026-05-09 13:58:10 -03:00
2026-05-04 19:18:56 +00:00
2026-05-04 19:18:56 +00:00
2026-05-05 11:17:47 -07:00
2026-05-12 10:43:17 -03:00
2026-03-28 11:23:07 -06:00
2026-04-13 18:27:00 -07:00
2026-04-21 22:33:24 -07:00
2026-04-30 11:34:34 -07:00
2026-05-10 20:42:11 +00:00
2026-05-10 20:42:11 +00:00
2026-05-10 20:42:11 +00:00
2026-05-10 20:42:11 +00:00
2026-04-19 22:39:53 -07:00
2026-04-29 17:22:41 -07:00
2026-04-25 22:00:32 -03:00
2026-05-01 09:07:56 -07:00
2026-04-30 11:34:34 -07:00
2026-04-25 17:09:29 -07:00
2026-04-10 20:25:31 -07:00
2026-05-05 11:17:47 -07:00
2026-04-30 11:34:34 -07:00
2026-04-25 22:00:32 -03:00
2026-05-12 10:43:17 -03:00
2026-03-28 11:23:07 -06:00
2026-05-12 10:43:17 -03:00
2026-05-04 11:46:03 -07:00
2026-05-06 08:35:42 -07:00
2026-03-28 11:23:07 -06:00
2026-04-20 20:46:55 -07:00
2026-05-12 10:43:17 -03:00
2026-05-09 21:17:30 +00:00
2026-05-01 09:07:56 -07:00
2026-05-09 16:10:56 -03:00
2026-05-10 20:42:11 +00:00
2026-05-02 01:20:57 +00:00
2026-05-02 01:20:57 +00:00
2026-04-17 08:39:37 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 11:34:34 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 22:42:48 -07:00
2026-05-08 07:56:13 -07:00
2026-04-20 00:37:40 +00:00
2026-04-25 22:00:32 -03:00
2026-05-12 10:43:17 -03:00
2026-03-28 11:23:07 -06:00
2026-04-27 23:33:59 -07:00
2026-04-25 22:00:32 -03:00
2026-04-25 17:09:29 -07:00
2026-04-25 17:09:29 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 11:34:34 -07:00
2026-04-25 22:00:32 -03:00
2026-05-05 17:09:25 -03:00
2026-05-09 13:58:10 -03:00