I read this as a surgical zero-gate repair - I’ll inspect the recorded failures and affected code, patch only feature-caused lines with behavior-preserving typing/exception fixes, then run the full requested verification set.


The failures reduce to four root causes: feature-added JSON payloads were typed as `object`/parsed as `Any`, return values from receipt validation were intentionally discarded without `_`, receipt rollback used broad catches despite a narrow I/O contract, and the new Pydantic class config lacked `ClassVar`. I’m applying only those corrections now.


I read the update as extending the same zero-gate repair - I’ll keep the large inherited test untouched outside its added range, include the already-fixed order-dependent migration test in verification, and patch only the new production module’s Ruff formatting differences.


Implementation is complete. The direct, typed test path now eliminates the added `Any` diagnostics without annotating with `Any`/`object`; the selector is a public typed gateway function rather than a dynamically accessed private symbol. I’m starting the final gate and focused-test pass, including the order-sensitive migration mix.


I read this as completed zero-gate remediation - reporting exact edits and verification.

Changed lines:

- `customer_admin.py`: 13, 20, 22, 928, 937, 949, 1202-1221, 1350-1352, 1455-1474, 1639-1644, 1792, 1920, 2030-2056, 2085, 2165-2176, 2191-2208, 2238, 2319, 2327-2395.
  - Typed JSON parsing, generic journal payload typing, intentional `_` assignments, and specific rollback exceptions.
- `customer_coaching.py`: 8, 12, 1010.
  - Modern `Mapping` import and `ClassVar[ConfigDict]`.
- `nutrition_coaching.py`: 21704, 21750.
  - Public typed `select_enabled_customer_key`.
- `test_nutrition_coaching.py`: 20, 26-40, 59-63, 305-349.
  - Worktree-local profile, typed imports, and no `Any`-driven dynamic access.
- Ruff-only formatting:
  - `channel_inbox_migration.py`: 61-63, 90-92, 136-139, 233-236.
  - `multi_customer_admission_migration.py`: 48, 59, 72, 74.
  - `multi_customer_admission_migration_models.py`: 48.

Zero-gate evidence:

- Basedpyright added-line failures: **0**
- No-excuse added-line failures: **0**
- ty added-line failures: **0**
- Ruff check: passed
- Ruff format check on six new production modules: passed
- Compileall: passed
- `git diff --check`: passed
- Profile multi-customer tests: **15 passed**
- Mixed gateway tests, forward order: **35 passed**
- Mixed gateway tests, reverse order: **35 passed**

Full-file type/no-excuse commands remain nonzero only from inherited, non-added diagnostics; diff-aware gates are zero.