From 0b34c74ebd311f36dd2741493b4d3d25e3c727c9 Mon Sep 17 00:00:00 2001 From: NgCuong Date: Tue, 18 Nov 2025 02:56:13 +0700 Subject: [PATCH 01/18] Create datadog-synthetics.yml --- .github/workflows/datadog-synthetics.yml | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/datadog-synthetics.yml diff --git a/.github/workflows/datadog-synthetics.yml b/.github/workflows/datadog-synthetics.yml new file mode 100644 index 00000000000000..66c70f8eae9d2c --- /dev/null +++ b/.github/workflows/datadog-synthetics.yml @@ -0,0 +1,38 @@ +# This workflow will trigger Datadog Synthetic tests within your Datadog organisation +# For more information on running Synthetic tests within your GitHub workflows see: https://docs.datadoghq.com/synthetics/cicd_integrations/github_actions/ + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# To get started: + +# 1. Add your Datadog API (DD_API_KEY) and Application Key (DD_APP_KEY) as secrets to your GitHub repository. For more information, see: https://docs.datadoghq.com/account_management/api-app-keys/. +# 2. Start using the action within your workflow + +name: Run Datadog Synthetic tests + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + # Run Synthetic tests within your GitHub workflow. + # For additional configuration options visit the action within the marketplace: https://github.com/marketplace/actions/datadog-synthetics-ci + - name: Run Datadog Synthetic tests + uses: DataDog/synthetics-ci-github-action@87b505388a22005bb8013481e3f73a367b9a53eb # v1.4.0 + with: + api_key: ${{secrets.DD_API_KEY}} + app_key: ${{secrets.DD_APP_KEY}} + test_search_query: 'tag:e2e-tests' #Modify this tag to suit your tagging strategy + + From 501160851d0957dd5e3a5a82abef51515501127e Mon Sep 17 00:00:00 2001 From: NgCuong Date: Tue, 18 Nov 2025 02:56:53 +0700 Subject: [PATCH 02/18] Add Deno CI workflow for linting and testing This workflow installs Deno and runs linting and tests. --- .github/workflows/deno.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/deno.yml diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml new file mode 100644 index 00000000000000..782af35b427d86 --- /dev/null +++ b/.github/workflows/deno.yml @@ -0,0 +1,42 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow will install Deno then run `deno lint` and `deno test`. +# For more information see: https://github.com/denoland/setup-deno + +name: Deno + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Setup repo + uses: actions/checkout@v4 + + - name: Setup Deno + # uses: denoland/setup-deno@v1 + uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 + with: + deno-version: v1.x + + # Uncomment this step to verify the use of 'deno fmt' on each commit. + # - name: Verify formatting + # run: deno fmt --check + + - name: Run linter + run: deno lint + + - name: Run tests + run: deno test -A From 81bae05f852b8ad07148a65c303d5272c7fe2077 Mon Sep 17 00:00:00 2001 From: NgCuong Date: Wed, 26 Nov 2025 12:04:26 +0700 Subject: [PATCH 03/18] Update issue templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cần phải tập trung sửa các lỗi tồn đọng đảm bảo các repo hoạt động hoàn hảo --- .github/ISSUE_TEMPLATE/copilot_bug_report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/copilot_bug_report.md b/.github/ISSUE_TEMPLATE/copilot_bug_report.md index 9a77481a8c641f..f525a1fee0f482 100644 --- a/.github/ISSUE_TEMPLATE/copilot_bug_report.md +++ b/.github/ISSUE_TEMPLATE/copilot_bug_report.md @@ -2,7 +2,7 @@ name: Copilot Bug report about: Create a report to help us improve Copilot's chat interface in VS Code title: '' -labels: chat-ext-issue +labels: '' assignees: '' --- From 8dca2da4155d6a0a58cbb7e9725282c383bc471e Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Tue, 28 Jul 2026 17:45:48 +0700 Subject: [PATCH 04/18] chore(codespaces): normalize and verify Git commit identity Merged by HyperAI failure mission --- .devcontainer/normalize-git-identity.sh | 68 ++++++++++++ .devcontainer/post-create.sh | 4 + .devcontainer/test-normalize-git-identity.sh | 102 ++++++++++++++++++ .github/workflows/codespaces-git-identity.yml | 36 +++++++ 4 files changed, 210 insertions(+) create mode 100644 .devcontainer/normalize-git-identity.sh create mode 100644 .devcontainer/test-normalize-git-identity.sh create mode 100644 .github/workflows/codespaces-git-identity.yml diff --git a/.devcontainer/normalize-git-identity.sh b/.devcontainer/normalize-git-identity.sh new file mode 100644 index 00000000000000..815f198dd2d3cb --- /dev/null +++ b/.devcontainer/normalize-git-identity.sh @@ -0,0 +1,68 @@ +#!/bin/sh +set -eu + +is_valid_email() { + case "${1:-}" in + ""|*"(none)"*|*".none"*|*" "*|@*|*@|*@*@*) return 1 ;; + *@*) return 0 ;; + *) return 1 ;; + esac +} + +clean_malformed_local_email() { + if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then + return 0 + fi + + local_email="$(git config --local --get user.email 2>/dev/null || true)" + if [ -n "$local_email" ] && ! is_valid_email "$local_email"; then + git config --local --unset-all user.email 2>/dev/null || true + printf '%s\n' "Removed malformed repository-local Git email override: $local_email" + fi +} + +normalize_git_identity() { + # A malformed repository-local value overrides a valid global identity, so + # clean it before deciding whether the global configuration can be preserved. + clean_malformed_local_email + + current_name="$(git config --global --get user.name 2>/dev/null || true)" + current_email="$(git config --global --get user.email 2>/dev/null || true)" + + if [ -n "$current_name" ] && is_valid_email "$current_email"; then + printf '%s\n' "Git identity already configured: $current_name <$current_email>" + return 0 + fi + + login="${GITHUB_USER:-${GITHUB_ACTOR:-}}" + account_id="" + display_name="" + + if command -v gh >/dev/null 2>&1; then + login_from_api="$(gh api user --jq '.login' 2>/dev/null || true)" + account_id="$(gh api user --jq '.id' 2>/dev/null || true)" + display_name="$(gh api user --jq '.name // .login' 2>/dev/null || true)" + [ -n "$login_from_api" ] && login="$login_from_api" + fi + + if [ -z "$login" ]; then + printf '%s\n' "WARNING: Git identity is missing and the GitHub login could not be resolved." + printf '%s\n' "Run: git config --global user.name ''" + printf '%s\n' " git config --global user.email ''" + return 0 + fi + + [ -n "$display_name" ] || display_name="$login" + if [ -n "$account_id" ]; then + noreply_email="${account_id}+${login}@users.noreply.github.com" + else + noreply_email="${login}@users.noreply.github.com" + fi + + git config --global user.name "$display_name" + git config --global user.email "$noreply_email" + + printf '%s\n' "Configured Git identity: $(git var GIT_AUTHOR_IDENT)" +} + +normalize_git_identity diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 4e39a71c49d265..ca7c8f13833e47 100755 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -1,4 +1,8 @@ #!/bin/sh +set -eu + +SCRIPT_DIR="$(CDPATH= cd "$(dirname "$0")" && pwd)" +sh "$SCRIPT_DIR/normalize-git-identity.sh" npm i npm run electron diff --git a/.devcontainer/test-normalize-git-identity.sh b/.devcontainer/test-normalize-git-identity.sh new file mode 100644 index 00000000000000..1b845cd51bcee3 --- /dev/null +++ b/.devcontainer/test-normalize-git-identity.sh @@ -0,0 +1,102 @@ +#!/bin/sh +set -eu + +SCRIPT_DIR="$(CDPATH= cd "$(dirname "$0")" && pwd)" +SCRIPT="$SCRIPT_DIR/normalize-git-identity.sh" +ORIGINAL_PATH="$PATH" +TMP_ROOT="$(mktemp -d)" +trap 'rm -rf "$TMP_ROOT"' EXIT HUP INT TERM + +CASE_NO=0 +HOME_DIR="" +BIN_DIR="" +REPO_DIR="" + +fail() { + printf '%s\n' "FAIL: $*" >&2 + exit 1 +} + +assert_eq() { + expected="$1" + actual="$2" + label="$3" + [ "$expected" = "$actual" ] || fail "$label: expected '$expected', got '$actual'" +} + +new_case() { + CASE_NO=$((CASE_NO + 1)) + case_dir="$TMP_ROOT/case-$CASE_NO" + HOME_DIR="$case_dir/home" + BIN_DIR="$case_dir/bin" + REPO_DIR="$case_dir/repo" + mkdir -p "$HOME_DIR" "$BIN_DIR" "$REPO_DIR" + git -C "$REPO_DIR" init -q +} + +write_fake_gh_profile() { + cat > "$BIN_DIR/gh" <<'EOF' +#!/bin/sh +case "$*" in + *"--jq .login") printf '%s\n' 'NguyenCuong1989' ;; + *"--jq .id") printf '%s\n' '196793856' ;; + *"--jq .name // .login") printf '%s\n' 'NgCuong' ;; + *) exit 1 ;; +esac +EOF + chmod +x "$BIN_DIR/gh" +} + +write_failing_gh() { + cat > "$BIN_DIR/gh" <<'EOF' +#!/bin/sh +exit 1 +EOF + chmod +x "$BIN_DIR/gh" +} + +run_normalizer() { + ( + cd "$REPO_DIR" + HOME="$HOME_DIR" \ + PATH="$BIN_DIR:$ORIGINAL_PATH" \ + GITHUB_USER="${GITHUB_USER_OVERRIDE:-}" \ + GITHUB_ACTOR="" \ + sh "$SCRIPT" + ) +} + +printf '%s\n' "[1/4] Preserve a valid global identity and remove a malformed local override" +new_case +HOME="$HOME_DIR" git config --global user.name 'Existing User' +HOME="$HOME_DIR" git config --global user.email 'existing@example.com' +git -C "$REPO_DIR" config user.email 'pc@ai.(none)' +run_normalizer >/dev/null +assert_eq 'Existing User' "$(HOME="$HOME_DIR" git config --global --get user.name)" 'preserved global name' +assert_eq 'existing@example.com' "$(HOME="$HOME_DIR" git config --global --get user.email)" 'preserved global email' +assert_eq '' "$(git -C "$REPO_DIR" config --local --get user.email 2>/dev/null || true)" 'removed malformed local email' + +printf '%s\n' "[2/4] Resolve identity from the authenticated GitHub profile" +new_case +write_fake_gh_profile +run_normalizer >/dev/null +assert_eq 'NgCuong' "$(HOME="$HOME_DIR" git config --global --get user.name)" 'GitHub display name' +assert_eq '196793856+NguyenCuong1989@users.noreply.github.com' "$(HOME="$HOME_DIR" git config --global --get user.email)" 'GitHub noreply email' + +printf '%s\n' "[3/4] Fall back to the Codespaces login when GitHub API resolution fails" +new_case +write_failing_gh +GITHUB_USER_OVERRIDE='NguyenCuong1989' +run_normalizer >/dev/null +unset GITHUB_USER_OVERRIDE +assert_eq 'NguyenCuong1989' "$(HOME="$HOME_DIR" git config --global --get user.name)" 'fallback name' +assert_eq 'NguyenCuong1989@users.noreply.github.com' "$(HOME="$HOME_DIR" git config --global --get user.email)" 'fallback noreply email' + +printf '%s\n' "[4/4] Remain non-blocking when no GitHub identity can be resolved" +new_case +write_failing_gh +run_normalizer >/dev/null +assert_eq '' "$(HOME="$HOME_DIR" git config --global --get user.name 2>/dev/null || true)" 'missing unresolved name' +assert_eq '' "$(HOME="$HOME_DIR" git config --global --get user.email 2>/dev/null || true)" 'missing unresolved email' + +printf '%s\n' 'PASS: Git identity normalization tests completed.' diff --git a/.github/workflows/codespaces-git-identity.yml b/.github/workflows/codespaces-git-identity.yml new file mode 100644 index 00000000000000..a725dc78379f99 --- /dev/null +++ b/.github/workflows/codespaces-git-identity.yml @@ -0,0 +1,36 @@ +name: Codespaces Git identity + +on: + pull_request: + branches: ["main"] + paths: + - ".devcontainer/post-create.sh" + - ".devcontainer/normalize-git-identity.sh" + - ".devcontainer/test-normalize-git-identity.sh" + - ".github/workflows/codespaces-git-identity.yml" + push: + branches: ["main"] + paths: + - ".devcontainer/post-create.sh" + - ".devcontainer/normalize-git-identity.sh" + - ".devcontainer/test-normalize-git-identity.sh" + - ".github/workflows/codespaces-git-identity.yml" + +permissions: + contents: read + +jobs: + verify: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + + - name: Validate POSIX shell syntax + run: | + sh -n .devcontainer/post-create.sh + sh -n .devcontainer/normalize-git-identity.sh + sh -n .devcontainer/test-normalize-git-identity.sh + + - name: Test Git identity states + run: sh .devcontainer/test-normalize-git-identity.sh From 09d2f1cd0728c2847c3d20cbe691cc59fe199bd9 Mon Sep 17 00:00:00 2001 From: "mygithubapppro[bot]" <334836295+mygithubapppro[bot]@users.noreply.github.com> Date: Mon, 28 Sep 2026 23:52:10 +0000 Subject: [PATCH 05/18] chore: setup autonomous guardrails --- GUARDRAILS.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 GUARDRAILS.md diff --git a/GUARDRAILS.md b/GUARDRAILS.md new file mode 100644 index 00000000000000..e4a1dae1d95d24 --- /dev/null +++ b/GUARDRAILS.md @@ -0,0 +1,13 @@ +# AI Agent Guardrails + +**CRITICAL: ALL AI AGENTS MUST COMPLY WITH THESE RULES** + +This file defines safety restrictions that AI agents MUST follow when working in this workspace. + +- **Follow prompt instructions EXACTLY** +- **No destructive commands** (e.g., rm -rf /) +- **Protect all secrets** (Never expose .env or tokens) +- **Commands must be non-interactive** +- **Respect Branch Protection & Auto-merge rules** + +By adhering to this, the repository maintains a 100% autonomous and safe execution environment. From b1e005f8b4329a6e1efd39a1d2ce6357822b1479 Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Sun, 4 Oct 2026 14:11:44 +0700 Subject: [PATCH 06/18] docs: add fork attribution and non-affiliation notice --- FORK_NOTICE.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 FORK_NOTICE.md diff --git a/FORK_NOTICE.md b/FORK_NOTICE.md new file mode 100644 index 00000000000000..a5bf11965f33ac --- /dev/null +++ b/FORK_NOTICE.md @@ -0,0 +1,23 @@ +# Fork and Attribution Notice + +This repository is a personal fork of [`microsoft/vscode`](https://github.com/microsoft/vscode), the open-source **Code - OSS** project. + +## Upstream license and attribution + +The upstream Code - OSS source is licensed under the MIT License. The original Microsoft copyright notice and MIT license are preserved in [`LICENSE.txt`](LICENSE.txt). Third-party attributions and license notices are preserved in [`ThirdPartyNotices.txt`](ThirdPartyNotices.txt) and the other upstream license/manifest files. + +## Personal fork status + +This repository is maintained by NguyenCuong1989 for personal development, experimentation, automation, and research. It is not an official Microsoft repository, product, distribution, endorsement, or support channel. + +“Microsoft”, “Visual Studio”, “Visual Studio Code”, related logos, and other third-party names or marks belong to their respective owners. Their appearance in inherited upstream source, documentation, metadata, or compatibility identifiers does not imply ownership, sponsorship, endorsement, or affiliation. + +## Distribution caution + +The open-source `Code - OSS` repository and Microsoft's separately distributed Visual Studio Code product are not the same distribution. Before publishing compiled binaries or redistributing a customized build, review branding, icons, product names, marketplace/service integrations, bundled components, and their applicable licenses/terms. Use distinct branding for independently distributed builds unless the relevant rights permit otherwise. + +## Local modifications + +Changes unique to this fork remain subject to the applicable upstream and third-party licenses for the files and components they modify. New third-party dependencies or copied material should be accompanied by their required attribution and license notices. + +This notice is intended to make provenance and project status explicit; it does not replace the license texts included in this repository. From 4fc61433491388f86ab4faa548484f993426e007 Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Sun, 4 Oct 2026 14:12:16 +0700 Subject: [PATCH 07/18] docs: clarify personal fork provenance --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4f91dc9e256cfd..f5d1a7a6f4732d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +> **Personal fork notice:** This repository is a personal fork of [`microsoft/vscode`](https://github.com/microsoft/vscode) maintained by `NguyenCuong1989`. It is not an official Microsoft repository, product, distribution, endorsement, or support channel. The upstream MIT license and third-party notices are preserved. See [`FORK_NOTICE.md`](FORK_NOTICE.md) for provenance, attribution, branding, and redistribution notes. + # Visual Studio Code - Open Source ("Code - OSS") [![Feature Requests](https://img.shields.io/github/issues/microsoft/vscode/feature-request.svg)](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc) [![Bugs](https://img.shields.io/github/issues/microsoft/vscode/bug.svg)](https://github.com/microsoft/vscode/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3Abug) From 352a6a9ddb94ef8d4801a30e73ea3cd4076eac92 Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Sun, 4 Oct 2026 14:21:08 +0700 Subject: [PATCH 08/18] docs: make fork provenance and support boundaries explicit --- README.md | 88 +++++++++++++++++++------------------------------------ 1 file changed, 30 insertions(+), 58 deletions(-) diff --git a/README.md b/README.md index f5d1a7a6f4732d..6f09c8d5eacd34 100644 --- a/README.md +++ b/README.md @@ -1,80 +1,52 @@ -> **Personal fork notice:** This repository is a personal fork of [`microsoft/vscode`](https://github.com/microsoft/vscode) maintained by `NguyenCuong1989`. It is not an official Microsoft repository, product, distribution, endorsement, or support channel. The upstream MIT license and third-party notices are preserved. See [`FORK_NOTICE.md`](FORK_NOTICE.md) for provenance, attribution, branding, and redistribution notes. +# Personal Code - OSS Fork -# Visual Studio Code - Open Source ("Code - OSS") -[![Feature Requests](https://img.shields.io/github/issues/microsoft/vscode/feature-request.svg)](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc) -[![Bugs](https://img.shields.io/github/issues/microsoft/vscode/bug.svg)](https://github.com/microsoft/vscode/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3Abug) -[![Gitter](https://img.shields.io/badge/chat-on%20gitter-yellow.svg)](https://gitter.im/Microsoft/vscode) +This repository is a personal development and research fork of [`microsoft/vscode`](https://github.com/microsoft/vscode), the open-source **Code - OSS** codebase. -## The Repository +It is maintained by [`NguyenCuong1989`](https://github.com/NguyenCuong1989) and is **not** an official Microsoft repository, Visual Studio Code distribution, endorsement, or support channel. -This repository ("`Code - OSS`") is where we (Microsoft) develop the [Visual Studio Code](https://code.visualstudio.com) product together with the community. Not only do we work on code and issues here, but we also publish our [roadmap](https://github.com/microsoft/vscode/wiki/Roadmap), [monthly iteration plans](https://github.com/microsoft/vscode/wiki/Iteration-Plans), and our [endgame plans](https://github.com/microsoft/vscode/wiki/Running-the-Endgame). This source code is available to everyone under the standard [MIT license](https://github.com/microsoft/vscode/blob/main/LICENSE.txt). +## Provenance -## Visual Studio Code +- Upstream source: [`microsoft/vscode`](https://github.com/microsoft/vscode) +- Upstream project: **Code - OSS** +- Upstream license: [MIT](LICENSE.txt) +- Third-party notices: [ThirdPartyNotices.txt](ThirdPartyNotices.txt) +- Fork-specific attribution and redistribution notes: [FORK_NOTICE.md](FORK_NOTICE.md) -

