You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spillover-conley: address CI codex R1 P3 — runtime survey-path attribution
Adds test_survey_path_attributes_warning_to_user_code in
TestValidateMeatPsd. Mirrors the existing no-survey runtime
attribution pattern (monkey-patch the kernel helper to force an
indefinite combined meat) but exercises the SURVEY orchestrator
_compute_stratified_conley_meat with conley_lag_cutoff=1. Captures
the resulting PSD UserWarning and asserts attribution lands at user
code (this test file), proving stacklevel=3 correctly bubbles the
warning through both the helper (conley.py) and the orchestrator
(two_stage.py).
CI codex flagged the prior survey-path coverage as too weak: the
existing test_survey_call_site_passes_stacklevel_3 is a static
inspect.getsource() substring check on `stacklevel=3`, which can
false-pass if runtime attribution drifts while the literal text
remains. This commit adds the missing runtime check; the static
check is retained as a complementary fast-fail.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments