Commit a3cf454
committed
fix(policy): Policy.extra=ignore so old persisted files load cleanly (#966)
Persisted tool_policy.json files from an earlier revision of this PR
carry default_action (since dropped) and rejected with ValidationError
on load — surfacing as 'Could not load policy: 500' when the user
clicked the per-tool gated toggle.
Predicate/Rule keep extra=forbid (typo catching at construction).1 parent 8a062ba commit a3cf454
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | | - | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
0 commit comments