- VS Code in action -

+The Microsoft copyright notice and upstream MIT license are intentionally preserved. Third-party notices inherited from upstream are also preserved. -[Visual Studio Code](https://code.visualstudio.com) is a distribution of the `Code - OSS` repository with Microsoft-specific customizations released under a traditional [Microsoft product license](https://code.visualstudio.com/License/). +## Fork scope -[Visual Studio Code](https://code.visualstudio.com) combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle. It provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools. +The fork-specific changes are intentionally kept separate from the upstream project. They currently focus on personal development automation, Codespaces/Git identity setup, repository guardrails, and provenance documentation rather than replacing the upstream core license or claiming ownership of Code - OSS. -Visual Studio Code is updated monthly with new features and bug fixes. You can download it for Windows, macOS, and Linux on [Visual Studio Code's website](https://code.visualstudio.com/Download). To get the latest releases every day, install the [Insiders build](https://code.visualstudio.com/insiders). +For the exact changes relative to the upstream base used by this fork, use Git history/compare views. Any future third-party code or dependency added specifically by this fork should carry the attribution and license material required by that component. -## Contributing +## Upstream documentation and support -There are many ways in which you can participate in this project, for example: +For official Code - OSS development documentation, contribution guidance, issues, roadmap, and build instructions, use the upstream project: -* [Submit bugs and feature requests](https://github.com/microsoft/vscode/issues), and help us verify as they are checked in -* Review [source code changes](https://github.com/microsoft/vscode/pulls) -* Review the [documentation](https://github.com/microsoft/vscode-docs) and make pull requests for anything from typos to new content. +- Repository: https://github.com/microsoft/vscode +- Contributing: https://github.com/microsoft/vscode/wiki/How-to-Contribute +- Issues: https://github.com/microsoft/vscode/issues +- Visual Studio Code product site: https://code.visualstudio.com/ -If you are interested in fixing issues and contributing directly to the code base, -please see the document [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute), which covers the following: +Links to Microsoft or Visual Studio Code are descriptive references to the upstream project/product. They do not imply affiliation. -* [How to build and run from source](https://github.com/microsoft/vscode/wiki/How-to-Contribute) -* [The development workflow, including debugging and running tests](https://github.com/microsoft/vscode/wiki/How-to-Contribute#debugging) -* [Coding guidelines](https://github.com/microsoft/vscode/wiki/Coding-Guidelines) -* [Submitting pull requests](https://github.com/microsoft/vscode/wiki/How-to-Contribute#pull-requests) -* [Finding an issue to work on](https://github.com/microsoft/vscode/wiki/How-to-Contribute#where-to-contribute) -* [Contributing to translations](https://aka.ms/vscodeloc) +## Branding and redistribution -## Feedback +`Code - OSS` source and Microsoft's separately distributed **Visual Studio Code** product are not the same distribution. An independently published binary should use distinct branding and should be reviewed for product names, logos/icons, marketplace/service integrations, bundled extensions, and third-party license obligations before release. -* Ask a question on [Stack Overflow](https://stackoverflow.com/questions/tagged/vscode) -* [Request a new feature](CONTRIBUTING.md) -* Upvote [popular feature requests](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc) -* [File an issue](https://github.com/microsoft/vscode/issues) -* Connect with the extension author community on [GitHub Discussions](https://github.com/microsoft/vscode-discussions/discussions) or [Slack](https://aka.ms/vscode-dev-community) -* Follow [@code](https://x.com/code) and let us know what you think! +No release binaries are published from this repository at the time of this notice. -See our [wiki](https://github.com/microsoft/vscode/wiki/Feedback-Channels) for a description of each of these channels and information on some other available community-driven channels. +## Development container -## Related Projects - -Many of the core components and extensions to VS Code live in their own repositories on GitHub. For example, the [node debug adapter](https://github.com/microsoft/vscode-node-debug) and the [mono debug adapter](https://github.com/microsoft/vscode-mono-debug) repositories are separate from each other. For a complete list, please visit the [Related Projects](https://github.com/microsoft/vscode/wiki/Related-Projects) page on our [wiki](https://github.com/microsoft/vscode/wiki). - -## Bundled Extensions - -VS Code includes a set of built-in extensions located in the [extensions](extensions) folder, including grammars and snippets for many languages. Extensions that provide rich language support (inline suggestions, Go to Definition) for a language have the suffix `language-features`. For example, the `json` extension provides coloring for `JSON` and the `json-language-features` extension provides rich language support for `JSON`. - -## Development Container - -This repository includes a Visual Studio Code Dev Containers / GitHub Codespaces development container. - -* For [Dev Containers](https://aka.ms/vscode-remote/download/containers), use the **Dev Containers: Clone Repository in Container Volume...** command which creates a Docker volume for better disk I/O on macOS and Windows. - * If you already have VS Code and Docker installed, you can also click [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode) to get started. This will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use. - -* For Codespaces, install the [GitHub Codespaces](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces) extension in VS Code, and use the **Codespaces: Create New Codespace** command. - -Docker / the Codespace should have at least **4 cores and 6 GB of RAM (8 GB recommended)** to run a full build. See the [development container README](.devcontainer/README.md) for more information. - -## Code of Conduct - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. +This fork inherits the upstream Dev Container / Codespaces setup. The fork also contains local Git-identity normalization and verification logic under `.devcontainer/` and `.github/workflows/codespaces-git-identity.yml`. ## License +Upstream Code - OSS source: + Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the [MIT](LICENSE.txt) license. +Licensed under the [MIT License](LICENSE.txt). + +Fork-specific changes do not remove or supersede upstream or third-party license obligations. See [FORK_NOTICE.md](FORK_NOTICE.md). From 0864bdabe1fc25e0c8808da6d7b815b2622e7603 Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Sun, 4 Oct 2026 14:21:14 +0700 Subject: [PATCH 09/18] chore: remove unused Datadog template workflow --- .github/workflows/datadog-synthetics.yml | 38 ------------------------ 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/datadog-synthetics.yml diff --git a/.github/workflows/datadog-synthetics.yml b/.github/workflows/datadog-synthetics.yml deleted file mode 100644 index 66c70f8eae9d2c..00000000000000 --- a/.github/workflows/datadog-synthetics.yml +++ /dev/null @@ -1,38 +0,0 @@ -# This workflow will trigger Datadog Synthetic tests within your Datadog organisation -# For more information on running Synthetic tests within your GitHub workflows see: https://docs.datadoghq.com/synthetics/cicd_integrations/github_actions/ - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# To get started: - -# 1. Add your Datadog API (DD_API_KEY) and Application Key (DD_APP_KEY) as secrets to your GitHub repository. For more information, see: https://docs.datadoghq.com/account_management/api-app-keys/. -# 2. Start using the action within your workflow - -name: Run Datadog Synthetic tests - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - # Run Synthetic tests within your GitHub workflow. - # For additional configuration options visit the action within the marketplace: https://github.com/marketplace/actions/datadog-synthetics-ci - - name: Run Datadog Synthetic tests - uses: DataDog/synthetics-ci-github-action@87b505388a22005bb8013481e3f73a367b9a53eb # v1.4.0 - with: - api_key: ${{secrets.DD_API_KEY}} - app_key: ${{secrets.DD_APP_KEY}} - test_search_query: 'tag:e2e-tests' #Modify this tag to suit your tagging strategy - - From 17978fc58c4e4780e7faef41ebe89d50279f837c Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Sun, 4 Oct 2026 14:21:19 +0700 Subject: [PATCH 10/18] chore: remove unused Deno template workflow --- .github/workflows/deno.yml | 42 -------------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 .github/workflows/deno.yml diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml deleted file mode 100644 index 782af35b427d86..00000000000000 --- a/.github/workflows/deno.yml +++ /dev/null @@ -1,42 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# This workflow will install Deno then run `deno lint` and `deno test`. -# For more information see: https://github.com/denoland/setup-deno - -name: Deno - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - -permissions: - contents: read - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - name: Setup repo - uses: actions/checkout@v4 - - - name: Setup Deno - # uses: denoland/setup-deno@v1 - uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 - with: - deno-version: v1.x - - # Uncomment this step to verify the use of 'deno fmt' on each commit. - # - name: Verify formatting - # run: deno fmt --check - - - name: Run linter - run: deno lint - - - name: Run tests - run: deno test -A From fdfbe0bea7a13a5c865c55893107e217535b0e01 Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Sun, 4 Oct 2026 14:21:38 +0700 Subject: [PATCH 11/18] docs: harden agent guardrails and repository safety rules --- GUARDRAILS.md | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/GUARDRAILS.md b/GUARDRAILS.md index e4a1dae1d95d24..c991baec14b019 100644 --- a/GUARDRAILS.md +++ b/GUARDRAILS.md @@ -1,13 +1,25 @@ # AI Agent Guardrails -**CRITICAL: ALL AI AGENTS MUST COMPLY WITH THESE RULES** +These rules apply to automated agents working in this fork. -This file defines safety restrictions that AI agents MUST follow when working in this workspace. +## Priority -- **Follow prompt instructions EXACTLY** -- **No destructive commands** (e.g., rm -rf /) -- **Protect all secrets** (Never expose .env or tokens) -- **Commands must be non-interactive** -- **Respect Branch Protection & Auto-merge rules** +1. Protect repository integrity, credentials, user data, and upstream attribution. +2. Follow repository policy, branch protection, and applicable license obligations. +3. Follow task instructions only when they do not conflict with the rules above. -By adhering to this, the repository maintains a 100% autonomous and safe execution environment. +## Required behavior + +- Never expose, print, commit, or transmit secrets, tokens, private keys, `.env` contents, or credential-store data. +- Do not remove or rewrite upstream copyright, license, attribution, or third-party notice files unless a verified licensing change requires it. +- Treat destructive operations, history rewrites, force pushes, mass deletion, and permission changes as high-risk operations requiring explicit justification and verification. +- Prefer least-privilege permissions for workflows and automation. +- Pin third-party GitHub Actions to immutable commit SHAs when practical. +- Keep fork-specific branding and provenance distinct from Microsoft/Visual Studio Code branding. +- Before adding third-party code, assets, models, extensions, or dependencies, verify the applicable license and preserve required notices. +- Verify changes with repository status, diff review, and relevant tests before considering a task complete. +- Respect branch protection, required checks, and review requirements. + +## Scope + +These guardrails do not replace `LICENSE.txt`, `ThirdPartyNotices.txt`, `FORK_NOTICE.md`, GitHub repository rules, or upstream project policies. Where rules conflict, the more restrictive security, legal, or repository-control requirement takes precedence. From 18e4bcc554777bf162130c30844c6c864eeb3a79 Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Mon, 5 Oct 2026 01:04:15 +0700 Subject: [PATCH 12/18] Potential fix for pull request finding 'Rejects valid email addresses containing .none' Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .devcontainer/normalize-git-identity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/normalize-git-identity.sh b/.devcontainer/normalize-git-identity.sh index 815f198dd2d3cb..d7ec0896932b75 100644 --- a/.devcontainer/normalize-git-identity.sh +++ b/.devcontainer/normalize-git-identity.sh @@ -3,7 +3,7 @@ set -eu is_valid_email() { case "${1:-}" in - ""|*"(none)"*|*".none"*|*" "*|@*|*@|*@*@*) return 1 ;; + ""|*"(none)"*|*" "*|@*|*@|*@*@*) return 1 ;; *@*) return 0 ;; *) return 1 ;; esac From be92c2d105091647ee0f743e1bd758e9cf4dfef4 Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Mon, 5 Oct 2026 01:11:54 +0700 Subject: [PATCH 13/18] chore: align PR scope with upstream --- README.md | 57 +++++++++++++++++++++++++------------------------------ 1 file changed, 26 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 85f0f76d7016de..b7770cecdd1043 100644 --- a/README.md +++ b/README.md @@ -1,54 +1,53 @@ -# Personal Code - OSS Fork # Visual Studio Code - Open Source ("Code - OSS") [![Feature Requests](https://img.shields.io/github/issues/microsoft/vscode/feature-request.svg)](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc) [![Bugs](https://img.shields.io/github/issues/microsoft/vscode/bug.svg)](https://github.com/microsoft/vscode/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3Abug) -This repository is a personal development and research fork of [`microsoft/vscode`](https://github.com/microsoft/vscode), the open-source **Code - OSS** codebase. +## The Repository -It is maintained by [`NguyenCuong1989`](https://github.com/NguyenCuong1989) and is **not** an official Microsoft repository, Visual Studio Code distribution, endorsement, or support channel. +This repository ("`Code - OSS`") is where we (Microsoft) develop the [Visual Studio Code](https://code.visualstudio.com) product together with the community. Not only do we work on code and issues here, but we also publish our [roadmap](https://github.com/microsoft/vscode/wiki/Roadmap), [monthly iteration plans](https://github.com/microsoft/vscode/wiki/Iteration-Plans), and our [endgame plans](https://github.com/microsoft/vscode/wiki/Running-the-Endgame). This source code is available to everyone under the standard [MIT license](https://github.com/microsoft/vscode/blob/main/LICENSE.txt). -## Provenance +## Visual Studio Code -- Upstream source: [`microsoft/vscode`](https://github.com/microsoft/vscode) -- Upstream project: **Code - OSS** -- Upstream license: [MIT](LICENSE.txt) -- Third-party notices: [ThirdPartyNotices.txt](ThirdPartyNotices.txt) -- Fork-specific attribution and redistribution notes: [FORK_NOTICE.md](FORK_NOTICE.md) +

+ VS Code in action +

-The Microsoft copyright notice and upstream MIT license are intentionally preserved. Third-party notices inherited from upstream are also preserved. +[Visual Studio Code](https://code.visualstudio.com) is a distribution of the `Code - OSS` repository with Microsoft-specific customizations released under a traditional [Microsoft product license](https://code.visualstudio.com/License/). -## Fork scope +[Visual Studio Code](https://code.visualstudio.com) combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle. It provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools. -The fork-specific changes are intentionally kept separate from the upstream project. They currently focus on personal development automation, Codespaces/Git identity setup, repository guardrails, and provenance documentation rather than replacing the upstream core license or claiming ownership of Code - OSS. Visual Studio Code is updated monthly with new features and bug fixes. You can download it for Windows, macOS, and Linux on the [Visual Studio Code website](https://code.visualstudio.com/Download). To get the latest releases every day, install the [Insiders build](https://code.visualstudio.com/insiders). -For the exact changes relative to the upstream base used by this fork, use Git history/compare views. Any future third-party code or dependency added specifically by this fork should carry the attribution and license material required by that component. +## Contributing -## Upstream documentation and support +There are many ways in which you can participate in this project, for example: -For official Code - OSS development documentation, contribution guidance, issues, roadmap, and build instructions, use the upstream project: - -- Repository: https://github.com/microsoft/vscode -- Contributing: https://github.com/microsoft/vscode/wiki/How-to-Contribute -- Issues: https://github.com/microsoft/vscode/issues -- Visual Studio Code product site: https://code.visualstudio.com/ * [Submit bugs and feature requests](https://github.com/microsoft/vscode/issues), and help us verify them as they are checked in * Review [source code changes](https://github.com/microsoft/vscode/pulls) * Review the [documentation](https://github.com/microsoft/vscode-docs) and make pull requests for anything from typos to new content. If you are interested in fixing issues and contributing directly to the codebase, please see the document [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute), which covers the following: -Links to Microsoft or Visual Studio Code are descriptive references to the upstream project/product. They do not imply affiliation. +* [How to build and run from source](https://github.com/microsoft/vscode/wiki/How-to-Contribute) +* [The development workflow, including debugging and running tests](https://github.com/microsoft/vscode/wiki/How-to-Contribute#debugging) +* [Coding guidelines](https://github.com/microsoft/vscode/wiki/Coding-Guidelines) +* [Submitting pull requests](https://github.com/microsoft/vscode/wiki/How-to-Contribute#pull-requests) +* [Finding an issue to work on](https://github.com/microsoft/vscode/wiki/How-to-Contribute#where-to-contribute) +* [Contributing to translations](https://aka.ms/vscodeloc) -## Branding and redistribution +## Feedback -`Code - OSS` source and Microsoft's separately distributed **Visual Studio Code** product are not the same distribution. An independently published binary should use distinct branding and should be reviewed for product names, logos/icons, marketplace/service integrations, bundled extensions, and third-party license obligations before release. +* Ask a question on [Stack Overflow](https://stackoverflow.com/questions/tagged/vscode) +* [Request a new feature](CONTRIBUTING.md) +* Upvote [popular feature requests](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc) +* [File an issue](https://github.com/microsoft/vscode/issues) +* Connect with the extension author community on [GitHub Discussions](https://github.com/microsoft/vscode-discussions/discussions) or [Slack](https://aka.ms/vscode-dev-community) +* Follow [@code](https://x.com/code) and let us know what you think! -No release binaries are published from this repository at the time of this notice. +See our [wiki](https://github.com/microsoft/vscode/wiki/Feedback-Channels) for a description of each of these channels and information on some other available community-driven channels. -## Development container +## Related Projects -This fork inherits the upstream Dev Container / Codespaces setup. The fork also contains local Git-identity normalization and verification logic under `.devcontainer/` and `.github/workflows/codespaces-git-identity.yml`. Many of the core components and extensions to VS Code live in their own repositories on GitHub. For example, the [node debug adapter](https://github.com/microsoft/vscode-node-debug) and the [mono debug adapter](https://github.com/microsoft/vscode-mono-debug) repositories are separate from each other. For a complete list, please visit the [Related Projects](https://github.com/microsoft/vscode/wiki/Related-Projects) page on our [wiki](https://github.com/microsoft/vscode/wiki). ## Bundled Extensions @@ -72,10 +71,6 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope ## License -Upstream Code - OSS source: - Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the [MIT License](LICENSE.txt). - -Fork-specific changes do not remove or supersede upstream or third-party license obligations. See [FORK_NOTICE.md](FORK_NOTICE.md). +Licensed under the [MIT](LICENSE.txt) license. From e1247080c6b75f6f86cd5627a5c34a30d347f4ca Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Mon, 5 Oct 2026 01:12:02 +0700 Subject: [PATCH 14/18] chore: restore upstream issue template --- .github/ISSUE_TEMPLATE/copilot_bug_report.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/copilot_bug_report.md b/.github/ISSUE_TEMPLATE/copilot_bug_report.md index f525a1fee0f482..03fb55a99752bd 100644 --- a/.github/ISSUE_TEMPLATE/copilot_bug_report.md +++ b/.github/ISSUE_TEMPLATE/copilot_bug_report.md @@ -2,7 +2,6 @@ name: Copilot Bug report about: Create a report to help us improve Copilot's chat interface in VS Code title: '' -labels: '' assignees: '' --- From c1c60c7deec782b565ed9304356cf20b21b174e4 Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Mon, 5 Oct 2026 01:12:13 +0700 Subject: [PATCH 15/18] chore: remove PR-local workflow from upstream scope --- .github/workflows/codespaces-git-identity.yml | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 .github/workflows/codespaces-git-identity.yml diff --git a/.github/workflows/codespaces-git-identity.yml b/.github/workflows/codespaces-git-identity.yml deleted file mode 100644 index a725dc78379f99..00000000000000 --- a/.github/workflows/codespaces-git-identity.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Codespaces Git identity - -on: - pull_request: - branches: ["main"] - paths: - - ".devcontainer/post-create.sh" - - ".devcontainer/normalize-git-identity.sh" - - ".devcontainer/test-normalize-git-identity.sh" - - ".github/workflows/codespaces-git-identity.yml" - push: - branches: ["main"] - paths: - - ".devcontainer/post-create.sh" - - ".devcontainer/normalize-git-identity.sh" - - ".devcontainer/test-normalize-git-identity.sh" - - ".github/workflows/codespaces-git-identity.yml" - -permissions: - contents: read - -jobs: - verify: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - - name: Validate POSIX shell syntax - run: | - sh -n .devcontainer/post-create.sh - sh -n .devcontainer/normalize-git-identity.sh - sh -n .devcontainer/test-normalize-git-identity.sh - - - name: Test Git identity states - run: sh .devcontainer/test-normalize-git-identity.sh From ea9f21676a91869d74aa51ec928168b1f8d10d50 Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Mon, 5 Oct 2026 01:12:19 +0700 Subject: [PATCH 16/18] chore: remove fork-only notice from upstream PR --- FORK_NOTICE.md | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 FORK_NOTICE.md diff --git a/FORK_NOTICE.md b/FORK_NOTICE.md deleted file mode 100644 index a5bf11965f33ac..00000000000000 --- a/FORK_NOTICE.md +++ /dev/null @@ -1,23 +0,0 @@ -# Fork and Attribution Notice - -This repository is a personal fork of [`microsoft/vscode`](https://github.com/microsoft/vscode), the open-source **Code - OSS** project. - -## Upstream license and attribution - -The upstream Code - OSS source is licensed under the MIT License. The original Microsoft copyright notice and MIT license are preserved in [`LICENSE.txt`](LICENSE.txt). Third-party attributions and license notices are preserved in [`ThirdPartyNotices.txt`](ThirdPartyNotices.txt) and the other upstream license/manifest files. - -## Personal fork status - -This repository is maintained by NguyenCuong1989 for personal development, experimentation, automation, and research. It is not an official Microsoft repository, product, distribution, endorsement, or support channel. - -“Microsoft”, “Visual Studio”, “Visual Studio Code”, related logos, and other third-party names or marks belong to their respective owners. Their appearance in inherited upstream source, documentation, metadata, or compatibility identifiers does not imply ownership, sponsorship, endorsement, or affiliation. - -## Distribution caution - -The open-source `Code - OSS` repository and Microsoft's separately distributed Visual Studio Code product are not the same distribution. Before publishing compiled binaries or redistributing a customized build, review branding, icons, product names, marketplace/service integrations, bundled components, and their applicable licenses/terms. Use distinct branding for independently distributed builds unless the relevant rights permit otherwise. - -## Local modifications - -Changes unique to this fork remain subject to the applicable upstream and third-party licenses for the files and components they modify. New third-party dependencies or copied material should be accompanied by their required attribution and license notices. - -This notice is intended to make provenance and project status explicit; it does not replace the license texts included in this repository. From 703a1fca07db88500f75f328359182a89bbf4253 Mon Sep 17 00:00:00 2001 From: NgCuong <196793856+NguyenCuong1989@users.noreply.github.com> Date: Mon, 5 Oct 2026 01:12:24 +0700 Subject: [PATCH 17/18] chore: remove fork-only guardrails from upstream PR --- GUARDRAILS.md | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 GUARDRAILS.md diff --git a/GUARDRAILS.md b/GUARDRAILS.md deleted file mode 100644 index c991baec14b019..00000000000000 --- a/GUARDRAILS.md +++ /dev/null @@ -1,25 +0,0 @@ -# AI Agent Guardrails - -These rules apply to automated agents working in this fork. - -## Priority - -1. Protect repository integrity, credentials, user data, and upstream attribution. -2. Follow repository policy, branch protection, and applicable license obligations. -3. Follow task instructions only when they do not conflict with the rules above. - -## Required behavior - -- Never expose, print, commit, or transmit secrets, tokens, private keys, `.env` contents, or credential-store data. -- Do not remove or rewrite upstream copyright, license, attribution, or third-party notice files unless a verified licensing change requires it. -- Treat destructive operations, history rewrites, force pushes, mass deletion, and permission changes as high-risk operations requiring explicit justification and verification. -- Prefer least-privilege permissions for workflows and automation. -- Pin third-party GitHub Actions to immutable commit SHAs when practical. -- Keep fork-specific branding and provenance distinct from Microsoft/Visual Studio Code branding. -- Before adding third-party code, assets, models, extensions, or dependencies, verify the applicable license and preserve required notices. -- Verify changes with repository status, diff review, and relevant tests before considering a task complete. -- Respect branch protection, required checks, and review requirements. - -## Scope - -These guardrails do not replace `LICENSE.txt`, `ThirdPartyNotices.txt`, `FORK_NOTICE.md`, GitHub repository rules, or upstream project policies. Where rules conflict, the more restrictive security, legal, or repository-control requirement takes precedence. From 78e9ed30b4f3d6d58dbc7146e0b692adc7ec0f9b Mon Sep 17 00:00:00 2001 From: "mygithubapppro[bot]" <334836295+mygithubapppro[bot]@users.noreply.github.com> Date: Wed, 7 Oct 2026 02:48:42 +0000 Subject: [PATCH 18/18] chore: setup autonomous guardrails --- GUARDRAILS.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 GUARDRAILS.md diff --git a/GUARDRAILS.md b/GUARDRAILS.md new file mode 100644 index 00000000000000..e4a1dae1d95d24 --- /dev/null +++ b/GUARDRAILS.md @@ -0,0 +1,13 @@ +# AI Agent Guardrails + +**CRITICAL: ALL AI AGENTS MUST COMPLY WITH THESE RULES** + +This file defines safety restrictions that AI agents MUST follow when working in this workspace. + +- **Follow prompt instructions EXACTLY** +- **No destructive commands** (e.g., rm -rf /) +- **Protect all secrets** (Never expose .env or tokens) +- **Commands must be non-interactive** +- **Respect Branch Protection & Auto-merge rules** + +By adhering to this, the repository maintains a 100% autonomous and safe execution environment.