feat(assistant): align resource tool visibility with read audiences

This commit is contained in:
2026-03-30 10:11:55 +02:00
parent bd654251f7
commit 65fe7ce04f
4 changed files with 54 additions and 1 deletions
+2
View File
@@ -106,6 +106,8 @@ Reasoning:
- assistant tool visibility must never widen the audience of the backing router
- router audience is the source of truth; assistant gating mirrors it
- when a route becomes narrower, update assistant visibility in the same hardening slice
- `search_resources` must follow `resourceOverviewProcedure`, not broad authenticated access
- `search_by_skill` must follow `controllerProcedure`, not broad authenticated or planning-only access
- if `assistant-tools.ts` already has unrelated local edits, prefer updating `packages/api/src/router/assistant.ts` and parity tests first instead of mixing concerns into the tool implementation file
## Rollout Discipline