security(reviewer): fail closed on unknown manifest evidence - #427
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough모든 매니페스트 모델이 Changes엄격한 매니페스트 검증
Estimated code review effort: 2 (Simple) | ~10 minutes ✨ 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 |
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.
Scope
Fail closed when untrusted review-manifest payloads contain fields outside the reviewed schema. The protected implementation inherited Pydantic's default
extra='ignore', so unexpected evidence could be silently discarded at the reviewer trust boundary.Test-first repair
a0aa2b73fd282022d5c2b94f83bec80a61bc2971exercises the top-level manifest and every nested wire model with an unexpected evidence field and requiresValidationError.78e798b7c8d28844d44621d1129b96e4f3c80072introduces one strict manifest base model withConfigDict(extra='forbid')and makes all six wire models inherit it. Existing field semantics and blocking-finding logic are unchanged.Boundaries
No central
.github, naruon, contextual-orchestrator, image-build, credential, merge-policy, or external-admin changes. This branch is independent of #407, #428, #429, and the Cursor-owned #425 documentation lane.Keep Draft until fresh exact-head application CI, reviewer-ci, eligible Security Scan, and current review-thread evidence are terminal-success on one unchanged head.
Summary by CodeRabbit
개선 사항
테스트