Repository navigation
feat(cursor): scoped automatic MCP tool approval after confirmed project add - #1071
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
Merge Risk:
|
Three bounded self-review rounds — current HEAD 9768fafR1 / SOLID + DRY (addressed). Cursor owns extension admission, managed approval projection and one dedicated trust step; native writes reuse the shared conditional exact-file kernel. The existing Skills/MCP projector, fingerprint-based MCP approval, other clients and the global registry are unchanged. Unsupported extension, unselected server and user-scope registration fail closed. R2 / Security (addressed in 9f92857, c04b43c, 9768faf). Exact per-server/tool grammar, versioned manifest, bounded data, duplicate JSON-key and invalid-type rejection, selected project root, verified native owned objects, MCP disablement and foreign CLI deny/ask preservation. Broad wildcard permissions and ambiguous native policy are refused; no Editor trust-db writes or force/yolo flags. Foreign symlink, another project and changed native MCP configuration are regressions. Explicit confirmed add alone may create these named grants; repair/deps/read-only are non-granting. R3 / Lifecycle + E2E (code/test in progress; NOT a PASS claim). Added focused adapter tests and existing pinned Cursor/Qoder no-auth native lifecycle workflow as a path-qualified gate; Linux/macOS/Windows Core fast build, vet and project-contract jobs, source authorization, and run receipts still must be checked for exact final HEAD. No-auth checks do NOT prove authenticated model tool calls, Cursor Editor activation or workspace trust. CodeRabbit currently reports an OSS review-quota limit (no independent review submitted). New native discovery: Cursor staff confirmed October 29 2026 that project Git plugin registrations can be loaded from .cursor/settings.json; blindly enabling this on top of the already-managed project Skills/MCP would double-register servers. It is not in this bounded tool-trust change. A noninteractive User plugin install command is not available (per current Cursor forum/docs). Merge gate: wait for successful runnable checks and real native evidence, address failures, then guarded merge at reviewed HEAD and postmerge evidence. Queued, pending, skipped, cancelled and neutral are not PASS. |
…out false assumptions
R4 correction checkpoint — exact HEAD
|
Cursor #1071 E2E review — native lane coverage gap (21 Nov 2026)Verified the official Cursor CLI contract: project Open evidence gap (do not count native green as this feature's full E2E): the pinned no-auth workflow Recommend adding a tightly scoped Cursor-only no-auth proof at pinned version, asserting the real installed project's exact Follow-up implementation pushed (not yet PASS):
Gate: CI on |
R5 / strict zero-manual-step acceptance gap at HEAD
|
R6 / native approval verification plan — 90e6c09Identified real independently reviewed source for Cursor Agent Production Critical outstanding gate: actual current-head native Cursor+Qoder run must execute and pass this stronger oracle, not just be queued; Core fast / Required / security, reviewers, exact merge and postmerge remain unqualified. The observed 2026.10 native proof does not establish Editor workspace trust, User marketplace install, or model tools/call. |
Emit the same sanitized held-only diagnostic to stdout and the failure artifact so CI evidence remains readable without a local ZIP decoder. Bound encoded output, preserve original failures, and cover sanitizer, encoding and stdout failures. Native acceptance, pins and cleanup remain unchanged. Exact two-file patch independently reviewed; hosted execution is still required.
Integrate cb63059 from main because its Terminal UI change conflicts with the qualified Windows budget in this PR. Preserve main's 20-minute non-Windows aggregate budget, the existing 25-minute Windows budget, verbose output and all per-case deadlines under the unchanged 35-minute job cap. Independent three-way review verified all 8289 leaf objects: every unconflicted blob and mode is preserved exactly, with only the Terminal UI hunk resolved. Final-source CI remains required.
Use nonblocking nofollow opens for the macOS Kiro custody audit so a FIFO cannot hang before the held regular-file checks. Preserve all source, identity, ownership and byte comparisons. Add real FIFO regressions for state and projection reads, refusal before pread, and constructor descriptor cleanup. Independent source review completed; hosted POSIX validation remains required.
Route explicit Pi foreign/clean cohorts through their original project authority while retaining generic peer isolation. Reuse the guarded canonical TEMP handoff for published Remotion and retain bounded causes from existing failed reads. Reserve bounded cold-acquisition time for Grok and require OpenSSH with bounded conditional setup.
Integrate main's per-run retention policy without losing bounded native SSH setup. Use a real held-file rename and same-byte recreation for the Windows pathname-identity regression, retaining the strict guard and descriptor assertions. Bound Docs OS dependency acquisition through the pinned Playwright installer, then require the unchanged browser/UI smoke.
…cture after removal Qualify exact initially absent empty managed config, owned lock or empty skills-parent directory across all six native snapshots without rebasing protected identity. Keep all public lifecycle, foreign state, rollback and negative-evidence refusals unchanged; add 10 adversarial real-filesystem regression tests.
Keep the genuine published npm shim and its signed binary verification while routing its disposable bootstrap cache outside native HOME on Windows. Preserve all native profile custody and same-opened inode checks. Add focused positive and fail-closed cache authority tests.
Reuse the reviewed collector guard from #1078, preserving exact lock bytes, metadata, authority, and repeat-remove full-frame equality. Rewritten locks still require timestamps in the command window. Retain the existing stricter progress tests and add the two no-op custody regression tests. Evidence: #1078 runtime admission contracts job 138228330280 (170 tests), native job 138254538470 (artifact 14899865090), and local lock-guard replay. The old guard rejected the actual unchanged repeat-add-a lock; the new guard admits the ten observed stages and rejects changed custody/stale records. No production, workflow, version pin, or runtime qualification changes. Full final-source qualification remains required on #1071.
Use the real public `agentplugins remove` receipt rather than a shortened alias, with negative command/schema/result controls. The archived npm 0.1.95 inert runtime fixture now reports the required pinned-native identity and unmodified semantics; production proof requirements remain unchanged. Fixes diagnosed current-source failures in jobs 138387828018 and 138387827610.
Merge verified main 3aa4206 (PR #1101) while preserving the current Cursor source and all upstream CI policy. Resolve only scripts/test_package_manager_ci_policy.py: retain the Firebase automatic source proof and PR-only concurrency cancellation with distinct main-push run grouping. Tree independently checked against 8,290 leaves. Contains the preceding narrow Copilot and historical Codex regression fixes.
|
Read-only review / Copilot fixture follow-up on d7fb1d2 (24 Nov). I see the other writer's published b39ba6a + d7fb1d2; I am not modifying the branch. The production oracle and historical Codex fixture corrections are present, but b39ba6a adds only a helper-level negative test to Also #931 merged at 15:15:37 UTC, advancing main to |
Two full Copilot Project Skill scenarios emitted command=remove despite the actual public CLI returning command=agentplugins remove. Align both positive mock replies to the audited real response. Explicitly reject the bare alias in negative cleanup envelope tests; preserve full add/repeat/remove and foreign-state verification.
Current #1071 checkpoint — 26 Nov 2026, 22:23 localGoal status: Cursor implementation and all functional/security E2E gates are complete on the merged source. The only unrepairable acceptance gap is that the historical merge request does not record an expected-HEAD/CAS precondition; do not claim it was used. Git and ownership
Current-main verification (exact SHA a19856c)
#1071 acceptance evidence
Remaining / next
|
…guards Resolve 32 overlapping files without dropping the latest upstream Codex, Devin, Kiro, Cline and Claude audits. Retain Cursor scoped MCP trust/permission proofs and both branches' applicable workflow checks. Preserve source and published-release refusal semantics for final-head CI qualification.
Preserve the original 900s cold Claude/Firebase bound across main integration, including sequential native probes. Keep warm repeats at 180s, unrelated clients at their original limits, and all timeout/ownership/readiness checks strict. Restore matching focused contract; do not change native acceptance.
… pin Restore exact retained no-op lock evidence, checkpoint-before-capture ordering, bounded Grok workflow contracts and signed-policy reauthentication coverage. Keep strict Prepared routes authoritative instead of shadowing them with legacy summaries; exercise full envelopes for all Cursor/Grok routes and refuse reduced fixtures. Preserve the historical Remotion 0.1.102 failure; qualify immutable 0.1.116 with the same strict public Ready and native lifecycle oracle while retaining the 0.1.101 negative control.
Preserve both sides' audit changes; reconcile Kimi coordinator custody and Marketing Kit guarded initialization. Keep strict Cursor envelopes and exact no-op lock retention tests. No runtime or security gate bypass.
Reuse one guarded CodexProfile for each A/B/C lifecycle after the exact isolated version probe. Keep shared bootstrap, peer, SQLite and pinned-system-file protections while preserving both final checkpoints and sticky failures. Capture live evidence through ExitStack before disposable profiles are removed, and serialize the recorded evidence afterward. Cover actual main orchestration, real SQLite, cleanup/capture failures and late checkpoint interruptions. Validated 155 selected Marketing tests plus the new capture-failure regression, 12 profile contracts, and independent source review.
Bind Prepared Kiro observations to explicit intent and prevent rejected direct receipts from falling through generic admission. Give Windsurf's Global sentinel one owner and preserve historical Codex observation labels. Add independent pinned Pi registration inventories before add, after add, after repeat and after remove. Keep public Prepared states and default native failures, retain connection errors, and qualify registration separately from authentication or model tools. Preserve signed-source lifecycle, foreign-state and removal checks. Focused harness and public Cursor regressions pass locally; genuine representative Pi probes exercised separately. Full hosted catalog qualification remains a distinct execution step.
Preserve source and saved-state custody, Cursor Skill identities, Claude removal discovery, and the independent Windsurf native gate from main alongside Pi registration and retained-file identity checks. Verified the combined shared harness: 398 passed, 12 platform skips; Prepared 21, Kiro 31, Windsurf 48, Pi registration 10, Windsurf cycle 26. CI path policy and affected Marketing Kit contracts passed; independent merge review found no lost gates.
Problem and resulting behavior
Cursor Project packages need exact publisher-declared MCP tool permissions after explicit add confirmation, together with verified native MCP-server fingerprint trust for the pinned Cursor Agent. This PR reuses the existing Cursor Project Skills/MCP adapter and shared conditional writer: only exact server/tool allow rules are added; existing deny/ask decisions, foreign configuration, User/Project isolation, bounds and rollback authority remain intact. Genuine native qualification uses the UAP-written permission without a manual
cursor-agent mcp enable.The implementation plan and complete source/test changes remain in the PR diff. Necessary integration and audit corrections include guarded canonical temporary roots, explicit Prepared-installation cohorts, strict source/ownership/repeat/removal evidence, portable Windows executable fixtures, selected Cursor contracts on all three OSs, nonblocking Kiro reads with real-FIFO refusal tests, and removal of duplicate equivalent refusal branches without relaxing complexity thresholds.
Current candidate
511fad2362b1ed7f508688d25f4eca1f14f6310f4b79ff0baa0bf9eecee79dba44162f13b46262279cc11476fff9af66228fbb480b40fb76991eb20272f880c9293663ab75c3a7dd2c1bccc29d10d16917b7be10c8c61a099b83971fef57ea99fb9e164d7b9d68beaac6d60f8a316ccb4d1891009f9cabb49b5404c8b66b57561475c5ad6f28289ef90d744b,511fad2362b1ed7f508688d25f4eca1f14f6310f1f39044c6f2f5a6817640a20c128754b420d3440(advanced after CI integration)Root verified all 8,290 leaves of the new branch tree and the clean three-way CI integration. The integration tree differs from the branch in exactly three upstream CI files: native-installer run retention, Dependency Review runner selection, and the main-supersession policy test. These trees are not identical. Each runtime result is bound to its actual checkout. PR is Ready and open; merge and postmerge have not happened.
Latest confirmed fix: commit 511fad2, published outside this root session, changes only
scripts/test_package_manager_ci_policy.py. Its stale assertion required both PR and push cancellation; the new exact assertion permits only PR cancellation and rejects additional cancellation directives. All 15 test methods remain. Independent source review found no blocker. This fixes the diagnosed assertion in source; all 15 updated policy tests have now passed in the macOS Intel job described below; the other platform cells remain pending. It supersedes the previously prepared uncommitted variant, which will not be published.Main's #1097 and #1098 are represented in the verified CI integration. Later #1099 adds a selected-runner override for staged hermetic checks in Required. #1100 adds an override only for the SDK and plugininstall vulnerability-scan matrix legs. Both preserve explicit hosted/fork routing, fallback and test commands, and neither is in the current CI integration. Root verified the full prospective 8,290-leaf merge with current main: no conflicts, and only these two workflow files differ from the already recorded CI integration. Independent source review agrees; this is not runtime qualification of the prospective merged commit. Keep the candidate stable while natural checks execute, then refresh actual Git refs and verify the final integration before merge. The PR API's base snapshot may lag the actual main ref.
Included correction 9cc1147: Windows fixture, bounded Docs preparation and main CI retention
Commit 9cc1147 carries two authored fixes and integration of main's PR #1096:
os-errorwhere the test requiredname-identity-changed; the old assertion did not print the retained errno/winerror, so no specific Windows error code is inferred. The fixture now renames the genuinely held original to a fresh sibling and creates the same bytes at the vacated name, after the held-descriptor check. The test still requires the precise name-identity refusal, original syscall sequence and descriptor closure, and additionally verifies both real file bodies and distinct(device, inode)identities. It keeps all 28 tests and the actual share-delete open helper; no production guard, pin, skip or accepted failure is changed.Root verified the complete 8,290-leaf three-way integration, exact eight-file delta and changed bytes. Independent reviewers inspected the immutable Windows fixture, Docs change and resolved Source transports file; no source-review blocker remains. This is technical source review, not formal GitHub approval or runtime PASS. A local execution environment became available later in this session; the additional exact-source Linux tests below are now executed evidence. Their scope does not replace the required Windows or native client runs.
The preceding correction
85a5d07remains included: explicit Pi cohort routing, guarded published Remotion TEMP handoff, and bounded existing-read failure facts without extra reads, retries, unreadable-file exemptions or rebaselining. Generic Pi audits retain independent foreign project B and full custody; explicit foreign/Prepared uses project A; explicit clean/native does not invent a foreign B. Grok's signed cold runtime preparation has bounded step budgets while preserving the exact hashes, signatures, sandbox and native gate.Current-source qualification
GitHub created 43 natural PR workflows for
511fad2. The latest verified read contained 103 checks: five completed SUCCESS jobs (Dependency Review,test-core, Package Manager macOS Intel, Windows Polyglot smoke and Windows source-acquisition smoke), 92 queued and six nonadmitted/paused SKIPPED checks. No job was running at that snapshot. Overall qualification remains pending. The old9cc1147runs were cancelled after the new source appeared; root did not issue that push or those cancellations. No historical success is transferred to this candidate.Completed current-source execution
Dependency Review SUCCESS: job 137808574970. Root read the original completed log and verified checkout
17b7be10c8c61a099b83971fef57ea99fb9e164d. The configured dependency-change review detected neither moderate-or-higher vulnerable packages nor denied packages. It used the selected Linux runner introduced by main #1098. This result covers dependency changes under that policy, not a blanket statement about all repository dependencies.Core / test-core SUCCESS: job 137808580397. Root and an independent reviewer read the original completed log and verified checkout
17b7be10c8c61a099b83971fef57ea99fb9e164d. Mandatorymake test-corepassed at 15:54 UTC, including pathpolicy, adapters, Cursor, installer and CLI/public-command suites. The separate informational coverage phase finished at 16:01 UTC. Other Core/platform/native jobs remain unqualified; this job does not establish aggregate Core or Required success.Package Manager / macOS Intel SUCCESS: job 137808577052. Root read the original completed log and checked the exact workflow; actual checkout was
17b7be10c8c61a099b83971fef57ea99fb9e164d. All 13 evidence tests and all 15 corrected CI-policy tests passed. The job then passed the 17 critical policy/native-ownership tests, full portable catalog/installations/composition, five Unicode-admission cases, real Git policies, public-CLI project isolation and foreign Codex refusal, cold recovery, both actual OS process-crash/recovery cases and immutable Git EOL bytes. The mandatory scoped validators required real run/pass evidence without skips. Windows-only reader tests belong to the separate Windows cell and are not claimed here; Linux/macOS ARM/Windows package cells remain pending.Polyglot / Windows SUCCESS: job 137808578224, completed at 17:43:51 UTC. Root inspected the original log and confirmed checkout
17b7be10c8c61a099b83971fef57ea99fb9e164dagainst the verified integration. All 14 configured Go-test commands returnedok, including the selected scaffold/launcher, runtime validation, bundle, npm/Python package and directory/discovery cache suites. The nonverbose Go output does not supply per-test execution/skip counts; this qualifies the configured Windows lane, not every platform or all native clients.Source acquisition / Windows SUCCESS: job 137808578744, completed at 17:45:29 UTC. The original log confirms the same exact checkout and successful selected
TestOSRunnerClassifiesRealGitTreeOverflowAsSoleLimitcommand (ok, 1.876 seconds). Root checked the current test source: it creates 1,024 manifests in a real Git repository and requiresls-treeoutput capped at 128 bytes to be classified solely as an output-limit failure. Its only availability skip is missing Git; the job records Git 2.56.1.windows.1 before and after the test. This is the bounded Git-discovery check, not aggregate Source transports or the two still-pending Linux Polyglot cells.The next decisive executions are all 28 Windows Remotion prerequisite tests followed by actual published 0.1.102 short/default-long native cases; all 17 Pi cohort tests followed by the real Codex pilots; actual Windsurf post-remove role evidence under the strict observer; the remaining Package Manager platform cells; and bounded Docs preparation followed by its browser smoke. Remaining Required/Core/security/platform/native gates must also finish on final source.
Additional local tests on exact source
A newly attached Linux environment ran the following targeted tests with Python 3.12.14 and Node 24.22.3. Every materialized source file was checked against its actual Git blob SHA before and after execution. These are deliberately bounded source subsets, not full checkouts or hosted CI replacements.
511fad2; observerd0793dbc4129e8b72435c28747c0a897f3d8df5c, testsc29c13f844342270c796596e653c078cc4cc446625fa18da60a49a76b968536f2544c86bd3198882, tests651e6877420dae55d5fd71354511a6be7a1f201f511fad2, including the emitted Go-source trust hook511fad2, including fixtureca8309377150279d3ec9cac0f3b24679b0ae81c2The combined Pi/Remotion command was
python3 -B -m unittest -v test_pi_project_skill_audit test_remotion_published_windows_diagnosticsfromscripts/; all 45 tests passed without errors, failures or skips in 97.497 seconds, during 17:25:52–17:27:31 UTC on 2026-11-23. The 9,122-byte original verbose log has SHA25657e5f187d9d47ce22c17b837deda951588c2d7d84054557b9d85daf9f2395286. All 32 source files remained byte-identical afterward. An independent reviewer checked the original result and its bounded scope. These tests establish Linux harness/observer behavior; they do not establish Windows execution, actual Pi startup, published Remotion 0.1.102 native lifecycle, or current-source Windsurf role facts.The two-file Windsurf proposal has independent source review and local test evidence, but remains uncommitted pending actual current-source role evidence. The older artifact
14802711900was now downloaded and its ZIP bytes inspected: its 25 positive rows retain only aggregate exception records, with no native object/frame/custody fields; the five negative rows cannot supply the missing positive role facts. ZIP SHA256:117dbd07163810c1c57689ce2bd6cc9b2bc317186dc5b2a95c04b64a1d48c6e6. No benign residue is inferred or admitted from that artifact.Executed evidence on preceding source 9cc1147
These are historical results, superseded by
511fad2:make test-coreand later completed its separate informational coverage phase. Root inspected the original log and the exact tree-equal checkouted3afa69105ef60c7d43053bf5daec208714d588. Other Core jobs did not execute before cancellation.511fad2; no upload requirement or native gate was weakened.Executed evidence on preceding source 85a5d07
Root inspected the original completed logs below. These results are bound to
85a5d07or its independently verified tree-equal integration404b0c6; they are historical evidence, not current-head PASS. Artifact metadata was checked where available. The separately identified older Windsurf ZIP has now been decoded as described above; no additional historical ZIP contents are claimed.tools/callunqualified.make test-corepassed; later informational coverage was separate. Windows managed-stdio contracts also passed, with four explicitly platform-dependent symlink subtests skipped. Other unfinished Core cells were not qualified.Other source-bound successes included genuine Devin Project installation/discovery and raw Skills Ready, Cline managed native sessions on macOS/Windows, Grok no-auth native tools-call and stdio/doctor, Hermes native Windows Skills/MCP and Project inspection/cold restore, Linux legacy-driver inert User MCP calls through a scripted localhost provider, Windows published Firebase repeat/removal/sentinels, and Antigravity CLI lifecycle on three OSs. Antigravity remains Prepared evidence without IDE activation/live MCP execution. The Skills API check is a bounded live public sample, explicitly not full-catalog qualification.
Two older failures remain useful diagnostic context: published 0.1.102 on
f6ba910refused a short-TEMP unreadable HOME entry with held key SHA2563917e14ad67aa4633cf09ee533a953f92b07b3c1a9fd5307c958ae0e9732a52eand the long-TEMP canonical directory guard. Current diagnostics retain bounded causal facts, but the remaining short-TEMP cause has not yet been observed with them because the subsequent prerequisite stopped execution. Windsurf's older strict post-remove image mismatch also awaits actual bounded role facts; no speculative residue exemption is integrated.Qualification boundaries and acceptance
Prepared installation, native discovery and actual tools-call remain distinct scopes. Source/pin/state/scope/physical identity, ownership, stable repeat, removal and foreign-state requirements are retained. Cursor's no-auth lifecycle proves its exact UAP-written grant after explicit consent. Qoder uses explicit disposable trust and a harness-authored scoped permission fixture. Neither establishes vendor authentication, Editor workspace trust or authorized model execution. Release-only aggregates, nonadmitted manual/label-only checks and paused CodeRabbit checks are not counted as PASS.
A fresh review check on 2026-11-23 confirmed all six inline threads resolved. The two Cursor size/permission-bound fixes and four Marketing/Codex observer fixes remain in exact
511fad2; independent technical review found no source blocker. GitHub review submissions are COMMENTED rather than formal APPROVED. The current branch policy does not require a formal approval, and the original final-source CI and independent-review requirements remain in force.511fad2with original native-step evidence.Core fast is PR-only. Actual-main core Go coverage comes from the full Required push lane; no separate postmerge Core fast is assumed. No release/tag, duplicate PR, wildcard permission, force or protection waiver is requested.