Repository navigation
Commit 9952a4e
fix(permission): reorder deny rules after wildcards for findLast compatibility
Permission.evaluate() uses findLast semantics where the LAST matching
rule wins. When deny rules appeared immediately after the wildcard,
a project-level merge could append additional wildcards that override
the denies. Moving all deny rules to the end of each permission section
ensures they always take precedence regardless of merge order.
Changes:
- profile/opencode.json: bash deny rules after wildcard+allow, read deny after allow
- managed/opencode.json: same reordering applied
- profile/agents/implement.md: add wildcard before deny rules, add missing deny rules
Fixes #31
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 128bc20 commit 9952a4e
3 files changed
Lines changed: 44 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
82 | 99 | | |
| 100 | + | |
83 | 101 | | |
84 | 102 | | |
85 | 103 | | |
86 | 104 | | |
87 | 105 | | |
88 | 106 | | |
| 107 | + | |
89 | 108 | | |
90 | 109 | | |
91 | | - | |
92 | 110 | | |
93 | 111 | | |
94 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
83 | 100 | | |
| 101 | + | |
84 | 102 | | |
85 | 103 | | |
86 | 104 | | |
| |||
93 | 111 | | |
94 | 112 | | |
95 | 113 | | |
| 114 | + | |
96 | 115 | | |
97 | 116 | | |
98 | | - | |
99 | 117 | | |
100 | 118 | | |
101 | 119 | | |
| |||
0 commit comments