Skip to content

Commit e1a1309

Browse files
tests(psychsocio): freeze repaired H2 and H5 estimators
1 parent 426880b commit e1a1309

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

research/psychsocio-metafauna/tests/test_contracts.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,13 @@ def test_preregistration_decision_rules_are_independent_and_frozen(self) -> None
118118

119119
self.assertIn("difference-in-differences interaction contrast", prereg)
120120
self.assertIn(
121-
"no fitted threshold or breakpoint model participates in this decision",
121+
"Eligible H2 cells are restricted to the comparable high-demand `P1`–`P4` profiles.",
122+
prereg,
123+
)
124+
self.assertIn("`PM`, `P0`, `PX`, and `PR` are excluded from H2", prereg)
125+
self.assertIn("independent support is fixed to `absent`", prereg)
126+
self.assertIn(
127+
"`nonlinear coalescence threshold = UNRESOLVED` regardless of H2 status",
122128
prereg,
123129
)
124130
self.assertNotIn("one declared piecewise-threshold model", prereg)
@@ -127,7 +133,15 @@ def test_preregistration_decision_rules_are_independent_and_frozen(self) -> None
127133
prereg,
128134
)
129135
self.assertIn(
130-
"reduce both persistence and reproduction allocation by at least `0.15`",
136+
"For every held-out seed `16..31`, pair the `independent support = present` episode",
137+
prereg,
138+
)
139+
self.assertIn(
140+
"then average those cell means with equal weight across eligible cells",
141+
prereg,
142+
)
143+
self.assertIn(
144+
"equal-weight aggregate reproduction-allocation reduction is at least `0.15`",
131145
prereg,
132146
)
133147
self.assertNotIn("reduces persistence and reproduction demands", prereg)

0 commit comments

Comments
 (0)