Skip to content

chore(stack): reconcile config hardening into runtime-contract branch - #1001

Merged
seonghobae merged 13 commits into
cursor/bc-9ea40d9c-829d-4fd3-8383-f346575fc77f-51c7from
cursor/bc-2e210eea-2722-4d5d-929a-90b7663de388-8990
Aug 19, 2026
Merged

chore(stack): reconcile config hardening into runtime-contract branch#1001
seonghobae merged 13 commits into
cursor/bc-9ea40d9c-829d-4fd3-8383-f346575fc77f-51c7from
cursor/bc-2e210eea-2722-4d5d-929a-90b7663de388-8990

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

Temporary branch-reconciliation PR. Merge #939's exact head d82c239cfaab7e2402c24d83e8230de692031804 into #951's exact branch head 4646d1a20f450cb5bfb776aebd7c9d4790035a3d.

The only overlapping production/test paths are python/fast_mlsirm/config.py and tests/test_config.py; their deltas are semantically independent: #939 owns callback-free integer admission/normalization and construction-time validation, while #951 only corrects the backend="auto" Rust-required comments/tests. Preserve both. No formula or estimator change.

This PR exists only to create a normal non-force merge commit on #951's source branch. After successful reconciliation, #951 becomes the sole landing unit and #939 is closed as superseded. Do not merge this PR to main.

seonghobae and others added 13 commits August 16, 2026 15:32
Strix VULN-0001 failed the current head because MLS2PLMConfig and
FitConfig could be constructed with values that bypass memory-safety
bounds until a later explicit validate() call. Run the existing
validators from __post_init__ so invalid objects cannot exist, and keep
validate() public and idempotent.

Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
Write admitted NumPy integers back as built-in ints so n_items and
seed + restart cannot wrap, and reject untrusted seed/verbose values
before construction returns.

Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
Preserve current simulation resource caps while replaying the hostile integer-control boundary and focused evidence from #939 onto the protected-main tree.
dimensionality_diagnostics still multiplied untrusted NumPy k_folds
and added untrusted seed offsets, so uint8(32)*32 wrapped past the
fit-budget cap and uint8(250)+6 wrapped to 0. Store built-in ints
the same way seed/verbose already do.

Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
fit_diagnostics still coerced parameter_count with int() and left
m2_q_* untrusted, so a hostile __index__ object could execute during
AIC/BIC arithmetic. Marshal those controls through _trusted_integer
the same way seed/verbose already do.

Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: dcaea008-0ba4-4ba2-b12f-4cee2d721487

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@seonghobae
seonghobae merged commit 1f9055b into cursor/bc-9ea40d9c-829d-4fd3-8383-f346575fc77f-51c7 Aug 19, 2026
47 checks passed
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.

2 participants