{"owner":"projectcalico","repo":"calico","hasSkills":true,"totalSkillsCount":4,"totalTokensCount":5367,"categories":["copilot-instructions","mcp-config","marketplace","plugin-manifest"],"hasMcp":true,"mcpConfig":{"mcpServers":{"calico":{"command":"npx","args":["-y","@modelcontextprotocol/server-calico"]}}},"found":[".github/copilot-instructions.md",".cursor/mcp.json",".claude-plugin/marketplace.json",".claude-plugin/plugin.json"],"skills":{".github/copilot-instructions.md":"# Calico Repository Copilot Instructions\n\n## Repository Overview\n\nThis is the main **Project Calico** repository - an open-source container networking and security solution. Calico provides data plane choice (eBPF, standard Linux, Windows, VPP), advanced security features, and scales to power 8M+ nodes daily. The repository is a large monorepo (~2000 Go files) containing multiple interconnected components.\n\n**Key Stats:**\n- Type: Kubernetes networking and security platform\n- Size: Large monorepo with 20+ components\n- Languages: Go (primary), C/eBPF, Python, Shell, TypeScript/React\n- Runtime: Kubernetes, Docker containers\n- Build System: Make + Docker-based reproducible builds\n- CI/CD: Semaphore CI with extensive end-to-end testing\n\n## Build Instructions\n\n### Prerequisites\n- **Docker** - Required for all builds (validated: Docker Engine 28.0.4+)\n- **Make** - Primary build orchestration\n- **git** - Repository management\n- **Linux** - Required build environment (Ubuntu 24.04+ recommended)\n\n### Core Build Commands\n\n**ALWAYS run these commands from the repository root unless specified otherwise.**\n\n#### Bootstrap/Setup\n```bash\n# No specific bootstrap needed - Docker handles toolchain\n# Clean previous builds if needed:\nmake clean\n```\n\n#### Building All Components\n```bash\n# Build all Calico container images (WARNING: takes 30+ minutes)\nmake image\n\n# Build for specific architecture\nmake image ARCH=arm64\n\n# Clean build (removes caches)\nmake clean image\n```\n\n#### Building Individual Components\n```bash\n# Build specific component (much faster - ~2-5 minutes)\nmake -C calicoctl build      # CLI tool\nmake -C felix build          # Core per-host networking/security agent  \nmake -C node build           # Docker image container, includes Felix, confd, bird, and startup/monitoring scripts.\nmake -C typha build          # Datastore proxy\n```\n\n#### Testing\n```bash\n# Run unit tests for specific component (recommended)\nmake -C calicoctl test       # Takes ~2-3 minutes\nmake -C felix test          # Takes ~5-10 minutes\n\n# WARNING: Do NOT run 'make test' at root - takes hours\n# Each directory has its own test suite - run individually\n```\n\nCalico has multiple layers of tests:\n\n- Unit tests, which are generally fast and local to the package.\n- FV tests, which run one component in isolation, typically in docker containers.\n- System tests, which run most of Calico with some mocking.\n- End-to-end tests, which run the entire system in a real kubernetes cluster.\n\n##### Felix tests\n\nFelix's FV tests are in the felix/fv directory. Since calico supports multiple dataplanes, the tests can be run in multiple modes. Running single tests for validation of work recommended, but full suite takes hours.\n\nFelix FVs use the ginkgo DSL, resulting in test IDs based on the nesting Context()/Describe() blocks in the file.\n\nTo run a single test:\n\n- Temporarily change the `It()` block in the file to `FIt()` to \"focus\" the test.\n- Run the test in iptables mode:\n  `make -C felix fv GINKGO_ARGS=\"-ginkgo.v\"`\n- Run the test in eBPF mode with iptables (in CI, only tests whose name contains\n  `_BPF-SAFE_` or `_BPF_` run in this mode; name a new BPF-mode test accordingly or\n  CI will never run it):\n  `make -C felix fv-bpf GINKGO_ARGS=\"-ginkgo.v\"`\n- Run the test in nftables mode:\n  `make -C felix fv(-bpf) GINKGO_ARGS=\"-ginkgo.v\" FELIX_FV_NFTABLES=Enabled`\n\nTo increase verbosity of logs, run with FV_FELIX_LOG_LEVEL=debug.\n\nOther useful flags: in GINKGO_ARGS, `-ginkgo.dryRun` disables execution, only prints the test names. `-ginkgo.focus` can be used to run a specific test by regex (but the ID that is matches includes the Context() and Describe() blocks headings and formatting characters).\n\nFelix's \"brain\" is the calculation graph in `felix/calc`, this component has its own test harness that tries to validate its invariants and correctness. Changes to the calculation graph should include additional calculation graph FV tests (see `felix/calc/calc_graph_fv_test.go`).\n\n##### Ginkgo\n\nWe are trying to migrate away from using Ginkgo.  When adding new tests, prefer to use vanilla `go test` over Ginkgo *unless* there is an established pattern of using ginkgo to test a particular package.  New packages should have `go test` tests only.\n\n#### Linting and Validation\n```bash\n# YAML linting (always works)\nmake yaml-lint\n\n# Full CI preflight checks (WARNING: takes 10+ minutes)\nmake ci-preflight-checks\n\n# Individual validation steps:\nmake check-go-mod           # Go module validation\nmake check-dockerfiles      # Dockerfile linting  \nmake check-language         # Language checks\nmake go-vet                # Go static analysis\n```\n\n## Critical Build Notes\n\n### Docker Dependencies\n- All builds run inside Docker containers using `calico/go-build:1.24.6-llvm18.1.8-k8s1.32.7`\n- **NEVER** run `make ci` or `make cd` locally - these are destructive CI-only targets\n- Build errors like \"docker image rm\" failures during clean are normal and ignored\n\n### Build Time Expectations\n- Individual component build: 2-5 minutes\n- Unit tests per component: 2-10 minutes  \n- Full image build: 30+ minutes\n- CI preflight checks: 10+ minutes\n- yamllint: ~30 seconds\n\n### Common Build Failures & Workarounds\n1. **\"failed to remove builder\" during clean** - Normal, ignored by Makefile\n2. **Go module download timeouts** - CI uses `GOFLAGS=\"-mod=readonly\"` to prevent downloads\n3. **Permission errors in Docker** - Uses `LOCAL_USER_ID=1001` for consistency\n4. **eBPF build failures** - Felix requires specific libbpf setup: `make -C felix clone-libbpf`\n\n## Repository Architecture\n\n### Major Components (in dependency order)\n```\nlibcalico-go/     - Core Go client library and data model\napi/              - Calico API definitions (CRDs, protobuf), exported as its own repo (hence own go.mod)\nfelix/            - Core networking agent (eBPF/iptables dataplane)\ntypha/            - Datastore fan-out proxy for scaling\nnode/             - Node initialization and management, docker image containing Felix, confd, bird, and startup/monitoring scripts.\ncalicoctl/        - CLI tool for managing Calico\nkube-controllers/ - Kubernetes-specific controllers\ncni-plugin/       - Kubernetes CNI integration\nconfd/            - Configuration management\n```\n\n### Configuration Files Locations\n- **Go modules**: `go.mod`, `go.sum` (root)\n- **Build config**: `metadata.mk`, `lib.Makefile` \n- **Linting**: `.yamllint.yaml`, `.golangci.yaml` (per component)\n- **CI/CD**: `.semaphore/semaphore.yml` (generated from template)\n- **Docker**: `Dockerfile.*` in each component directory\n\n### Key Source Files\n- `felix/daemon/daemon.go` - Felix main daemon  \n- `node/pkg/lifecycle/startup/startup.go` - Node initialization\n- `calicoctl/calicoctl/calicoctl.go` - CLI entry point\n- `kube-controllers/cmd/kube-controllers/main.go` - Controllers main\n\n## Validation Pipeline\n\n### Pre-commit Checks (CI runs these)\n1. `make check-go-mod` - Go module consistency\n2. `make verify-go-mods` - Cross-component module verification  \n3. `make check-dockerfiles` - Dockerfile validation\n4. `make check-language` - Language and content checks\n5. `make generate` - Regenerate generated files; these should be checked in.  Required when changing APIs, Felix configuration, semaphore CI config, etc. \n6. `make fix-changed` - Auto-fix formatting issues in files changed vs master.\n7. `make yaml-lint` - YAML validation\n8. `make go-vet` - Go static analysis\n\n### CI\n\nCalico has a comprehensive CI pipeline, which uses SemaphoreCI.  The main pipeline is defined in `.semaphore/semaphore.yml`.  This file is generated from template block, located in `.semaphore/semaphore.yml.d`.\n\nWhen changing the CI pipeline, edit the blocks in `.semaphore/semaphore.yml.d` and run `make gen-semaphore-yaml` to update generated files.  Generated files should be checked in.\n\n### Manual Validation Commands\n```bash\n# Check if your changes broke anything:\nmake check-dirty          # Ensure no uncommitted generated files\nmake -C <component> test   # Run relevant component tests\nmake yaml-lint            # Quick validation\n```\n\n### GitHub Workflows\n- **yamllint.yml** - YAML validation on PRs\n- **codeql.yml** - Security scanning  \n- **check_release_notes.yml** - Release note validation\n- **inactive_issues.yml** - Issue management\n\n## Developer Workflow\n\n### Making Changes\n1. **Always run component-specific tests** after changes\n2. **Use `make clean` sparingly** - builds are cached for speed\n3. **Run `make yaml-lint`** before committing YAML changes\n4. **Check `make -C <component> help`** for component-specific targets\n\n### Common Tasks\n```bash\n# Add new Go dependency:\ncd <component> && go mod tidy && cd .. && make check-go-mod\n\n# Update generated files:\nmake generate\n\n# Fix formatting issues:\nmake fix-changed\n\n# Test specific component changes:\nmake -C <component> build test\n```\n\n### Architecture Dependencies\n- **felix** depends on: libcalico-go, api\n- **node** depends on: felix, confd, libcalico-go\n- **calicoctl** depends on: libcalico-go, kube-controllers\n- **All components** use: api, libcalico-go\n\n## Quick Reference\n\n### Essential Commands (most reliable)\n```bash\nmake clean                    # Clean all components\nmake -C <component> build     # Build single component  \nmake -C <component> test      # Test single component\nmake yaml-lint               # Fast validation\nmake image                   # Build all images (slow)\n```\n\n### Files to Always Check\n- `DEVELOPER_GUIDE.md` - Comprehensive development guide\n- `CONTRIBUTING.md` - Contribution guidelines and PR process\n- Component `README.md` files for specific build instructions\n- Component `Makefile` for available targets\n\n## PR Requirements\n\n**ALWAYS** use the PR template (`.github/PULL_REQUEST_TEMPLATE.md`) when submitting pull requests. The only mandatory section is the **Release Note** — fill it in with a one-line summary of the user-facing impact of the change. Take a broad view of \"user-facing\": bug fixes, new features, performance improvements, and behavioral changes all qualify. If there is genuinely no user-facing impact, write \"None\".\n\nEvery PR needs one docs label (`docs-pr-required`, `docs-completed`, or `docs-not-required`) and one release note label (`release-note-required` or `release-note-not-required`). Optional: `cherry-pick-candidate` (bug fix backports), `needs-operator-pr` (requires operator change).\n\n## AI-assisted contribution policy\n\n[`AI_POLICY.md`](../AI_POLICY.md) at the repo root governs contributions written with AI assistance. The parts that affect what you produce:\n\n- The PR description discloses the assistance - the PR template has an **AI assistance** line for it.\n- Never add an AI co-author or `Assisted-By:` trailer to a commit.\n- The human author has to be able to explain the change without you, so leave the code and the PR description in a state they can defend.\n- On review threads, the only reply you may post for them is one that points at the fix commit (\"Done in abc1234\"). Explanations, pushback, and questions about review feedback come from the human.\n\n## Documentation map\n\nCalico's docs are split by purpose. Architecture lives in\n`DESIGN.md` files; operational guidance (build, test, debug)\nlives in `CLAUDE.md` / `AGENTS.md`; path-scoped review rules\nlive under `.github/instructions/*.instructions.md`. Do not look\nfor architecture in `CLAUDE.md`.\n\n- `<component>/DESIGN.md` — architecture, invariants, embedded\n  per-section review notes. Read before writing or reviewing a\n  change in that component.\n- Complex components have an index: [`felix/DESIGN.md`](../felix/DESIGN.md)\n  lists per-topic sub-designs under [`felix/design/`](../felix/design/)\n  with an \"applies to\" glob each. A PR touching multiple globs\n  must load every matching sub-design.\n- Cross-component subsystems live under `design/<topic>/` at the\n  repo root (e.g. [`design/ipam/`](../design/ipam/),\n  [`design/syncer/`](../design/syncer/)), with discoverability\n  pointer stubs in consumer subdirectories.\n- [`.github/instructions/*.instructions.md`](instructions/) are\n  thin path-scoped pointers to `DESIGN.md` files plus meta-rules\n  (the update rule, the `@copilot` invocation pattern). They do\n  not restate design content — always read the pointed-at\n  `DESIGN.md`.\nA design doc records the design, not the change that introduced\nit, and **the default is no edit**. Edit one only when a sentence\nin it is now false, a new invariant exists that a future change\ncould silently break, or a new concept exists that the doc's\nmental model does not name. A new behaviour, flag, field, config\nkey, or bug fix is not by itself any of those. A warranted edit\nlands **in the same PR as the code**, not in a follow-up, and is\nnormally **one to three lines** in the section that already covers\nthe area — not a new heading, and never a paraphrase of the commit\nmessage. For components with a design directory (Felix uses\n`felix/design/`), it goes in the sub-design covering the area, and\nin the index only when the sub-design table or scope changes.\n\n**If in doubt, make no change** — name what you considered and\nskipped in the PR description so a reviewer can ask for it. (The\nCopilot coding agent and automated review have no interactive\nuser; a human-driven agent proposes the edit and waits for\napproval instead.) A missing doc update the author explicitly\nconsidered and skipped is not a review blocker on its own.\n\nThis rule mirrors\n[`.claude/CLAUDE.md` → Documentation map](../.claude/CLAUDE.md) —\nkeep the two in sync. The altitude rule, a worked example and the\nreviewer-side criteria are in\n[`.claude/skills/design-doc-edits/SKILL.md`](../.claude/skills/design-doc-edits/SKILL.md);\nread it before editing a design doc or reviewing a design-doc\ndiff.\n\n## Tests required for code changes\n\nA PR that fixes a bug must include a test in the same PR that reproduces the bug. A PR that adds a feature must include tests that exercise the feature. A change without a corresponding test is the exception, not the default, and requires explicit justification (untestable interface boundary, infrastructure-only change).\n\nPrefer the lowest test level that meaningfully exercises the change:\n\n1. **Unit tests** — deterministic, fast, hermetic. Always the first choice when the behaviour can be reached without real infrastructure. UT failures point at the change directly.\n2. **Functional verification (FV) tests** — real binary against real infrastructure (containers, dataplane, kernel). Catch integration bugs UT cannot, but slower, harder to write, and can flake. Use FV when the integration *is* the thing being tested.\n3. **End-to-end / Kubernetes tests** — full stack against a real cluster. Reserve for behaviour that genuinely requires it.\n\nTests-only follow-ups are an anti-pattern: by the time they land, the change has shipped untested. A reviewer who sees \"I tested it manually\" or \"tests in a follow-up PR\" should push back.\n\nPer-area sub-designs carry the area-specific test conventions on top of this general rule (e.g. [`felix/design/bpf-tests.md`](../felix/design/bpf-tests.md) for the BPF dataplane). This rule mirrors [`.claude/CLAUDE.md` → Tests required for code changes](../.claude/CLAUDE.md) — keep them in sync.\n\n## eBPF Dataplane Review\n\nThe eBPF dataplane design is split across the `bpf-*.md` files under [`felix/design/`](../felix/design/), with [`bpf-overview.md`](../felix/design/bpf-overview.md) as the always-pulled umbrella (packet-path mental model, fast-path cost rule, cross-cutting review rules) and topic-specific sub-designs covering each area of the dataplane. See [`felix/DESIGN.md`](../felix/DESIGN.md) for the authoritative table mapping code paths to sub-design files.\n\nPath-specific reviewer rules live in [`.github/instructions/bpf.instructions.md`](instructions/bpf.instructions.md) — a single thin pointer that scopes to all BPF paths and directs the agent to load the matching sub-design(s) from [`felix/DESIGN.md`](../felix/DESIGN.md)'s topic table, with `bpf-overview.md` as the always-read companion. The doc-update rule above applies. For BPF, the changes that usually earn a doc edit are a new sub-program, CT flag, mark bit, map or map field, or a change to the packet path or forwarding decision — candidates for the test above, not triggers on their own.\n\n## Calico API Review\n\nOn clusters using the `projectcalico.org/v3` CRDs directly, the Go validator in `libcalico-go/lib/validator/v3` only runs for the policy kinds (via the `calico-webhooks` admission webhook); every other kind gets only the CRD schema. [`.github/instructions/calico-api.instructions.md`](instructions/calico-api.instructions.md) scopes to the API types, validator and webhook, and lists the validation every selector and name field needs.\n\n## Helm Chart Review\n\nThe user-facing install and upgrade instructions are hand-written READMEs ([`charts/tigera-operator/README.md`](../charts/tigera-operator/README.md) and [`charts/crd.projectcalico.org.v1/README.md`](../charts/crd.projectcalico.org.v1/README.md)), not generated, so they drift silently when a chart change alters the steps a user has to run. [`.github/instructions/helm-charts.instructions.md`](instructions/helm-charts.instructions.md) scopes to `charts/**` and directs the reviewer to cross-check those READMEs against the change. These READMEs are **user-facing documentation, not design docs**, so the design-doc rule above — with its default of no edit — does not apply to them: a chart change that alters how a user installs or upgrades Calico must update them, and there the safe default is to update. That covers moving resources between charts (CRDs especially), adding or removing a manual step, renaming a chart, and changing a documented values key or example command.\n\n`charts/calico` is the exception, and it is exempt: nobody installs it with Helm. It is only the template source that `make gen-manifests` renders into `manifests/calico*.yaml`, so the rendered manifests are the whole contract - no Helm upgrade path, no install docs to sync. Review such a PR by reading the regenerated `manifests/` diff. Its `values.yaml` keys are an internal interface rather than a user-facing one: renaming one is fine, but the same PR has to update the in-repo consumers (`manifests/generate.sh`, the root `Makefile`, `hack/check-images-availability.sh`, and the overlays in `charts/values/`).\n\n### Trust These Instructions\nThese instructions are based on actual testing of the build system. Only search for additional information if you encounter specific errors not covered here or if the repository structure has changed significantly.",".cursor/mcp.json":"# Model Context Protocol (MCP) Configuration\n\nPath: `.cursor/mcp.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.cursor/mcp.json)",".claude-plugin/marketplace.json":"# Claude Plugin Marketplace Catalog\n\nPath: `.claude-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.claude-plugin/marketplace.json)",".claude-plugin/plugin.json":"# claude-plugin Plugin Manifest\n\nPath: `.claude-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.claude-plugin/plugin.json)"},"files":{".github/copilot-instructions.md":"# Calico Repository Copilot Instructions\n\n## Repository Overview\n\nThis is the main **Project Calico** repository - an open-source container networking and security solution. Calico provides data plane choice (eBPF, standard Linux, Windows, VPP), advanced security features, and scales to power 8M+ nodes daily. The repository is a large monorepo (~2000 Go files) containing multiple interconnected components.\n\n**Key Stats:**\n- Type: Kubernetes networking and security platform\n- Size: Large monorepo with 20+ components\n- Languages: Go (primary), C/eBPF, Python, Shell, TypeScript/React\n- Runtime: Kubernetes, Docker containers\n- Build System: Make + Docker-based reproducible builds\n- CI/CD: Semaphore CI with extensive end-to-end testing\n\n## Build Instructions\n\n### Prerequisites\n- **Docker** - Required for all builds (validated: Docker Engine 28.0.4+)\n- **Make** - Primary build orchestration\n- **git** - Repository management\n- **Linux** - Required build environment (Ubuntu 24.04+ recommended)\n\n### Core Build Commands\n\n**ALWAYS run these commands from the repository root unless specified otherwise.**\n\n#### Bootstrap/Setup\n```bash\n# No specific bootstrap needed - Docker handles toolchain\n# Clean previous builds if needed:\nmake clean\n```\n\n#### Building All Components\n```bash\n# Build all Calico container images (WARNING: takes 30+ minutes)\nmake image\n\n# Build for specific architecture\nmake image ARCH=arm64\n\n# Clean build (removes caches)\nmake clean image\n```\n\n#### Building Individual Components\n```bash\n# Build specific component (much faster - ~2-5 minutes)\nmake -C calicoctl build      # CLI tool\nmake -C felix build          # Core per-host networking/security agent  \nmake -C node build           # Docker image container, includes Felix, confd, bird, and startup/monitoring scripts.\nmake -C typha build          # Datastore proxy\n```\n\n#### Testing\n```bash\n# Run unit tests for specific component (recommended)\nmake -C calicoctl test       # Takes ~2-3 minutes\nmake -C felix test          # Takes ~5-10 minutes\n\n# WARNING: Do NOT run 'make test' at root - takes hours\n# Each directory has its own test suite - run individually\n```\n\nCalico has multiple layers of tests:\n\n- Unit tests, which are generally fast and local to the package.\n- FV tests, which run one component in isolation, typically in docker containers.\n- System tests, which run most of Calico with some mocking.\n- End-to-end tests, which run the entire system in a real kubernetes cluster.\n\n##### Felix tests\n\nFelix's FV tests are in the felix/fv directory. Since calico supports multiple dataplanes, the tests can be run in multiple modes. Running single tests for validation of work recommended, but full suite takes hours.\n\nFelix FVs use the ginkgo DSL, resulting in test IDs based on the nesting Context()/Describe() blocks in the file.\n\nTo run a single test:\n\n- Temporarily change the `It()` block in the file to `FIt()` to \"focus\" the test.\n- Run the test in iptables mode:\n  `make -C felix fv GINKGO_ARGS=\"-ginkgo.v\"`\n- Run the test in eBPF mode with iptables (in CI, only tests whose name contains\n  `_BPF-SAFE_` or `_BPF_` run in this mode; name a new BPF-mode test accordingly or\n  CI will never run it):\n  `make -C felix fv-bpf GINKGO_ARGS=\"-ginkgo.v\"`\n- Run the test in nftables mode:\n  `make -C felix fv(-bpf) GINKGO_ARGS=\"-ginkgo.v\" FELIX_FV_NFTABLES=Enabled`\n\nTo increase verbosity of logs, run with FV_FELIX_LOG_LEVEL=debug.\n\nOther useful flags: in GINKGO_ARGS, `-ginkgo.dryRun` disables execution, only prints the test names. `-ginkgo.focus` can be used to run a specific test by regex (but the ID that is matches includes the Context() and Describe() blocks headings and formatting characters).\n\nFelix's \"brain\" is the calculation graph in `felix/calc`, this component has its own test harness that tries to validate its invariants and correctness. Changes to the calculation graph should include additional calculation graph FV tests (see `felix/calc/calc_graph_fv_test.go`).\n\n##### Ginkgo\n\nWe are trying to migrate away from using Ginkgo.  When adding new tests, prefer to use vanilla `go test` over Ginkgo *unless* there is an established pattern of using ginkgo to test a particular package.  New packages should have `go test` tests only.\n\n#### Linting and Validation\n```bash\n# YAML linting (always works)\nmake yaml-lint\n\n# Full CI preflight checks (WARNING: takes 10+ minutes)\nmake ci-preflight-checks\n\n# Individual validation steps:\nmake check-go-mod           # Go module validation\nmake check-dockerfiles      # Dockerfile linting  \nmake check-language         # Language checks\nmake go-vet                # Go static analysis\n```\n\n## Critical Build Notes\n\n### Docker Dependencies\n- All builds run inside Docker containers using `calico/go-build:1.24.6-llvm18.1.8-k8s1.32.7`\n- **NEVER** run `make ci` or `make cd` locally - these are destructive CI-only targets\n- Build errors like \"docker image rm\" failures during clean are normal and ignored\n\n### Build Time Expectations\n- Individual component build: 2-5 minutes\n- Unit tests per component: 2-10 minutes  \n- Full image build: 30+ minutes\n- CI preflight checks: 10+ minutes\n- yamllint: ~30 seconds\n\n### Common Build Failures & Workarounds\n1. **\"failed to remove builder\" during clean** - Normal, ignored by Makefile\n2. **Go module download timeouts** - CI uses `GOFLAGS=\"-mod=readonly\"` to prevent downloads\n3. **Permission errors in Docker** - Uses `LOCAL_USER_ID=1001` for consistency\n4. **eBPF build failures** - Felix requires specific libbpf setup: `make -C felix clone-libbpf`\n\n## Repository Architecture\n\n### Major Components (in dependency order)\n```\nlibcalico-go/     - Core Go client library and data model\napi/              - Calico API definitions (CRDs, protobuf), exported as its own repo (hence own go.mod)\nfelix/            - Core networking agent (eBPF/iptables dataplane)\ntypha/            - Datastore fan-out proxy for scaling\nnode/             - Node initialization and management, docker image containing Felix, confd, bird, and startup/monitoring scripts.\ncalicoctl/        - CLI tool for managing Calico\nkube-controllers/ - Kubernetes-specific controllers\ncni-plugin/       - Kubernetes CNI integration\nconfd/            - Configuration management\n```\n\n### Configuration Files Locations\n- **Go modules**: `go.mod`, `go.sum` (root)\n- **Build config**: `metadata.mk`, `lib.Makefile` \n- **Linting**: `.yamllint.yaml`, `.golangci.yaml` (per component)\n- **CI/CD**: `.semaphore/semaphore.yml` (generated from template)\n- **Docker**: `Dockerfile.*` in each component directory\n\n### Key Source Files\n- `felix/daemon/daemon.go` - Felix main daemon  \n- `node/pkg/lifecycle/startup/startup.go` - Node initialization\n- `calicoctl/calicoctl/calicoctl.go` - CLI entry point\n- `kube-controllers/cmd/kube-controllers/main.go` - Controllers main\n\n## Validation Pipeline\n\n### Pre-commit Checks (CI runs these)\n1. `make check-go-mod` - Go module consistency\n2. `make verify-go-mods` - Cross-component module verification  \n3. `make check-dockerfiles` - Dockerfile validation\n4. `make check-language` - Language and content checks\n5. `make generate` - Regenerate generated files; these should be checked in.  Required when changing APIs, Felix configuration, semaphore CI config, etc. \n6. `make fix-changed` - Auto-fix formatting issues in files changed vs master.\n7. `make yaml-lint` - YAML validation\n8. `make go-vet` - Go static analysis\n\n### CI\n\nCalico has a comprehensive CI pipeline, which uses SemaphoreCI.  The main pipeline is defined in `.semaphore/semaphore.yml`.  This file is generated from template block, located in `.semaphore/semaphore.yml.d`.\n\nWhen changing the CI pipeline, edit the blocks in `.semaphore/semaphore.yml.d` and run `make gen-semaphore-yaml` to update generated files.  Generated files should be checked in.\n\n### Manual Validation Commands\n```bash\n# Check if your changes broke anything:\nmake check-dirty          # Ensure no uncommitted generated files\nmake -C <component> test   # Run relevant component tests\nmake yaml-lint            # Quick validation\n```\n\n### GitHub Workflows\n- **yamllint.yml** - YAML validation on PRs\n- **codeql.yml** - Security scanning  \n- **check_release_notes.yml** - Release note validation\n- **inactive_issues.yml** - Issue management\n\n## Developer Workflow\n\n### Making Changes\n1. **Always run component-specific tests** after changes\n2. **Use `make clean` sparingly** - builds are cached for speed\n3. **Run `make yaml-lint`** before committing YAML changes\n4. **Check `make -C <component> help`** for component-specific targets\n\n### Common Tasks\n```bash\n# Add new Go dependency:\ncd <component> && go mod tidy && cd .. && make check-go-mod\n\n# Update generated files:\nmake generate\n\n# Fix formatting issues:\nmake fix-changed\n\n# Test specific component changes:\nmake -C <component> build test\n```\n\n### Architecture Dependencies\n- **felix** depends on: libcalico-go, api\n- **node** depends on: felix, confd, libcalico-go\n- **calicoctl** depends on: libcalico-go, kube-controllers\n- **All components** use: api, libcalico-go\n\n## Quick Reference\n\n### Essential Commands (most reliable)\n```bash\nmake clean                    # Clean all components\nmake -C <component> build     # Build single component  \nmake -C <component> test      # Test single component\nmake yaml-lint               # Fast validation\nmake image                   # Build all images (slow)\n```\n\n### Files to Always Check\n- `DEVELOPER_GUIDE.md` - Comprehensive development guide\n- `CONTRIBUTING.md` - Contribution guidelines and PR process\n- Component `README.md` files for specific build instructions\n- Component `Makefile` for available targets\n\n## PR Requirements\n\n**ALWAYS** use the PR template (`.github/PULL_REQUEST_TEMPLATE.md`) when submitting pull requests. The only mandatory section is the **Release Note** — fill it in with a one-line summary of the user-facing impact of the change. Take a broad view of \"user-facing\": bug fixes, new features, performance improvements, and behavioral changes all qualify. If there is genuinely no user-facing impact, write \"None\".\n\nEvery PR needs one docs label (`docs-pr-required`, `docs-completed`, or `docs-not-required`) and one release note label (`release-note-required` or `release-note-not-required`). Optional: `cherry-pick-candidate` (bug fix backports), `needs-operator-pr` (requires operator change).\n\n## AI-assisted contribution policy\n\n[`AI_POLICY.md`](../AI_POLICY.md) at the repo root governs contributions written with AI assistance. The parts that affect what you produce:\n\n- The PR description discloses the assistance - the PR template has an **AI assistance** line for it.\n- Never add an AI co-author or `Assisted-By:` trailer to a commit.\n- The human author has to be able to explain the change without you, so leave the code and the PR description in a state they can defend.\n- On review threads, the only reply you may post for them is one that points at the fix commit (\"Done in abc1234\"). Explanations, pushback, and questions about review feedback come from the human.\n\n## Documentation map\n\nCalico's docs are split by purpose. Architecture lives in\n`DESIGN.md` files; operational guidance (build, test, debug)\nlives in `CLAUDE.md` / `AGENTS.md`; path-scoped review rules\nlive under `.github/instructions/*.instructions.md`. Do not look\nfor architecture in `CLAUDE.md`.\n\n- `<component>/DESIGN.md` — architecture, invariants, embedded\n  per-section review notes. Read before writing or reviewing a\n  change in that component.\n- Complex components have an index: [`felix/DESIGN.md`](../felix/DESIGN.md)\n  lists per-topic sub-designs under [`felix/design/`](../felix/design/)\n  with an \"applies to\" glob each. A PR touching multiple globs\n  must load every matching sub-design.\n- Cross-component subsystems live under `design/<topic>/` at the\n  repo root (e.g. [`design/ipam/`](../design/ipam/),\n  [`design/syncer/`](../design/syncer/)), with discoverability\n  pointer stubs in consumer subdirectories.\n- [`.github/instructions/*.instructions.md`](instructions/) are\n  thin path-scoped pointers to `DESIGN.md` files plus meta-rules\n  (the update rule, the `@copilot` invocation pattern). They do\n  not restate design content — always read the pointed-at\n  `DESIGN.md`.\nA design doc records the design, not the change that introduced\nit, and **the default is no edit**. Edit one only when a sentence\nin it is now false, a new invariant exists that a future change\ncould silently break, or a new concept exists that the doc's\nmental model does not name. A new behaviour, flag, field, config\nkey, or bug fix is not by itself any of those. A warranted edit\nlands **in the same PR as the code**, not in a follow-up, and is\nnormally **one to three lines** in the section that already covers\nthe area — not a new heading, and never a paraphrase of the commit\nmessage. For components with a design directory (Felix uses\n`felix/design/`), it goes in the sub-design covering the area, and\nin the index only when the sub-design table or scope changes.\n\n**If in doubt, make no change** — name what you considered and\nskipped in the PR description so a reviewer can ask for it. (The\nCopilot coding agent and automated review have no interactive\nuser; a human-driven agent proposes the edit and waits for\napproval instead.) A missing doc update the author explicitly\nconsidered and skipped is not a review blocker on its own.\n\nThis rule mirrors\n[`.claude/CLAUDE.md` → Documentation map](../.claude/CLAUDE.md) —\nkeep the two in sync. The altitude rule, a worked example and the\nreviewer-side criteria are in\n[`.claude/skills/design-doc-edits/SKILL.md`](../.claude/skills/design-doc-edits/SKILL.md);\nread it before editing a design doc or reviewing a design-doc\ndiff.\n\n## Tests required for code changes\n\nA PR that fixes a bug must include a test in the same PR that reproduces the bug. A PR that adds a feature must include tests that exercise the feature. A change without a corresponding test is the exception, not the default, and requires explicit justification (untestable interface boundary, infrastructure-only change).\n\nPrefer the lowest test level that meaningfully exercises the change:\n\n1. **Unit tests** — deterministic, fast, hermetic. Always the first choice when the behaviour can be reached without real infrastructure. UT failures point at the change directly.\n2. **Functional verification (FV) tests** — real binary against real infrastructure (containers, dataplane, kernel). Catch integration bugs UT cannot, but slower, harder to write, and can flake. Use FV when the integration *is* the thing being tested.\n3. **End-to-end / Kubernetes tests** — full stack against a real cluster. Reserve for behaviour that genuinely requires it.\n\nTests-only follow-ups are an anti-pattern: by the time they land, the change has shipped untested. A reviewer who sees \"I tested it manually\" or \"tests in a follow-up PR\" should push back.\n\nPer-area sub-designs carry the area-specific test conventions on top of this general rule (e.g. [`felix/design/bpf-tests.md`](../felix/design/bpf-tests.md) for the BPF dataplane). This rule mirrors [`.claude/CLAUDE.md` → Tests required for code changes](../.claude/CLAUDE.md) — keep them in sync.\n\n## eBPF Dataplane Review\n\nThe eBPF dataplane design is split across the `bpf-*.md` files under [`felix/design/`](../felix/design/), with [`bpf-overview.md`](../felix/design/bpf-overview.md) as the always-pulled umbrella (packet-path mental model, fast-path cost rule, cross-cutting review rules) and topic-specific sub-designs covering each area of the dataplane. See [`felix/DESIGN.md`](../felix/DESIGN.md) for the authoritative table mapping code paths to sub-design files.\n\nPath-specific reviewer rules live in [`.github/instructions/bpf.instructions.md`](instructions/bpf.instructions.md) — a single thin pointer that scopes to all BPF paths and directs the agent to load the matching sub-design(s) from [`felix/DESIGN.md`](../felix/DESIGN.md)'s topic table, with `bpf-overview.md` as the always-read companion. The doc-update rule above applies. For BPF, the changes that usually earn a doc edit are a new sub-program, CT flag, mark bit, map or map field, or a change to the packet path or forwarding decision — candidates for the test above, not triggers on their own.\n\n## Calico API Review\n\nOn clusters using the `projectcalico.org/v3` CRDs directly, the Go validator in `libcalico-go/lib/validator/v3` only runs for the policy kinds (via the `calico-webhooks` admission webhook); every other kind gets only the CRD schema. [`.github/instructions/calico-api.instructions.md`](instructions/calico-api.instructions.md) scopes to the API types, validator and webhook, and lists the validation every selector and name field needs.\n\n## Helm Chart Review\n\nThe user-facing install and upgrade instructions are hand-written READMEs ([`charts/tigera-operator/README.md`](../charts/tigera-operator/README.md) and [`charts/crd.projectcalico.org.v1/README.md`](../charts/crd.projectcalico.org.v1/README.md)), not generated, so they drift silently when a chart change alters the steps a user has to run. [`.github/instructions/helm-charts.instructions.md`](instructions/helm-charts.instructions.md) scopes to `charts/**` and directs the reviewer to cross-check those READMEs against the change. These READMEs are **user-facing documentation, not design docs**, so the design-doc rule above — with its default of no edit — does not apply to them: a chart change that alters how a user installs or upgrades Calico must update them, and there the safe default is to update. That covers moving resources between charts (CRDs especially), adding or removing a manual step, renaming a chart, and changing a documented values key or example command.\n\n`charts/calico` is the exception, and it is exempt: nobody installs it with Helm. It is only the template source that `make gen-manifests` renders into `manifests/calico*.yaml`, so the rendered manifests are the whole contract - no Helm upgrade path, no install docs to sync. Review such a PR by reading the regenerated `manifests/` diff. Its `values.yaml` keys are an internal interface rather than a user-facing one: renaming one is fine, but the same PR has to update the in-repo consumers (`manifests/generate.sh`, the root `Makefile`, `hack/check-images-availability.sh`, and the overlays in `charts/values/`).\n\n### Trust These Instructions\nThese instructions are based on actual testing of the build system. Only search for additional information if you encounter specific errors not covered here or if the repository structure has changed significantly.",".cursor/mcp.json":"# Model Context Protocol (MCP) Configuration\n\nPath: `.cursor/mcp.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.cursor/mcp.json)",".claude-plugin/marketplace.json":"# Claude Plugin Marketplace Catalog\n\nPath: `.claude-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.claude-plugin/marketplace.json)",".claude-plugin/plugin.json":"# claude-plugin Plugin Manifest\n\nPath: `.claude-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.claude-plugin/plugin.json)"},"items":[{"name":"copilot-instructions.md","path":".github/copilot-instructions.md","rawUrl":"https://raw.githubusercontent.com/projectcalico/calico/HEAD/.github/copilot-instructions.md","title":"GitHub Copilot Instructions","category":"copilot-instructions","format":"markdown","content":"# Calico Repository Copilot Instructions\n\n## Repository Overview\n\nThis is the main **Project Calico** repository - an open-source container networking and security solution. Calico provides data plane choice (eBPF, standard Linux, Windows, VPP), advanced security features, and scales to power 8M+ nodes daily. The repository is a large monorepo (~2000 Go files) containing multiple interconnected components.\n\n**Key Stats:**\n- Type: Kubernetes networking and security platform\n- Size: Large monorepo with 20+ components\n- Languages: Go (primary), C/eBPF, Python, Shell, TypeScript/React\n- Runtime: Kubernetes, Docker containers\n- Build System: Make + Docker-based reproducible builds\n- CI/CD: Semaphore CI with extensive end-to-end testing\n\n## Build Instructions\n\n### Prerequisites\n- **Docker** - Required for all builds (validated: Docker Engine 28.0.4+)\n- **Make** - Primary build orchestration\n- **git** - Repository management\n- **Linux** - Required build environment (Ubuntu 24.04+ recommended)\n\n### Core Build Commands\n\n**ALWAYS run these commands from the repository root unless specified otherwise.**\n\n#### Bootstrap/Setup\n```bash\n# No specific bootstrap needed - Docker handles toolchain\n# Clean previous builds if needed:\nmake clean\n```\n\n#### Building All Components\n```bash\n# Build all Calico container images (WARNING: takes 30+ minutes)\nmake image\n\n# Build for specific architecture\nmake image ARCH=arm64\n\n# Clean build (removes caches)\nmake clean image\n```\n\n#### Building Individual Components\n```bash\n# Build specific component (much faster - ~2-5 minutes)\nmake -C calicoctl build      # CLI tool\nmake -C felix build          # Core per-host networking/security agent  \nmake -C node build           # Docker image container, includes Felix, confd, bird, and startup/monitoring scripts.\nmake -C typha build          # Datastore proxy\n```\n\n#### Testing\n```bash\n# Run unit tests for specific component (recommended)\nmake -C calicoctl test       # Takes ~2-3 minutes\nmake -C felix test          # Takes ~5-10 minutes\n\n# WARNING: Do NOT run 'make test' at root - takes hours\n# Each directory has its own test suite - run individually\n```\n\nCalico has multiple layers of tests:\n\n- Unit tests, which are generally fast and local to the package.\n- FV tests, which run one component in isolation, typically in docker containers.\n- System tests, which run most of Calico with some mocking.\n- End-to-end tests, which run the entire system in a real kubernetes cluster.\n\n##### Felix tests\n\nFelix's FV tests are in the felix/fv directory. Since calico supports multiple dataplanes, the tests can be run in multiple modes. Running single tests for validation of work recommended, but full suite takes hours.\n\nFelix FVs use the ginkgo DSL, resulting in test IDs based on the nesting Context()/Describe() blocks in the file.\n\nTo run a single test:\n\n- Temporarily change the `It()` block in the file to `FIt()` to \"focus\" the test.\n- Run the test in iptables mode:\n  `make -C felix fv GINKGO_ARGS=\"-ginkgo.v\"`\n- Run the test in eBPF mode with iptables (in CI, only tests whose name contains\n  `_BPF-SAFE_` or `_BPF_` run in this mode; name a new BPF-mode test accordingly or\n  CI will never run it):\n  `make -C felix fv-bpf GINKGO_ARGS=\"-ginkgo.v\"`\n- Run the test in nftables mode:\n  `make -C felix fv(-bpf) GINKGO_ARGS=\"-ginkgo.v\" FELIX_FV_NFTABLES=Enabled`\n\nTo increase verbosity of logs, run with FV_FELIX_LOG_LEVEL=debug.\n\nOther useful flags: in GINKGO_ARGS, `-ginkgo.dryRun` disables execution, only prints the test names. `-ginkgo.focus` can be used to run a specific test by regex (but the ID that is matches includes the Context() and Describe() blocks headings and formatting characters).\n\nFelix's \"brain\" is the calculation graph in `felix/calc`, this component has its own test harness that tries to validate its invariants and correctness. Changes to the calculation graph should include additional calculation graph FV tests (see `felix/calc/calc_graph_fv_test.go`).\n\n##### Ginkgo\n\nWe are trying to migrate away from using Ginkgo.  When adding new tests, prefer to use vanilla `go test` over Ginkgo *unless* there is an established pattern of using ginkgo to test a particular package.  New packages should have `go test` tests only.\n\n#### Linting and Validation\n```bash\n# YAML linting (always works)\nmake yaml-lint\n\n# Full CI preflight checks (WARNING: takes 10+ minutes)\nmake ci-preflight-checks\n\n# Individual validation steps:\nmake check-go-mod           # Go module validation\nmake check-dockerfiles      # Dockerfile linting  \nmake check-language         # Language checks\nmake go-vet                # Go static analysis\n```\n\n## Critical Build Notes\n\n### Docker Dependencies\n- All builds run inside Docker containers using `calico/go-build:1.24.6-llvm18.1.8-k8s1.32.7`\n- **NEVER** run `make ci` or `make cd` locally - these are destructive CI-only targets\n- Build errors like \"docker image rm\" failures during clean are normal and ignored\n\n### Build Time Expectations\n- Individual component build: 2-5 minutes\n- Unit tests per component: 2-10 minutes  \n- Full image build: 30+ minutes\n- CI preflight checks: 10+ minutes\n- yamllint: ~30 seconds\n\n### Common Build Failures & Workarounds\n1. **\"failed to remove builder\" during clean** - Normal, ignored by Makefile\n2. **Go module download timeouts** - CI uses `GOFLAGS=\"-mod=readonly\"` to prevent downloads\n3. **Permission errors in Docker** - Uses `LOCAL_USER_ID=1001` for consistency\n4. **eBPF build failures** - Felix requires specific libbpf setup: `make -C felix clone-libbpf`\n\n## Repository Architecture\n\n### Major Components (in dependency order)\n```\nlibcalico-go/     - Core Go client library and data model\napi/              - Calico API definitions (CRDs, protobuf), exported as its own repo (hence own go.mod)\nfelix/            - Core networking agent (eBPF/iptables dataplane)\ntypha/            - Datastore fan-out proxy for scaling\nnode/             - Node initialization and management, docker image containing Felix, confd, bird, and startup/monitoring scripts.\ncalicoctl/        - CLI tool for managing Calico\nkube-controllers/ - Kubernetes-specific controllers\ncni-plugin/       - Kubernetes CNI integration\nconfd/            - Configuration management\n```\n\n### Configuration Files Locations\n- **Go modules**: `go.mod`, `go.sum` (root)\n- **Build config**: `metadata.mk`, `lib.Makefile` \n- **Linting**: `.yamllint.yaml`, `.golangci.yaml` (per component)\n- **CI/CD**: `.semaphore/semaphore.yml` (generated from template)\n- **Docker**: `Dockerfile.*` in each component directory\n\n### Key Source Files\n- `felix/daemon/daemon.go` - Felix main daemon  \n- `node/pkg/lifecycle/startup/startup.go` - Node initialization\n- `calicoctl/calicoctl/calicoctl.go` - CLI entry point\n- `kube-controllers/cmd/kube-controllers/main.go` - Controllers main\n\n## Validation Pipeline\n\n### Pre-commit Checks (CI runs these)\n1. `make check-go-mod` - Go module consistency\n2. `make verify-go-mods` - Cross-component module verification  \n3. `make check-dockerfiles` - Dockerfile validation\n4. `make check-language` - Language and content checks\n5. `make generate` - Regenerate generated files; these should be checked in.  Required when changing APIs, Felix configuration, semaphore CI config, etc. \n6. `make fix-changed` - Auto-fix formatting issues in files changed vs master.\n7. `make yaml-lint` - YAML validation\n8. `make go-vet` - Go static analysis\n\n### CI\n\nCalico has a comprehensive CI pipeline, which uses SemaphoreCI.  The main pipeline is defined in `.semaphore/semaphore.yml`.  This file is generated from template block, located in `.semaphore/semaphore.yml.d`.\n\nWhen changing the CI pipeline, edit the blocks in `.semaphore/semaphore.yml.d` and run `make gen-semaphore-yaml` to update generated files.  Generated files should be checked in.\n\n### Manual Validation Commands\n```bash\n# Check if your changes broke anything:\nmake check-dirty          # Ensure no uncommitted generated files\nmake -C <component> test   # Run relevant component tests\nmake yaml-lint            # Quick validation\n```\n\n### GitHub Workflows\n- **yamllint.yml** - YAML validation on PRs\n- **codeql.yml** - Security scanning  \n- **check_release_notes.yml** - Release note validation\n- **inactive_issues.yml** - Issue management\n\n## Developer Workflow\n\n### Making Changes\n1. **Always run component-specific tests** after changes\n2. **Use `make clean` sparingly** - builds are cached for speed\n3. **Run `make yaml-lint`** before committing YAML changes\n4. **Check `make -C <component> help`** for component-specific targets\n\n### Common Tasks\n```bash\n# Add new Go dependency:\ncd <component> && go mod tidy && cd .. && make check-go-mod\n\n# Update generated files:\nmake generate\n\n# Fix formatting issues:\nmake fix-changed\n\n# Test specific component changes:\nmake -C <component> build test\n```\n\n### Architecture Dependencies\n- **felix** depends on: libcalico-go, api\n- **node** depends on: felix, confd, libcalico-go\n- **calicoctl** depends on: libcalico-go, kube-controllers\n- **All components** use: api, libcalico-go\n\n## Quick Reference\n\n### Essential Commands (most reliable)\n```bash\nmake clean                    # Clean all components\nmake -C <component> build     # Build single component  \nmake -C <component> test      # Test single component\nmake yaml-lint               # Fast validation\nmake image                   # Build all images (slow)\n```\n\n### Files to Always Check\n- `DEVELOPER_GUIDE.md` - Comprehensive development guide\n- `CONTRIBUTING.md` - Contribution guidelines and PR process\n- Component `README.md` files for specific build instructions\n- Component `Makefile` for available targets\n\n## PR Requirements\n\n**ALWAYS** use the PR template (`.github/PULL_REQUEST_TEMPLATE.md`) when submitting pull requests. The only mandatory section is the **Release Note** — fill it in with a one-line summary of the user-facing impact of the change. Take a broad view of \"user-facing\": bug fixes, new features, performance improvements, and behavioral changes all qualify. If there is genuinely no user-facing impact, write \"None\".\n\nEvery PR needs one docs label (`docs-pr-required`, `docs-completed`, or `docs-not-required`) and one release note label (`release-note-required` or `release-note-not-required`). Optional: `cherry-pick-candidate` (bug fix backports), `needs-operator-pr` (requires operator change).\n\n## AI-assisted contribution policy\n\n[`AI_POLICY.md`](../AI_POLICY.md) at the repo root governs contributions written with AI assistance. The parts that affect what you produce:\n\n- The PR description discloses the assistance - the PR template has an **AI assistance** line for it.\n- Never add an AI co-author or `Assisted-By:` trailer to a commit.\n- The human author has to be able to explain the change without you, so leave the code and the PR description in a state they can defend.\n- On review threads, the only reply you may post for them is one that points at the fix commit (\"Done in abc1234\"). Explanations, pushback, and questions about review feedback come from the human.\n\n## Documentation map\n\nCalico's docs are split by purpose. Architecture lives in\n`DESIGN.md` files; operational guidance (build, test, debug)\nlives in `CLAUDE.md` / `AGENTS.md`; path-scoped review rules\nlive under `.github/instructions/*.instructions.md`. Do not look\nfor architecture in `CLAUDE.md`.\n\n- `<component>/DESIGN.md` — architecture, invariants, embedded\n  per-section review notes. Read before writing or reviewing a\n  change in that component.\n- Complex components have an index: [`felix/DESIGN.md`](../felix/DESIGN.md)\n  lists per-topic sub-designs under [`felix/design/`](../felix/design/)\n  with an \"applies to\" glob each. A PR touching multiple globs\n  must load every matching sub-design.\n- Cross-component subsystems live under `design/<topic>/` at the\n  repo root (e.g. [`design/ipam/`](../design/ipam/),\n  [`design/syncer/`](../design/syncer/)), with discoverability\n  pointer stubs in consumer subdirectories.\n- [`.github/instructions/*.instructions.md`](instructions/) are\n  thin path-scoped pointers to `DESIGN.md` files plus meta-rules\n  (the update rule, the `@copilot` invocation pattern). They do\n  not restate design content — always read the pointed-at\n  `DESIGN.md`.\nA design doc records the design, not the change that introduced\nit, and **the default is no edit**. Edit one only when a sentence\nin it is now false, a new invariant exists that a future change\ncould silently break, or a new concept exists that the doc's\nmental model does not name. A new behaviour, flag, field, config\nkey, or bug fix is not by itself any of those. A warranted edit\nlands **in the same PR as the code**, not in a follow-up, and is\nnormally **one to three lines** in the section that already covers\nthe area — not a new heading, and never a paraphrase of the commit\nmessage. For components with a design directory (Felix uses\n`felix/design/`), it goes in the sub-design covering the area, and\nin the index only when the sub-design table or scope changes.\n\n**If in doubt, make no change** — name what you considered and\nskipped in the PR description so a reviewer can ask for it. (The\nCopilot coding agent and automated review have no interactive\nuser; a human-driven agent proposes the edit and waits for\napproval instead.) A missing doc update the author explicitly\nconsidered and skipped is not a review blocker on its own.\n\nThis rule mirrors\n[`.claude/CLAUDE.md` → Documentation map](../.claude/CLAUDE.md) —\nkeep the two in sync. The altitude rule, a worked example and the\nreviewer-side criteria are in\n[`.claude/skills/design-doc-edits/SKILL.md`](../.claude/skills/design-doc-edits/SKILL.md);\nread it before editing a design doc or reviewing a design-doc\ndiff.\n\n## Tests required for code changes\n\nA PR that fixes a bug must include a test in the same PR that reproduces the bug. A PR that adds a feature must include tests that exercise the feature. A change without a corresponding test is the exception, not the default, and requires explicit justification (untestable interface boundary, infrastructure-only change).\n\nPrefer the lowest test level that meaningfully exercises the change:\n\n1. **Unit tests** — deterministic, fast, hermetic. Always the first choice when the behaviour can be reached without real infrastructure. UT failures point at the change directly.\n2. **Functional verification (FV) tests** — real binary against real infrastructure (containers, dataplane, kernel). Catch integration bugs UT cannot, but slower, harder to write, and can flake. Use FV when the integration *is* the thing being tested.\n3. **End-to-end / Kubernetes tests** — full stack against a real cluster. Reserve for behaviour that genuinely requires it.\n\nTests-only follow-ups are an anti-pattern: by the time they land, the change has shipped untested. A reviewer who sees \"I tested it manually\" or \"tests in a follow-up PR\" should push back.\n\nPer-area sub-designs carry the area-specific test conventions on top of this general rule (e.g. [`felix/design/bpf-tests.md`](../felix/design/bpf-tests.md) for the BPF dataplane). This rule mirrors [`.claude/CLAUDE.md` → Tests required for code changes](../.claude/CLAUDE.md) — keep them in sync.\n\n## eBPF Dataplane Review\n\nThe eBPF dataplane design is split across the `bpf-*.md` files under [`felix/design/`](../felix/design/), with [`bpf-overview.md`](../felix/design/bpf-overview.md) as the always-pulled umbrella (packet-path mental model, fast-path cost rule, cross-cutting review rules) and topic-specific sub-designs covering each area of the dataplane. See [`felix/DESIGN.md`](../felix/DESIGN.md) for the authoritative table mapping code paths to sub-design files.\n\nPath-specific reviewer rules live in [`.github/instructions/bpf.instructions.md`](instructions/bpf.instructions.md) — a single thin pointer that scopes to all BPF paths and directs the agent to load the matching sub-design(s) from [`felix/DESIGN.md`](../felix/DESIGN.md)'s topic table, with `bpf-overview.md` as the always-read companion. The doc-update rule above applies. For BPF, the changes that usually earn a doc edit are a new sub-program, CT flag, mark bit, map or map field, or a change to the packet path or forwarding decision — candidates for the test above, not triggers on their own.\n\n## Calico API Review\n\nOn clusters using the `projectcalico.org/v3` CRDs directly, the Go validator in `libcalico-go/lib/validator/v3` only runs for the policy kinds (via the `calico-webhooks` admission webhook); every other kind gets only the CRD schema. [`.github/instructions/calico-api.instructions.md`](instructions/calico-api.instructions.md) scopes to the API types, validator and webhook, and lists the validation every selector and name field needs.\n\n## Helm Chart Review\n\nThe user-facing install and upgrade instructions are hand-written READMEs ([`charts/tigera-operator/README.md`](../charts/tigera-operator/README.md) and [`charts/crd.projectcalico.org.v1/README.md`](../charts/crd.projectcalico.org.v1/README.md)), not generated, so they drift silently when a chart change alters the steps a user has to run. [`.github/instructions/helm-charts.instructions.md`](instructions/helm-charts.instructions.md) scopes to `charts/**` and directs the reviewer to cross-check those READMEs against the change. These READMEs are **user-facing documentation, not design docs**, so the design-doc rule above — with its default of no edit — does not apply to them: a chart change that alters how a user installs or upgrades Calico must update them, and there the safe default is to update. That covers moving resources between charts (CRDs especially), adding or removing a manual step, renaming a chart, and changing a documented values key or example command.\n\n`charts/calico` is the exception, and it is exempt: nobody installs it with Helm. It is only the template source that `make gen-manifests` renders into `manifests/calico*.yaml`, so the rendered manifests are the whole contract - no Helm upgrade path, no install docs to sync. Review such a PR by reading the regenerated `manifests/` diff. Its `values.yaml` keys are an internal interface rather than a user-facing one: renaming one is fine, but the same PR has to update the in-repo consumers (`manifests/generate.sh`, the root `Makefile`, `hack/check-images-availability.sh`, and the overlays in `charts/values/`).\n\n### Trust These Instructions\nThese instructions are based on actual testing of the build system. Only search for additional information if you encounter specific errors not covered here or if the repository structure has changed significantly.","isInternal":false,"tokens":4467,"sizeBytes":18624},{"name":"marketplace.json","path":".claude-plugin/marketplace.json","rawUrl":"https://raw.githubusercontent.com/projectcalico/calico/HEAD/.claude-plugin/marketplace.json","title":"Claude Plugin Marketplace Catalog","category":"marketplace","format":"json","content":"# Claude Plugin Marketplace Catalog\n\nPath: `.claude-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.claude-plugin/marketplace.json)","tokens":300,"sizeBytes":199},{"name":"plugin.json","path":".claude-plugin/plugin.json","rawUrl":"https://raw.githubusercontent.com/projectcalico/calico/HEAD/.claude-plugin/plugin.json","title":"claude-plugin Plugin Manifest","category":"plugin-manifest","format":"json","content":"# claude-plugin Plugin Manifest\n\nPath: `.claude-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.claude-plugin/plugin.json)","tokens":300,"sizeBytes":185},{"name":"mcp.json","path":".cursor/mcp.json","rawUrl":"https://raw.githubusercontent.com/projectcalico/calico/HEAD/.cursor/mcp.json","title":"Model Context Protocol (MCP) Configuration","category":"mcp-config","format":"json","content":"# Model Context Protocol (MCP) Configuration\n\nPath: `.cursor/mcp.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.cursor/mcp.json)","tokens":300,"sizeBytes":178}],"systemPromptSnippet":"<yakaai_skills repo=\"projectcalico/calico\">\n<!-- File: .github/copilot-instructions.md (Tokens: ~4467 | Category: copilot-instructions) -->\n# Calico Repository Copilot Instructions\n\n## Repository Overview\n\nThis is the main **Project Calico** repository - an open-source container networking and security solution. Calico provides data plane choice (eBPF, standard Linux, Windows, VPP), advanced security features, and scales to power 8M+ nodes daily. The repository is a large monorepo (~2000 Go files) containing multiple interconnected components.\n\n**Key Stats:**\n- Type: Kubernetes networking and security platform\n- Size: Large monorepo with 20+ components\n- Languages: Go (primary), C/eBPF, Python, Shell, TypeScript/React\n- Runtime: Kubernetes, Docker containers\n- Build System: Make + Docker-based reproducible builds\n- CI/CD: Semaphore CI with extensive end-to-end testing\n\n## Build Instructions\n\n### Prerequisites\n- **Docker** - Required for all builds (validated: Docker Engine 28.0.4+)\n- **Make** - Primary build orchestration\n- **git** - Repository management\n- **Linux** - Required build environment (Ubuntu 24.04+ recommended)\n\n### Core Build Commands\n\n**ALWAYS run these commands from the repository root unless specified otherwise.**\n\n#### Bootstrap/Setup\n```bash\n# No specific bootstrap needed - Docker handles toolchain\n# Clean previous builds if needed:\nmake clean\n```\n\n#### Building All Components\n```bash\n# Build all Calico container images (WARNING: takes 30+ minutes)\nmake image\n\n# Build for specific architecture\nmake image ARCH=arm64\n\n# Clean build (removes caches)\nmake clean image\n```\n\n#### Building Individual Components\n```bash\n# Build specific component (much faster - ~2-5 minutes)\nmake -C calicoctl build      # CLI tool\nmake -C felix build          # Core per-host networking/security agent  \nmake -C node build           # Docker image container, includes Felix, confd, bird, and startup/monitoring scripts.\nmake -C typha build          # Datastore proxy\n```\n\n#### Testing\n```bash\n# Run unit tests for specific component (recommended)\nmake -C calicoctl test       # Takes ~2-3 minutes\nmake -C felix test          # Takes ~5-10 minutes\n\n# WARNING: Do NOT run 'make test' at root - takes hours\n# Each directory has its own test suite - run individually\n```\n\nCalico has multiple layers of tests:\n\n- Unit tests, which are generally fast and local to the package.\n- FV tests, which run one component in isolation, typically in docker containers.\n- System tests, which run most of Calico with some mocking.\n- End-to-end tests, which run the entire system in a real kubernetes cluster.\n\n##### Felix tests\n\nFelix's FV tests are in the felix/fv directory. Since calico supports multiple dataplanes, the tests can be run in multiple modes. Running single tests for validation of work recommended, but full suite takes hours.\n\nFelix FVs use the ginkgo DSL, resulting in test IDs based on the nesting Context()/Describe() blocks in the file.\n\nTo run a single test:\n\n- Temporarily change the `It()` block in the file to `FIt()` to \"focus\" the test.\n- Run the test in iptables mode:\n  `make -C felix fv GINKGO_ARGS=\"-ginkgo.v\"`\n- Run the test in eBPF mode with iptables (in CI, only tests whose name contains\n  `_BPF-SAFE_` or `_BPF_` run in this mode; name a new BPF-mode test accordingly or\n  CI will never run it):\n  `make -C felix fv-bpf GINKGO_ARGS=\"-ginkgo.v\"`\n- Run the test in nftables mode:\n  `make -C felix fv(-bpf) GINKGO_ARGS=\"-ginkgo.v\" FELIX_FV_NFTABLES=Enabled`\n\nTo increase verbosity of logs, run with FV_FELIX_LOG_LEVEL=debug.\n\nOther useful flags: in GINKGO_ARGS, `-ginkgo.dryRun` disables execution, only prints the test names. `-ginkgo.focus` can be used to run a specific test by regex (but the ID that is matches includes the Context() and Describe() blocks headings and formatting characters).\n\nFelix's \"brain\" is the calculation graph in `felix/calc`, this component has its own test harness that tries to validate its invariants and correctness. Changes to the calculation graph should include additional calculation graph FV tests (see `felix/calc/calc_graph_fv_test.go`).\n\n##### Ginkgo\n\nWe are trying to migrate away from using Ginkgo.  When adding new tests, prefer to use vanilla `go test` over Ginkgo *unless* there is an established pattern of using ginkgo to test a particular package.  New packages should have `go test` tests only.\n\n#### Linting and Validation\n```bash\n# YAML linting (always works)\nmake yaml-lint\n\n# Full CI preflight checks (WARNING: takes 10+ minutes)\nmake ci-preflight-checks\n\n# Individual validation steps:\nmake check-go-mod           # Go module validation\nmake check-dockerfiles      # Dockerfile linting  \nmake check-language         # Language checks\nmake go-vet                # Go static analysis\n```\n\n## Critical Build Notes\n\n### Docker Dependencies\n- All builds run inside Docker containers using `calico/go-build:1.24.6-llvm18.1.8-k8s1.32.7`\n- **NEVER** run `make ci` or `make cd` locally - these are destructive CI-only targets\n- Build errors like \"docker image rm\" failures during clean are normal and ignored\n\n### Build Time Expectations\n- Individual component build: 2-5 minutes\n- Unit tests per component: 2-10 minutes  \n- Full image build: 30+ minutes\n- CI preflight checks: 10+ minutes\n- yamllint: ~30 seconds\n\n### Common Build Failures & Workarounds\n1. **\"failed to remove builder\" during clean** - Normal, ignored by Makefile\n2. **Go module download timeouts** - CI uses `GOFLAGS=\"-mod=readonly\"` to prevent downloads\n3. **Permission errors in Docker** - Uses `LOCAL_USER_ID=1001` for consistency\n4. **eBPF build failures** - Felix requires specific libbpf setup: `make -C felix clone-libbpf`\n\n## Repository Architecture\n\n### Major Components (in dependency order)\n```\nlibcalico-go/     - Core Go client library and data model\napi/              - Calico API definitions (CRDs, protobuf), exported as its own repo (hence own go.mod)\nfelix/            - Core networking agent (eBPF/iptables dataplane)\ntypha/            - Datastore fan-out proxy for scaling\nnode/             - Node initialization and management, docker image containing Felix, confd, bird, and startup/monitoring scripts.\ncalicoctl/        - CLI tool for managing Calico\nkube-controllers/ - Kubernetes-specific controllers\ncni-plugin/       - Kubernetes CNI integration\nconfd/            - Configuration management\n```\n\n### Configuration Files Locations\n- **Go modules**: `go.mod`, `go.sum` (root)\n- **Build config**: `metadata.mk`, `lib.Makefile` \n- **Linting**: `.yamllint.yaml`, `.golangci.yaml` (per component)\n- **CI/CD**: `.semaphore/semaphore.yml` (generated from template)\n- **Docker**: `Dockerfile.*` in each component directory\n\n### Key Source Files\n- `felix/daemon/daemon.go` - Felix main daemon  \n- `node/pkg/lifecycle/startup/startup.go` - Node initialization\n- `calicoctl/calicoctl/calicoctl.go` - CLI entry point\n- `kube-controllers/cmd/kube-controllers/main.go` - Controllers main\n\n## Validation Pipeline\n\n### Pre-commit Checks (CI runs these)\n1. `make check-go-mod` - Go module consistency\n2. `make verify-go-mods` - Cross-component module verification  \n3. `make check-dockerfiles` - Dockerfile validation\n4. `make check-language` - Language and content checks\n5. `make generate` - Regenerate generated files; these should be checked in.  Required when changing APIs, Felix configuration, semaphore CI config, etc. \n6. `make fix-changed` - Auto-fix formatting issues in files changed vs master.\n7. `make yaml-lint` - YAML validation\n8. `make go-vet` - Go static analysis\n\n### CI\n\nCalico has a comprehensive CI pipeline, which uses SemaphoreCI.  The main pipeline is defined in `.semaphore/semaphore.yml`.  This file is generated from template block, located in `.semaphore/semaphore.yml.d`.\n\nWhen changing the CI pipeline, edit the blocks in `.semaphore/semaphore.yml.d` and run `make gen-semaphore-yaml` to update generated files.  Generated files should be checked in.\n\n### Manual Validation Commands\n```bash\n# Check if your changes broke anything:\nmake check-dirty          # Ensure no uncommitted generated files\nmake -C <component> test   # Run relevant component tests\nmake yaml-lint            # Quick validation\n```\n\n### GitHub Workflows\n- **yamllint.yml** - YAML validation on PRs\n- **codeql.yml** - Security scanning  \n- **check_release_notes.yml** - Release note validation\n- **inactive_issues.yml** - Issue management\n\n## Developer Workflow\n\n### Making Changes\n1. **Always run component-specific tests** after changes\n2. **Use `make clean` sparingly** - builds are cached for speed\n3. **Run `make yaml-lint`** before committing YAML changes\n4. **Check `make -C <component> help`** for component-specific targets\n\n### Common Tasks\n```bash\n# Add new Go dependency:\ncd <component> && go mod tidy && cd .. && make check-go-mod\n\n# Update generated files:\nmake generate\n\n# Fix formatting issues:\nmake fix-changed\n\n# Test specific component changes:\nmake -C <component> build test\n```\n\n### Architecture Dependencies\n- **felix** depends on: libcalico-go, api\n- **node** depends on: felix, confd, libcalico-go\n- **calicoctl** depends on: libcalico-go, kube-controllers\n- **All components** use: api, libcalico-go\n\n## Quick Reference\n\n### Essential Commands (most reliable)\n```bash\nmake clean                    # Clean all components\nmake -C <component> build     # Build single component  \nmake -C <component> test      # Test single component\nmake yaml-lint               # Fast validation\nmake image                   # Build all images (slow)\n```\n\n### Files to Always Check\n- `DEVELOPER_GUIDE.md` - Comprehensive development guide\n- `CONTRIBUTING.md` - Contribution guidelines and PR process\n- Component `README.md` files for specific build instructions\n- Component `Makefile` for available targets\n\n## PR Requirements\n\n**ALWAYS** use the PR template (`.github/PULL_REQUEST_TEMPLATE.md`) when submitting pull requests. The only mandatory section is the **Release Note** — fill it in with a one-line summary of the user-facing impact of the change. Take a broad view of \"user-facing\": bug fixes, new features, performance improvements, and behavioral changes all qualify. If there is genuinely no user-facing impact, write \"None\".\n\nEvery PR needs one docs label (`docs-pr-required`, `docs-completed`, or `docs-not-required`) and one release note label (`release-note-required` or `release-note-not-required`). Optional: `cherry-pick-candidate` (bug fix backports), `needs-operator-pr` (requires operator change).\n\n## AI-assisted contribution policy\n\n[`AI_POLICY.md`](../AI_POLICY.md) at the repo root governs contributions written with AI assistance. The parts that affect what you produce:\n\n- The PR description discloses the assistance - the PR template has an **AI assistance** line for it.\n- Never add an AI co-author or `Assisted-By:` trailer to a commit.\n- The human author has to be able to explain the change without you, so leave the code and the PR description in a state they can defend.\n- On review threads, the only reply you may post for them is one that points at the fix commit (\"Done in abc1234\"). Explanations, pushback, and questions about review feedback come from the human.\n\n## Documentation map\n\nCalico's docs are split by purpose. Architecture lives in\n`DESIGN.md` files; operational guidance (build, test, debug)\nlives in `CLAUDE.md` / `AGENTS.md`; path-scoped review rules\nlive under `.github/instructions/*.instructions.md`. Do not look\nfor architecture in `CLAUDE.md`.\n\n- `<component>/DESIGN.md` — architecture, invariants, embedded\n  per-section review notes. Read before writing or reviewing a\n  change in that component.\n- Complex components have an index: [`felix/DESIGN.md`](../felix/DESIGN.md)\n  lists per-topic sub-designs under [`felix/design/`](../felix/design/)\n  with an \"applies to\" glob each. A PR touching multiple globs\n  must load every matching sub-design.\n- Cross-component subsystems live under `design/<topic>/` at the\n  repo root (e.g. [`design/ipam/`](../design/ipam/),\n  [`design/syncer/`](../design/syncer/)), with discoverability\n  pointer stubs in consumer subdirectories.\n- [`.github/instructions/*.instructions.md`](instructions/) are\n  thin path-scoped pointers to `DESIGN.md` files plus meta-rules\n  (the update rule, the `@copilot` invocation pattern). They do\n  not restate design content — always read the pointed-at\n  `DESIGN.md`.\nA design doc records the design, not the change that introduced\nit, and **the default is no edit**. Edit one only when a sentence\nin it is now false, a new invariant exists that a future change\ncould silently break, or a new concept exists that the doc's\nmental model does not name. A new behaviour, flag, field, config\nkey, or bug fix is not by itself any of those. A warranted edit\nlands **in the same PR as the code**, not in a follow-up, and is\nnormally **one to three lines** in the section that already covers\nthe area — not a new heading, and never a paraphrase of the commit\nmessage. For components with a design directory (Felix uses\n`felix/design/`), it goes in the sub-design covering the area, and\nin the index only when the sub-design table or scope changes.\n\n**If in doubt, make no change** — name what you considered and\nskipped in the PR description so a reviewer can ask for it. (The\nCopilot coding agent and automated review have no interactive\nuser; a human-driven agent proposes the edit and waits for\napproval instead.) A missing doc update the author explicitly\nconsidered and skipped is not a review blocker on its own.\n\nThis rule mirrors\n[`.claude/CLAUDE.md` → Documentation map](../.claude/CLAUDE.md) —\nkeep the two in sync. The altitude rule, a worked example and the\nreviewer-side criteria are in\n[`.claude/skills/design-doc-edits/SKILL.md`](../.claude/skills/design-doc-edits/SKILL.md);\nread it before editing a design doc or reviewing a design-doc\ndiff.\n\n## Tests required for code changes\n\nA PR that fixes a bug must include a test in the same PR that reproduces the bug. A PR that adds a feature must include tests that exercise the feature. A change without a corresponding test is the exception, not the default, and requires explicit justification (untestable interface boundary, infrastructure-only change).\n\nPrefer the lowest test level that meaningfully exercises the change:\n\n1. **Unit tests** — deterministic, fast, hermetic. Always the first choice when the behaviour can be reached without real infrastructure. UT failures point at the change directly.\n2. **Functional verification (FV) tests** — real binary against real infrastructure (containers, dataplane, kernel). Catch integration bugs UT cannot, but slower, harder to write, and can flake. Use FV when the integration *is* the thing being tested.\n3. **End-to-end / Kubernetes tests** — full stack against a real cluster. Reserve for behaviour that genuinely requires it.\n\nTests-only follow-ups are an anti-pattern: by the time they land, the change has shipped untested. A reviewer who sees \"I tested it manually\" or \"tests in a follow-up PR\" should push back.\n\nPer-area sub-designs carry the area-specific test conventions on top of this general rule (e.g. [`felix/design/bpf-tests.md`](../felix/design/bpf-tests.md) for the BPF dataplane). This rule mirrors [`.claude/CLAUDE.md` → Tests required for code changes](../.claude/CLAUDE.md) — keep them in sync.\n\n## eBPF Dataplane Review\n\nThe eBPF dataplane design is split across the `bpf-*.md` files under [`felix/design/`](../felix/design/), with [`bpf-overview.md`](../felix/design/bpf-overview.md) as the always-pulled umbrella (packet-path mental model, fast-path cost rule, cross-cutting review rules) and topic-specific sub-designs covering each area of the dataplane. See [`felix/DESIGN.md`](../felix/DESIGN.md) for the authoritative table mapping code paths to sub-design files.\n\nPath-specific reviewer rules live in [`.github/instructions/bpf.instructions.md`](instructions/bpf.instructions.md) — a single thin pointer that scopes to all BPF paths and directs the agent to load the matching sub-design(s) from [`felix/DESIGN.md`](../felix/DESIGN.md)'s topic table, with `bpf-overview.md` as the always-read companion. The doc-update rule above applies. For BPF, the changes that usually earn a doc edit are a new sub-program, CT flag, mark bit, map or map field, or a change to the packet path or forwarding decision — candidates for the test above, not triggers on their own.\n\n## Calico API Review\n\nOn clusters using the `projectcalico.org/v3` CRDs directly, the Go validator in `libcalico-go/lib/validator/v3` only runs for the policy kinds (via the `calico-webhooks` admission webhook); every other kind gets only the CRD schema. [`.github/instructions/calico-api.instructions.md`](instructions/calico-api.instructions.md) scopes to the API types, validator and webhook, and lists the validation every selector and name field needs.\n\n## Helm Chart Review\n\nThe user-facing install and upgrade instructions are hand-written READMEs ([`charts/tigera-operator/README.md`](../charts/tigera-operator/README.md) and [`charts/crd.projectcalico.org.v1/README.md`](../charts/crd.projectcalico.org.v1/README.md)), not generated, so they drift silently when a chart change alters the steps a user has to run. [`.github/instructions/helm-charts.instructions.md`](instructions/helm-charts.instructions.md) scopes to `charts/**` and directs the reviewer to cross-check those READMEs against the change. These READMEs are **user-facing documentation, not design docs**, so the design-doc rule above — with its default of no edit — does not apply to them: a chart change that alters how a user installs or upgrades Calico must update them, and there the safe default is to update. That covers moving resources between charts (CRDs especially), adding or removing a manual step, renaming a chart, and changing a documented values key or example command.\n\n`charts/calico` is the exception, and it is exempt: nobody installs it with Helm. It is only the template source that `make gen-manifests` renders into `manifests/calico*.yaml`, so the rendered manifests are the whole contract - no Helm upgrade path, no install docs to sync. Review such a PR by reading the regenerated `manifests/` diff. Its `values.yaml` keys are an internal interface rather than a user-facing one: renaming one is fine, but the same PR has to update the in-repo consumers (`manifests/generate.sh`, the root `Makefile`, `hack/check-images-availability.sh`, and the overlays in `charts/values/`).\n\n### Trust These Instructions\nThese instructions are based on actual testing of the build system. Only search for additional information if you encounter specific errors not covered here or if the repository structure has changed significantly.\n\n<!-- File: .claude-plugin/marketplace.json (Tokens: ~300 | Category: marketplace) -->\n# Claude Plugin Marketplace Catalog\n\nPath: `.claude-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.claude-plugin/marketplace.json)\n\n<!-- File: .claude-plugin/plugin.json (Tokens: ~300 | Category: plugin-manifest) -->\n# claude-plugin Plugin Manifest\n\nPath: `.claude-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.claude-plugin/plugin.json)\n\n<!-- File: .cursor/mcp.json (Tokens: ~300 | Category: mcp-config) -->\n# Model Context Protocol (MCP) Configuration\n\nPath: `.cursor/mcp.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/projectcalico/calico/HEAD/.cursor/mcp.json)\n</yakaai_skills>"}