Repository navigation
fix(config,backend): harden controls and close auto-backend buyer surfaces #951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
seonghobae
merged 44 commits into
main
from
cursor/bc-9ea40d9c-829d-4fd3-8383-f346575fc77f-51c7
Aug 25, 2026
Merged
Changes from 37 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
154c644
test(docs): pin Claude runtime support contract
seonghobae 2de7ef1
docs: align Claude guidance with fail-closed runtime
seonghobae 65f2f0c
test(docs): normalize Markdown wrapping in runtime contract
seonghobae 2640398
test(docs): reject marginal fallback claim
seonghobae 1193778
revert: keep runtime guidance lane scoped
seonghobae bad0e9f
test(docs): require machine-readable runtime contract
seonghobae 09dcd09
docs: publish machine-readable runtime contract
seonghobae 9ea1b6c
test(config): expose integer callback trust gap
seonghobae 67ecdf3
fix(config): reject caller-controlled integer coercion
seonghobae a005092
test(config): cover bounded integer trust controls
seonghobae 3ea7c09
docs(changelog): record config integer boundary hardening
seonghobae 2faa822
docs(doctoring): record config integer trust boundary
seonghobae 805df46
fix(config): validate simulation and fit controls at construction
cursoragent 0814458
fix(config): store trusted integers and harden seed controls
cursoragent 5c349bc
Merge branch 'main' into fix/claude-runtime-contract-621
opencode-agent[bot] 1640719
docs: lock buyer-facing auto backend to fail-closed Rust
cursoragent ccc46ce
fix: lock leftover auto-backend surfaces to fail-closed Rust
cursoragent cf670a3
test: tolerate wrapped fit --help and reference/parity wording
cursoragent 495f956
fix: lock leftover demo and acceptance auto surfaces to Rust
cursoragent 4276bcb
test(sales): expose automatic backend authority gap
seonghobae 03e174a
test(sales): defer backend authority to owning PR
seonghobae 155ebb3
test(backend): cover unloadable Rust core
seonghobae 8a77789
fix(backend): fail closed before untrusted controls and loader errors
seonghobae 00863db
test(backend): enforce callback-safe controls
seonghobae f90c74f
docs(backend): record loader and control hardening
seonghobae c210d6d
docs(backend): unify loader and selector trust boundary
seonghobae 9bde12e
fix(config): reconcile integer safety with current main
seonghobae df7f215
test(config): align resource-limit regressions with constructor valid…
seonghobae 6bfadea
test(config): keep bifactor objective fixture valid
seonghobae b73d459
merge origin/main and resolve auto-backend buyer-surface conflicts
cursoragent 4646d1a
fix(test): match auto-fit Rust authority error text
cursoragent be50b5e
fix(diagnostics): trust fold counts before budget products
cursoragent e43f934
test(config): use raw regex literals in compatibility checks
seonghobae d82c239
fix(diagnostics): trust fit-diagnostic integer controls
cursoragent 1f9055b
chore(stack): reconcile config hardening into runtime-contract branch…
seonghobae 286bd2d
test(backend): document import failure fixture
seonghobae f8facd5
merge main and harden backend authority
seonghobae 5d3db09
merge: sync with main (pull in #1324 CI-contract-drift fixes)
claude 1eb6216
test(backend): lock reference guidance contract
seonghobae 635a01d
fix(adr): preserve accepted backend decision
seonghobae 4f4b6c2
fix(docs): distinguish CLI and Python reference paths
seonghobae c63744b
fix(cli): point NumPy parity users to --reference
seonghobae 033e10d
test(runtime): align fail-closed reference contract
seonghobae 7e16889
merge: sync with main
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Fail-closed compiled Rust loader handling | ||
|
|
||
| ## Fixed | ||
|
|
||
| - Normalize a discoverable but unloadable compiled Rust core to a package-owned runtime error while preserving the original loader exception as its cause. | ||
| - Reject non-string and `str`-subclass backend/device control values before caller-defined conversion or normalization callbacks can execute, while preserving case/whitespace normalization for exact built-in strings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Runtime contract buyer-facing ownership | ||
|
|
||
| ## Fixed | ||
|
|
||
| - Locked the Claude runtime-contract TOML block to package metadata and | ||
| Rust-required `auto` ownership, and removed the stale buyer-facing claim that | ||
| `auto` selected NumPy when the compiled core is missing. README (including | ||
| the CLI examples and repository layout), `fast-mlsirm fit --help`, | ||
| `FitConfig` comments, commercial Operational Notes, the buyer demo | ||
| storyboard, sales `--check-import` help, PRD, TRD, and ADR-0002 now tell a | ||
| purchaser to install the Rust extension or pass explicit `backend="numpy"` | ||
| for parity testing. Release acceptance now rejects a NumPy outcome on | ||
| `fit --backend auto`. The auto fail-closed error now names that next action | ||
| without reflecting local paths or ABI details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Harden configuration integer trust boundaries | ||
|
|
||
| ## Fixed | ||
|
|
||
| - Reject caller-defined integer subclasses and arbitrary `__index__` providers before public simulation and fit configuration validation can dispatch caller-controlled coercion. | ||
| - Preserve exact built-in integers and genuine NumPy integer scalars while validating simulation size, optimizer-work, quadrature, latent-integration, seed, and verbosity controls through built-in integer values. | ||
| - Store those trusted integers back on the frozen configs so later size products and `seed + restart` cannot wrap narrow NumPy scalars. | ||
| - Normalize `dimensionality_diagnostics` `k_folds`, `seed`, and `latent_dims` to built-in integers before the candidate-by-fold budget product or `seed + fold_idx` can wrap a narrow NumPy scalar. | ||
| - Normalize `fit_diagnostics` `parameter_count` and `m2_q_*` to built-in integers before AIC/BIC arithmetic or `int(q_*)` can dispatch caller `__index__` hooks. | ||
| - Run the same simulation and fit validators at construction so memory-safety bounds cannot be bypassed by skipping an explicit `validate()` call. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.