Commit dae62ac
Address twenty-fourth round of CI review findings on PR #318
P2 code quality (SDiD jackknife step-tag bug).
The SyntheticDiD practitioner step "Leave-one-out influence
(jackknife)" was tagged ``_step_name="sensitivity"``. DR's SDiD
native battery covers pre-treatment fit, weight concentration,
``in_time_placebo``, and ``sensitivity_to_zeta_omega`` — but not
the jackknife LOO workflow, which requires a separate
``variance_method='jackknife'`` fit before ``get_loo_effects_df``
returns anything. As soon as the native block ran,
``_collect_next_steps`` marked ``"sensitivity"`` complete and
suppressed the jackknife recommendation, overstating what the
report had actually executed. Same class as round-20 Hausman
(``heterogeneity`` -> ``parallel_trends``) and the pre-emptive
TROP-placebo retag.
Retag the step as ``_step_name="loo_jackknife"`` so it persists
regardless of which DR blocks ran. No DR check maps to the new
tag — the step stays in ``next_steps`` until the user completes
it explicitly.
P3 coverage. Add the two regressions the reviewer specified:
* ``test_sdid_jackknife_step_persists_via_practitioner_filter``
(unit-level) asserts ``practitioner_next_steps(sdid_stub,
completed_steps=["sensitivity"])`` still surfaces the jackknife
label;
* ``test_sdid_jackknife_step_persists_in_dr_next_steps``
(integration) asserts ``DiagnosticReport(sdid).to_dict()
["next_steps"]`` preserves the recommendation when only the
default native SDiD diagnostics ran.
227 BR / DR / practitioner tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 61270b8 commit dae62ac
2 files changed
Lines changed: 78 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
574 | 583 | | |
575 | 584 | | |
576 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2290 | 2290 | | |
2291 | 2291 | | |
2292 | 2292 | | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
2293 | 2361 | | |
2294 | 2362 | | |
2295 | 2363 | | |
| |||
0 commit comments