Covers all five methods of InstructionsHandler: List, Create, Update,
Delete, and Resolve. Tests use sqlmock + httptest following the same
patterns as existing handler tests in the package.
Notable coverage:
- List: workspace_id scope, admin scope, no params, DB error
- Create: valid global + workspace, all validation failures (missing
scope/title/content, invalid scope, workspace-nil-target,
oversized content/title, nil scope_target for global)
- Update: partial + full-body, all validation failures, not-found,
DB error
- Delete: found, not-found, DB error
- Resolve: global→workspace ordering, empty workspace, DB error,
missing workspace_id, scope header deduplication
- scanInstructions: scan error is logged and skipped
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>