Decide what to delegate in a bulk archive action
Your task
Your company sells a multi-tenant admin dashboard built with TypeScript and React. Customers want a "Select all matching" option on any table that archives every row matching the current filters.
Some tables hold 500,000 rows. Each table gets its rows from buildTableQuery(user, tableId, filters), which applies the tenant and the user's permissions before the filters. You want an agent to build most of it.
Which parts do you hand the agent, which do you keep, and where in this feature does a person have to check its work?
It covers
- Multi file feature
- Test strategy
- Delegation