Skip to content

Tighten local-to-premium review handoff - #9

Merged
jmjava merged 1 commit into
mainfrom
cursor/review-handoff-937a
Sep 7, 2026
Merged

Tighten local-to-premium review handoff#9
jmjava merged 1 commit into
mainfrom
cursor/review-handoff-937a

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026

Copy link
Copy Markdown
Owner

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:

  1. Review packet — the premium reviewer receives layer statuses, first failure, and optional local_review notes, not only the raw MCP string.
  2. Rewrite re-score — a premium rewrite is scored on the same four oracles before apply. A broken rewrite is blocked (rewrite_unproven), not applied.
  3. Secrets stay on premium.env / credential files are never delegated even when the task looks mechanical. .env.example is still allowed.

This is still spec §8 as a state machine (not a learned classifier). Desktop Cursor choosing local_refactor remains a workstation check (A7).

89 unit tests passed on this agent.

Open in Web Open in Cursor 

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>
@jmjava
jmjava merged commit b222793 into main Sep 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants