fix(assistant): align tool metadata with router audiences

This commit is contained in:
2026-03-30 13:18:00 +02:00
parent 01e5f273c6
commit 58824545fc
3 changed files with 12 additions and 17 deletions
+3 -15
View File
@@ -18,10 +18,10 @@
- `resource.importSkillMatrix`: documented as self-service and auth-verified
- `project.isImageGenConfigured`, `project.isDalleConfigured`: covered as authenticated low-risk configuration checks
- `notification` self-service and manager boundaries: auth-covered across list, unread counts, reminders, deletes, broadcasts, task creation, and assignment boundaries
- `assistant-tools` parity metadata: descriptions and parity assertions now match narrowed router audiences for resource overview, controller-only, self-service, and manager broadcast/task tools
### Dirty Files To Avoid Mixing Into This Batch
- `packages/api/src/router/assistant-tools.ts`
- `packages/api/src/__tests__/assistant-tools-advanced.test.ts`
- `packages/api/src/router/notification.ts`
- `packages/api/src/__tests__/assistant-tools-import-export.test.ts`
@@ -42,8 +42,8 @@ These files already have unrelated local edits. Audience parity work that would
### No Further Small Slices Currently Ready
- the previously identified small hardening and tests/docs candidates have been completed, including the notification auth follow-up
- the remaining audience work is now either architectural (`comment.ts`) or blocked by dirty files owned elsewhere
- the previously identified small hardening and tests/docs candidates have been completed, including the notification auth follow-up and assistant tool parity metadata cleanup
- the remaining audience work is now architectural (`comment.ts`) or depends on broader policy decisions rather than another ready-made auth slice
### Needs Architecture Or Policy Design
@@ -63,21 +63,9 @@ These routes should not be batch-edited as “small safe slices” until a visib
- Recommended path:
- treat comments as a separate architecture ticket, not part of the quick hardening batch
### Blocked By Dirty Files
#### `packages/api/src/router/assistant-tools.ts`
- Why blocked:
- unrelated local edits are already present
- tool gating changes would mix poorly with concurrent work
- Interim rule:
- keep parity changes on the `assistant.ts` side where possible
- defer tool-level cleanups until the file is stable
## Recommended Next Order
1. `comment` architecture design ticket
2. assistant-tools parity cleanup once the dirty files are free again
## Slice Definition