fix(api): validate callback contracts before model evaluation - #129
Draft
seonghobae wants to merge 5 commits into
Draft
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks 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 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stack / authority
This Draft is stacked on canonical option-validation #126 exact
5a4be4cc5e231dc14155b611b4396ec631d5083a. Current exact head is39d3cad1f4774f5a61bdc31427a90ca6da691bc2, open and mergeable. It owns only the remaining exported callback contracts and release-note follow-through; #126 retainsnested/adj/conf.leveloption-validation authority.RED → minimal repair
RED exact
d735706f967d2ef0f819aa7c647e960e2fdc3fcfchanged onlytests/testthat/test_exported_input_validation.R. It requires malformedll1/ll2,score1/score2, andvc1/vc2values to fail at the exported function boundary before model inspection, with stable diagnostics andconditionCall() == NULL. Positive contract remains: score callbacks may beNULL; likelihood and covariance callbacks must be functions.Minimal production descendants add only those public-boundary predicates to
icci()andvuongtest(). During repair,4c469c25c51d57be5654ad5e2b94eb0e87007e49accidentally changedprint.icci()Model 2 output fromAIC2/BIC2toAIC1/BIC1; fresh patch review caught that unrelated regression immediately. Ordinary descendant38f9ee2c569430b91534208660940b59537967d4restores the exact pre-existing Model 2 print contract. Current #129 diff contains no print-method semantic change.f9c33be0956a0ab8a13e7d28daab906a254cf8d8adds thevuongtest()callback predicates and current39d3cad...records the buyer-visible exported validation contract inNEWS.Current relative delta from #126 is exactly four paths:
R/icci.R,R/vuongtest.R,tests/testthat/test_exported_input_validation.R, andNEWS.#122 succession boundary
#122 still carries distinct callback/NEWS semantics on a stale/diverged base. Those valid semantics are now source/test represented here with broader invalid-value coverage. #122 remains open until this successor earns executable exact-head acceptance; no predecessor workflow/review result is transferred and branch-local generated
.jules/sentinel.mddoctrine is not treated as protected product authority.Exact-head execution gap
Fresh exact-head query on
39d3cad1f4774f5a61bdc31427a90ca6da691bc2returns zero check runs / zero PR workflow runs. This is not GREEN. Live protectedmasterhas only.github/workflows/R-CMD-check.yaml, whosepull_request.branchesfilter is[main, master]; because this dependency-safe PR targets #126's feature branch, the repository R-CMD workflow does not materialize for the stack child.Do not manufacture execution with a no-op source commit or transfer #126's R-CMD success. Keep Draft until the approved owner path provides exact-head stacked-PR execution or the stack is legitimately reconciled onto protected
master, then require current-head R-CMD plus applicable central security/SAST/CodeQL and qualifying independent review.This is input-contract hardening, not a vulnerability-severity or performance claim. No force push, destructive rebase, self-approval, gate weakening, source-neutral retry, or predecessor GREEN transfer.