Commit 02b74a8
Address CI R9 codex review (1 P3) on PreTrendsPower PR-B
R9 verdict ✅ Looks good with one actionable P3: CHANGELOG.md L39 and
REPORTING.md L324-342 overstated the legacy covariance-source path.
Both said the `"diag_fallback_available_full_vcov_unused"` sentinel is
gone / that legacy inference labels CS / SA + `event_study_vcov` as
`"full_pre_period_vcov"`, but the R4 fix RESTORED the conservative
sentinel for legacy precomputed results that lack the persisted
`covariance_source` field — because without it we cannot distinguish
a pre-PR-B fit (used diag) from a post-PR-B fit (used full Σ_22).
Code and tests are correct; docs were the inconsistent piece.
Fix: reword both surfaces to distinguish two paths explicitly:
- **New fits** (post-PR-B): persisted `covariance_source` is read
directly, non-bootstrap CS / SA report `"full_pre_period_vcov"` and
are NOT downgraded.
- **Legacy serialized results** (pre-PR-B, no field): legacy
type-based inference still emits the conservative sentinel for
CS / SA + populated `event_study_vcov`, and the
`well_powered → moderately_powered` downgrade still applies. For
legacy `MultiPeriodDiDResults` without `interaction_indices`, the
fallback reports `"diag_fallback"` (genuine fallback, no
downgrade).
CHANGELOG entry expanded to list all four covariance-source DR
regression tests by name; REPORTING.md "Pre-period covariance
routing for staggered-estimator power" Note rewritten with the
two-path structure.
R-parity P3 deferred to PR-C per the existing TODO row (codex
labeled it informational / non-blocker).
No source changes; 309 tests across pretrends + DR + BR continue to
pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cfb3200 commit 02b74a8
2 files changed
Lines changed: 30 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
343 | 362 | | |
344 | 363 | | |
345 | 364 | | |
| |||
0 commit comments