Skip to content

fix: warn instead of silently ignoring missingness in recommend_config (#110) - #114

Merged
jc-macdonald merged 1 commit into
mainfrom
fix/recommend-config-missingness-noop
Aug 19, 2026
Merged

fix: warn instead of silently ignoring missingness in recommend_config (#110)#114
jc-macdonald merged 1 commit into
mainfrom
fix/recommend-config-missingness-noop

Conversation

@jc-macdonald

Copy link
Copy Markdown
Collaborator

Summary

recommend_config() accepted a missingness kwarg that was silently discarded (# noqa: ARG001 - reserved for future tuning). Per #110, resolved via the issue's option (2): document why it isn't branched on yet and make the no-op explicit, rather than fabricate a missingness-conditional bucketing.

Why not branch on it (option 1)?

The Option A trade study's exported example recommendations (analysis/results/optionA/recommendations.json) span only 23 design points across 3 p-buckets x 4 missingness categories — several (p-bucket, missingness) cells have exactly one point. Bucketing on that would ship single-draw, unreplicated numbers per cell, which is precisely the problem #111 already flags for the existing p-only bucketing (no replication anywhere in the pipeline; sensitivity data doesn't clearly support the shipped hp_va framing). Doing it properly requires trade-study support for replicated trials (jcm-sci/trade-study#112, still open) before any new baked-in per-cell values could be trusted.

Change

Closes #110

Test plan

  • just ci green locally: 481 passed, 90.21% coverage (gate 89%)

The Option A trade study's example recommendations span only 23 design
points across 3 p-buckets x 4 missingness categories (some cells have
a single point) -- too sparse to bucket on responsibly without shipping
unreplicated, effectively arbitrary per-cell values. recommend_config()
now warns when missingness is passed as anything but the default
"auto" instead of accepting and discarding it silently.

Closes #110
@jc-macdonald
jc-macdonald merged commit e26eb51 into main Aug 19, 2026
7 checks passed
@jc-macdonald
jc-macdonald deleted the fix/recommend-config-missingness-noop branch August 19, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

recommend_config accepts a missingness parameter but never uses it

1 participant