From 2d2442db29ae314f455f49b2f1e157ea5b61b97f Mon Sep 17 00:00:00 2001 From: Aravind Ramaraju Date: Mon, 9 Jun 2025 08:20:29 -0700 Subject: [PATCH 1/2] docs: Update Cody Guardrails documentation with known limitations - Add Known Limitations section with 4 key points - Clarify exact string matching requirement (10+ lines) - Specify 290,000 indexed repositories coverage - Note BYOK limitation and Cody Gateway requirement - List supported platforms (Web app, VS Code, JetBrains IDEs) - Update callout to be more specific about Enterprise + Gateway requirements --- docs/cody/enterprise/features.mdx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/cody/enterprise/features.mdx b/docs/cody/enterprise/features.mdx index 5d4d821f5..fa57f0aaf 100644 --- a/docs/cody/enterprise/features.mdx +++ b/docs/cody/enterprise/features.mdx @@ -10,7 +10,7 @@ Site administrators can set the duration of access tokens for users connecting C ## Guardrails -Guardrails for public code is currently in Beta and is supported with VS Code, JetBrains IDEs extensions and Sourcegraph Web app. +Guardrails for public code is only supported on VS Code, JetBrains IDEs extension, and Sourcegraph Web app for Cody Enterprise customers using [Cody Gateway](https://sourcegraph.com/docs/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway). It is not supported for any BYOK (Bring Your Own Key) deployments. Open source attribution guardrails for public code, commonly called copyright guardrails, reduce the exposure to copyrighted code. This involves implementing a verification mechanism within Cody to ensure that any code generated by the platform does not replicate open source code. @@ -22,6 +22,13 @@ Guardrails don't differentiate between license types. It matches any code snippe You can `enforce` a Guardrails check to prevent any matching code from being shown to the user. To do so, site admins need to add `"attribution.mode": "enforced"` in the **Site configuration** setting. This will configure the settings for Cody IDE extensions VS Code (v1.82+) or JetBrains (v7.82+) accordingly and will enforce not to display code until attribution checks have finished. +### Known Limitations +1. Guardrails work through an exact string match across ten or more lines, which means extra comments or name changes may not trigger the check +2. The strings are compared against around **290,000** indexed open source repositories, consisting of all license types, including permissive and non-permissive licenses +3. Guardrails requires access to the Cody Gateway, which means it's not supported for any customers using BYOK (Bring Your Own Key) +4. Guardrails is only supported on the Sourcegraph Web app, and the IDE extensions in VS Code, JetBrains IDEs + + ## Admin controls Admin controls are supported with VS Code and JetBrains IDE extension. From 3978d7f42df6226949e1f4b027799b84d2a9b889 Mon Sep 17 00:00:00 2001 From: Aravind Ramaraju Date: Tue, 17 Jun 2025 14:22:41 -0700 Subject: [PATCH 2/2] Update guardrails platform support details --- docs/cody/enterprise/features.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/cody/enterprise/features.mdx b/docs/cody/enterprise/features.mdx index fa57f0aaf..3266bdf97 100644 --- a/docs/cody/enterprise/features.mdx +++ b/docs/cody/enterprise/features.mdx @@ -26,8 +26,7 @@ You can `enforce` a Guardrails check to prevent any matching code from being sho 1. Guardrails work through an exact string match across ten or more lines, which means extra comments or name changes may not trigger the check 2. The strings are compared against around **290,000** indexed open source repositories, consisting of all license types, including permissive and non-permissive licenses 3. Guardrails requires access to the Cody Gateway, which means it's not supported for any customers using BYOK (Bring Your Own Key) -4. Guardrails is only supported on the Sourcegraph Web app, and the IDE extensions in VS Code, JetBrains IDEs - +4. Guardrails is only supported on the Sourcegraph Web app, and the IDE extensions in VS Code, JetBrains IDEs, for chat and autocomplete ## Admin controls