"""Tests for the P2 feature & target engineering tools (owner: Aditya). Fully hermetic — in-memory DuckDB only, no PKDD DuckDB file, no Lexsi SDK, no LLM. Reuses the offline-synthetic fixture family from `conftest.py` (`ctx_offline`, `loan_context_df`, `seed_sql_result`) and adds one temporal fixture local to this module. Covers, per the sprint definition of done: * happy path + error paths for each tool; * the cache-key contracts (`last_split`, `last_target_definition`, `last_imbalance_report`, in-place `sql_result: