Repository navigation
Harden plugin policy enforcement and runtime integration - #3
Merged
Merged
Conversation
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.
Tool requests could bypass local checks through malformed input, an environment flag, unchecked editing aliases, or evaluator failures. The runtime integration also sent an incompatible payload, losing tool identity and arguments. This change gives both adapters one strict policy engine and requires a valid, explicit Cedar decision when project policies are configured.
Validation: shell syntax/ShellCheck and Python compilation pass; 79 existing shell assertions and 26 Python regression cases pass; seven real-runtime policy workflow checks pass. An installed-client test on 2.1.296 with a local synthetic provider confirms an allowed read, a Cedar-denied read, and blocking for missing/timed-out hooks. The managed DSL example parses with the current runtime. No account credentials or external model service were used.
Local hooks remain limited by shell, external-tool, filesystem-race and harness behavior; they are not OS containment. Cursor's adapter and installer are tested directly; installed Cursor UI qualification remains outstanding. The current runtime structured-response contract is intentionally required.