test(policy): prove extension grants cannot widen Agent authority - #62
Open
seonghobae wants to merge 2 commits into
Open
test(policy): prove extension grants cannot widen Agent authority#62seonghobae wants to merge 2 commits into
seonghobae wants to merge 2 commits into
Conversation
📝 WalkthroughWalkthrough브라우저 확장 프로그램 권한 격리를 검증하는 테스트를 추가했다. 명시적 grant가 출처 접근 권한이나 Changes확장 프로그램 정책 격리
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 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 |
seonghobae
marked this pull request as ready for review
August 10, 2026 21:59
This was referenced Aug 10, 2026
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.
Partial implementation of #27.
Buyer/security gap
OriginWeave already has an explicit extension-to-Agent grant boundary and an independent typed action policy engine, but the repository lacked integration regressions proving that permission to propose a typed action cannot widen Agent origin/action/secret authority or turn untrusted extension-produced content into a trusted policy instruction.
Exact scope
Current exact head
a57873b3688984711918be17aadd348ed9fb12a9is based directly on protected main67af7c87589edc2039545af335c95064d9b8391cand proves five boundaries:ProposeTypedActionextension grant still cannot navigate to an origin outside the Agent Task read grant (OriginNotReadable);Navigatecapability (MissingCapability(Navigate));WebContentremains rejected by deterministic policy (UntrustedInstructionSource);FillSecret, an extension proposal cannot turnRawValuedelivery into an allowed secret fill (SecretBrokerRequired); andUnexpectedSecretMaterial).Every test first asserts that the exact extension/session/context grant genuinely allows
ProposeTypedAction, then independently requires the ordinary Agent policy boundary to deny the attempted widening. This prevents vacuous tests that never crossed the extension grant boundary.Exact-head evidence
On unchanged exact head
a57873b3688984711918be17aadd348ed9fb12a9:31436844685: success;93612736291: success, including exact function/line/region/branch enforcement;31436844615: success;31436844646: success;No predecessor-head result is transferred to this head. This scheduled actor does not self-approve or merge.
Architecture boundary
This PR adds no production API and no new authority. A Chrome permission or OriginWeave extension proposal grant remains distinct from Agent capability, origin grants, approval, business action classification, browser execution, secret resolution, trusted broker operation, and verified success. The test does not claim that a real Chromium extension adapter or trusted secret broker exists; it proves the reusable protected-main policy composition required before such adapters may safely expose extension proposals.