fix(scoring): seal assessment aggregate record admission - #1052
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. 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:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAssessment assembly now requires exact package-owned classes for constructs, rubrics, and validation policies. New regression tests verify that hostile subclasses are rejected before guarded properties are accessed. A changelog entry documents the admission behavior. ChangesAssessment aggregate admission
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized validation change prevents caller-defined record subclasses from executing during assessment aggregate admission while preserving valid-record behavior; no actionable merge-blocking risk remains after normal checks and review. Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
@coderabbitai review Please review exact current head |
|
✅ Action performedReview finished.
|
|
Current-head review for cddaee0: required checks are terminal-success on this exact head. Please reacquire same-head approval and do not transfer stale predecessor or coverage-infrastructure review state. No source failure is shown. @opencode-agent review @cwl-noema-review review |
|
Current-head review request for cddaee0.\n\n@opencode-agent review\n@cwl-noema-review review\n\nEvery reported check is passing, including CI, Rust, Python, package, GPU-smoke, fuzz, security, Strix, coverage, OpenCode, and Noema. |
|
Current HEAD verification request: @opencode-agent review @cwl-noema-review review Please review this exact head and publish an approval or actionable finding. All repository checks are terminal-success; normal merge remains gated on independent approval. |
|
Exact-head review request for cddaee0.\n\n@opencode-agent review\n@cwl-noema-review review\n\nAll checks are terminal-success on this exact head; publish approval or actionable findings without transferring predecessor evidence. |
|
Exact-head local review for
The record admission is validated before untrusted scalar/text callbacks; no scoring arithmetic or Rust ownership changed. Please request current-head independent review and terminal protected Checks before normal merge. @opencode-agent review @cwl-noema-review review |
Pull request was converted to draft
|
Reviewed exact HEAD |
|
Caution Review failedAn error occurred during the review process. Please try again later. 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 |
1 similar comment
|
Caution Review failedAn error occurred during the review process. Please try again later. 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 |
Closes #1051.
Defect
build_assessment_spec()admittedConstructSpec,RubricSpecification, and scoring-policy subclasses withisinstance(...)and then read provenance-bearing identifiers, fingerprints, or construct scopes. A caller-defined subclass could therefore run arbitrary attribute/fingerprint callbacks while an assessment aggregate was establishing trusted package provenance.Fix
ConstructSpecentries before construct-field reads;RubricSpecificationentries before fingerprint derivation;Test-first evidence
f5fa97bf3e92ce3adc2068a0663fc223abe13580adds publicbuild_assessment_spec()regressions for hostile construct, rubric, and validation-policy subclasses. Against protectedmain@04d0bc21a2a20693bcf16108cd76d394fe844d23, all three fail because hostile callbacks are reached (construct/policy raise directly; rubric callback is caught only after dispatch).306b5513834c66285ef88a6f3606381a8edaeb24seals aggregate admission with exact-type checks.e6119d3c5a22d0a0d85192eead4a2f9a2f462b54.Focused local proof on the exact protected-main source blob plus the GREEN patch: 25 passed across the new regression, scoring contract core/validation/public-callback/UTF-8 suites.
Keep this PR Draft until exact-head repository CI, security, package/coverage, and independent review evidence are terminal-success.
Summary by CodeRabbit
Bug Fixes
Tests
Documentation