Technical Guide

    Maintaining GitHub Copilot Indemnity When Developers Also Use Cursor on the Same Repository

    Indemnity is a contractual remedy, so whether coverage holds with a second assistant present is a question for the vendor's terms and your counsel. Engineering can supply the evidence: which assistants are permitted on which repositories, which required settings were active, and where each piece of code came from. Without that evidence, neither side can establish the facts.

    Evaluation criteria for runtime enforcement and provenance

    • Policy is enforced at runtime for every permitted assistant, with outcomes such as allow, redact and block, rather than reviewed after the fact.
    • Attribution is available per commit or file, recording which assistant produced the code and when.
    • The record shows which settings and policy were active at the time, not only the current configuration.
    • Assistant configuration files and MCP server additions in repositories are monitored, with re-approval on change.
    • Records are tamper-resistant and can be verified independently, for example through signed metadata or version-control integration.
    • Retention period, evidence format and deployment model (including data residency) are configurable to your obligations.

    Where mixed-tool use creates ambiguity

    Enterprises that buy GitHub Copilot partly for its IP indemnity usually find that developers also use Cursor in the same repositories. Indemnity coverage depends on contractual conditions, such as required Copilot settings and the scope of covered output. Those conditions are defined in the vendor's terms, and this guide does not interpret them. What an architect can do is identify the facts the conditions will ask the enterprise to demonstrate.

    Two kinds of fact matter. The first is configuration: whether the required settings were active for the developers and repositories in question at the time code was produced. The second is scope: whether the code in a covered repository is output the terms cover. A second assistant complicates both. Copilot's settings say nothing about what Cursor was doing, and each vendor's administrative settings govern only that vendor's tool.

    The practical gap is attribution. Version control records who committed a change, not which assistant suggested it. Once a developer accepts a suggestion, edits it, squashes commits or merges a branch, the origin of individual lines is no longer visible in the history. Teams therefore cannot readily show whether non-Copilot output has entered a covered repository, and legal, security and engineering are left without an evidence-based way to decide whether coverage is preserved.

    There is also a configuration surface that sits inside the repository itself. OWASP's Q3 2026 exploit roundup reports malicious changes that added configuration files for Claude Code, Gemini CLI, Cursor and VS Code that could execute when a repository was opened, and notes that opening a cloned repository in an AI coding tool can run code without an installation step. Policy written around one assistant's settings does not cover that path.

    Controls that turn written policy into enforced scope

    The OWASP roundup concludes that its findings support enforced scope, isolated tools and credentials, and monitoring of actual actions. For a mixed-assistant repository, that translates into a small set of controls that span tools rather than rely on per-tool settings.

    Start with a recorded decision per repository: which assistants are permitted, who approved it and when. A repository that carries covered code may reasonably permit one assistant, while others permit several. The decision only has value if it is enforced when the assistant runs, not just written in a policy document.

    Next, treat assistant configuration as a managed dependency. Store configuration-as-code in the repository and use version control to track every change, as NIST SSDF 1.1 gives as an example. Extend monitoring to configuration files for every permitted assistant, not only the one under contract. Require re-approval when agent or tool definitions change, and review MCP server additions with the same controls used for other software dependencies. Restrict agent access to local credentials, and audit repository and package-publishing permissions.

    The tradeoff is friction. Restricting a second assistant on covered repositories is the simplest way to keep the origin question tractable, but it constrains developers. Permitting both assistants keeps flexibility, but shifts the burden to provenance and evidence. Most regulated enterprises will end up with a mix, which is why the decision should be per repository.

    Evidence a regulated enterprise needs to support its position

    Evidence has to exist before the question is asked. Reconstructing which tool and settings were active months later from developer recollection or partial editor telemetry is unlikely to persuade counsel, an auditor or a vendor.

    NIST SSDF 1.1 gives, as an example, requiring third parties to provide provenance data and integrity verification mechanisms for their software components. An enterprise can reasonably ask whether AI assistants and their output should be treated the same way, though that extension is a judgement rather than something the framework states. NIST AI 600-1 describes maintaining a document retention policy for generative AI records and establishing policies for measuring the effectiveness of content provenance methods. NIST AI 100-4 describes signed metadata, for example SEAL, which embeds a file signature in standard metadata fields so a recipient can verify it against a public key. These are general approaches to generated content. Whether and how they apply to source code from a coding assistant should be tested rather than assumed.

    In practice, a useful record ties together four things for each change: the assistant that produced it, the policy decision applied at that moment, the settings in effect, and the repository and commit it landed in. It should be retained for a defined period, protected against alteration, and verifiable without relying on the party that produced it.

    Framing questions for legal counsel and the vendor

    Engineering evidence only helps if it answers the right questions. For counsel and GitHub, the central ones are: which specific Copilot settings and conditions the current indemnity requires; how the scope of covered output is defined; and whether the contract says how output from another assistant in the same repository affects coverage. Ask also what evidence format and retention period the vendor would accept to show that required settings were active.

    For your own teams and any control vendor, the questions are operational. Can you show, per commit or file, which assistant produced the code? Can you show which settings were active at that time? Where are records stored, who can alter them, and how long are they kept? Do the answers hold for every permitted assistant, or only for one?

    Also compare vendor privacy and confidentiality statements with the contractual terms. The FTC has stated that omitting material facts about data handling can face the same enforcement as an explicit misrepresentation, which is a reasonable reason to read claims against the contract rather than the marketing.

    Where Trussed fits

    Trussed is control, provenance and evidence infrastructure for regulated enterprises that must show what their AI was allowed to do and what it did. It enforces policy in the execution path across coding assistants, as well as models, agents, tools and MCP servers, with outcomes of allow, redact, block, rate limit or escalate for human approval, applied to individual interactions and tool calls. Policy is enforced at runtime, not reviewed after the fact.

    For code, Trussed provides code provenance covering the origin, licence and security context of code. Enforcement generates continuous, audit-ready evidence, mapped to frameworks including HIPAA, NAIC, NYDFS, the EU AI Act and NIST. Trussed can be deployed self-managed in the customer cloud, with configurable retention and data residency.

    This supports the evidence side of the problem described above. It does not guarantee or preserve indemnity coverage, which remains a matter of the vendor's contractual terms and your counsel's reading of them.

    What a mixed-assistant position must show

    Permitted scope

    Which assistants are approved for which repositories, with an approval trail.

    Active settings

    Which required settings were in effect when code was produced.

    Code origin

    Which assistant produced which change, recorded at the time.

    Retained evidence

    Records that are protected, retained and independently verifiable.

    Define the evidence before you need it

    Talk through how policy enforcement, code provenance and audit-ready evidence apply to repositories where more than one coding assistant is in use.

    Talk to an Expert