Follow-up to #2405. Replace remaining API controller reads of
Current.user, Current.family, and Current.session with
current_resource_owner. Add an architecture guard test to prevent
regression.
Scope is limited to the Current sweep only:
- Revert balance_sheet user-scoping (moves to account-auth PR B).
- Revert provider_connections DebugLogEntry logging (separate PR).
- Remove UsersController#destroy attempt to destroy unsaved API session.
* feat(imports): add SureImport session batches
Add first-class SureImport sessions for ordered multi-file NDJSON imports.
Persist source mappings across chunks, make session/chunk processing idempotent, expose progress readback, and keep existing single-file import behavior compatible.
Includes the devcontainer libvips runtime dependency needed by ActiveStorage variant tests.
Addresses #1610.
Related to #1458.
* fix(imports): avoid scanner-like API key test data
* test(imports): assert skipped balances are not persisted
* fix(imports): harden session publish retries
Validate expected import chunk sequences exactly before publish, and restore session state with error details when enqueueing the publish job fails.
* fix(imports): close session retry edge cases
Backfill expected chunk counts after client-session insert races and enqueue import-session jobs after the status transition commits. Persist a safe enqueue failure body so API readback does not expose raw queue errors.
* fix(imports): address session publish review gaps
Remove dead transaction external-id assignment, harden session publish retry/sync behavior, align session chunk status docs, and add regression coverage for partial retries and safe enqueue error readback.
* fix(imports): include sessions in family reset
Clear import sessions through the family reset job so chunk imports and source mappings do not survive a reset.
Expose import session and source mapping counts in the reset status response and regenerated OpenAPI schema so polling reflects the full reset surface.
* test(imports): cover split import mapping invariants
* test(imports): cover session verification invariants
* fix(imports): scope SureImport session reimports
* Tighten SureImport session batching
* fix(imports): export rule source ids for sessions
* test(imports): stabilize rule id export assertion
* test(imports): restore reset status session fixture