Tighten local-to-premium review handoff - #9
Merged
Conversation
The apply gate now re-scores premium rewrites on the same oracles, passes layer statuses and local_review notes to the reviewer, and refuses to delegate .env or credential files. Still not a classifier and still not this Cloud Agent calling local_* as its own tools. Co-authored-by: jmjava <jmjava@gmail.com>
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.
Online testing can still tighten the local → premium handoff. It cannot attach
local_*to this Cloud Agent’s tool list or collect GPU rates.This PR closes three contract holes in that loop:
local_reviewnotes, not only the raw MCP string.rewrite_unproven), not applied..env/ credential files are never delegated even when the task looks mechanical..env.exampleis still allowed.This is still spec §8 as a state machine (not a learned classifier). Desktop Cursor choosing
local_refactorremains a workstation check (A7).89 unit tests passed on this agent.