refactor(jmle): refresh Rust optimizer ownership RED on current main - #751
refactor(jmle): refresh Rust optimizer ownership RED on current main#751seonghobae wants to merge 1 commit into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
|
@opencode-agent address Exact bounded source-writer lease for Draft #751 / issue #626. Before any source mutation, refetch this PR and independently resolve protected This branch is intentional installed-package RED. Preserve the fail-first commit/history. CI/Security/SAST are currently queued and are not acceptance evidence. The RED is valid only if normal Rust/PyO3 build and backend resolution succeed and the three optimizer cases fail because public JMLE still executes legacy Python Implement the minimum GREEN only:
Do not merge or mark Ready. The maintainer loop will refetch exact-head/live-base evidence and governance after your final source commit. |
|
Superseded by GREEN #760 (Rust-owned Adam/L-BFGS). |
Route backend=rust JMLE through jmle_optimize so moment updates, L-BFGS two-loop/line-search, and adam_lbfgs sequencing no longer execute Python _adam/_lbfgs loops. Adds ownership sentinel, APA doctoring, and changelog. Supersedes draft #751 once product gates pass.
Route backend=rust JMLE through jmle_optimize so moment updates, L-BFGS two-loop/line-search, and adam_lbfgs sequencing no longer execute Python _adam/_lbfgs loops. Adds ownership sentinel, APA doctoring, and changelog. Supersedes draft #751 once product gates pass.
Controlled current-main replacement for #744 / issue #626
Protected
mainadvanced after #744's exact RED and its OpenCode handoff explicitly required the predecessor base to remain unchanged. Fresh compare proves #744 is four protected-main commits behind and has one unique path only,tests/test_jmle_rust_optimizer_ownership.py. This Draft recreates that exact fail-first contract from current protected main without transferring predecessor checks/reviews.Intentional RED
The test builds the installed Rust/PyO3 package and requires public JMLE
adam,lbfgs, andadam_lbfgsexecution underbackend="rust"not to call the legacy Python_adamor_lbfgsloops. Valid RED must reach those public optimizer boundaries after normal package setup; setup/import/fixture/changelog failure is not evidence.Exact identity
8a56d7b1b024e18a5a96a94db4ede1bf6648ead1;386fe8ca52ba9def121e050993cdb5317f37c184;tests/test_jmle_rust_optimizer_ownership.pyonly.Minimum GREEN
Move result-affecting Adam state/update/gradient clipping, L-BFGS history/two-loop/curvature/line-search, and
adam_lbfgssequencing/convergence intomlsirm-core; expose thin PyO3 transport and keep Python to bounded validation/marshalling/reporting. Preserve public optimizer/model/seed/restart/objective/trace semantics; missing compatible Rust capability fails closed. Add direct parity plus aligned bias/MAE/RMSE/convergence recovery, docs/rustdoc/APA traceability and changelog after GREEN, then all applicable exact-head Python 3.12/3.14, Rust/PyO3, package/reinstall, GPU/fuzz, Security/SAST and current-head governance gates.Do not widen to MMLE, hosted state, providers, dependencies/workflows/version/release or parallel canonical docs. Advances #626. Supersedes #744 once established.