Skip to content

test(serving): prove plausible-value control rejections before core - #934

Merged
seonghobae merged 13 commits into
mainfrom
cursor/bc-31f2be25-44b8-4584-b3f3-3d0b6417fd0c-4db4
Aug 17, 2026
Merged

test(serving): prove plausible-value control rejections before core#934
seonghobae merged 13 commits into
mainfrom
cursor/bc-31f2be25-44b8-4584-b3f3-3d0b6417fd0c-4db4

Conversation

@cursor

@cursor cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Completes the #914 / #915 evidence gap. Keep #915 open only as the source hardening PR; land this head (or cherry-pick 55070a98 onto #915) before merge.

Why this exists

#915 already validates and normalizes n_draws, seed, and device before _core_module() and uses identity-only NumPy integer admission. The public suite did not yet prove the cases #914 and the doctoring note claim: bool / np.bool_, non-integer floats, n_draws domain 0 and MAX_DRAWS + 1, __index__ providers, and valid-request core discovery exactly once at dispatch.

What changed

  • Extend tests/test_serving_plausible_control_safety.py with those pre-core regressions, matching DETECT (fix(detect): validate inputs before native discovery #904) and G-theory sibling evidence.
  • Record the added contract in docs/doctoring/plausible_values_control_safety.md.
  • No marshalling, Rust, likelihood, estimator, or result-schema change.

Local evidence

PYTHONPATH=python python3 -m pytest tests/test_serving_plausible_control_safety.py — 21 passed.

Do not do

Closes #914 once this head or the cherry-pick is the merge candidate.

Open in Web View Automation 

@seonghobae
seonghobae marked this pull request as ready for review August 17, 2026 02:51
@cursor

cursor Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@seonghobae
seonghobae enabled auto-merge (squash) August 17, 2026 02:51
@seonghobae
seonghobae merged commit 94daeab into main Aug 17, 2026
34 checks passed
@seonghobae
seonghobae deleted the cursor/bc-31f2be25-44b8-4584-b3f3-3d0b6417fd0c-4db4 branch August 17, 2026 05:13
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.

Harden plausible-values control marshalling before native dispatch

2 participants