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
Address twenty-ninth round of CI review findings on PR #318
P3 code quality (power_reason provenance). REPORTING.md lines
118-125 say the ``pretrends_power`` fallback reason is recorded on
the BR pre-trends block, but ``_lift_pre_trends`` only carried the
enum status and dropped the reason. Downstream schema consumers saw
``power_status="not_applicable"`` with no explanation — e.g., on
``StackedDiDResults`` / ``EfficientDiDResults`` /
``StaggeredTripleDiffResults`` / ``WooldridgeDiDResults`` /
``ChaisemartinDHaultfoeuilleResults`` fits where the power adapter
is not yet available.
Add a dedicated ``power_reason`` field alongside the existing
``power_status`` enum (additive, no breaking change) and update
``REPORTING.md`` to describe both fields.
P3 docs / tests (DR prose for survey PT variants). Round-28 added
the ``_survey`` suffix and ``df_denom`` to ``_pt_event_study``, and
BR's method-aware helpers were updated to recognize the variants.
``DiagnosticReport``'s own ``_pt_subject_phrase`` / ``_pt_stat_label``
prose helpers were not, so DR ``summary()`` / ``full_report()``
still rendered the generic "Pre-treatment data" subject on
survey-backed fits. Recognize ``joint_wald_survey`` and
``joint_wald_event_study_survey`` alongside the non-survey variants:
subject is the pre-period event-study coefficient vector, statistic
label is ``joint p`` (the F-reference correction is a different
reference distribution, not a different test).
Tests: 2 new regressions.
* ``test_lift_pre_trends_exposes_power_reason`` under
``TestSurveyPTProsePropagation``: a fake DR block with a skipped
power section surfaces both the enum status and the plain-English
reason on the BR schema.
* ``test_dr_prose_uses_event_study_subject_for_survey_pt`` under
``TestJointWaldAlignment``: DR's own subject / stat-label helpers
return the event-study phrasing and ``joint p`` for both
survey variants.
244 BR / DR / practitioner tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments