|
1 | 1 | /** |
2 | 2 | * Shared tool-name classification constants. One name (`READ_TOOLS`) used to |
3 | 3 | * mean different memberships in four places, one of them security-relevant, |
4 | | - * so the concepts are now separate sets derived from one base: |
5 | | - * - the director read surface (tool-sets.ts READ_TOOLS): everything a |
6 | | - * read-only leaf may call, including run_shell and the web tools; |
7 | | - * - the auto-allow gate: never needs an approval prompt — a strict subset |
8 | | - * (shell/web keep their own narrower rules) plus manage_tasks; |
9 | | - * - compaction's re-read dedup and thrash's read tracking: both key off |
10 | | - * read_file's path-keyed result, unified here. |
11 | | - * Sets stay separate where the concepts differ, so a future difference reads |
12 | | - * as intentional instead of drift. |
| 4 | + * so the concepts are now separate sets derived from one base: the director |
| 5 | + * read surface (tool-sets.ts READ_TOOLS), the auto-allow gate, and the |
| 6 | + * path-keyed / query-keyed sets behind compaction's dedup and thrash's |
| 7 | + * read tracking. Sets stay separate where the concepts differ, so a future |
| 8 | + * difference reads as intentional instead of drift. |
13 | 9 | */ |
14 | 10 |
|
15 | 11 | import { READ_TOOLS as DIRECTOR_READ_TOOLS } from "./directors/tool-sets.js"; |
16 | 12 |
|
17 | 13 | /** |
18 | | - * The one read tool whose result is keyed by path: a newer read supersedes |
19 | | - * an older one for the same path. Shared by compaction's re-read dedup and |
20 | | - * thrash's read-count bookkeeping. |
| 14 | + * The read tool whose result is keyed by path: a newer read supersedes an |
| 15 | + * older one for the same path. Shared by compaction's re-read dedup and |
| 16 | + * thrash's read tracking. |
21 | 17 | */ |
22 | 18 | export const PATH_KEYED_READ_TOOLS: ReadonlySet<string> = new Set([ |
23 | 19 | "read_file", |
24 | 20 | ]); |
25 | 21 |
|
26 | 22 | /** |
27 | 23 | * grep / search_files: pattern-keyed query tools — a repeated identical call |
28 | | - * reflects current workspace state, not stale history. Base for compaction |
| 24 | + * reflects the current workspace, not stale history. Base for compaction |
29 | 25 | * and thrash; each adds/omits list_dir for its own reason. |
30 | 26 | */ |
31 | 27 | export const SEARCH_QUERY_TOOLS: ReadonlySet<string> = new Set([ |
|
0 commit comments