Commit 600993d
committed
Align the standalone-plane example with ask()'s grant config
CL-4522 gives createKnowledgePlane a required GrantConfig second argument so
ask() can evaluate knowledge:search internally. Update the README example to
match, and be precise about which methods check the capability grant:
- ask() — checks it internally; an in-process caller cannot skip it
- capture() — does not; applies per-document visibility only
- search() — does not; applies per-document visibility only
Per-document visibility and "may this principal search at all" are different
questions, and AUTH.md is explicit that both layers must allow.
Refs CL-4508, CL-4522
Claude-Session: https://claude.ai/code/session_017GTgGzn5xAwvkU2GAPAHpF1 parent 6971361 commit 600993d
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| |||
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
| 107 | + | |
| 108 | + | |
99 | 109 | | |
100 | 110 | | |
101 | 111 | | |
| |||
0 commit comments