{
  "schema_version": 1,
  "counts": {
    "snippet": 500,
    "configuration": 100,
    "failure": 100,
    "template": 60,
    "pattern": 30
  },
  "entries": [
    {
      "id": "CICD-001",
      "kind": "snippet",
      "title": "Run on every push",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-001.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "run",
        "on",
        "every",
        "push"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-002"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "Push a commit and confirm one Actions run is created.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-002",
      "kind": "snippet",
      "title": "Limit pushes to main",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-002.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "limit",
        "pushes",
        "to",
        "main"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-001",
        "CICD-003"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "Push to main and a feature branch. Only the former should trigger.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-003",
      "kind": "snippet",
      "title": "Verify pull requests targeting main",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-003.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "verify",
        "pull",
        "requests",
        "targeting",
        "main"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-002",
        "CICD-004"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "The branch filter matches the target branch. Open a PR and check its run.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-004",
      "kind": "snippet",
      "title": "Select pull request activity types",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-004.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "select",
        "pull",
        "request",
        "activity",
        "types"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-003",
        "CICD-005"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "Push another commit to the PR and inspect the synchronize event.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-005",
      "kind": "snippet",
      "title": "Launch a manual run",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-005.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "launch",
        "a",
        "manual",
        "run"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-004",
        "CICD-006"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "Put the workflow on the default branch. Use Actions to start it on a selected ref.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-006",
      "kind": "snippet",
      "title": "Select a manual target",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-006.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "select",
        "a",
        "manual",
        "target"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-005",
        "CICD-007"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "Read inputs.target in a job and test both values. Check Gitea support for typed choices.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-007",
      "kind": "snippet",
      "title": "Schedule a weekly check",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-007.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "schedule",
        "a",
        "weekly",
        "check"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-006",
        "CICD-008"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "Interpret UTC and expect best-effort timing on the default branch.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-008",
      "kind": "snippet",
      "title": "Trigger on version tags",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-008.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "trigger",
        "on",
        "version",
        "tags"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-007",
        "CICD-009"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "Use a protected tag namespace and validate its SemVer separately.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-009",
      "kind": "snippet",
      "title": "Filter service paths",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-009.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "filter",
        "service",
        "paths"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-008",
        "CICD-010"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "Push a change in each watched input. Keep required gate checks discoverable.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-010",
      "kind": "snippet",
      "title": "Handle published releases",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-010.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "handle",
        "published",
        "releases"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-009",
        "CICD-011"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "Observe github.event.release.tag_name from a published test release.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-011",
      "kind": "snippet",
      "title": "React to a completed workflow",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-011.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "react",
        "to",
        "a",
        "completed",
        "workflow"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-010",
        "CICD-012"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "GitHub runs this on failure too. Filter by conclusion at job scope before privileged operations.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-012",
      "kind": "snippet",
      "title": "Name runs by actor and ref",
      "category": "triggers",
      "difficulty": "foundation",
      "path": "snippets/CICD-012.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "name",
        "runs",
        "by",
        "actor",
        "and",
        "ref"
      ],
      "prerequisites": "workflow on an example repository with main as default",
      "related": [
        "CICD-011"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows",
      "notes": "Read the changed title in Actions. Confirm run-name support on the Gitea version in use.",
      "chapter": "snippets-triggers.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-013",
      "kind": "snippet",
      "title": "Select an Ubuntu runner",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-013.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "select",
        "an",
        "ubuntu",
        "runner"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-014"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Confirm the queue finds the configured label. A Gitea label maps to its configured executor.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-014",
      "kind": "snippet",
      "title": "Probe execution context",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-014.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "probe",
        "execution",
        "context"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-013",
        "CICD-015"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Compare runner host and container output to identify the execution environment.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-015",
      "kind": "snippet",
      "title": "Check out the triggering commit",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-015.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "check",
        "out",
        "the",
        "triggering",
        "commit"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-014",
        "CICD-016"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Check for .git and verify git rev-parse HEAD. PR runs may check out a merge ref.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-016",
      "kind": "snippet",
      "title": "Check out full history",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-016.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "check",
        "out",
        "full",
        "history"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-015",
        "CICD-017"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use merge-base on fetched refs rather than assuming an ancestor exists in a shallow clone.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-017",
      "kind": "snippet",
      "title": "Define a job dependency",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-017.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "define",
        "a",
        "job",
        "dependency"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-016",
        "CICD-018"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Add to the build job. It starts after both upstream jobs succeed.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-018",
      "kind": "snippet",
      "title": "Run sibling jobs in parallel",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-018.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "run",
        "sibling",
        "jobs",
        "in",
        "parallel"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-017",
        "CICD-019"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Place under jobs and inspect independent queueing. Shared runner capacity may serialize them.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-019",
      "kind": "snippet",
      "title": "Run work inside a job container",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-019.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "run",
        "work",
        "inside",
        "a",
        "job",
        "container"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-018",
        "CICD-020"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "A container-capable Linux runner is required. Verify the image actually provides the executable.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-020",
      "kind": "snippet",
      "title": "Set a job timeout",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-020.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "set",
        "a",
        "job",
        "timeout"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-019",
        "CICD-021"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Bound a job that can hang. Use a short disposable proof job to observe late-step cancellation.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-021",
      "kind": "snippet",
      "title": "Make an experimental job non-blocking",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-021.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "make",
        "an",
        "experimental",
        "job",
        "non",
        "blocking"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-020",
        "CICD-022"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Apply only to an experimental job. Confirm branch protection requires stable checks separately.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-022",
      "kind": "snippet",
      "title": "Use a protected deployment environment",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-022.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "use",
        "a",
        "protected",
        "deployment",
        "environment"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-021",
        "CICD-023"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Configure actual environment protection in the platform and verify when the job pauses.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-023",
      "kind": "snippet",
      "title": "Set shell defaults for run steps",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-023.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "bash",
        "jobs"
      ],
      "keywords": [
        "set",
        "shell",
        "defaults",
        "for",
        "run",
        "steps"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-022",
        "CICD-024"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Provision the directory with checkout first. Action steps retain their own working directory.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-024",
      "kind": "snippet",
      "title": "Prioritize new checks on a branch",
      "category": "jobs",
      "difficulty": "foundation",
      "path": "snippets/CICD-024.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jobs"
      ],
      "keywords": [
        "prioritize",
        "new",
        "checks",
        "on",
        "a",
        "branch"
      ],
      "prerequisites": "workflow containing the named example jobs or steps",
      "related": [
        "CICD-023"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Verify a new push cancels a running obsolete PR check. Scope group names to avoid collisions.",
      "chapter": "snippets-jobs.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-025",
      "kind": "snippet",
      "title": "Pass a file path through a step variable",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-025.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow"
      ],
      "keywords": [
        "pass",
        "a",
        "file",
        "path",
        "through",
        "a",
        "step",
        "variable"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-026"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "Set the file from the producer and prove the consumer fails if it is absent.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-026",
      "kind": "snippet",
      "title": "Use a repository configuration variable",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-026.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow"
      ],
      "keywords": [
        "use",
        "a",
        "repository",
        "configuration",
        "variable"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-025",
        "CICD-027"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "Configure a non-secret repository variable with exact spelling. Empty configuration should fail visibly.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-027",
      "kind": "snippet",
      "title": "Write a variable for later steps",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-027.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow"
      ],
      "keywords": [
        "write",
        "a",
        "variable",
        "for",
        "later",
        "steps"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-026",
        "CICD-028"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "Observe BUILD_MODE in a later step in the same job.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-028",
      "kind": "snippet",
      "title": "Add a private tool directory to PATH",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-028.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow"
      ],
      "keywords": [
        "add",
        "a",
        "private",
        "tool",
        "directory",
        "to",
        "path"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-027",
        "CICD-029"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "Put a checked executable in this directory and use it only in later steps.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-029",
      "kind": "snippet",
      "title": "Emit a producer step output",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-029.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow"
      ],
      "keywords": [
        "emit",
        "a",
        "producer",
        "step",
        "output"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-028",
        "CICD-030"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "Set an ID on the producer and read steps.ID.outputs.image_tag.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-030",
      "kind": "snippet",
      "title": "Pass an output across jobs",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-030.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow"
      ],
      "keywords": [
        "pass",
        "an",
        "output",
        "across",
        "jobs",
        "pass data between jobs",
        "outputs",
        "job isolation",
        "cross-job"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-029",
        "CICD-031"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "Declare digest in the producer's job outputs and distinguish it from a missing artifact.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-031",
      "kind": "snippet",
      "title": "Write a readable run summary",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-031.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow"
      ],
      "keywords": [
        "write",
        "a",
        "readable",
        "run",
        "summary"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-030",
        "CICD-032"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "The job summary should show the commit without downloading a log file.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-032",
      "kind": "snippet",
      "title": "Use step outcome for diagnostics",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-032.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow"
      ],
      "keywords": [
        "use",
        "step",
        "outcome",
        "for",
        "diagnostics"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-031",
        "CICD-033"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "Set the producer ID to tests. outcome reports pre-continue-on-error status.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-033",
      "kind": "snippet",
      "title": "Avoid shell interpolation of event fields",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-033.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow"
      ],
      "keywords": [
        "avoid",
        "shell",
        "interpolation",
        "of",
        "event",
        "fields"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-032",
        "CICD-034"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "Quoting treats the title as data. Keep untrusted strings out of shell source.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-034",
      "kind": "snippet",
      "title": "Generate compact JSON for a matrix",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-034.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow",
        "jq",
        "python"
      ],
      "keywords": [
        "generate",
        "compact",
        "json",
        "for",
        "a",
        "matrix"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-033",
        "CICD-035"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "Consume with fromJSON on the output. Raw multiline JSON breaks a single-line output protocol.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-035",
      "kind": "snippet",
      "title": "Validate secret configuration without printing it",
      "category": "data-flow",
      "difficulty": "foundation",
      "path": "snippets/CICD-035.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "data-flow"
      ],
      "keywords": [
        "validate",
        "secret",
        "configuration",
        "without",
        "printing",
        "it"
      ],
      "prerequisites": "GitHub Actions job or equivalent Gitea version with environment file support",
      "related": [
        "CICD-034"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands",
      "notes": "Use in a trusted deployment job only. Fork PRs may have no value.",
      "chapter": "snippets-data-flow.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-036",
      "kind": "snippet",
      "title": "Test two Python releases",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-036.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "matrix",
        "python"
      ],
      "keywords": [
        "test",
        "two",
        "python",
        "releases"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-037"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "Install matrix.python in each job. Expect two independently visible results.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-037",
      "kind": "snippet",
      "title": "Matrix across operating systems",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-037.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "matrix"
      ],
      "keywords": [
        "matrix",
        "across",
        "operating",
        "systems"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-036",
        "CICD-038"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "Use portable shell commands or explicit per-OS steps.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-038",
      "kind": "snippet",
      "title": "Exclude an incompatible combination",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-038.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "matrix",
        "python"
      ],
      "keywords": [
        "exclude",
        "an",
        "incompatible",
        "combination"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-037",
        "CICD-039"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "The matrix yields three jobs. Explain the omitted compatibility combination in the repository.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-039",
      "kind": "snippet",
      "title": "Include an independent experimental tuple",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-039.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "matrix",
        "python"
      ],
      "keywords": [
        "include",
        "an",
        "independent",
        "experimental",
        "tuple"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-038",
        "CICD-040"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "The experimental row provides evidence without weakening the supported row.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-040",
      "kind": "snippet",
      "title": "Retain failing matrix logs from other rows",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-040.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "matrix"
      ],
      "keywords": [
        "retain",
        "failing",
        "matrix",
        "logs",
        "from",
        "other",
        "rows"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-039",
        "CICD-041"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "A stable failure does not cancel the other active row.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-041",
      "kind": "snippet",
      "title": "Cap concurrent matrix jobs",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-041.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "matrix"
      ],
      "keywords": [
        "cap",
        "concurrent",
        "matrix",
        "jobs"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-040",
        "CICD-042"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "Observe a maximum of two running rows per job strategy.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-042",
      "kind": "snippet",
      "title": "Give matrix artifact names unique suffixes",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-042.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "matrix",
        "python"
      ],
      "keywords": [
        "give",
        "matrix",
        "artifact",
        "names",
        "unique",
        "suffixes"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-041",
        "CICD-043"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "With two dimensions, both values must be present in the name.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-043",
      "kind": "snippet",
      "title": "Split pytest by stable file set",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-043.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "matrix",
        "pytest"
      ],
      "keywords": [
        "split",
        "pytest",
        "by",
        "stable",
        "file",
        "set"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-042",
        "CICD-044"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "Set SHARD from 0 through 3 and ensure one row contains every intended file exactly once. Use simple fixture filenames.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-044",
      "kind": "snippet",
      "title": "Record matrix context safely",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-044.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "matrix"
      ],
      "keywords": [
        "record",
        "matrix",
        "context",
        "safely"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-043",
        "CICD-045"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "Use for non-secret matrix data. Compare output across rows.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-045",
      "kind": "snippet",
      "title": "Select a matrix from explicit JSON",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-045.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "matrix"
      ],
      "keywords": [
        "select",
        "a",
        "matrix",
        "from",
        "explicit",
        "json"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-044",
        "CICD-046"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "Configure needs: plan on the job. A compact JSON object with at least one dimension is required.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-046",
      "kind": "snippet",
      "title": "Keep the required result after sharding",
      "category": "matrix",
      "difficulty": "foundation",
      "path": "snippets/CICD-046.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "matrix"
      ],
      "keywords": [
        "keep",
        "the",
        "required",
        "result",
        "after",
        "sharding"
      ],
      "prerequisites": "workspace whose runtime dependencies match the chosen target combinations",
      "related": [
        "CICD-045"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",
      "notes": "Protect this named check and prove a failed shard fails the aggregate.",
      "chapter": "snippets-matrix.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-047",
      "kind": "snippet",
      "title": "Store a workflow at the Gitea entry point",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-047.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "gitea",
        "gitea-foundation"
      ],
      "keywords": [
        "store",
        "a",
        "workflow",
        "at",
        "the",
        "gitea",
        "entry",
        "point"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-048"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Verify the workflow is tracked in the expected directory and compare it to Actions UI.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-048",
      "kind": "snippet",
      "title": "Discover available runner labels",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-048.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "gitea-foundation"
      ],
      "keywords": [
        "discover",
        "available",
        "runner",
        "labels"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-047",
        "CICD-049"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Generated labels are defaults. Check the running runner's configuration and server UI for authoritative state.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-049",
      "kind": "snippet",
      "title": "Check Gitea access from a job",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-049.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "gitea",
        "gitea-foundation",
        "jq"
      ],
      "keywords": [
        "check",
        "gitea",
        "access",
        "from",
        "a",
        "job"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-048",
        "CICD-050"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Use the URL reachable from the actual job container rather than 127.0.0.1 on the host.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-050",
      "kind": "snippet",
      "title": "Select an explicit external action source",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-050.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "gitea-foundation"
      ],
      "keywords": [
        "select",
        "an",
        "explicit",
        "external",
        "action",
        "source"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-049",
        "CICD-051"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Verify the trusted Gitea runner can reach and download this action. Prefer reviewed SHA pins in production.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-051",
      "kind": "snippet",
      "title": "Verify default branch execution",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-051.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "gitea-foundation"
      ],
      "keywords": [
        "verify",
        "default",
        "branch",
        "execution"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-050",
        "CICD-052"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Push a benign commit to main and check the trigger in the Gitea run details.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-052",
      "kind": "snippet",
      "title": "Use uv with a committed lockfile",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-052.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "gitea-foundation",
        "pytest",
        "uv"
      ],
      "keywords": [
        "use",
        "uv",
        "with",
        "a",
        "committed",
        "lockfile"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-051",
        "CICD-053"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Dependency drift must fail instead of silently updating uv.lock.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-053",
      "kind": "snippet",
      "title": "Check Gitea runner user and workspace",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-053.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "gitea-foundation"
      ],
      "keywords": [
        "check",
        "gitea",
        "runner",
        "user",
        "and",
        "workspace"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-052",
        "CICD-054"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "The ID means user identity in the executor, which can differ from the host.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-054",
      "kind": "snippet",
      "title": "Read runner-local diagnostics",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-054.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "gitea",
        "gitea-foundation"
      ],
      "keywords": [
        "read",
        "runner",
        "local",
        "diagnostics"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-053",
        "CICD-055"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Run on the authorized runner host and scrub addresses or secrets before sharing logs.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-055",
      "kind": "snippet",
      "title": "Check container runtime availability",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-055.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "gitea-foundation"
      ],
      "keywords": [
        "check",
        "container",
        "runtime",
        "availability"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-054",
        "CICD-056"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Run on the trusted host. Socket access indicates substantial privileges.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-056",
      "kind": "snippet",
      "title": "Preflight artifact support",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-056.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "gitea-foundation"
      ],
      "keywords": [
        "preflight",
        "artifact",
        "support"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-055",
        "CICD-057"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Use only on a release that supports this artifact protocol. GitHub.com retired v3 and uses v4.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-057",
      "kind": "snippet",
      "title": "Distinguish host DNS from job DNS",
      "category": "gitea-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-057.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "gitea",
        "gitea-foundation"
      ],
      "keywords": [
        "distinguish",
        "host",
        "dns",
        "from",
        "job",
        "dns"
      ],
      "prerequisites": "Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed",
      "related": [
        "CICD-056"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Run in a job and inspect resolver settings. Local multicast DNS commonly differs from container DNS.",
      "chapter": "snippets-gitea-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-058",
      "kind": "snippet",
      "title": "Install with pip hash verification",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-058.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "install",
        "with",
        "pip",
        "hash",
        "verification"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-059"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "Lock transitive requirements and hashes before CI. A modified distribution is rejected.",
      "chapter": "snippets-python.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-059",
      "kind": "snippet",
      "title": "Require a current uv lock",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-059.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "python",
        "uv"
      ],
      "keywords": [
        "require",
        "a",
        "current",
        "uv",
        "lock"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-058",
        "CICD-060"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "Simulate a pyproject change and verify the check fails on stale lock state.",
      "chapter": "snippets-python.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-060",
      "kind": "snippet",
      "title": "Run tests using uv",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-060.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "pytest",
        "python",
        "uv"
      ],
      "keywords": [
        "run",
        "tests",
        "using",
        "uv"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-059",
        "CICD-061"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "Ensure pytest is in the declared default dev group and test exact path discovery.",
      "chapter": "snippets-python.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-061",
      "kind": "snippet",
      "title": "Lint changed Python sources",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-061.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "python",
        "uv"
      ],
      "keywords": [
        "lint",
        "changed",
        "python",
        "sources"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-060",
        "CICD-062"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "All findings fail the job. Keep rule configuration with the project.",
      "chapter": "snippets-python.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-062",
      "kind": "snippet",
      "title": "Check Ruff formatting",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-062.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "python",
        "uv"
      ],
      "keywords": [
        "check",
        "ruff",
        "formatting"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-061",
        "CICD-063"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "CI prints offending files and leaves working tree unchanged.",
      "chapter": "snippets-python.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-063",
      "kind": "snippet",
      "title": "Check types",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-063.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "python",
        "uv"
      ],
      "keywords": [
        "check",
        "types"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-062",
        "CICD-064"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "Install project type stubs and keep Python versions aligned with runtime targets.",
      "chapter": "snippets-python.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-064",
      "kind": "snippet",
      "title": "Fail under coverage threshold",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-064.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "pytest",
        "python",
        "uv"
      ],
      "keywords": [
        "fail",
        "under",
        "coverage",
        "threshold"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-063",
        "CICD-065"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "Scope collected modules and ensure the plugin dependency exists.",
      "chapter": "snippets-python.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-065",
      "kind": "snippet",
      "title": "Write a test report as JUnit XML",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-065.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "pytest",
        "python",
        "uv"
      ],
      "keywords": [
        "write",
        "a",
        "test",
        "report",
        "as",
        "junit",
        "xml"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-064",
        "CICD-066"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "Upload the report even when tests fail using the platform's failure condition.",
      "chapter": "snippets-python.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-066",
      "kind": "snippet",
      "title": "Build a wheel from the package declarations",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-066.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "python",
        "uv"
      ],
      "keywords": [
        "build",
        "a",
        "wheel",
        "from",
        "the",
        "package",
        "declarations"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-065",
        "CICD-067"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "Verify exactly one expected package and check metadata separately.",
      "chapter": "snippets-python.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-067",
      "kind": "snippet",
      "title": "Install a built wheel in a fresh environment",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-067.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "install",
        "a",
        "built",
        "wheel",
        "in",
        "a",
        "fresh",
        "environment"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-066",
        "CICD-068"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "Run outside the source tree in a real smoke check to prove imports come from the installed distribution.",
      "chapter": "snippets-python.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-068",
      "kind": "snippet",
      "title": "Test against a disposable PostgreSQL",
      "category": "python",
      "difficulty": "foundation",
      "path": "snippets/CICD-068.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "pytest",
        "python",
        "uv"
      ],
      "keywords": [
        "test",
        "against",
        "a",
        "disposable",
        "postgresql"
      ],
      "prerequisites": "uv or Python dependencies pinned with fixture application and tests",
      "related": [
        "CICD-067"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.astral.sh/uv/guides/integration/github/",
      "notes": "Set an isolated compose project and DSN before running. Teardown even after failure.",
      "chapter": "snippets-python.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-069",
      "kind": "snippet",
      "title": "Install locked npm dependencies",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-069.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "language-builds",
        "node"
      ],
      "keywords": [
        "install",
        "locked",
        "npm",
        "dependencies"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-070"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Require package-lock.json and use the package manager version declared by the project.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-070",
      "kind": "snippet",
      "title": "Run Node tests and build assets",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-070.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "language-builds",
        "node"
      ],
      "keywords": [
        "run",
        "node",
        "tests",
        "and",
        "build",
        "assets"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-069",
        "CICD-071"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Use a test runner that supports --ci and a package.json build script.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-071",
      "kind": "snippet",
      "title": "Install a pnpm worktree frozen",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-071.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "language-builds",
        "node",
        "pnpm"
      ],
      "keywords": [
        "install",
        "a",
        "pnpm",
        "worktree",
        "frozen"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-070",
        "CICD-072"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Provision Corepack and the pinned pnpm version. Lock drift should fail CI.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-072",
      "kind": "snippet",
      "title": "Check a Go repository under race instrumentation",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-072.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "go",
        "language-builds"
      ],
      "keywords": [
        "check",
        "a",
        "go",
        "repository",
        "under",
        "race",
        "instrumentation"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-071",
        "CICD-073"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Use a supported Linux architecture and C toolchain for race support.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-073",
      "kind": "snippet",
      "title": "Build a static Go Linux target",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-073.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "go",
        "language-builds"
      ],
      "keywords": [
        "build",
        "a",
        "static",
        "go",
        "linux",
        "target"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-072",
        "CICD-074"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Include matching modules and test the resulting binary on Linux AMD64.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-074",
      "kind": "snippet",
      "title": "Run locked Rust tests",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-074.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "go",
        "language-builds",
        "rust"
      ],
      "keywords": [
        "run",
        "locked",
        "rust",
        "tests"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-073",
        "CICD-075"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Commit Cargo.lock when appropriate and verify the image Rust version.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-075",
      "kind": "snippet",
      "title": "Reject Rust formatting drift",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-075.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "go",
        "language-builds",
        "rust"
      ],
      "keywords": [
        "reject",
        "rust",
        "formatting",
        "drift"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-074",
        "CICD-076"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Install rustfmt via the pinned toolchain first.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-076",
      "kind": "snippet",
      "title": "Build a Java project with Maven",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-076.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "language-builds",
        "maven"
      ],
      "keywords": [
        "build",
        "a",
        "java",
        "project",
        "with",
        "maven"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-075",
        "CICD-077"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Use a pinned JDK and wrapper. Read unit and integration test reports separately.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-077",
      "kind": "snippet",
      "title": "Run Gradle quality gates",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-077.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "language-builds"
      ],
      "keywords": [
        "run",
        "gradle",
        "quality",
        "gates"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-076",
        "CICD-078"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Use an approved JDK/version and include wrapper files in version control.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-078",
      "kind": "snippet",
      "title": "Validate a dotnet repository",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-078.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "language-builds"
      ],
      "keywords": [
        "validate",
        "a",
        "dotnet",
        "repository"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-077",
        "CICD-079"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Ensure a lockfile and global.json specify the dependency and SDK policies.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-079",
      "kind": "snippet",
      "title": "Build and test CMake targets",
      "category": "language-builds",
      "difficulty": "foundation",
      "path": "snippets/CICD-079.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "language-builds"
      ],
      "keywords": [
        "build",
        "and",
        "test",
        "cmake",
        "targets"
      ],
      "prerequisites": "source repository with committed build manifest and pinned matching toolchain",
      "related": [
        "CICD-078"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Enable CTest in CMakeLists.txt and expect a nonzero result on a failed test.",
      "chapter": "snippets-language-builds.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-080",
      "kind": "snippet",
      "title": "Fail on unaudited whitespace changes",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-080.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "testing"
      ],
      "keywords": [
        "fail",
        "on",
        "unaudited",
        "whitespace",
        "changes"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-081"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Fetch at least two commits. This checks the final diff for whitespace problems.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-081",
      "kind": "snippet",
      "title": "Run unit tests first",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-081.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "pytest",
        "testing"
      ],
      "keywords": [
        "run",
        "unit",
        "tests",
        "first"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-080",
        "CICD-082"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Register the marker and verify deselection counts before relying on it.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-082",
      "kind": "snippet",
      "title": "Select integration tests explicitly",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-082.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "pytest",
        "testing"
      ],
      "keywords": [
        "select",
        "integration",
        "tests",
        "explicitly"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-081",
        "CICD-083"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Configure marker and dependencies before tests. Zero selected tests should fail visibly.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-083",
      "kind": "snippet",
      "title": "Run browser tests in CI",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-083.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "testing"
      ],
      "keywords": [
        "run",
        "browser",
        "tests",
        "in",
        "ci"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-082",
        "CICD-084"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Install locked dependencies and provide a Playwright configuration with a Chromium project.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-084",
      "kind": "snippet",
      "title": "Check a local API health contract",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-084.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "jq",
        "testing"
      ],
      "keywords": [
        "check",
        "a",
        "local",
        "api",
        "health",
        "contract"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-083",
        "CICD-085"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Start the service and wait for readiness before the assertion.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-085",
      "kind": "snippet",
      "title": "Report flaky test reruns explicitly",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-085.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "pytest",
        "testing"
      ],
      "keywords": [
        "report",
        "flaky",
        "test",
        "reruns",
        "explicitly"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-084",
        "CICD-086"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Install pytest-rerunfailures and keep retries visible. Treat persistent flaky results as a tracked defect.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-086",
      "kind": "snippet",
      "title": "Validate generated assets are committed",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-086.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "node",
        "testing"
      ],
      "keywords": [
        "validate",
        "generated",
        "assets",
        "are",
        "committed"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-085",
        "CICD-087"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Detect both modified and newly generated tracked-scope files.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-087",
      "kind": "snippet",
      "title": "Validate data fixtures with jsonschema",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-087.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "python",
        "testing"
      ],
      "keywords": [
        "validate",
        "data",
        "fixtures",
        "with",
        "jsonschema"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-086",
        "CICD-088"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Use a pinned validator and a negative fixture proving the schema rejects wrong values.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-088",
      "kind": "snippet",
      "title": "Test Bash helper behaviour",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-088.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "bash",
        "testing"
      ],
      "keywords": [
        "test",
        "bash",
        "helper",
        "behaviour"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-087",
        "CICD-089"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Bash syntax and behaviour are separate checks. Use fixture binaries or a dry-run flag in tests.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-089",
      "kind": "snippet",
      "title": "Check SQL formatting",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-089.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "testing"
      ],
      "keywords": [
        "check",
        "sql",
        "formatting"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-088",
        "CICD-090"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Set the SQL dialect and templater to match the migration code.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-090",
      "kind": "snippet",
      "title": "Upload diagnostics on failing checks",
      "category": "testing",
      "difficulty": "foundation",
      "path": "snippets/CICD-090.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "testing"
      ],
      "keywords": [
        "upload",
        "diagnostics",
        "on",
        "failing",
        "checks"
      ],
      "prerequisites": "repository with test fixtures and task-specific quality dependencies",
      "related": [
        "CICD-089"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing",
      "notes": "Keep logs scrubbed of secrets and configure a short retention period.",
      "chapter": "snippets-testing.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-091",
      "kind": "snippet",
      "title": "Upload a build artifact",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-091.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "artifacts"
      ],
      "keywords": [
        "upload",
        "a",
        "build",
        "artifact"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-092"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Check the artifact name and file in the run. Missing outputs must fail.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-092",
      "kind": "snippet",
      "title": "Download the artifact in another job",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-092.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "artifacts"
      ],
      "keywords": [
        "download",
        "the",
        "artifact",
        "in",
        "another",
        "job"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-091",
        "CICD-093"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Add needs on the producer. Expect the wheel under received.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-093",
      "kind": "snippet",
      "title": "Set an artifact retention period",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-093.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "artifacts"
      ],
      "keywords": [
        "set",
        "an",
        "artifact",
        "retention",
        "period"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-092",
        "CICD-094"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Confirm configured retention complies with policy and the platform limit.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-094",
      "kind": "snippet",
      "title": "Hash output before crossing jobs",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-094.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifacts"
      ],
      "keywords": [
        "hash",
        "output",
        "before",
        "crossing",
        "jobs"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-093",
        "CICD-095"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Upload files and checksum in the same artifact. Verify through the same immutable run.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-095",
      "kind": "snippet",
      "title": "Check artifact bytes after download",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-095.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifacts"
      ],
      "keywords": [
        "check",
        "artifact",
        "bytes",
        "after",
        "download"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-094",
        "CICD-096"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Modify a copy of the artifact and verify checksum failure.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-096",
      "kind": "snippet",
      "title": "Package a fixed release manifest",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-096.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifacts",
        "jq"
      ],
      "keywords": [
        "package",
        "a",
        "fixed",
        "release",
        "manifest"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-095",
        "CICD-097"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Use an immutable Git SHA rather than branch name. Add artifact digest after the build.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-097",
      "kind": "snippet",
      "title": "Bundle test logs for offline reading",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-097.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifacts"
      ],
      "keywords": [
        "bundle",
        "test",
        "logs",
        "for",
        "offline",
        "reading"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-096",
        "CICD-098"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Inspect listing for expected paths and review secret handling before publishing.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-098",
      "kind": "snippet",
      "title": "Compare source and artifact metadata",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-098.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifacts",
        "jq"
      ],
      "keywords": [
        "compare",
        "source",
        "and",
        "artifact",
        "metadata"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-097",
        "CICD-099"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Supply the approved source commit instead if this is a separate promotion run.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-099",
      "kind": "snippet",
      "title": "Inspect wheel contents before publishing",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-099.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifacts",
        "python"
      ],
      "keywords": [
        "inspect",
        "wheel",
        "contents",
        "before",
        "publishing"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-098",
        "CICD-100"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Check application assets exist and unintended config or credentials do not appear.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-100",
      "kind": "snippet",
      "title": "Keep the same digest through promotion",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-100.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifacts"
      ],
      "keywords": [
        "keep",
        "the",
        "same",
        "digest",
        "through",
        "promotion"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-099",
        "CICD-101"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Use signed or trusted build provenance to set these values.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-101",
      "kind": "snippet",
      "title": "List artifact expiration state from CI",
      "category": "artifacts",
      "difficulty": "foundation",
      "path": "snippets/CICD-101.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "artifacts",
        "github-cli",
        "jq"
      ],
      "keywords": [
        "list",
        "artifact",
        "expiration",
        "state",
        "from",
        "ci"
      ],
      "prerequisites": "actions runner, trusted producers and files actually generated by tests",
      "related": [
        "CICD-100"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts",
      "notes": "Scope token reads to the current repository and verify the run ID.",
      "chapter": "snippets-artifacts.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-102",
      "kind": "snippet",
      "title": "Cache pip downloads by lock digest",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-102.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "reuse-cache"
      ],
      "keywords": [
        "cache",
        "pip",
        "downloads",
        "by",
        "lock",
        "digest"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-103"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "Hash the dependency input and verify second-run cache hit.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-103",
      "kind": "snippet",
      "title": "Set a restoration prefix",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-103.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "reuse-cache"
      ],
      "keywords": [
        "set",
        "a",
        "restoration",
        "prefix"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-102",
        "CICD-104"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "A prefix can restore older downloads. Always run locked dependency installation.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-104",
      "kind": "snippet",
      "title": "Skip a build after an exact cache hit",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-104.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "node",
        "reuse-cache"
      ],
      "keywords": [
        "skip",
        "a",
        "build",
        "after",
        "an",
        "exact",
        "cache",
        "hit"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-103",
        "CICD-105"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "Use a cache for fully keyed generated output and validate restored output independently.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-105",
      "kind": "snippet",
      "title": "Compute a cache key with a namespace bump",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-105.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "reuse-cache"
      ],
      "keywords": [
        "compute",
        "a",
        "cache",
        "key",
        "with",
        "a",
        "namespace",
        "bump"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-104",
        "CICD-106"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "Bump the namespace when cache contents or producer toolchain changes.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-106",
      "kind": "snippet",
      "title": "Call a local reusable workflow",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-106.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "reuse-cache"
      ],
      "keywords": [
        "call",
        "a",
        "local",
        "reusable",
        "workflow"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-105",
        "CICD-107"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "Put this in jobs and define workflow_call with a string input in the provider.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-107",
      "kind": "snippet",
      "title": "Create a reusable workflow input contract",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-107.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "reuse-cache"
      ],
      "keywords": [
        "create",
        "a",
        "reusable",
        "workflow",
        "input",
        "contract"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-106",
        "CICD-108"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "Add actual jobs and use inputs.mode for selected behavior.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-108",
      "kind": "snippet",
      "title": "Pass one secret to a reuse provider",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-108.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "reuse-cache"
      ],
      "keywords": [
        "pass",
        "one",
        "secret",
        "to",
        "a",
        "reuse",
        "provider"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-107",
        "CICD-109"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "Supply the provider contract and minimize forwarded access.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-109",
      "kind": "snippet",
      "title": "Define a composite action",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-109.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "bash",
        "reuse-cache"
      ],
      "keywords": [
        "define",
        "a",
        "composite",
        "action"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-108",
        "CICD-110"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "Save as .github/actions/smoke/action.yml. A composite run step requires a shell.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-110",
      "kind": "snippet",
      "title": "Call a checked-out composite action",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-110.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "reuse-cache"
      ],
      "keywords": [
        "call",
        "a",
        "checked",
        "out",
        "composite",
        "action"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-109",
        "CICD-111"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "Checkout before using a local action and keep its relative path anchored to repository root.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-111",
      "kind": "snippet",
      "title": "Reuse shell helper from app code",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-111.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "bash",
        "reuse-cache"
      ],
      "keywords": [
        "reuse",
        "shell",
        "helper",
        "from",
        "app",
        "code"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-110",
        "CICD-112"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "Version scripts with callers and check the helper in isolation.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-112",
      "kind": "snippet",
      "title": "Cache a downloaded tool archive safely",
      "category": "reuse-cache",
      "difficulty": "foundation",
      "path": "snippets/CICD-112.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "reuse-cache"
      ],
      "keywords": [
        "cache",
        "a",
        "downloaded",
        "tool",
        "archive",
        "safely"
      ],
      "prerequisites": "trusted checkout and cache/artifact support verified on the chosen Actions runner",
      "related": [
        "CICD-111"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",
      "notes": "Protect the reference hash upstream. A cache hit does not imply integrity.",
      "chapter": "snippets-reuse-cache.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-113",
      "kind": "snippet",
      "title": "Build a tagged image locally",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-113.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-build"
      ],
      "keywords": [
        "build",
        "a",
        "tagged",
        "image",
        "locally"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-114"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "Use Dockerfile at context root and record an image ID.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-114",
      "kind": "snippet",
      "title": "Select a named build stage",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-114.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-build"
      ],
      "keywords": [
        "select",
        "a",
        "named",
        "build",
        "stage"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-113",
        "CICD-115"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "Ensure test stage runs intended commands. Building a target only executes its dependency graph.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-115",
      "kind": "snippet",
      "title": "Build with explicit context",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-115.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-build"
      ],
      "keywords": [
        "build",
        "with",
        "explicit",
        "context"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-114",
        "CICD-116"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "COPY sources are relative to services/web. Include deploy/Dockerfile separately.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-116",
      "kind": "snippet",
      "title": "Show BuildKit progress in CI",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-116.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-build"
      ],
      "keywords": [
        "show",
        "buildkit",
        "progress",
        "in",
        "ci"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-115",
        "CICD-117"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "The plain log shows steps and cache reuse. Review logs for secrets.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-117",
      "kind": "snippet",
      "title": "Pull a base update in the lab",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-117.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-build"
      ],
      "keywords": [
        "pull",
        "a",
        "base",
        "update",
        "in",
        "the",
        "lab"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-116",
        "CICD-118"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "Test the newly resolved base and promote the verified digest through a controlled change.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-118",
      "kind": "snippet",
      "title": "Build for one foreign architecture",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-118.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-build"
      ],
      "keywords": [
        "build",
        "for",
        "one",
        "foreign",
        "architecture"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-117",
        "CICD-119"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "Use native workers or installed emulation. Validate the output on real ARM64 before promotion.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-119",
      "kind": "snippet",
      "title": "Export and re-import a candidate image",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-119.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-build"
      ],
      "keywords": [
        "export",
        "and",
        "re",
        "import",
        "a",
        "candidate",
        "image"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-118",
        "CICD-120"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "Use a trusted artifact and verify the resulting image config ID.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-120",
      "kind": "snippet",
      "title": "Prevent context bloat",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-120.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "docker-build"
      ],
      "keywords": [
        "prevent",
        "context",
        "bloat"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-119",
        "CICD-121"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "Save to context root .dockerignore and verify needed build files are still present.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-121",
      "kind": "snippet",
      "title": "Use a mount-based build secret",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-121.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "docker",
        "docker-build",
        "python"
      ],
      "keywords": [
        "use",
        "a",
        "mount",
        "based",
        "build",
        "secret"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-120",
        "CICD-122"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "Supply --secret id=pip_config,src=PATH through a trusted build. Avoid echoing secret contents.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-122",
      "kind": "snippet",
      "title": "Inspect image layer history",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-122.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-build"
      ],
      "keywords": [
        "inspect",
        "image",
        "layer",
        "history"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-121",
        "CICD-123"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "Review for suspicious commands or material. History alone is insufficient to check filesystem contents for accidental leakage.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-123",
      "kind": "snippet",
      "title": "Check expected Linux image user",
      "category": "docker-build",
      "difficulty": "foundation",
      "path": "snippets/CICD-123.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-build"
      ],
      "keywords": [
        "check",
        "expected",
        "linux",
        "image",
        "user"
      ],
      "prerequisites": "Docker Engine or BuildKit on a trusted lab runner",
      "related": [
        "CICD-122"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/build/",
      "notes": "Verify runtime security controls match the configured user ID.",
      "chapter": "snippets-docker-build.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-124",
      "kind": "snippet",
      "title": "Run a network-bound smoke check",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-124.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "docker",
        "docker-runtime"
      ],
      "keywords": [
        "run",
        "a",
        "network",
        "bound",
        "smoke",
        "check"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-125"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "Use a unique port or bounded per-run network when jobs share a host.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-125",
      "kind": "snippet",
      "title": "Validate expanded Compose configuration",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-125.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-runtime"
      ],
      "keywords": [
        "validate",
        "expanded",
        "compose",
        "configuration"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-124",
        "CICD-126"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "Run with non-secret sample environment values. Avoid printing expanded secrets.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-126",
      "kind": "snippet",
      "title": "Build Compose services",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-126.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-runtime"
      ],
      "keywords": [
        "build",
        "compose",
        "services"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-125",
        "CICD-127"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "Requires corresponding services in compose.yaml. Inspect project-generated image tags.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-127",
      "kind": "snippet",
      "title": "Start and wait for a Compose healthcheck",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-127.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-runtime"
      ],
      "keywords": [
        "start",
        "and",
        "wait",
        "for",
        "a",
        "compose",
        "healthcheck"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-126",
        "CICD-128"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "Add an application healthcheck rather than trusting only the running state.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-128",
      "kind": "snippet",
      "title": "Show recent container logs",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-128.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-runtime"
      ],
      "keywords": [
        "show",
        "recent",
        "container",
        "logs"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-127",
        "CICD-129"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "Capture before teardown and scrub sensitive log fields.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-129",
      "kind": "snippet",
      "title": "Test service-name DNS inside Compose",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-129.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-runtime"
      ],
      "keywords": [
        "test",
        "service",
        "name",
        "dns",
        "inside",
        "compose"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-128",
        "CICD-130"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "Check from the service namespace. Compose network names are resolved inside that network.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-130",
      "kind": "snippet",
      "title": "Run a one-shot Compose task",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-130.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-runtime",
        "pytest",
        "python"
      ],
      "keywords": [
        "run",
        "a",
        "one",
        "shot",
        "compose",
        "task"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-129",
        "CICD-131"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "Test image must include pytest and repository fixture files.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-131",
      "kind": "snippet",
      "title": "Tear down only the test project",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-131.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-runtime"
      ],
      "keywords": [
        "tear",
        "down",
        "only",
        "the",
        "test",
        "project"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-130",
        "CICD-132"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "Use a per-run name. Preserve volumes unless you explicitly intend to discard test data.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-132",
      "kind": "snippet",
      "title": "Set a container memory limit",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-132.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-runtime",
        "python"
      ],
      "keywords": [
        "set",
        "a",
        "container",
        "memory",
        "limit"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-131",
        "CICD-133"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "Measure resource behaviour against a fixture and inspect OOM status for long-running tests.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-133",
      "kind": "snippet",
      "title": "Make root filesystem read-only",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-133.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-runtime",
        "python"
      ],
      "keywords": [
        "make",
        "root",
        "filesystem",
        "read",
        "only"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-132",
        "CICD-134"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "App needs dedicated writable mounts for expected state. Do not assume image startup supports read-only mode.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-134",
      "kind": "snippet",
      "title": "Run a runtime health probe inside the image",
      "category": "docker-runtime",
      "difficulty": "foundation",
      "path": "snippets/CICD-134.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "docker-runtime"
      ],
      "keywords": [
        "run",
        "a",
        "runtime",
        "health",
        "probe",
        "inside",
        "the",
        "image"
      ],
      "prerequisites": "disposable Docker or Compose project with example web service",
      "related": [
        "CICD-133"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/compose/",
      "notes": "Supply a Dockerfile or Compose healthcheck and poll with a deadline.",
      "chapter": "snippets-docker-runtime.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-135",
      "kind": "snippet",
      "title": "Log in without passwords on argv",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-135.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "registries"
      ],
      "keywords": [
        "log",
        "in",
        "without",
        "passwords",
        "on",
        "argv"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-136"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "Use a scoped secret on a trusted runner. Use an isolated Docker config and clean it up.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-136",
      "kind": "snippet",
      "title": "Tag by commit SHA",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-136.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "registries"
      ],
      "keywords": [
        "tag",
        "by",
        "commit",
        "sha"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-135",
        "CICD-137"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "IMAGE_REPO contains registry and image path. Release by digest after push.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-137",
      "kind": "snippet",
      "title": "Push a tested candidate",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-137.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "registries"
      ],
      "keywords": [
        "push",
        "a",
        "tested",
        "candidate"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-136",
        "CICD-138"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "Apply least privilege to the repository and capture candidate digest.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-138",
      "kind": "snippet",
      "title": "Confirm a remote manifest exists",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-138.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "registries"
      ],
      "keywords": [
        "confirm",
        "a",
        "remote",
        "manifest",
        "exists"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-137",
        "CICD-139"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "Expect the intended descriptor and architecture after push.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-139",
      "kind": "snippet",
      "title": "Inspect multi-platform image manifests",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-139.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "jq",
        "registries"
      ],
      "keywords": [
        "inspect",
        "multi",
        "platform",
        "image",
        "manifests"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-138",
        "CICD-140"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "Supply an OCI index image, not a single-manifest tag.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-140",
      "kind": "snippet",
      "title": "Fetch a digest-pinned image",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-140.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "registries"
      ],
      "keywords": [
        "fetch",
        "a",
        "digest",
        "pinned",
        "image"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-139",
        "CICD-141"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "Reject mutable references before pulling into the deployment environment.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-141",
      "kind": "snippet",
      "title": "Record manifest digest evidence",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-141.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "registries"
      ],
      "keywords": [
        "record",
        "manifest",
        "digest",
        "evidence"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-140",
        "CICD-142"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "Inspect top-level manifest digest for the exact target repository.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-142",
      "kind": "snippet",
      "title": "Publish a local archive to an existing GitHub Release",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-142.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "github-cli",
        "registries"
      ],
      "keywords": [
        "publish",
        "a",
        "local",
        "archive",
        "to",
        "an",
        "existing",
        "github",
        "release"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-141",
        "CICD-143"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "Use approved selected repo and tag. Existing asset names should fail rather than overwrite.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-143",
      "kind": "snippet",
      "title": "Preview matching protected version tags",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-143.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "registries"
      ],
      "keywords": [
        "preview",
        "matching",
        "protected",
        "version",
        "tags"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-142",
        "CICD-144"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "Compare planned release tag with an approved versioning scheme and source commit.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-144",
      "kind": "snippet",
      "title": "Write release checksum manifest",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-144.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "registries"
      ],
      "keywords": [
        "write",
        "release",
        "checksum",
        "manifest"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-143",
        "CICD-145"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "Upload checksum with the signed release metadata.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-145",
      "kind": "snippet",
      "title": "Remove registry auth from local configuration",
      "category": "registries",
      "difficulty": "foundation",
      "path": "snippets/CICD-145.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "registries"
      ],
      "keywords": [
        "remove",
        "registry",
        "auth",
        "from",
        "local",
        "configuration"
      ],
      "prerequisites": "authorized test registry, scoped credentials and candidate artifact",
      "related": [
        "CICD-144"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.docker.com/reference/cli/docker/login/",
      "notes": "If using an ephemeral Docker config also remove the job-owned temp directory on exit.",
      "chapter": "snippets-registries.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-146",
      "kind": "snippet",
      "title": "Verify Kubernetes client and server context",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-146.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kube-foundation",
        "kubernetes"
      ],
      "keywords": [
        "verify",
        "kubernetes",
        "client",
        "and",
        "server",
        "context"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-147"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Scope commands to the verified environment. Prevent writes if the context drifts.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-147",
      "kind": "snippet",
      "title": "Apply reviewed manifests in staging",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-147.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kube-foundation",
        "kubernetes"
      ],
      "keywords": [
        "apply",
        "reviewed",
        "manifests",
        "in",
        "staging"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-146",
        "CICD-148"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Run a dry-run first and verify declared namespaces cannot redirect writes.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-148",
      "kind": "snippet",
      "title": "Check deployment convergence",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-148.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kube-foundation",
        "kubernetes"
      ],
      "keywords": [
        "check",
        "deployment",
        "convergence"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-147",
        "CICD-149"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Use a bounded timeout. Check events and progress conditions if it fails.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-149",
      "kind": "snippet",
      "title": "Set an image digest explicitly",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-149.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kube-foundation",
        "kubernetes"
      ],
      "keywords": [
        "set",
        "an",
        "image",
        "digest",
        "explicitly"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-148",
        "CICD-150"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Names map to deployment and container. Verify rollout and the running Pod image ID.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-150",
      "kind": "snippet",
      "title": "Check Pod readiness",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-150.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kube-foundation",
        "kubernetes"
      ],
      "keywords": [
        "check",
        "pod",
        "readiness"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-149",
        "CICD-151"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Ensure label selects only the intended release if old Pods exist.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-151",
      "kind": "snippet",
      "title": "Collect bounded Pod logs",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-151.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kube-foundation",
        "kubernetes"
      ],
      "keywords": [
        "collect",
        "bounded",
        "pod",
        "logs"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-150",
        "CICD-152"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Capture logs from the specific release and scrub sensitive fields.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-152",
      "kind": "snippet",
      "title": "Inspect namespace events",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-152.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kube-foundation",
        "kubernetes"
      ],
      "keywords": [
        "inspect",
        "namespace",
        "events"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-151",
        "CICD-153"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Use alongside Pod conditions to identify scheduling, image and health issues.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-153",
      "kind": "snippet",
      "title": "Test service endpoints exist",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-153.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "jq",
        "kube-foundation",
        "kubernetes"
      ],
      "keywords": [
        "test",
        "service",
        "endpoints",
        "exist"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-152",
        "CICD-154"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Compare selectors and readiness if no EndpointSlices are ready.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-154",
      "kind": "snippet",
      "title": "Set liveness and readiness separately",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-154.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kube-foundation"
      ],
      "keywords": [
        "set",
        "liveness",
        "and",
        "readiness",
        "separately"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-153",
        "CICD-155"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Merge under a container. Readiness controls serving eligibility while liveness can restart a container.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-155",
      "kind": "snippet",
      "title": "Validate a workload manifest against the API",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-155.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kube-foundation",
        "kubernetes"
      ],
      "keywords": [
        "validate",
        "a",
        "workload",
        "manifest",
        "against",
        "the",
        "api"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-154",
        "CICD-156"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Use a staging identity with necessary dry-run permissions. No workload is persisted.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-156",
      "kind": "snippet",
      "title": "Observe container restart count",
      "category": "kube-foundation",
      "difficulty": "foundation",
      "path": "snippets/CICD-156.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "jq",
        "kube-foundation",
        "kubernetes"
      ],
      "keywords": [
        "observe",
        "container",
        "restart",
        "count"
      ],
      "prerequisites": "isolated Kubernetes namespace, kubectl and reviewed manifests",
      "related": [
        "CICD-155"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Restrict to a newly deployed test workload. Historical restarts may be intentional in other contexts.",
      "chapter": "snippets-kube-foundation.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-157",
      "kind": "snippet",
      "title": "Lint a chart with staging values",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-157.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "lint",
        "a",
        "chart",
        "with",
        "staging",
        "values"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-158"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "Inspect lint warnings and missing required values.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-158",
      "kind": "snippet",
      "title": "Render a chart before deployment",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-158.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "render",
        "a",
        "chart",
        "before",
        "deployment"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-157",
        "CICD-159"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "Compare the rendered result against schema, policy and intended namespace.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-159",
      "kind": "snippet",
      "title": "Generate a default chart scaffold",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-159.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "generate",
        "a",
        "default",
        "chart",
        "scaffold"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-158",
        "CICD-160"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "Use this as a disposable learning scaffold and review generated resources.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-160",
      "kind": "snippet",
      "title": "Update dependencies from a chart lock",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-160.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "update",
        "dependencies",
        "from",
        "a",
        "chart",
        "lock"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-159",
        "CICD-161"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "Commit Chart.lock and require artifact fetch from reviewed repositories.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-161",
      "kind": "snippet",
      "title": "Package a chart",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-161.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "package",
        "a",
        "chart"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-160",
        "CICD-162"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "The chart version determines the output archive name.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-162",
      "kind": "snippet",
      "title": "Check chart values against JSON schema",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-162.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "check",
        "chart",
        "values",
        "against",
        "json",
        "schema"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-161",
        "CICD-163"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "Add values.schema.json and design the invalid fixture to prove it is enforced.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-163",
      "kind": "snippet",
      "title": "Use an immutable image in values",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-163.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "use",
        "an",
        "immutable",
        "image",
        "in",
        "values"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-162",
        "CICD-164"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "Replace the illustrative digest. Template should join repository@digest and reject missing digest.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-164",
      "kind": "snippet",
      "title": "Upgrade a staging chart with rollback on failure",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-164.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "upgrade",
        "a",
        "staging",
        "chart",
        "with",
        "rollback",
        "on",
        "failure"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-163",
        "CICD-165"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "Test readiness and independent service health. Atomic rollback does not reverse external schema changes.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-165",
      "kind": "snippet",
      "title": "Run Helm test hooks",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-165.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "run",
        "helm",
        "test",
        "hooks"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-164",
        "CICD-166"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "Provide chart test hooks that target the actual Service and clean up finished Pods.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-166",
      "kind": "snippet",
      "title": "Show Helm release history",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-166.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm",
        "jq"
      ],
      "keywords": [
        "show",
        "helm",
        "release",
        "history"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-165",
        "CICD-167"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "Confirm the intended known-good revision before rollback.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-167",
      "kind": "snippet",
      "title": "Roll back a reviewed Helm revision",
      "category": "helm",
      "difficulty": "foundation",
      "path": "snippets/CICD-167.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "roll",
        "back",
        "a",
        "reviewed",
        "helm",
        "revision"
      ],
      "prerequisites": "Helm 3, reviewed values and staging cluster when applying charts",
      "related": [
        "CICD-166"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://helm.sh/docs/",
      "notes": "Verify database and ConfigMap compatibility before rollback.",
      "chapter": "snippets-helm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-168",
      "kind": "snippet",
      "title": "Separate verification and deployment",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-168.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "delivery"
      ],
      "keywords": [
        "separate",
        "verification",
        "and",
        "deployment"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-169"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Add to deployment job and keep privileged writes off PR jobs.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-169",
      "kind": "snippet",
      "title": "Serialize production jobs",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-169.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "delivery"
      ],
      "keywords": [
        "serialize",
        "production",
        "jobs"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-168",
        "CICD-170"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Prevent parallel writes and inspect platform queue semantics for pending job supersession.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-170",
      "kind": "snippet",
      "title": "Wait for a public health SLO probe",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-170.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "curl",
        "delivery",
        "jq"
      ],
      "keywords": [
        "wait",
        "for",
        "a",
        "public",
        "health",
        "slo",
        "probe"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-169",
        "CICD-171"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Set a trusted URL and retain final response details if the probe fails.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-171",
      "kind": "snippet",
      "title": "Read deployment conditions after failure",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-171.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "delivery",
        "jq",
        "kubernetes"
      ],
      "keywords": [
        "read",
        "deployment",
        "conditions",
        "after",
        "failure"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-170",
        "CICD-172"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Distinguish temporary progress from ProgressDeadlineExceeded.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-172",
      "kind": "snippet",
      "title": "Set a rollout progress deadline",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-172.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "delivery"
      ],
      "keywords": [
        "set",
        "a",
        "rollout",
        "progress",
        "deadline"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-171",
        "CICD-173"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Deployment spec settings. Monitor the condition and separately interrupt or roll back if policy requires.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-173",
      "kind": "snippet",
      "title": "Set a rolling update availability budget",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-173.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "delivery"
      ],
      "keywords": [
        "set",
        "a",
        "rolling",
        "update",
        "availability",
        "budget"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-172",
        "CICD-174"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Ensure schedulable capacity for one extra Pod and verify zero unready replicas at steady state.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-174",
      "kind": "snippet",
      "title": "Compare candidate to previous deployment digest",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-174.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "delivery",
        "kubernetes"
      ],
      "keywords": [
        "compare",
        "candidate",
        "to",
        "previous",
        "deployment",
        "digest"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-173",
        "CICD-175"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Verify desired state and separately compare observed Pod readiness and actual image ID.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-175",
      "kind": "snippet",
      "title": "Read available deployment revisions",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-175.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "delivery",
        "kubernetes"
      ],
      "keywords": [
        "read",
        "available",
        "deployment",
        "revisions"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-174",
        "CICD-176"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Keep revision history enabled and save image digests separately.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-176",
      "kind": "snippet",
      "title": "Restore a reviewed deployment revision",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-176.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "delivery",
        "kubernetes"
      ],
      "keywords": [
        "restore",
        "a",
        "reviewed",
        "deployment",
        "revision"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-175",
        "CICD-177"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Only use in non-GitOps environments or coordinate with desired-state reconciliation.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-177",
      "kind": "snippet",
      "title": "Render a Kustomize overlay",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-177.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "delivery",
        "kubernetes"
      ],
      "keywords": [
        "render",
        "a",
        "kustomize",
        "overlay"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-176",
        "CICD-178"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Test against intended cluster and inspect namespace and digest in the result.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-178",
      "kind": "snippet",
      "title": "Annotate staging with source commit",
      "category": "delivery",
      "difficulty": "foundation",
      "path": "snippets/CICD-178.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "delivery",
        "kubernetes"
      ],
      "keywords": [
        "annotate",
        "staging",
        "with",
        "source",
        "commit"
      ],
      "prerequisites": "protected staging environment and trusted immutable release artifacts",
      "related": [
        "CICD-177"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/",
      "notes": "Record commit after validation. Add the digest and release ID to the wider audit trail.",
      "chapter": "snippets-delivery.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-179",
      "kind": "snippet",
      "title": "Default GitHub token permissions to none",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-179.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "secure-basics"
      ],
      "keywords": [
        "default",
        "github",
        "token",
        "permissions",
        "to",
        "none"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-180"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Add explicit minimum permissions only to jobs that need them.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-180",
      "kind": "snippet",
      "title": "Check out code with read-only permissions",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-180.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "secure-basics"
      ],
      "keywords": [
        "check",
        "out",
        "code",
        "with",
        "read",
        "only",
        "permissions"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-179",
        "CICD-181"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Do not retain Git credentials when no Git push is needed.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-181",
      "kind": "snippet",
      "title": "Separate PR runs from trusted publishing",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-181.md",
      "platforms": [
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "secure-basics"
      ],
      "keywords": [
        "separate",
        "pr",
        "runs",
        "from",
        "trusted",
        "publishing"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-180",
        "CICD-182"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Put on the publish job and require protected main.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-182",
      "kind": "snippet",
      "title": "Validate a candidate digest before use",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-182.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "secure-basics"
      ],
      "keywords": [
        "validate",
        "a",
        "candidate",
        "digest",
        "before",
        "use"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-181",
        "CICD-183"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Reject tag-only and malformed inputs before deployment.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-183",
      "kind": "snippet",
      "title": "Verify a tag belongs to the release commit",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-183.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "secure-basics"
      ],
      "keywords": [
        "verify",
        "a",
        "tag",
        "belongs",
        "to",
        "the",
        "release",
        "commit"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-182",
        "CICD-184"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Fetch the reviewed tag and check policy does not allow untrusted tag changes.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-184",
      "kind": "snippet",
      "title": "Scan repository dependency metadata",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-184.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "secure-basics",
        "trivy"
      ],
      "keywords": [
        "scan",
        "repository",
        "dependency",
        "metadata"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-183",
        "CICD-185"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Pin scanner configuration and documented ignore policy. Review false positives separately.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-185",
      "kind": "snippet",
      "title": "Scan exact built image for high findings",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-185.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "secure-basics",
        "trivy"
      ],
      "keywords": [
        "scan",
        "exact",
        "built",
        "image",
        "for",
        "high",
        "findings"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-184",
        "CICD-186"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Compare the reported target identity to the digest tested in CI.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-186",
      "kind": "snippet",
      "title": "Create CycloneDX software inventory",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-186.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "secure-basics"
      ],
      "keywords": [
        "create",
        "cyclonedx",
        "software",
        "inventory"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-185",
        "CICD-187"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Build an SBOM for the exact candidate, then attach its digest and provenance.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-187",
      "kind": "snippet",
      "title": "Verify signed container policy with cosign",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-187.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "secure-basics"
      ],
      "keywords": [
        "verify",
        "signed",
        "container",
        "policy",
        "with",
        "cosign"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-186",
        "CICD-188"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Require the release workflow's exact signer identity and immutable candidate reference.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-188",
      "kind": "snippet",
      "title": "Guard logged configuration values",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-188.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "secure-basics"
      ],
      "keywords": [
        "guard",
        "logged",
        "configuration",
        "values"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-187",
        "CICD-189"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Log the non-secret target only. Disable shell tracing in secret-bearing steps.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-189",
      "kind": "snippet",
      "title": "Fail if an unexpected hidden config ships",
      "category": "secure-basics",
      "difficulty": "foundation",
      "path": "snippets/CICD-189.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "secure-basics"
      ],
      "keywords": [
        "fail",
        "if",
        "an",
        "unexpected",
        "hidden",
        "config",
        "ships"
      ],
      "prerequisites": "trusted repository, verified inputs and read-only default access",
      "related": [
        "CICD-188"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Review filename and content separately. Configure a full supply-chain policy for critical artifacts.",
      "chapter": "snippets-secure-basics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-190",
      "kind": "snippet",
      "title": "Show job platform details",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-190.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ci-diagnostics"
      ],
      "keywords": [
        "show",
        "job",
        "platform",
        "details"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-191"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "Record the environment without dumping secrets.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-191",
      "kind": "snippet",
      "title": "Measure test wall time",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-191.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ci-diagnostics",
        "pytest"
      ],
      "keywords": [
        "measure",
        "test",
        "wall",
        "time"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-190",
        "CICD-192"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "Compare the same suite under equivalent conditions and assess cache state independently.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-192",
      "kind": "snippet",
      "title": "Record artifact sizes",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-192.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ci-diagnostics"
      ],
      "keywords": [
        "record",
        "artifact",
        "sizes"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-191",
        "CICD-193"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "Compare archive contents and sizes against a known-good candidate.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-193",
      "kind": "snippet",
      "title": "Show processes in a disposable runner",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-193.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ci-diagnostics"
      ],
      "keywords": [
        "show",
        "processes",
        "in",
        "a",
        "disposable",
        "runner"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-192",
        "CICD-194"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "Do not print process arguments if credentials can appear.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-194",
      "kind": "snippet",
      "title": "Check free storage before building",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-194.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ci-diagnostics"
      ],
      "keywords": [
        "check",
        "free",
        "storage",
        "before",
        "building"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-193",
        "CICD-195"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "Require at least 1 GiB free on the current workspace filesystem.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-195",
      "kind": "snippet",
      "title": "Print DNS timing and status",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-195.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ci-diagnostics",
        "curl"
      ],
      "keywords": [
        "print",
        "dns",
        "timing",
        "and",
        "status"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-194",
        "CICD-196"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "Use an approved endpoint. A timeout should fail rather than print a plausible success status.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-196",
      "kind": "snippet",
      "title": "Capture failed workflow metadata",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-196.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "ci-diagnostics",
        "github-cli"
      ],
      "keywords": [
        "capture",
        "failed",
        "workflow",
        "metadata"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-195",
        "CICD-197"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "Scope reads and see the first failed actionable step.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-197",
      "kind": "snippet",
      "title": "Retry a bounded idempotent request",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-197.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ci-diagnostics",
        "curl"
      ],
      "keywords": [
        "retry",
        "a",
        "bounded",
        "idempotent",
        "request"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-196",
        "CICD-198"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "Retry only safe reads. Inspect the underlying error if the endpoint remains unhealthy.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-198",
      "kind": "snippet",
      "title": "Make pipeline logs easy to scan",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-198.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ci-diagnostics"
      ],
      "keywords": [
        "make",
        "pipeline",
        "logs",
        "easy",
        "to",
        "scan"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-197",
        "CICD-199"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "Use trusted text in workflow commands and keep grouped output actionable.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-199",
      "kind": "snippet",
      "title": "Raise a targeted file annotation",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-199.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ci-diagnostics"
      ],
      "keywords": [
        "raise",
        "a",
        "targeted",
        "file",
        "annotation"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-198",
        "CICD-200"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "A rendered annotation identifies location. The shell exit status separately fails the job.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-200",
      "kind": "snippet",
      "title": "Add elapsed runtime to evidence",
      "category": "ci-diagnostics",
      "difficulty": "foundation",
      "path": "snippets/CICD-200.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ci-diagnostics"
      ],
      "keywords": [
        "add",
        "elapsed",
        "runtime",
        "to",
        "evidence"
      ],
      "prerequisites": "authorized fixture run and sanitized evidence location",
      "related": [
        "CICD-199"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows",
      "notes": "Store elapsed duration for successful checks and record failed durations in a separate diagnostic trap if needed.",
      "chapter": "snippets-ci-diagnostics.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-201",
      "kind": "snippet",
      "title": "Register a self-hosted runner",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-201.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "gitea",
        "runner"
      ],
      "keywords": [
        "register",
        "a",
        "self",
        "hosted",
        "runner"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-202"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Register on the trusted runner host, protect its registration credentials and expect one idle runner in the admin UI. Never run this command with shell tracing.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-202",
      "kind": "snippet",
      "title": "Configure runner labels",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-202.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "gitea",
        "runner"
      ],
      "keywords": [
        "configure",
        "runner",
        "labels"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-201",
        "CICD-203"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Match the label in runs-on and restart the daemon. Host mode is reserved for trusted workflows.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-203",
      "kind": "snippet",
      "title": "Configure runner groups",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-203.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "configure",
        "runner",
        "groups"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-202",
        "CICD-204"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/how-tos/manage-runners/self-hosted-runners/manage-access",
      "notes": "GitHub group access is configured separately at organization scope. Expect the job to queue until an eligible runner is online.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-204",
      "kind": "snippet",
      "title": "Configure runner capacity",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-204.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "configure",
        "runner",
        "capacity"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-203",
        "CICD-205"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Start with two parallel trusted jobs and inspect queue time, CPU and RAM. Capacity limits jobs per runner process.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-205",
      "kind": "snippet",
      "title": "Docker-based runner configuration",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-205.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "gitea",
        "runner"
      ],
      "keywords": [
        "docker",
        "based",
        "runner",
        "configuration"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-204",
        "CICD-206"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Confirm the service is online and can launch a job container. The Docker socket confers host-level power. Limit this runner to trusted repositories and prefer provisioning registration state without retaining the token in container metadata.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-206",
      "kind": "snippet",
      "title": "Host-based runner configuration",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-206.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "host",
        "based",
        "runner",
        "configuration"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-205",
        "CICD-207"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Match lab-shell and inspect uname. Host jobs share the machine filesystem and require a dedicated account and trusted code.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-207",
      "kind": "snippet",
      "title": "Custom runner images",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-207.md",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "python",
        "runner"
      ],
      "keywords": [
        "custom",
        "runner",
        "images"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-206",
        "CICD-208"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Build, scan and publish the image. Configure an act_runner Docker label pointing at its tested digest and verify checkout and python3.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-208",
      "kind": "snippet",
      "title": "Ephemeral runners",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-208.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "ephemeral",
        "runners"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-207",
        "CICD-209"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/runners/self-hosted-runners",
      "notes": "Use a newly provisioned GitHub runner VM and destroy it after one assignment. Export logs before disposal.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-209",
      "kind": "snippet",
      "title": "Kubernetes-based runners",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-209.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "helm",
        "runner"
      ],
      "keywords": [
        "kubernetes",
        "based",
        "runners"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-208",
        "CICD-210"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/concepts/runners/actions-runner-controller",
      "notes": "Use GitHub ARC with the controller already installed and values containing githubConfigUrl and a credential Secret reference. Expect a runner Pod when a job targets the scale set.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-210",
      "kind": "snippet",
      "title": "Autoscaling runners",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-210.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "autoscaling",
        "runners"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-209",
        "CICD-211"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/concepts/runners/actions-runner-controller",
      "notes": "Merge into an ARC runner scale set values file. Queue eight trusted jobs and verify the listener provisions at most six runners.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-211",
      "kind": "snippet",
      "title": "GPU-enabled runners",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-211.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "gpu",
        "runner"
      ],
      "keywords": [
        "gpu",
        "enabled",
        "runners"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-210",
        "CICD-212"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Label a dedicated trusted GPU runner and expect a physical device with memory reported in MiB.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-212",
      "kind": "snippet",
      "title": "ARM64 runners",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-212.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "arm64",
        "runners"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-211",
        "CICD-213"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Confirm the runner really uses arm64. A label alone does not change CPU architecture.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-213",
      "kind": "snippet",
      "title": "Runner network configuration",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-213.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "runner"
      ],
      "keywords": [
        "runner",
        "network",
        "configuration"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-212",
        "CICD-214"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Test from the job network. HTTP 200 or a registry 401 challenge demonstrates reachability, whereas cert errors indicate a trust problem.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-214",
      "kind": "snippet",
      "title": "Runner resource limits",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-214.md",
      "platforms": [
        "gitlab-ci",
        "kubernetes"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "runner",
        "resource",
        "limits"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-213",
        "CICD-215"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Place in a Kubernetes executor runner Pod template under the build container. Verify cgroup limits within the job and reserve capacity for services and helpers.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-215",
      "kind": "snippet",
      "title": "Runner health monitoring",
      "category": "runner",
      "difficulty": "advanced",
      "path": "snippets/CICD-215.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "runner",
        "health",
        "monitoring"
      ],
      "prerequisites": "lab host, trusted repositories, installed act_runner or GitHub runner when named",
      "related": [
        "CICD-214"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/act-runner",
      "notes": "Compare service health with a queued probe workflow and alert on an offline runner even if its service remains active.",
      "chapter": "snippets-runner.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-216",
      "kind": "snippet",
      "title": "Workflow dispatch through REST API",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-216.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "github-cli",
        "orchestration"
      ],
      "keywords": [
        "workflow",
        "dispatch",
        "through",
        "rest",
        "api"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-217"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://cli.github.com/manual/gh_workflow_run",
      "notes": "Use a workflow_dispatch input named target and verify a new run appears for main.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-217",
      "kind": "snippet",
      "title": "Repository dispatch events",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-217.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "github-cli",
        "orchestration"
      ],
      "keywords": [
        "repository",
        "dispatch",
        "events"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-216",
        "CICD-218"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/rest/repos/repos#create-a-repository-dispatch-event",
      "notes": "Register repository_dispatch.types on the default branch and verify one run receives the payload.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-218",
      "kind": "snippet",
      "title": "Cross-repository workflow triggering",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-218.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "github-cli",
        "orchestration"
      ],
      "keywords": [
        "cross",
        "repository",
        "workflow",
        "triggering"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-217",
        "CICD-219"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use a narrowly scoped GitHub App installation token for the target repository. The upstream default token is scoped to its own repository.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-219",
      "kind": "snippet",
      "title": "Dynamic job generation",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-219.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "orchestration"
      ],
      "keywords": [
        "dynamic",
        "job",
        "generation",
        "changed services",
        "generate matrix",
        "deploy only changed microservices"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-218",
        "CICD-220"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "The planner emits JSON once. The scheduler expands two jobs from the producer output.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-220",
      "kind": "snippet",
      "title": "Conditional matrix generation",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-220.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "orchestration"
      ],
      "keywords": [
        "conditional",
        "matrix",
        "generation"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-219",
        "CICD-221"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Combine with CICD-219. An empty array skips the consumer before matrix expansion.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-221",
      "kind": "snippet",
      "title": "Changed-directory detection",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-221.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "orchestration",
        "python"
      ],
      "keywords": [
        "changed",
        "directory",
        "detection",
        "changed",
        "directories",
        "affected",
        "diff"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-220",
        "CICD-222"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Fetch the base and merge base first. Expect one service name per changed directory, including tracked deletions.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-222",
      "kind": "snippet",
      "title": "Dependency-aware execution",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-222.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "orchestration"
      ],
      "keywords": [
        "dependency",
        "aware",
        "execution"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-221",
        "CICD-223"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "The gate observes both dependency results and only launches when both are successful.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-223",
      "kind": "snippet",
      "title": "Workflow chaining",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-223.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "orchestration"
      ],
      "keywords": [
        "workflow",
        "chaining"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-222",
        "CICD-224"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Add a job condition for github.event.workflow_run.conclusion == 'success'. Restrict the upstream workflow to trusted main commits and verify artifact provenance separately.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-224",
      "kind": "snippet",
      "title": "Multi-repository orchestration",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-224.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "github-cli",
        "orchestration"
      ],
      "keywords": [
        "multi",
        "repository",
        "orchestration"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-223",
        "CICD-225"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Record dispatches individually and make downstream operations idempotent on SHA. A partial failure can occur after earlier targets accept.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-225",
      "kind": "snippet",
      "title": "Conditional artifact publishing",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-225.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "orchestration"
      ],
      "keywords": [
        "conditional",
        "artifact",
        "publishing"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-224",
        "CICD-226"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Give the test step the tests ID and emit a report. An intentionally failed test run uploads its diagnostic XML.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-226",
      "kind": "snippet",
      "title": "Workflow cancellation through API",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-226.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "github-cli",
        "orchestration"
      ],
      "keywords": [
        "workflow",
        "cancellation",
        "through",
        "api"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-225",
        "CICD-227"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use Actions write in an authorized repository. Poll until conclusion becomes cancelled.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-227",
      "kind": "snippet",
      "title": "Workflow rerun automation",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-227.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "github-cli",
        "orchestration"
      ],
      "keywords": [
        "workflow",
        "rerun",
        "automation"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-226",
        "CICD-228"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use a completed run that contains failed jobs. Check that a new attempt appears under the original run ID.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-228",
      "kind": "snippet",
      "title": "Scheduled maintenance pipelines",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-228.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "orchestration"
      ],
      "keywords": [
        "scheduled",
        "maintenance",
        "pipelines"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-227",
        "CICD-229"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "The schedule is UTC on the default branch. Use manual dispatch to prove the same maintenance job can run after delays.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-229",
      "kind": "snippet",
      "title": "Long-running job management",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-229.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "orchestration"
      ],
      "keywords": [
        "long",
        "running",
        "job",
        "management"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-228",
        "CICD-230"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use GNU timeout in a Linux runner and an integration script with cleanup traps. A normal timeout exits 124.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-230",
      "kind": "snippet",
      "title": "Workflow execution state tracking",
      "category": "orchestration",
      "difficulty": "advanced",
      "path": "snippets/CICD-230.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "github-cli",
        "jq",
        "orchestration"
      ],
      "keywords": [
        "workflow",
        "execution",
        "state",
        "tracking"
      ],
      "prerequisites": "authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries",
      "related": [
        "CICD-229"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Store the snapshot as evidence and key polling by repository, run ID and attempt.",
      "chapter": "snippets-orchestration.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-231",
      "kind": "snippet",
      "title": "Terraform installation",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-231.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "terraform",
        "installation"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-232"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Pin an approved CLI release and verify terraform version. Update the example version through your normal dependency policy.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-232",
      "kind": "snippet",
      "title": "Terraform initialization",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-232.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "terraform",
        "initialization"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-231",
        "CICD-233"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Run from the IaC root with a committed .terraform.lock.hcl. Static checks install providers without connecting to state.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-233",
      "kind": "snippet",
      "title": "Terraform formatting validation",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-233.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "terraform",
        "formatting",
        "validation"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-232",
        "CICD-234"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "The pipeline prints formatting diffs and returns nonzero when configuration needs formatting.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-234",
      "kind": "snippet",
      "title": "Terraform configuration validation",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-234.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "terraform",
        "configuration",
        "validation"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-233",
        "CICD-235"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Validate initialized configuration before preparing credentials or remote state.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-235",
      "kind": "snippet",
      "title": "Terraform plan generation",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-235.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "terraform",
        "plan",
        "generation"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-234",
        "CICD-236"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Save a plan tied to the commit and backend. A plan may contain sensitive values and belongs in a restricted store.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-236",
      "kind": "snippet",
      "title": "Upload Terraform plan",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-236.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "aws",
        "terraform"
      ],
      "keywords": [
        "upload",
        "terraform",
        "plan"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-235",
        "CICD-237"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Use restrictive bucket IAM and lifecycle rules. A reviewer should receive the plan summary through a secure channel.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-237",
      "kind": "snippet",
      "title": "Apply an approved Terraform plan",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-237.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "apply",
        "an",
        "approved",
        "terraform",
        "plan"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-236",
        "CICD-238"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Use the reviewed plan and the same configuration, state and provider versions. A stale state should cause apply to fail.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-238",
      "kind": "snippet",
      "title": "Terraform remote state configuration",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-238.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "terraform",
        "remote",
        "state",
        "configuration"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-237",
        "CICD-239"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language/backend/s3",
      "notes": "Enable bucket versioning and restrictive IAM. The S3 lockfile option requires a Terraform version that supports it.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-239",
      "kind": "snippet",
      "title": "State locking",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-239.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "state",
        "locking"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-238",
        "CICD-240"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Contending clients wait for the backend lock. Never disable locking as a CI retry strategy.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-240",
      "kind": "snippet",
      "title": "Infrastructure drift detection",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-240.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "infrastructure",
        "drift",
        "detection"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-239",
        "CICD-241"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Schedule against the desired main commit and distinguish plan error from configuration or infrastructure differences.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-241",
      "kind": "snippet",
      "title": "Terraform workspace management",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-241.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "terraform",
        "workspace",
        "management"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-240",
        "CICD-242"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Select a pre-existing workspace and fail closed on mismatch. Separate production credentials and state rather than using workspace names as access control.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-242",
      "kind": "snippet",
      "title": "Infrastructure cost estimation",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-242.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "terraform"
      ],
      "keywords": [
        "infrastructure",
        "cost",
        "estimation"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-241",
        "CICD-243"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.infracost.io/docs/",
      "notes": "Use an approved cloud pricing integration and authorized credentials. Confirm unsupported resources in the report before relying on totals.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-243",
      "kind": "snippet",
      "title": "Terraform module testing",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-243.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "terraform",
        "module",
        "testing"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-242",
        "CICD-244"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Put module tests under tests/ and mock providers for offline invariants. Tests using real providers can create resources.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-244",
      "kind": "snippet",
      "title": "Infrastructure policy enforcement",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-244.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "opa",
        "terraform"
      ],
      "keywords": [
        "infrastructure",
        "policy",
        "enforcement"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-243",
        "CICD-245"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Use a policy package with a deny rule and restricted plan evidence. A prohibited resource must produce a nonzero exit.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-245",
      "kind": "snippet",
      "title": "Controlled infrastructure destruction",
      "category": "terraform",
      "difficulty": "advanced",
      "path": "snippets/CICD-245.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "controlled",
        "infrastructure",
        "destruction"
      ],
      "prerequisites": "trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes",
      "related": [
        "CICD-244"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/terraform/cli",
      "notes": "Prepare only a reviewed destruction plan in an isolated sandbox. Apply the reviewed file through CICD-237 after separate approval.",
      "chapter": "snippets-terraform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-246",
      "kind": "snippet",
      "title": "Ansible installation",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-246.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible",
        "python"
      ],
      "keywords": [
        "ansible",
        "installation"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-247"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Generate the lock with hashes upstream. Use the same virtual environment for all controller steps.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-247",
      "kind": "snippet",
      "title": "Inventory validation",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-247.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible",
        "jq"
      ],
      "keywords": [
        "inventory",
        "validation"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-246",
        "CICD-248"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Fail on an empty web group. Review the graph before writes.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-248",
      "kind": "snippet",
      "title": "Dynamic inventory generation",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-248.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "dynamic",
        "inventory",
        "generation"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-247",
        "CICD-249"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Enable the amazon.aws inventory plugin and tag filters. Verify the staging group contains only intended instances.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-249",
      "kind": "snippet",
      "title": "Ansible syntax checking",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-249.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "ansible",
        "syntax",
        "checking"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-248",
        "CICD-250"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Parse a playbook without contacting the managed hosts. Collection imports must still be available.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-250",
      "kind": "snippet",
      "title": "Ansible linting",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-250.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "ansible",
        "linting"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-249",
        "CICD-251"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Run from a checkout with pinned rules and inspect warnings as deliberate review decisions.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-251",
      "kind": "snippet",
      "title": "Ansible check mode",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-251.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "ansible",
        "check",
        "mode"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-250",
        "CICD-252"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Check limited inventory first. Check-mode support varies by module and diffs can expose secrets.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-252",
      "kind": "snippet",
      "title": "Ansible Vault integration",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-252.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "ansible",
        "vault",
        "integration"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-251",
        "CICD-253"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Inject the password file from a secret store with restrictive permissions. Use no_log on tasks that render secret values.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-253",
      "kind": "snippet",
      "title": "SSH key provisioning",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-253.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "ssh",
        "key",
        "provisioning"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-252",
        "CICD-254"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Use a verified public key for an authorized deploy account. Test the corresponding key through an independent session before retiring old access.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-254",
      "kind": "snippet",
      "title": "Multi-host deployment",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-254.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "multi",
        "host",
        "deployment"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-253",
        "CICD-255"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Confirm intended hosts with --list-hosts before running. Failure recap should surface host-level failures.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-255",
      "kind": "snippet",
      "title": "Rolling server updates",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-255.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "rolling",
        "server",
        "updates"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-254",
        "CICD-256"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Implement drain, health check and rejoin in deploy_web. A failed first host halts the batch.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-256",
      "kind": "snippet",
      "title": "Idempotency testing",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-256.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "idempotency",
        "testing"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-255",
        "CICD-257"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "The second converge must report zero changed tasks unless a deliberately non-idempotent task is isolated and documented.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-257",
      "kind": "snippet",
      "title": "Molecule role testing",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-257.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "molecule",
        "role",
        "testing"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-256",
        "CICD-258"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Use a disposable scenario with driver, converge and verify configuration. Check that cleanup succeeds even when verification fails.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-258",
      "kind": "snippet",
      "title": "Operating system patching",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-258.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "operating",
        "system",
        "patching"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-257",
        "CICD-259"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Verify Debian unattended-upgrades and approved origins before removing --dry-run during the patch window.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-259",
      "kind": "snippet",
      "title": "Configuration drift detection",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-259.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "configuration",
        "drift",
        "detection"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-258",
        "CICD-260"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Run with pipefail to retain Ansible errors. Inspect changed counts as proposed configuration drift.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-260",
      "kind": "snippet",
      "title": "Server bootstrap automation",
      "category": "ansible",
      "difficulty": "advanced",
      "path": "snippets/CICD-260.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "server",
        "bootstrap",
        "automation"
      ],
      "prerequisites": "controller with reviewed inventory, pinned Ansible collections and a non-production target",
      "related": [
        "CICD-259"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Bootstrap only the explicit group using an already authorized administrative session. On second run the managed baseline should converge.",
      "chapter": "snippets-ansible.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-261",
      "kind": "snippet",
      "title": "AWS CLI authentication",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-261.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "cloud"
      ],
      "keywords": [
        "aws",
        "cli",
        "authentication"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-262"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.aws.amazon.com/cli/latest/",
      "notes": "Requires id-token: write and a role trust condition bound to the repository and environment. Verify caller identity without printing credentials.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-262",
      "kind": "snippet",
      "title": "AWS STS role assumption",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-262.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "aws",
        "cloud"
      ],
      "keywords": [
        "aws",
        "sts",
        "role",
        "assumption"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-261",
        "CICD-263"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.aws.amazon.com/cli/latest/",
      "notes": "This probe shows the assumed principal without exporting credentials. Use the official action or a vetted credential process for subsequent calls.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-263",
      "kind": "snippet",
      "title": "AWS S3 artifact storage",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-263.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "aws",
        "cloud"
      ],
      "keywords": [
        "aws",
        "s3",
        "artifact",
        "storage"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-262",
        "CICD-264"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.aws.amazon.com/cli/latest/",
      "notes": "Write to a scoped prefix and verify the same key with head-object under a read role.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-264",
      "kind": "snippet",
      "title": "AWS EC2 deployment",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-264.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "aws",
        "cloud"
      ],
      "keywords": [
        "aws",
        "ec2",
        "deployment"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-263",
        "CICD-265"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.aws.amazon.com/cli/latest/",
      "notes": "EC2 tags and CodeDeploy agent select instances. Use appspec hooks and wait deployment-successful for the returned ID.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-265",
      "kind": "snippet",
      "title": "AWS ECS deployment",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-265.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "aws",
        "cloud"
      ],
      "keywords": [
        "aws",
        "ecs",
        "deployment"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-264",
        "CICD-266"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.aws.amazon.com/cli/latest/",
      "notes": "Verify the intended task definition after waiting because a circuit-breaker rollback can also become stable.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-266",
      "kind": "snippet",
      "title": "AWS EKS authentication",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-266.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "aws",
        "cloud",
        "kubernetes"
      ],
      "keywords": [
        "aws",
        "eks",
        "authentication"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-265",
        "CICD-267"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.aws.amazon.com/cli/latest/",
      "notes": "Use an EKS access entry and a least-privilege namespace Role. Remove the temp kubeconfig when the job exits.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-267",
      "kind": "snippet",
      "title": "AWS Lambda deployment",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-267.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "aws",
        "cloud"
      ],
      "keywords": [
        "aws",
        "lambda",
        "deployment"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-266",
        "CICD-268"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.aws.amazon.com/cli/latest/",
      "notes": "Deploy to a test function. Smoke-test the published version before moving an alias.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-268",
      "kind": "snippet",
      "title": "AWS Secrets Manager integration",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-268.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "aws",
        "cloud"
      ],
      "keywords": [
        "aws",
        "secrets",
        "manager",
        "integration"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-267",
        "CICD-269"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.aws.amazon.com/cli/latest/",
      "notes": "Validate metadata in CI. Applications should fetch values at runtime with a scoped role rather than passing plaintext through artifacts.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-269",
      "kind": "snippet",
      "title": "AWS Systems Manager deployment",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-269.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "aws",
        "cloud"
      ],
      "keywords": [
        "aws",
        "systems",
        "manager",
        "deployment"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-268",
        "CICD-270"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.aws.amazon.com/cli/latest/",
      "notes": "Use a reviewed custom SSM document and limit both allowed documents and instance targeting in IAM.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-270",
      "kind": "snippet",
      "title": "Azure federated authentication",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-270.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "cloud"
      ],
      "keywords": [
        "azure",
        "federated",
        "authentication"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-269",
        "CICD-271"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure-openid-connect",
      "notes": "Requires id-token: write and a matching federated credential in Entra ID. Verify the chosen subscription.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-271",
      "kind": "snippet",
      "title": "Azure Container Registry",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-271.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "azure",
        "cloud",
        "docker"
      ],
      "keywords": [
        "azure",
        "container",
        "registry"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-270",
        "CICD-272"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://learn.microsoft.com/en-us/azure/container-registry/container-registry-authentication",
      "notes": "Tag the image before the step and scope AcrPush to the registry or repository. Capture its digest for deployment.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-272",
      "kind": "snippet",
      "title": "Azure AKS deployment",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-272.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "azure",
        "cloud",
        "kubernetes"
      ],
      "keywords": [
        "azure",
        "aks",
        "deployment"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-271",
        "CICD-273"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://learn.microsoft.com/en-us/azure/aks/learn/quick-kubernetes-deploy-cli",
      "notes": "Use a federated identity and namespace RBAC. Azure CLI, kubectl and possibly kubelogin must be provisioned.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-273",
      "kind": "snippet",
      "title": "GCP Workload Identity Federation",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-273.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "cloud"
      ],
      "keywords": [
        "gcp",
        "workload",
        "identity",
        "federation"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-272",
        "CICD-274"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://github.com/google-github-actions/auth",
      "notes": "Enable id-token: write. Bind provider attribute conditions and service-account access to trusted repository identity.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-274",
      "kind": "snippet",
      "title": "Google Artifact Registry",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-274.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "cloud",
        "docker",
        "gcp"
      ],
      "keywords": [
        "google",
        "artifact",
        "registry"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-273",
        "CICD-275"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://cloud.google.com/artifact-registry/docs/docker/authentication",
      "notes": "The tagged image must use the same regional registry hostname. Check writer permission on only the target repository.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-275",
      "kind": "snippet",
      "title": "Google Kubernetes Engine deployment",
      "category": "cloud",
      "difficulty": "advanced",
      "path": "snippets/CICD-275.md",
      "platforms": [
        "github-actions",
        "cloud-cli"
      ],
      "tools": [
        "cloud",
        "gcp",
        "kubernetes"
      ],
      "keywords": [
        "google",
        "kubernetes",
        "engine",
        "deployment"
      ],
      "prerequisites": "provider CLI, scoped CI identity, test environment and provider configuration for named resource",
      "related": [
        "CICD-274"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl",
      "notes": "Install the GKE auth plugin and use a scoped identity. Verify the target project before writing.",
      "chapter": "snippets-cloud.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-276",
      "kind": "snippet",
      "title": "Create ephemeral Kubernetes namespace",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-276.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "create",
        "ephemeral",
        "kubernetes",
        "namespace"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-277",
        "CICD-396",
        "CICD-419"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Run only from the authorized preview controller. Expect the ownership label after reconciliation.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-277",
      "kind": "snippet",
      "title": "Delete ephemeral environment",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-277.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "delete",
        "ephemeral",
        "environment"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-276",
        "CICD-278"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Review the namespace ownership and disposability before deletion. Inspect finalizers if termination does not complete.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-278",
      "kind": "snippet",
      "title": "Kubernetes Job execution",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-278.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "kubernetes",
        "job",
        "execution"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-277",
        "CICD-279"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Use a fresh run ID, a trusted CronJob and bounded job TTL. Inspect logs if completion times out.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-279",
      "kind": "snippet",
      "title": "Kubernetes CronJob deployment",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-279.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "curl",
        "kubernetes"
      ],
      "keywords": [
        "kubernetes",
        "cronjob",
        "deployment"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-278",
        "CICD-280"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Apply in the same namespace as Service web. Verify one scheduled successful Job and pin the tested image digest for repeatability.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-280",
      "kind": "snippet",
      "title": "ConfigMap generation",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-280.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "configmap",
        "generation"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-279",
        "CICD-281"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Provide a reviewed non-secret app.toml. Use a rollout mechanism if the process reads environment variables only at startup.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-281",
      "kind": "snippet",
      "title": "Kubernetes Secret integration",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-281.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "kubernetes",
        "secret",
        "integration"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-280",
        "CICD-282"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Provision web-db through the platform secret controller. Verify Pod readiness and never print the environment value.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-282",
      "kind": "snippet",
      "title": "NetworkPolicy validation",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-282.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "curl",
        "kubernetes"
      ],
      "keywords": [
        "networkpolicy",
        "validation"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-281",
        "CICD-283"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Requires policy-capable CNI and predeployed curl clients. Resolve DNS from both clients first to avoid mistaking DNS failure for a successful deny.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-283",
      "kind": "snippet",
      "title": "RBAC permission testing",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-283.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "rbac",
        "permission",
        "testing"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-282",
        "CICD-284"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Requires impersonation rights for the tester. The deployer should patch workloads without being able to read Secret objects.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-284",
      "kind": "snippet",
      "title": "Kubernetes resource quota validation",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-284.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "jq",
        "kubernetes"
      ],
      "keywords": [
        "kubernetes",
        "resource",
        "quota",
        "validation"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-283",
        "CICD-285"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Dry-run rendered Pods as well when quota is enforced at Pod admission. Expect resource requests to fit remaining quota.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-285",
      "kind": "snippet",
      "title": "Horizontal Pod Autoscaler validation",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-285.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "jq",
        "kubernetes"
      ],
      "keywords": [
        "horizontal",
        "pod",
        "autoscaler",
        "validation"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-284",
        "CICD-286"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Metrics server or adapter must be available and CPU requests defined. Test replica movement under controlled load.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-286",
      "kind": "snippet",
      "title": "KEDA autoscaling deployment",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-286.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "keda",
        "autoscaling",
        "deployment"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-285",
        "CICD-287"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://keda.sh/docs/latest/scalers/rabbitmq-queue/",
      "notes": "Install KEDA and a TriggerAuthentication with RabbitMQ connection credentials. Send a sample message and observe replicas scale within the configured cap.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-287",
      "kind": "snippet",
      "title": "Kubernetes operator deployment",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-287.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "kubernetes",
        "operator",
        "deployment"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-286",
        "CICD-288"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Review CRDs and cluster permissions. Wait for CRDs to be Established before creating custom resources.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-288",
      "kind": "snippet",
      "title": "Custom resource validation",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-288.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "custom",
        "resource",
        "validation"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-287",
        "CICD-289"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Server acceptance confirms schema and admission, while reconciliation still needs separate status checks.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-289",
      "kind": "snippet",
      "title": "Kubernetes API compatibility testing",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-289.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "kubernetes",
        "api",
        "compatibility",
        "testing"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-288",
        "CICD-290"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Compare against the oldest supported cluster version. Supply pinned schemas for CRDs.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-290",
      "kind": "snippet",
      "title": "Multi-cluster deployment",
      "category": "kubernetes",
      "difficulty": "advanced",
      "path": "snippets/CICD-290.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "multi",
        "cluster",
        "deployment"
      ],
      "prerequisites": "kubectl, isolated cluster or namespace and installed CRDs when named",
      "related": [
        "CICD-289"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubectl/",
      "notes": "Preflight both clusters before progressive rollout. Order changes and smoke-test each context independently.",
      "chapter": "snippets-kubernetes.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-291",
      "kind": "snippet",
      "title": "Argo CD application creation",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-291.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "argo-cd",
        "gitops"
      ],
      "keywords": [
        "argo",
        "cd",
        "application",
        "creation"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-292"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://argo-cd.readthedocs.io/en/stable/user-guide/",
      "notes": "Replace the repo URL and use a scoped AppProject in real environments. Expect the application to render and expose its sync state.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-292",
      "kind": "snippet",
      "title": "Argo CD ApplicationSet",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-292.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "gitops"
      ],
      "keywords": [
        "argo",
        "cd",
        "applicationset"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-291",
        "CICD-293"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://argo-cd.readthedocs.io/en/stable/user-guide/",
      "notes": "Put under ApplicationSet spec and reference {{ .env }} and {{ .namespace }} in its template. Expect one Application per element.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-293",
      "kind": "snippet",
      "title": "GitOps environment promotion",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-293.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "gitops",
        "kubernetes"
      ],
      "keywords": [
        "gitops",
        "environment",
        "promotion"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-292",
        "CICD-294"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://argo-cd.readthedocs.io/en/stable/user-guide/",
      "notes": "Promote in a reviewed PR and preserve the image already verified by CI. Confirm the intended image entry is index zero.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-294",
      "kind": "snippet",
      "title": "GitOps pull request automation",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-294.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "github-cli",
        "gitops",
        "prometheus"
      ],
      "keywords": [
        "gitops",
        "pull",
        "request",
        "automation"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-293",
        "CICD-295"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://argo-cd.readthedocs.io/en/stable/user-guide/",
      "notes": "Use a dedicated GitHub App and idempotent branch naming. Existing open PRs should be updated or reused.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-295",
      "kind": "snippet",
      "title": "Argo CD synchronization policies",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-295.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "gitops"
      ],
      "keywords": [
        "argo",
        "cd",
        "synchronization",
        "policies"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-294",
        "CICD-296"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://argo-cd.readthedocs.io/en/stable/user-guide/",
      "notes": "Confirm ownership and reconciliation rules before enabling automated sync. Set prune explicitly when deletes are approved.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-296",
      "kind": "snippet",
      "title": "Argo CD sync waves",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-296.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "argo-cd",
        "gitops"
      ],
      "keywords": [
        "argo",
        "cd",
        "sync",
        "waves"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-295",
        "CICD-297"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://argo-cd.readthedocs.io/en/stable/user-guide/",
      "notes": "Apply to a dependency such as configuration. A higher wave should wait for earlier healthy resources per controller behaviour.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-297",
      "kind": "snippet",
      "title": "Argo CD deployment hooks",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-297.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "argo-cd",
        "gitops"
      ],
      "keywords": [
        "argo",
        "cd",
        "deployment",
        "hooks"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-296",
        "CICD-298"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://argo-cd.readthedocs.io/en/stable/user-guide/",
      "notes": "Use an idempotent migration Job with bounded time. A failed PreSync hook should hold application changes.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-298",
      "kind": "snippet",
      "title": "GitOps drift detection",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-298.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "argo-cd",
        "gitops",
        "jq"
      ],
      "keywords": [
        "gitops",
        "drift",
        "detection"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-297",
        "CICD-299"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://argo-cd.readthedocs.io/en/stable/user-guide/",
      "notes": "Inspect refresh permissions and expected Git revision. OutOfSync and Degraded indicate different failure classes.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-299",
      "kind": "snippet",
      "title": "Flux CD bootstrap",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-299.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "flux",
        "gitops"
      ],
      "keywords": [
        "flux",
        "cd",
        "bootstrap"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-298",
        "CICD-300"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://fluxcd.io/flux/installation/bootstrap/github/",
      "notes": "Use an authorized personal repository and direct context checks on a staging cluster. Bootstrap installs controllers and commits configuration.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-300",
      "kind": "snippet",
      "title": "Flux image automation",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-300.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "gitops"
      ],
      "keywords": [
        "flux",
        "image",
        "automation"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-299",
        "CICD-301"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://fluxcd.io/flux/components/image/imagepolicies/",
      "notes": "Verify the installed Flux CRD version and ImageRepository. Pair with ImageUpdateAutomation and image policy markers for writeback.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-301",
      "kind": "snippet",
      "title": "Argo Rollouts canary",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-301.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "gitops"
      ],
      "keywords": [
        "argo",
        "rollouts",
        "canary"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-300",
        "CICD-302"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://argo-rollouts.readthedocs.io/en/stable/features/canary/",
      "notes": "Without a traffic router, weights approximate replica counts. Inspect the Rollout before manually promoting the final pause.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-302",
      "kind": "snippet",
      "title": "Argo Rollouts blue-green",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-302.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "gitops",
        "prometheus"
      ],
      "keywords": [
        "argo",
        "rollouts",
        "blue",
        "green"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-301",
        "CICD-303"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://argo-rollouts.readthedocs.io/en/stable/features/bluegreen/",
      "notes": "Create matching Services and smoke-test web-preview before moving the active Service.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-303",
      "kind": "snippet",
      "title": "Metric-based promotion",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-303.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "gitops",
        "prometheus"
      ],
      "keywords": [
        "metric",
        "based",
        "promotion"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-302",
        "CICD-304"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://argo-rollouts.readthedocs.io/en/stable/features/analysis/",
      "notes": "Use matching low-cardinality labels and a minimum traffic gate. Missing traffic can yield no valid sample.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-304",
      "kind": "snippet",
      "title": "Automated rollout abortion",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-304.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "gitops",
        "go",
        "kubernetes"
      ],
      "keywords": [
        "automated",
        "rollout",
        "abortion",
        "automatic kubernetes rollout rollback",
        "canary abort",
        "argo rollouts"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-303",
        "CICD-305"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://argo-rollouts.readthedocs.io/en/stable/generated/kubectl-argo-rollouts/kubectl-argo-rollouts_abort/",
      "notes": "Abort only the candidate rollout operated by this release. Distinguish a deliberately paused rollout before using an automatic timeout.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-305",
      "kind": "snippet",
      "title": "Multi-environment GitOps promotion",
      "category": "gitops",
      "difficulty": "advanced",
      "path": "snippets/CICD-305.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "gitops",
        "kubernetes"
      ],
      "keywords": [
        "multi",
        "environment",
        "gitops",
        "promotion"
      ],
      "prerequisites": "trusted configuration repository, test cluster and named GitOps controller or rollout controller",
      "related": [
        "CICD-304"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://argo-cd.readthedocs.io/en/stable/user-guide/",
      "notes": "Compare environment overlays after reviewed promotion. Confirm the production deployment uses the same tested digest with environment-specific configuration.",
      "chapter": "snippets-gitops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-306",
      "kind": "snippet",
      "title": "PostgreSQL schema validation",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-306.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database",
        "postgresql"
      ],
      "keywords": [
        "postgresql",
        "schema",
        "validation"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-307"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.postgresql.org/docs/current/app-pgdump.html",
      "notes": "Provide executable assertions that raise on missing relations or types. Use a scoped test DSN.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-307",
      "kind": "snippet",
      "title": "Alembic migration",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-307.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database"
      ],
      "keywords": [
        "alembic",
        "migration"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-306",
        "CICD-308"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://alembic.sqlalchemy.org/en/latest/",
      "notes": "Use Alembic with check-heads support and a disposable database. Fail when multiple unintended heads exist.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-308",
      "kind": "snippet",
      "title": "Django database migration",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-308.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database",
        "python"
      ],
      "keywords": [
        "django",
        "database",
        "migration"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-307",
        "CICD-309"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.djangoproject.com/en/stable/topics/migrations/",
      "notes": "Run with CI database settings. Missing migrations should fail before applying schema.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-309",
      "kind": "snippet",
      "title": "Prisma migration",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-309.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database"
      ],
      "keywords": [
        "prisma",
        "migration"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-308",
        "CICD-310"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.prisma.io/docs/orm/prisma-migrate/workflows/development-and-production",
      "notes": "Run npm ci first with pinned Prisma CLI and a scoped DATABASE_URL. Expect applied migrations and no schema mismatch.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-310",
      "kind": "snippet",
      "title": "Flyway migration",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-310.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database"
      ],
      "keywords": [
        "flyway",
        "migration"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-309",
        "CICD-311"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://documentation.red-gate.com/flyway",
      "notes": "Supply Flyway credentials through protected configuration. Edited migration checksums should fail validation.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-311",
      "kind": "snippet",
      "title": "Liquibase migration",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-311.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database"
      ],
      "keywords": [
        "liquibase",
        "migration"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-310",
        "CICD-312"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.liquibase.com/",
      "notes": "Inject connection metadata via a protected defaults file or environment. Expect the DATABASECHANGELOG rows to track applied changes.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-312",
      "kind": "snippet",
      "title": "Pre-deployment database backup",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-312.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database"
      ],
      "keywords": [
        "pre",
        "deployment",
        "database",
        "backup"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-311",
        "CICD-313"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.postgresql.org/docs/current/app-pgdump.html",
      "notes": "Secure backup storage and rehearse restore. A nonempty catalog alone does not prove data restore.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-313",
      "kind": "snippet",
      "title": "Database restoration",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-313.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database",
        "postgresql"
      ],
      "keywords": [
        "database",
        "restoration"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-312",
        "CICD-314"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.postgresql.org/docs/current/app-pgdump.html",
      "notes": "Restore into a fresh isolated database and verify record counts or domain invariants.",
      "chapter": "snippets-database.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-314",
      "kind": "snippet",
      "title": "Migration rollback validation",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-314.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database",
        "pytest"
      ],
      "keywords": [
        "migration",
        "rollback",
        "validation"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-313",
        "CICD-315"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.postgresql.org/docs/current/app-pgdump.html",
      "notes": "Use a fixture with realistic data and explicit downgrade boundaries. A destructive downgrade can be unacceptable even if it succeeds syntactically.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-315",
      "kind": "snippet",
      "title": "Database compatibility testing",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-315.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database",
        "pytest"
      ],
      "keywords": [
        "database",
        "compatibility",
        "testing"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-314",
        "CICD-316"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.postgresql.org/docs/current/app-pgdump.html",
      "notes": "Assert the previous app still reads and writes after the expand migration. Test the new app separately before contract changes.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-316",
      "kind": "snippet",
      "title": "Database seed generation",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-316.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "database"
      ],
      "keywords": [
        "database",
        "seed",
        "generation"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-315",
        "CICD-317"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://www.postgresql.org/docs/current/app-pgdump.html",
      "notes": "Use synthetic records with fixed IDs on a test database. Two seed runs should produce the same state.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-317",
      "kind": "snippet",
      "title": "Migration lock management",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-317.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "database"
      ],
      "keywords": [
        "migration",
        "lock",
        "management"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-316",
        "CICD-318"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://www.postgresql.org/docs/current/app-pgdump.html",
      "notes": "Run inside the same transaction and database connection as the DDL. Use a centrally allocated lock key and retry carefully after timeout.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-318",
      "kind": "snippet",
      "title": "Zero-downtime schema migration",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-318.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "database"
      ],
      "keywords": [
        "zero",
        "downtime",
        "schema",
        "migration"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-317",
        "CICD-319"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://www.postgresql.org/docs/current/app-pgdump.html",
      "notes": "Run outside a transaction block. Inspect pg_index.indisvalid and recovery from failed concurrent builds.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-319",
      "kind": "snippet",
      "title": "Database performance regression",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-319.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "database"
      ],
      "keywords": [
        "database",
        "performance",
        "regression"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-318",
        "CICD-320"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.postgresql.org/docs/current/app-pgdump.html",
      "notes": "Use fixed data, app-like queries and repeated runs. Compare latency and throughput against a known baseline in equally sized environments.",
      "chapter": "snippets-database.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-320",
      "kind": "snippet",
      "title": "Expand-contract migration pattern",
      "category": "database",
      "difficulty": "advanced",
      "path": "snippets/CICD-320.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "database"
      ],
      "keywords": [
        "expand",
        "contract",
        "migration",
        "pattern"
      ],
      "prerequisites": "disposable database, migration tools and a scoped database role",
      "related": [
        "CICD-319"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://www.postgresql.org/docs/current/app-pgdump.html",
      "notes": "Deploy dual write and a resumable backfill, verify null counts and remove the old readers before the separately reviewed contract migration.",
      "chapter": "snippets-database.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-321",
      "kind": "snippet",
      "title": "DNS resolution testing",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-321.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network"
      ],
      "keywords": [
        "dns",
        "resolution",
        "testing"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-322"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://curl.se/docs/manpage.html",
      "notes": "Check both libc and DNS resolver behaviour. Search suffix and record type can explain different results.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-322",
      "kind": "snippet",
      "title": "TLS certificate validation",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-322.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network"
      ],
      "keywords": [
        "tls",
        "certificate",
        "validation"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-321",
        "CICD-323"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://curl.se/docs/manpage.html",
      "notes": "Require a successful chain and hostname check. The connect and servername host should match the intended ingress.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-323",
      "kind": "snippet",
      "title": "TLS certificate expiry checking",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-323.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network"
      ],
      "keywords": [
        "tls",
        "certificate",
        "expiry",
        "checking"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-322",
        "CICD-324"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://curl.se/docs/manpage.html",
      "notes": "Fail if the leaf expires within 14 days. Use CICD-322 for separate trust validation.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-324",
      "kind": "snippet",
      "title": "HTTP endpoint verification",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-324.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network",
        "curl",
        "jq"
      ],
      "keywords": [
        "http",
        "endpoint",
        "verification"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-323",
        "CICD-325"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://curl.se/docs/manpage.html",
      "notes": "Verify health payload as well as HTTP status. Do not store tokens in URLs.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-325",
      "kind": "snippet",
      "title": "WebSocket connectivity testing",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-325.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network",
        "jq"
      ],
      "keywords": [
        "websocket",
        "connectivity",
        "testing"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-324",
        "CICD-326"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://github.com/vi/websocat",
      "notes": "Use a fixture service implementing this ping/pong contract. Wrap with timeout to bound a silent peer.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-326",
      "kind": "snippet",
      "title": "gRPC endpoint testing",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-326.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network",
        "curl",
        "jq"
      ],
      "keywords": [
        "grpc",
        "endpoint",
        "testing"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-325",
        "CICD-327"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://github.com/fullstorydev/grpcurl",
      "notes": "Requires reflection or an explicit health proto. Use a trusted TLS certificate.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-327",
      "kind": "snippet",
      "title": "OpenAPI schema validation",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-327.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network"
      ],
      "keywords": [
        "openapi",
        "schema",
        "validation"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-326",
        "CICD-328"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://redocly.com/docs/cli/commands/lint",
      "notes": "Pin the Redocly CLI in the project's dev dependencies and run npm ci first.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-328",
      "kind": "snippet",
      "title": "API contract testing",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-328.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network"
      ],
      "keywords": [
        "api",
        "contract",
        "testing"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-327",
        "CICD-329"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://schemathesis.readthedocs.io/",
      "notes": "Use a disposable API with synthetic data and allowlisted operations. Contract generation may execute write methods declared in the schema.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-329",
      "kind": "snippet",
      "title": "Consumer-driven contract testing",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-329.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network",
        "pytest"
      ],
      "keywords": [
        "consumer",
        "driven",
        "contract",
        "testing"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-328",
        "CICD-330"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.pact.io/",
      "notes": "The consumer generates pact files and the provider verifies those exact artifacts against its local fixture. Fail on mismatch before publishing verification.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-330",
      "kind": "snippet",
      "title": "API backward compatibility",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-330.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network"
      ],
      "keywords": [
        "api",
        "backward",
        "compatibility"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-329",
        "CICD-331"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.oasdiff.com/",
      "notes": "Fetch main first. Verify a known breaking fixture is rejected by the chosen rule set.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-331",
      "kind": "snippet",
      "title": "Network latency measurement",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-331.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network",
        "curl"
      ],
      "keywords": [
        "network",
        "latency",
        "measurement"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-330",
        "CICD-332"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://curl.se/docs/manpage.html",
      "notes": "Collect fresh-curl timings in seconds. These include client and protocol costs, so compare identical paths and environments.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-332",
      "kind": "snippet",
      "title": "Packet loss simulation",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-332.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network"
      ],
      "keywords": [
        "packet",
        "loss",
        "simulation"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-331",
        "CICD-333"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://curl.se/docs/manpage.html",
      "notes": "Run inside an isolated lab network namespace with CAP_NET_ADMIN and remove the qdisc after testing. Never apply this to a shared host interface.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-333",
      "kind": "snippet",
      "title": "Reverse proxy configuration testing",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-333.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network",
        "docker"
      ],
      "keywords": [
        "reverse",
        "proxy",
        "configuration",
        "testing"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-332",
        "CICD-334"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://curl.se/docs/manpage.html",
      "notes": "This validates config and startup dependency resolution in the test container. Include the same upstream DNS names as its intended network.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-334",
      "kind": "snippet",
      "title": "Load balancer health verification",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-334.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network",
        "aws",
        "jq"
      ],
      "keywords": [
        "load",
        "balancer",
        "health",
        "verification"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-333",
        "CICD-335"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://curl.se/docs/manpage.html",
      "notes": "A healthy target set must also meet minimum desired capacity if your service can run degraded.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-335",
      "kind": "snippet",
      "title": "Ingress connectivity validation",
      "category": "api-network",
      "difficulty": "advanced",
      "path": "snippets/CICD-335.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "api-network",
        "curl"
      ],
      "keywords": [
        "ingress",
        "connectivity",
        "validation"
      ],
      "prerequisites": "authorized test service, known endpoint or local fixture and the named test CLI",
      "related": [
        "CICD-334"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://curl.se/docs/manpage.html",
      "notes": "This exercises TLS/SNI and host routing against the selected address before DNS cutover.",
      "chapter": "snippets-api-network.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-336",
      "kind": "snippet",
      "title": "Concurrent request testing",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-336.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "distributed"
      ],
      "keywords": [
        "concurrent",
        "request",
        "testing"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-337"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "Linux xargs returns failure when a child fails. Keep concurrency bounded and aim at an authorized fixture.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-337",
      "kind": "snippet",
      "title": "Distributed load generation",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-337.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "distributed"
      ],
      "keywords": [
        "distributed",
        "load",
        "generation"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-336",
        "CICD-338"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/set-up/set-up-distributed-k6/",
      "notes": "Requires the k6 operator and a ConfigMap containing an authorized load test. Observe all worker Jobs and aggregate their metrics.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-338",
      "kind": "snippet",
      "title": "Message queue integration testing",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-338.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "docker",
        "pytest"
      ],
      "keywords": [
        "message",
        "queue",
        "integration",
        "testing"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-337",
        "CICD-339"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "Exercise publish, consume and acknowledgement against a disposable broker. Verify redelivery after a consumer exits before ack.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-339",
      "kind": "snippet",
      "title": "Kafka integration testing",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-339.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed"
      ],
      "keywords": [
        "kafka",
        "integration",
        "testing"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-338",
        "CICD-340"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kafka.apache.org/quickstart",
      "notes": "Use an isolated topic and clean up by test lifecycle. Validate publish and delivery before testing consumer lag.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-340",
      "kind": "snippet",
      "title": "RabbitMQ integration testing",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-340.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "docker",
        "pytest"
      ],
      "keywords": [
        "rabbitmq",
        "integration",
        "testing"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-339",
        "CICD-341"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.rabbitmq.com/docs/monitoring",
      "notes": "A healthy broker establishes reachability. App-level tests must assert acknowledgements and retry semantics.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-341",
      "kind": "snippet",
      "title": "Redis failure simulation",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-341.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "docker",
        "pytest"
      ],
      "keywords": [
        "redis",
        "failure",
        "simulation"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-340",
        "CICD-342"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "Use a per-run compose project. The API should exercise the expected cache-miss fallback or service degradation.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-342",
      "kind": "snippet",
      "title": "Service dependency failure testing",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-342.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "docker",
        "pytest"
      ],
      "keywords": [
        "service",
        "dependency",
        "failure",
        "testing"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-341",
        "CICD-343"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "The client sees a slow peer rather than a clean disconnect. Assert a bounded timeout plus controlled error.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-343",
      "kind": "snippet",
      "title": "Retry behaviour validation",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-343.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "pytest"
      ],
      "keywords": [
        "retry",
        "behaviour",
        "validation"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-342",
        "CICD-344"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "Fixture should count attempts, fake the clock and verify permanent errors are returned without extra retries.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-344",
      "kind": "snippet",
      "title": "Circuit breaker testing",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-344.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "pytest"
      ],
      "keywords": [
        "circuit",
        "breaker",
        "testing"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-343",
        "CICD-345"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "Assert closed, open and half-open transitions against a fake dependency and a fake clock.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-345",
      "kind": "snippet",
      "title": "Timeout propagation testing",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-345.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "pytest"
      ],
      "keywords": [
        "timeout",
        "propagation",
        "testing"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-344",
        "CICD-346"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "Inject latency and assert downstream deadlines shrink across hops. A test timeout is only a safety guard.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-346",
      "kind": "snippet",
      "title": "Chaos Mesh experiments",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-346.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "distributed"
      ],
      "keywords": [
        "chaos",
        "mesh",
        "experiments"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-345",
        "CICD-347"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://chaos-mesh.org/docs/simulate-pod-chaos-on-kubernetes/",
      "notes": "Use a dedicated lab cluster and installed Chaos Mesh. Observe steady-state probes and disable the experiment if the error budget breaches.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-347",
      "kind": "snippet",
      "title": "Pod termination testing",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-347.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "kubernetes"
      ],
      "keywords": [
        "pod",
        "termination",
        "testing"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-346",
        "CICD-348"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "Record readiness and availability through replica replacement. An existing rollout status alone does not measure transient request loss.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-348",
      "kind": "snippet",
      "title": "Network partition simulation",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-348.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "docker",
        "pytest"
      ],
      "keywords": [
        "network",
        "partition",
        "simulation"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-347",
        "CICD-349"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "Use disposable named containers and network. Verify stale work is retried or fenced after the reconnect.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-349",
      "kind": "snippet",
      "title": "Failover testing",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-349.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "docker",
        "pytest"
      ],
      "keywords": [
        "failover",
        "testing"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-348",
        "CICD-350"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "The test should prove leader election and absence of duplicate writes. A healthy replica alone does not prove fenced failover.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-350",
      "kind": "snippet",
      "title": "Disaster recovery validation",
      "category": "distributed",
      "difficulty": "advanced",
      "path": "snippets/CICD-350.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "distributed",
        "postgresql"
      ],
      "keywords": [
        "disaster",
        "recovery",
        "validation"
      ],
      "prerequisites": "disposable integration environment, synthetic traffic and controlled test faults",
      "related": [
        "CICD-349"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/k6/latest/",
      "notes": "Verify a disposable restore using an expected recovery point and elapsed time. Compare both RPO and RTO against the runbook.",
      "chapter": "snippets-distributed.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-351",
      "kind": "snippet",
      "title": "Prometheus configuration validation",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-351.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "prometheus",
        "sre"
      ],
      "keywords": [
        "prometheus",
        "configuration",
        "validation"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-352"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Validate the config and rule files with the same promtool version as the server.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-352",
      "kind": "snippet",
      "title": "Prometheus rule testing",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-352.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "prometheus",
        "sre"
      ],
      "keywords": [
        "prometheus",
        "rule",
        "testing"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-351",
        "CICD-353"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Use synthetic time series with at least one firing and one non-firing case. An unexpected label fails the test.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-353",
      "kind": "snippet",
      "title": "Grafana dashboard provisioning",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-353.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "grafana",
        "sre"
      ],
      "keywords": [
        "grafana",
        "dashboard",
        "provisioning"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-352",
        "CICD-354"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://grafana.com/docs/grafana/latest/administration/provisioning/",
      "notes": "Mount JSON models at the configured directory. Verify dashboards appear with stable UIDs after Grafana starts.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-354",
      "kind": "snippet",
      "title": "Grafana dashboard validation",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-354.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "sre"
      ],
      "keywords": [
        "grafana",
        "dashboard",
        "validation"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-353",
        "CICD-355"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/grafana/latest/administration/provisioning/",
      "notes": "Check shape and detect duplicate dashboard UIDs before provisioning. Test imports against the Grafana version you deploy.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-355",
      "kind": "snippet",
      "title": "Loki configuration validation",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-355.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "loki",
        "sre"
      ],
      "keywords": [
        "loki",
        "configuration",
        "validation"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-354",
        "CICD-356"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://grafana.com/docs/loki/latest/configure/",
      "notes": "Use the same Loki binary and supply placeholder environment variables if config expansion is turned on.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-356",
      "kind": "snippet",
      "title": "OpenTelemetry Collector validation",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-356.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "opentelemetry",
        "sre"
      ],
      "keywords": [
        "opentelemetry",
        "collector",
        "validation"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-355",
        "CICD-357"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://opentelemetry.io/docs/collector/configuration/",
      "notes": "Match the deployed distribution and supported components. Validate before submitting the configuration PR.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-357",
      "kind": "snippet",
      "title": "Distributed tracing smoke tests",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-357.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "jq",
        "sre"
      ],
      "keywords": [
        "distributed",
        "tracing",
        "smoke",
        "tests"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-356",
        "CICD-358"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Use Jaeger-compatible trace lookup after injecting known trace context in a smoke request. Poll to allow export latency.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-358",
      "kind": "snippet",
      "title": "Structured log validation",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-358.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "sre"
      ],
      "keywords": [
        "structured",
        "log",
        "validation"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-357",
        "CICD-359"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Feed JSON lines from a fixture. Test invalid severity and missing messages to prove rejection.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-359",
      "kind": "snippet",
      "title": "SLO compliance checking",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-359.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "jq",
        "prometheus",
        "sre"
      ],
      "keywords": [
        "slo",
        "compliance",
        "checking"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-358",
        "CICD-360"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Requires a recording rule and an explicit no-data policy. This fails closed on no sample or ambiguous series.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-360",
      "kind": "snippet",
      "title": "Error budget deployment gate",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-360.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "jq",
        "prometheus",
        "sre"
      ],
      "keywords": [
        "error",
        "budget",
        "deployment",
        "gate"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-359",
        "CICD-361"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Define the burn-rate rule and release threshold with the SLO owner. Escalate a failed gate through the documented operational route.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-361",
      "kind": "snippet",
      "title": "Synthetic monitoring deployment",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-361.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "sre"
      ],
      "keywords": [
        "synthetic",
        "monitoring",
        "deployment"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-360",
        "CICD-362"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Mount this module into Blackbox Exporter and configure a Prometheus scrape job for the reviewed endpoint. Verify probe_success=1.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-362",
      "kind": "snippet",
      "title": "Deployment marker creation",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-362.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "grafana",
        "jq",
        "sre"
      ],
      "keywords": [
        "deployment",
        "marker",
        "creation"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-361",
        "CICD-363"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Use a scoped Grafana service account. Search annotations by deployment tag after the rollout.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-363",
      "kind": "snippet",
      "title": "Post-deployment metric comparison",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-363.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "sre"
      ],
      "keywords": [
        "post",
        "deployment",
        "metric",
        "comparison"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-362",
        "CICD-364"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Compare matched time windows and sample sizes. The gate allows 15% latency growth.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-364",
      "kind": "snippet",
      "title": "Automated incident creation",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-364.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "github-cli",
        "sre"
      ],
      "keywords": [
        "automated",
        "incident",
        "creation"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-363",
        "CICD-365"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Use a scoped account and deduplicate by deployment ID before creating an issue. Keep user data out of evidence.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-365",
      "kind": "snippet",
      "title": "Automated incident diagnostic collection",
      "category": "sre",
      "difficulty": "advanced",
      "path": "snippets/CICD-365.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes",
        "sre"
      ],
      "keywords": [
        "automated",
        "incident",
        "diagnostic",
        "collection"
      ],
      "prerequisites": "staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes",
      "related": [
        "CICD-364"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Review and scrub evidence before uploading. Restrict namespace, retention and artifact access.",
      "chapter": "snippets-sre.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-366",
      "kind": "snippet",
      "title": "HashiCorp Vault authentication",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-366.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance",
        "jq",
        "vault"
      ],
      "keywords": [
        "hashicorp",
        "vault",
        "authentication"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-367"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/vault/docs/auth/jwt",
      "notes": "Supply the CI OIDC assertion securely and bind the Vault JWT role to the repository claims. Disable shell tracing and keep tokens only in this process.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-367",
      "kind": "snippet",
      "title": "Short-lived credential generation",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-367.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance",
        "jq",
        "vault"
      ],
      "keywords": [
        "short",
        "lived",
        "credential",
        "generation"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-366",
        "CICD-368"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.hashicorp.com/vault/docs/secrets/databases",
      "notes": "Use a Vault database role configured for a short lease. The probe discards username and password and must run without shell tracing.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-368",
      "kind": "snippet",
      "title": "OPA policy validation",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-368.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance"
      ],
      "keywords": [
        "opa",
        "policy",
        "validation"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-367",
        "CICD-369"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.openpolicyagent.org/docs/cli",
      "notes": "Prefer explicit allow assertions in CI. Run unit tests first to distinguish invalid policy from a deny decision.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-369",
      "kind": "snippet",
      "title": "Conftest policy testing",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-369.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance",
        "opa"
      ],
      "keywords": [
        "conftest",
        "policy",
        "testing"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-368",
        "CICD-370"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.conftest.dev/",
      "notes": "Run positive and negative fixtures. Fail on a manifest that violates your documented constraints.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-370",
      "kind": "snippet",
      "title": "Kyverno policy validation",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-370.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance"
      ],
      "keywords": [
        "kyverno",
        "policy",
        "validation"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-369",
        "CICD-371"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kyverno.io/docs/kyverno-cli/",
      "notes": "Keep a separate known-bad fixture under kyverno test so the policy cannot silently stop matching.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-371",
      "kind": "snippet",
      "title": "License compliance scanning",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-371.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance",
        "jq"
      ],
      "keywords": [
        "license",
        "compliance",
        "scanning"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-370",
        "CICD-372"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Resolve unknown licenses and compare against your approved allowlist after normalizing SPDX identifiers.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-372",
      "kind": "snippet",
      "title": "Dependency allowlist enforcement",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-372.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance",
        "jq"
      ],
      "keywords": [
        "dependency",
        "allowlist",
        "enforcement"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-371",
        "CICD-373"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Both JSON inputs are arrays of package identities. Generate the production list from the resolved dependency graph.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-373",
      "kind": "snippet",
      "title": "Dependency confusion prevention",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-373.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compliance"
      ],
      "keywords": [
        "dependency",
        "confusion",
        "prevention"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-372",
        "CICD-374"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "TOML parse"
      },
      "documentation": "https://docs.astral.sh/uv/concepts/indexes/",
      "notes": "Bind private names to a named index, keep secrets outside the file and verify the source in uv.lock.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-374",
      "kind": "snippet",
      "title": "Action commit SHA pinning",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-374.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance"
      ],
      "keywords": [
        "action",
        "commit",
        "sha",
        "pinning"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-373",
        "CICD-375"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Review third-party actions at a full commit SHA and keep an approved version comment next to each pin. Configure the audit policy to fail on unpinned refs.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-375",
      "kind": "snippet",
      "title": "Untrusted PR isolation",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-375.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "compliance"
      ],
      "keywords": [
        "untrusted",
        "pr",
        "isolation"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-374",
        "CICD-376"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Use a disposable hosted runner without secrets. Verify fork PRs cannot reach protected environments or privileged runners.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-376",
      "kind": "snippet",
      "title": "SLSA provenance generation",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-376.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "compliance"
      ],
      "keywords": [
        "slsa",
        "provenance",
        "generation"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-375",
        "CICD-377"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Use the trusted release workflow with id-token and attestations write. Check the generated provenance identifies the intended repository and artifact hash.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-377",
      "kind": "snippet",
      "title": "Artifact attestation verification",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-377.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "compliance",
        "github-cli"
      ],
      "keywords": [
        "artifact",
        "attestation",
        "verification"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-376",
        "CICD-378"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Fail on a modified artifact or an unexpected signer repository. Further constrain signer workflow for high-value releases.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-378",
      "kind": "snippet",
      "title": "Container base-image policy",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-378.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance",
        "docker"
      ],
      "keywords": [
        "container",
        "base",
        "image",
        "policy"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-377",
        "CICD-379"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "This strict starter requires digest-pinned external FROM lines. Real multi-stage policy must allow aliases defined earlier and validate the digest length.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-379",
      "kind": "snippet",
      "title": "Security exception expiry validation",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-379.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance",
        "jq"
      ],
      "keywords": [
        "security",
        "exception",
        "expiry",
        "validation"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-378",
        "CICD-380"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Store strict YYYY-MM-DD dates and owners with a reviewed exception. Validate calendar correctness at policy ingestion.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-380",
      "kind": "snippet",
      "title": "Automated compliance evidence collection",
      "category": "compliance",
      "difficulty": "advanced",
      "path": "snippets/CICD-380.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "compliance",
        "jq"
      ],
      "keywords": [
        "automated",
        "compliance",
        "evidence",
        "collection"
      ],
      "prerequisites": "reviewed policies, a short-lived CI identity, and synthetic or approved test inputs",
      "related": [
        "CICD-379"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.github.com/en/actions/security-for-github-actions/security-guides",
      "notes": "Add signed attestations and policy reports produced by CI. Apply access control and retention to the uploaded evidence.",
      "chapter": "snippets-compliance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-381",
      "kind": "snippet",
      "title": "Monorepo directory detection",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-381.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "monorepo"
      ],
      "keywords": [
        "monorepo",
        "directory",
        "detection"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-382"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Use an agreed base and detect shared paths. A root lockfile change can require testing every package.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-382",
      "kind": "snippet",
      "title": "Build changed services only",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-382.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "monorepo"
      ],
      "keywords": [
        "build",
        "changed",
        "services",
        "only",
        "deploy only changed microservices",
        "build affected services"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-381",
        "CICD-383"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Drive the job with a changed-service matrix, allowlist contexts and build downstream dependents separately.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-383",
      "kind": "snippet",
      "title": "Test affected packages only",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-383.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "monorepo",
        "node",
        "pnpm"
      ],
      "keywords": [
        "test",
        "affected",
        "packages",
        "only"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-382",
        "CICD-384"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Install locked dependencies and ensure scope includes changes to shared inputs.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-384",
      "kind": "snippet",
      "title": "Turborepo remote caching",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-384.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "monorepo",
        "node",
        "pnpm"
      ],
      "keywords": [
        "turborepo",
        "remote",
        "caching"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-383",
        "CICD-385"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://turborepo.com/docs/core-concepts/remote-caching",
      "notes": "Enable cache writes only for trusted branches. Change an input and verify a cache miss.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-385",
      "kind": "snippet",
      "title": "Nx affected project detection",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-385.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "monorepo",
        "node",
        "pnpm"
      ],
      "keywords": [
        "nx",
        "affected",
        "project",
        "detection"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-384",
        "CICD-386"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Use this machine-readable result for a plan job. Confirm dependent packages are listed.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-386",
      "kind": "snippet",
      "title": "Bazel build",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-386.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "bazel",
        "monorepo"
      ],
      "keywords": [
        "bazel",
        "build"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-385",
        "CICD-387"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://bazel.build/docs",
      "notes": "Use a repository-pinned Bazel version and explicit target graph.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-387",
      "kind": "snippet",
      "title": "Bazel remote execution",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-387.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "bazel",
        "monorepo"
      ],
      "keywords": [
        "bazel",
        "remote",
        "execution"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-386",
        "CICD-388"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://bazel.build/remote/rbe",
      "notes": "Configure trusted remote execution with a compatible toolchain and TLS. Compare action logs to a local build.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-388",
      "kind": "snippet",
      "title": "Parallel package builds",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-388.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "monorepo",
        "node",
        "pnpm"
      ],
      "keywords": [
        "parallel",
        "package",
        "builds"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-387",
        "CICD-389"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Per-workspace scripts should be independent except for declared dependencies. Confirm memory use at the chosen concurrency.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-389",
      "kind": "snippet",
      "title": "Shared dependency caching",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-389.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "monorepo",
        "node",
        "pnpm"
      ],
      "keywords": [
        "shared",
        "dependency",
        "caching"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-388",
        "CICD-390"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Activate the pinned pnpm version first. The cache contains package downloads rather than installed workspace outputs.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-390",
      "kind": "snippet",
      "title": "Independent service versioning",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-390.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "monorepo",
        "node",
        "pnpm"
      ],
      "keywords": [
        "independent",
        "service",
        "versioning"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-389",
        "CICD-391"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Generate a plan from committed changesets before versioning packages independently.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-391",
      "kind": "snippet",
      "title": "Monorepo release orchestration",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-391.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "monorepo",
        "node",
        "pnpm"
      ],
      "keywords": [
        "monorepo",
        "release",
        "orchestration"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-390",
        "CICD-392"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Run versioning in a release branch and review manifest, changelog and lockfile changes before a separate publish step.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-392",
      "kind": "snippet",
      "title": "Dependency graph generation",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-392.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "monorepo",
        "node",
        "pnpm"
      ],
      "keywords": [
        "dependency",
        "graph",
        "generation"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-391",
        "CICD-393"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Compare graph changes when refactoring workspace relationships. Archive the graph for review.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-393",
      "kind": "snippet",
      "title": "Incremental compilation",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-393.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "monorepo",
        "node",
        "pnpm"
      ],
      "keywords": [
        "incremental",
        "compilation"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-392",
        "CICD-394"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Configure TypeScript project references and incremental cache keyed by compiler, config and dependencies.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-394",
      "kind": "snippet",
      "title": "Distributed build workers",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-394.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "bazel",
        "monorepo"
      ],
      "keywords": [
        "distributed",
        "build",
        "workers"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-393",
        "CICD-395"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Use capacity limits and isolate tenants at the remote workers. Record queue latency rather than assuming a higher jobs value is faster.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-395",
      "kind": "snippet",
      "title": "Build performance profiling",
      "category": "monorepo",
      "difficulty": "advanced",
      "path": "snippets/CICD-395.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "bazel",
        "monorepo"
      ],
      "keywords": [
        "build",
        "performance",
        "profiling"
      ],
      "prerequisites": "trusted checkout with the base ref fetched and pinned package manager or build tool",
      "related": [
        "CICD-394"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://nx.dev/ci/features/affected",
      "notes": "Compare critical-path time across matched runners with equivalent cache states.",
      "chapter": "snippets-monorepo.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-396",
      "kind": "snippet",
      "title": "Pull request preview deployment",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-396.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "helm",
        "previews"
      ],
      "keywords": [
        "pull",
        "request",
        "preview",
        "deployment"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-397"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
      "notes": "Run after authorized build and isolated namespace provisioning. Use an immutable candidate digest.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-397",
      "kind": "snippet",
      "title": "Dynamic preview URL generation",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-397.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "previews"
      ],
      "keywords": [
        "dynamic",
        "preview",
        "url",
        "generation"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-396",
        "CICD-398"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
      "notes": "Feed a trusted base domain and numeric PR ID into the output. The DNS and ingress setup still needs provisioning.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-398",
      "kind": "snippet",
      "title": "Cloudflare Tunnel integration",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-398.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "previews"
      ],
      "keywords": [
        "cloudflare",
        "tunnel",
        "integration"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-397",
        "CICD-399"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/",
      "notes": "Use a named tunnel and an authorized hostname. Protect internal previews using an access policy and verify the catch-all.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-399",
      "kind": "snippet",
      "title": "Preview environment DNS provisioning",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-399.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "aws",
        "jq",
        "previews"
      ],
      "keywords": [
        "preview",
        "environment",
        "dns",
        "provisioning"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-398",
        "CICD-400"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.aws.amazon.com/cli/latest/reference/route53/change-resource-record-sets.html",
      "notes": "Validate the preview subdomain belongs to the approved zone and wait for the change. Scope IAM to the preview suffix.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-400",
      "kind": "snippet",
      "title": "Preview environment TLS",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-400.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes",
        "previews"
      ],
      "keywords": [
        "preview",
        "environment",
        "tls"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-399",
        "CICD-401"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://cert-manager.io/docs/usage/certificate/",
      "notes": "Issuer and Certificate must exist. Probe the actual hostname with CICD-322 before posting it.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-401",
      "kind": "snippet",
      "title": "PR comment with deployment URL",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-401.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "github-cli",
        "previews"
      ],
      "keywords": [
        "pr",
        "comment",
        "with",
        "deployment",
        "url"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-400",
        "CICD-402"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
      "notes": "Post using a bot dedicated to previews and construct the URL from trusted components. Verify repository and PR linkage.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-402",
      "kind": "snippet",
      "title": "Preview database provisioning",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-402.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "previews"
      ],
      "keywords": [
        "preview",
        "database",
        "provisioning"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-401",
        "CICD-403"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
      "notes": "Provision through a guarded administrative controller and assign an isolated app role. Handle existing database as idempotent state after verifying its owner.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-403",
      "kind": "snippet",
      "title": "Isolated preview secrets",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-403.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "jq",
        "kubernetes",
        "previews"
      ],
      "keywords": [
        "isolated",
        "preview",
        "secrets"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-402",
        "CICD-404"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
      "notes": "Provision a per-namespace credential through an external secret controller. Ensure preview app identities lack production access.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-404",
      "kind": "snippet",
      "title": "Automatic preview teardown",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-404.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "previews"
      ],
      "keywords": [
        "automatic",
        "preview",
        "teardown"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-403",
        "CICD-405"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
      "notes": "Dispatch a trusted controller from repository metadata. Fork-triggered workflows lack privileged credentials, so use a separately authorized reconciliation path.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-405",
      "kind": "snippet",
      "title": "Preview environment expiration",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-405.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "jq",
        "kubernetes",
        "previews"
      ],
      "keywords": [
        "preview",
        "environment",
        "expiration"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-404",
        "CICD-406"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
      "notes": "Review canonical UTC timestamps and ownership before applying CICD-277. An expired namespace list is only a deletion candidate list.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-406",
      "kind": "snippet",
      "title": "Developer environment bootstrap",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-406.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "previews",
        "pytest",
        "uv"
      ],
      "keywords": [
        "developer",
        "environment",
        "bootstrap"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-405",
        "CICD-407"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
      "notes": "Require a committed lockfile and approved pre-commit hooks. Verify setup both on Linux and on documented developer platforms.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-407",
      "kind": "snippet",
      "title": "Dev Container validation",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-407.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "previews",
        "python"
      ],
      "keywords": [
        "dev",
        "container",
        "validation"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-406",
        "CICD-408"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://containers.dev/supporting.html",
      "notes": "Use a disposable CI runner and repository-pinned Dev Container definition. Build success alone misses startup hooks.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-408",
      "kind": "snippet",
      "title": "Automated dependency update PR",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-408.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "previews",
        "pytest",
        "uv"
      ],
      "keywords": [
        "automated",
        "dependency",
        "update",
        "pr"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-407",
        "CICD-409"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
      "notes": "Open a reviewed dependency PR after tests. Scope automated writes to the update branch.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-409",
      "kind": "snippet",
      "title": "Renovate integration",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-409.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "previews"
      ],
      "keywords": [
        "renovate",
        "integration"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-408",
        "CICD-410"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "JSON parse"
      },
      "documentation": "https://docs.renovatebot.com/configuration-options/",
      "notes": "Validate with the same Renovate release and install only for selected repositories.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-410",
      "kind": "snippet",
      "title": "Automated repository scaffolding",
      "category": "previews",
      "difficulty": "advanced",
      "path": "snippets/CICD-410.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "previews"
      ],
      "keywords": [
        "automated",
        "repository",
        "scaffolding"
      ],
      "prerequisites": "trusted preview controller, disposable environment and scoped identities for external resources",
      "related": [
        "CICD-409"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
      "notes": "Use a trusted template checkout. Review generated files and run its pipeline before onboarding.",
      "chapter": "snippets-previews.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-411",
      "kind": "snippet",
      "title": "Backstage catalog validation",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-411.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "platform"
      ],
      "keywords": [
        "backstage",
        "catalog",
        "validation"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-412"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Verify basic catalog contract before ingestion. A catalog ingestion run should validate references and custom types.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-412",
      "kind": "snippet",
      "title": "Backstage software templates",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-412.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "platform",
        "python"
      ],
      "keywords": [
        "backstage",
        "software",
        "templates"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-411",
        "CICD-413"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "YAML parse"
      },
      "documentation": "https://backstage.io/docs/features/software-templates/writing-templates",
      "notes": "Add publish and register steps with an allowlisted destination. Validate the scaffold in a Backstage sandbox.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-413",
      "kind": "snippet",
      "title": "Service ownership validation",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-413.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "jq",
        "platform"
      ],
      "keywords": [
        "service",
        "ownership",
        "validation"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-412",
        "CICD-414"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Owner IDs must be normalized to full entity refs. Reject ownerless or retired teams.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-414",
      "kind": "snippet",
      "title": "Repository policy enforcement",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-414.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "platform"
      ],
      "keywords": [
        "repository",
        "policy",
        "enforcement"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-413",
        "CICD-415"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Require baseline files during onboarding and check real ownership policy separately.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-415",
      "kind": "snippet",
      "title": "Branch protection automation",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-415.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "github-cli",
        "jq",
        "platform"
      ],
      "keywords": [
        "branch",
        "protection",
        "automation"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-414",
        "CICD-416"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Read and verify policy before a separate configuration rollout. A ruleset-managed repository needs its ruleset API instead.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-416",
      "kind": "snippet",
      "title": "Standardized service onboarding",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-416.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "docker",
        "platform"
      ],
      "keywords": [
        "standardized",
        "service",
        "onboarding"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-415",
        "CICD-417"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Establish a reproducible onboarding baseline. Add the catalog ingestion and service owner review afterward.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-417",
      "kind": "snippet",
      "title": "Golden-path pipeline",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-417.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "platform",
        "python"
      ],
      "keywords": [
        "golden",
        "path",
        "pipeline"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-416",
        "CICD-418"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Replace example and reference the approved reusable workflow. Scope caller permissions and pin the tested trusted ref.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-418",
      "kind": "snippet",
      "title": "Self-service infrastructure provisioning",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-418.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "platform",
        "terraform"
      ],
      "keywords": [
        "self",
        "service",
        "infrastructure",
        "provisioning"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-417",
        "CICD-419"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Validate request against resource and budget policy and apply from an approved change with serialized state access.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-419",
      "kind": "snippet",
      "title": "Self-service namespace provisioning",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-419.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes",
        "platform"
      ],
      "keywords": [
        "self",
        "service",
        "namespace",
        "provisioning"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-418",
        "CICD-420"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Baseline must include quota, network policy and narrowly scoped RBAC. Prefer reconciliation controlling the namespace lifecycle.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-420",
      "kind": "snippet",
      "title": "Developer access provisioning",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-420.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "kubernetes",
        "platform"
      ],
      "keywords": [
        "developer",
        "access",
        "provisioning"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-419",
        "CICD-421"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Use an approved identity-provider group and verify view is the desired role. Test access as an approved member.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-421",
      "kind": "snippet",
      "title": "Centralized pipeline configuration",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-421.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "platform",
        "python"
      ],
      "keywords": [
        "centralized",
        "pipeline",
        "configuration"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-420",
        "CICD-422"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Declare required inputs in the provider and version the contract. Add caller tests that consume the published workflow.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-422",
      "kind": "snippet",
      "title": "Multi-tenant pipeline isolation",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-422.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "platform"
      ],
      "keywords": [
        "multi",
        "tenant",
        "pipeline",
        "isolation"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-421",
        "CICD-423"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Restrict runner group access to trusted repositories and separate workloads, credential stores and network boundaries per tenant.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-423",
      "kind": "snippet",
      "title": "Service catalog synchronization",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-423.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "curl",
        "jq",
        "platform"
      ],
      "keywords": [
        "service",
        "catalog",
        "synchronization"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-422",
        "CICD-424"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Use an authorized read session. Handle pagination or use the catalog API's pagination explicitly if enabled.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-424",
      "kind": "snippet",
      "title": "Engineering scorecard generation",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-424.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "jq",
        "platform"
      ],
      "keywords": [
        "engineering",
        "scorecard",
        "generation"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-423",
        "CICD-425"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Keep inputs and scoring version for reproducibility. Add quality metrics as documented joins rather than guessed fields.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-425",
      "kind": "snippet",
      "title": "Platform adoption metrics",
      "category": "platform",
      "difficulty": "advanced",
      "path": "snippets/CICD-425.md",
      "platforms": [
        "kubernetes",
        "local-lab"
      ],
      "tools": [
        "jq",
        "platform"
      ],
      "keywords": [
        "platform",
        "adoption",
        "metrics"
      ],
      "prerequisites": "platform sandbox, scoped identities and reviewed service catalog or provisioning policy",
      "related": [
        "CICD-424"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://backstage.io/docs/features/software-catalog/descriptor-format/",
      "notes": "Define denominator and observation period from a service inventory snapshot. Track adoption through stable service IDs.",
      "chapter": "snippets-platform.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-426",
      "kind": "snippet",
      "title": "Model artifact downloading",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-426.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "llm"
      ],
      "keywords": [
        "model",
        "artifact",
        "downloading"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-427"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Pin an approved model revision and obtain tokenizer assets needed by your engine. Review provenance and license before use.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-427",
      "kind": "snippet",
      "title": "Model checksum verification",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-427.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "llm"
      ],
      "keywords": [
        "model",
        "checksum",
        "verification"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-426",
        "CICD-428"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Generate and protect checksums from a trusted release source. A modified weight shard should fail.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-428",
      "kind": "snippet",
      "title": "Hugging Face authentication",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-428.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "llm"
      ],
      "keywords": [
        "hugging",
        "face",
        "authentication"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-427",
        "CICD-429"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Inject a narrowly scoped read-only token through CI secret storage. Treat gated model access as separate from authentication.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-429",
      "kind": "snippet",
      "title": "Model configuration validation",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-429.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "llm"
      ],
      "keywords": [
        "model",
        "configuration",
        "validation"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-428",
        "CICD-430"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Use approved architecture and context constraints for the actual engine. Add tokenizer and tensor compatibility checks separately.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-430",
      "kind": "snippet",
      "title": "Prompt regression testing",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-430.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "llm",
        "prometheus",
        "pytest"
      ],
      "keywords": [
        "prompt",
        "regression",
        "testing"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-429",
        "CICD-431"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Pin prompts and fixtures, constrain sampling, and compare behavior with task-specific checks rather than exact prose when possible.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-431",
      "kind": "snippet",
      "title": "Structured output validation",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-431.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "llm",
        "python"
      ],
      "keywords": [
        "structured",
        "output",
        "validation"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-430",
        "CICD-432"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Validate the exact parsed output and fail on wrong types or unexpected fields if the schema forbids them.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-432",
      "kind": "snippet",
      "title": "LLM evaluation pipeline",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-432.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "llm"
      ],
      "keywords": [
        "llm",
        "evaluation",
        "pipeline"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-431",
        "CICD-433"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Populate evidence from a pinned eval dataset and reviewed scorer. Use representative examples and manually inspect failures.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-433",
      "kind": "snippet",
      "title": "RAG retrieval evaluation",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-433.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "llm"
      ],
      "keywords": [
        "rag",
        "retrieval",
        "evaluation"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-432",
        "CICD-434"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Each row contains retrieved IDs and relevant IDs. This computes hit rate at five using synthetic gold labels.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-434",
      "kind": "snippet",
      "title": "Embedding compatibility testing",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-434.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "llm"
      ],
      "keywords": [
        "embedding",
        "compatibility",
        "testing"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-433",
        "CICD-435"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Require a reindex or explicit versioned transition when embedding metadata changes.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-435",
      "kind": "snippet",
      "title": "Vector database integration testing",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-435.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "llm",
        "pytest"
      ],
      "keywords": [
        "vector",
        "database",
        "integration",
        "testing"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-434",
        "CICD-436"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Insert synthetic vectors, verify top-k order and delete the test collection in teardown.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-436",
      "kind": "snippet",
      "title": "Token consumption benchmarking",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-436.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "llm",
        "prometheus"
      ],
      "keywords": [
        "token",
        "consumption",
        "benchmarking"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-435",
        "CICD-437"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Use provider usage fields or the exact engine tokenizer. Compare matched inputs and output constraints.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-437",
      "kind": "snippet",
      "title": "Model response latency testing",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-437.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "jq",
        "llm"
      ],
      "keywords": [
        "model",
        "response",
        "latency",
        "testing"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-436",
        "CICD-438"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "This is a connectivity and model-readiness probe. Measure generation latency with a streamed completion as in CICD-450.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-438",
      "kind": "snippet",
      "title": "Model registry publishing",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-438.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "llm"
      ],
      "keywords": [
        "model",
        "registry",
        "publishing"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-437",
        "CICD-439"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://oras.land/docs/commands/oras_push/",
      "notes": "This publishes a small model metadata artifact. Publish approved weights separately when allowed and bind their immutable checksums.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-439",
      "kind": "snippet",
      "title": "Model version promotion",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-439.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "llm"
      ],
      "keywords": [
        "model",
        "version",
        "promotion"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-438",
        "CICD-440"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Review a promotion diff linking evaluation IDs and immutable digest. Keep endpoint deployment under the trusted controller.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-440",
      "kind": "snippet",
      "title": "Model rollback automation",
      "category": "llm",
      "difficulty": "advanced",
      "path": "snippets/CICD-440.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "llm"
      ],
      "keywords": [
        "model",
        "rollback",
        "automation"
      ],
      "prerequisites": "approved synthetic evaluation data, authorized model artifacts and pinned runtime tools",
      "related": [
        "CICD-439"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://huggingface.co/docs/huggingface_hub/guides/download",
      "notes": "Use a reviewed rollback change. Confirm runtime advertises the old revision and passes synthetic inference.",
      "chapter": "snippets-llm.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-441",
      "kind": "snippet",
      "title": "GPU availability detection",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-441.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu"
      ],
      "keywords": [
        "gpu",
        "availability",
        "detection"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-442"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "Check inside the runner environment that will start the engine. Record the device type and count.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-442",
      "kind": "snippet",
      "title": "NVIDIA driver validation",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-442.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu"
      ],
      "keywords": [
        "nvidia",
        "driver",
        "validation"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-441",
        "CICD-443"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "Use the minimum driver from the engine and CUDA compatibility matrix. Report the actual driver in evidence.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-443",
      "kind": "snippet",
      "title": "CUDA compatibility testing",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-443.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu",
        "python"
      ],
      "keywords": [
        "cuda",
        "compatibility",
        "testing"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-442",
        "CICD-444"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "A real tensor operation verifies more than loader discovery alone. Record driver and Torch CUDA runtime.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-444",
      "kind": "snippet",
      "title": "NVIDIA Container Toolkit validation",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-444.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "gpu"
      ],
      "keywords": [
        "nvidia",
        "container",
        "toolkit",
        "validation"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-443",
        "CICD-445"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "Use an approved CUDA image digest. A host nvidia-smi alone does not verify container passthrough.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-445",
      "kind": "snippet",
      "title": "GPU-enabled Docker image building",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-445.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "gpu",
        "python"
      ],
      "keywords": [
        "gpu",
        "enabled",
        "docker",
        "image",
        "building"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-444",
        "CICD-446"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "Supply a verified Python-capable CUDA base digest and hashed dependencies. Run GPU checks after build.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-446",
      "kind": "snippet",
      "title": "vLLM deployment",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-446.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "gpu",
        "vllm"
      ],
      "keywords": [
        "vllm",
        "deployment"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-445",
        "CICD-447"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "Use a dedicated trusted runner and an approved vLLM image digest. Probe /v1/models from a second step or terminal.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-447",
      "kind": "snippet",
      "title": "SGLang deployment",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-447.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu",
        "python",
        "sglang"
      ],
      "keywords": [
        "sglang",
        "deployment"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-446",
        "CICD-448"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.sglang.ai/",
      "notes": "Install a pinned SGLang version compatible with the host GPU. Wait for readiness before benchmarking.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-448",
      "kind": "snippet",
      "title": "TensorRT-LLM engine building",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-448.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu"
      ],
      "keywords": [
        "tensorrt",
        "llm",
        "engine",
        "building"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-447",
        "CICD-449"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://nvidia.github.io/TensorRT-LLM/",
      "notes": "Supply a model-specific converted checkpoint. Check flags against the installed TensorRT-LLM release and build for the target GPU architecture.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-449",
      "kind": "snippet",
      "title": "Model quantization pipeline",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-449.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu"
      ],
      "keywords": [
        "model",
        "quantization",
        "pipeline"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-448",
        "CICD-450"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://github.com/ggml-org/llama.cpp/tree/master/tools/quantize",
      "notes": "Run a pinned llama.cpp build on an approved source GGUF. Compare quality and throughput against the original.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-450",
      "kind": "snippet",
      "title": "Time-to-first-token benchmarking",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-450.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu",
        "prometheus",
        "vllm"
      ],
      "keywords": [
        "time",
        "to",
        "first",
        "token",
        "benchmarking"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-449",
        "CICD-451"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "TTFT measures wait to first generated token. Use streaming, warm-up, a fixed seed and matching request lengths.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-451",
      "kind": "snippet",
      "title": "Inter-token latency benchmarking",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-451.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu",
        "jq",
        "vllm"
      ],
      "keywords": [
        "inter",
        "token",
        "latency",
        "benchmarking"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-450",
        "CICD-452"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "Configure ITL percentiles in CICD-450 and check the benchmark version's JSON schema. ITL concerns successive streamed token arrivals.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-452",
      "kind": "snippet",
      "title": "Tokens-per-second benchmarking",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-452.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu",
        "jq",
        "vllm"
      ],
      "keywords": [
        "tokens",
        "per",
        "second",
        "benchmarking"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-451",
        "CICD-453"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "Report output tokens per wall-clock second separately from request rate and total input-plus-output throughput.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-453",
      "kind": "snippet",
      "title": "GPU memory utilization testing",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-453.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu"
      ],
      "keywords": [
        "gpu",
        "memory",
        "utilization",
        "testing"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-452",
        "CICD-454"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "Sample alongside the benchmark and compare per-device peaks. GPU process allocations can outlive individual requests.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-454",
      "kind": "snippet",
      "title": "KV cache performance benchmarking",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-454.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "gpu",
        "vllm"
      ],
      "keywords": [
        "kv",
        "cache",
        "performance",
        "benchmarking"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-453",
        "CICD-455"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "Confirm the metric name and unit in the running engine. Replay repeat and unique prompts separately when measuring cache effects.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-455",
      "kind": "snippet",
      "title": "Inference performance regression gate",
      "category": "gpu",
      "difficulty": "advanced",
      "path": "snippets/CICD-455.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gpu",
        "jq",
        "vllm"
      ],
      "keywords": [
        "inference",
        "performance",
        "regression",
        "gate",
        "block release when inference latency increases",
        "ttft",
        "throughput",
        "performance regression",
        "vllm",
        "benchmark",
        "gpu"
      ],
      "prerequisites": "dedicated GPU lab, approved images and model revision, fixed benchmark profile",
      "related": [
        "CICD-450",
        "CICD-451",
        "CICD-452",
        "CICD-470"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.vllm.ai/en/stable/cli/bench/serve/",
      "notes": "Use identical engine fixture, GPU model and traffic profile. Fail on low completion count, more than 15% slower p99 TTFT or more than 5% lower throughput.",
      "chapter": "snippets-gpu.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-456",
      "kind": "snippet",
      "title": "Infrastructure cost estimation",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-456.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "terraform"
      ],
      "keywords": [
        "infrastructure",
        "cost",
        "estimation"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-457"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Treat the plan as sensitive and only send approved inputs to pricing systems. Record supported resource coverage.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-457",
      "kind": "snippet",
      "title": "Pull request cost comparison",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-457.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "jq"
      ],
      "keywords": [
        "pull",
        "request",
        "cost",
        "comparison"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-456",
        "CICD-458"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Use same cloud region, pricing date and currency. The example rejects estimated growth over 100 currency units.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-458",
      "kind": "snippet",
      "title": "Cloud budget validation",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-458.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "aws",
        "finops",
        "jq"
      ],
      "keywords": [
        "cloud",
        "budget",
        "validation"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-457",
        "CICD-459"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Use the correct account and acknowledge delayed spend data.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-459",
      "kind": "snippet",
      "title": "Resource utilization reporting",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-459.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "kubernetes"
      ],
      "keywords": [
        "resource",
        "utilization",
        "reporting"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-458",
        "CICD-460"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Requires Metrics Server. Sample over representative periods before using results for rightsizing.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-460",
      "kind": "snippet",
      "title": "Idle infrastructure detection",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-460.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "jq"
      ],
      "keywords": [
        "idle",
        "infrastructure",
        "detection"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-459",
        "CICD-461"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Report candidates with inventory evidence and owner review. Idle sampling does not imply decommission authorization.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-461",
      "kind": "snippet",
      "title": "Ephemeral resource cleanup",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-461.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "jq",
        "kubernetes"
      ],
      "keywords": [
        "ephemeral",
        "resource",
        "cleanup"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-460",
        "CICD-462"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Review protected and active environments before a separate deletion step.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-462",
      "kind": "snippet",
      "title": "Container registry cleanup",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-462.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "aws",
        "finops",
        "jq"
      ],
      "keywords": [
        "container",
        "registry",
        "cleanup"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-461",
        "CICD-463"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Untagged digests can still be deployed. Compare against live usage and use an approved lifecycle policy.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-463",
      "kind": "snippet",
      "title": "Artifact storage cleanup",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-463.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "finops",
        "github-cli",
        "jq"
      ],
      "keywords": [
        "artifact",
        "storage",
        "cleanup"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-462",
        "CICD-464"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Inventory expired entries and verify audit-retention requirements before applying cleanup.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-464",
      "kind": "snippet",
      "title": "Cache storage cleanup",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-464.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "finops",
        "github-cli",
        "jq"
      ],
      "keywords": [
        "cache",
        "storage",
        "cleanup"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-463",
        "CICD-465"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Consider active branches and reproducibility before removing old caches. Totals are bounded by the query limit.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-465",
      "kind": "snippet",
      "title": "Runner utilization reporting",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-465.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "jq"
      ],
      "keywords": [
        "runner",
        "utilization",
        "reporting"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-464",
        "CICD-466"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Use discrete runner time windows and avoid double-counting simultaneous jobs. Analyze queue delay alongside utilization.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-466",
      "kind": "snippet",
      "title": "Pipeline cost measurement",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-466.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "jq"
      ],
      "keywords": [
        "pipeline",
        "cost",
        "measurement"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-465",
        "CICD-467"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Supply billed minutes and SKU prices in one currency. Compare the result against actual billing by runner family.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-467",
      "kind": "snippet",
      "title": "Kubernetes resource rightsizing",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-467.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "jq",
        "kubernetes"
      ],
      "keywords": [
        "kubernetes",
        "resource",
        "rightsizing"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-466",
        "CICD-468"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Requires VPA in recommendation mode. Review startup peaks and rollout behavior before changing requests.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-468",
      "kind": "snippet",
      "title": "GPU utilization reporting",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-468.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "gpu"
      ],
      "keywords": [
        "gpu",
        "utilization",
        "reporting"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-467",
        "CICD-469"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Run for a bounded interval alongside a fixed workload. Utilization samples and memory bandwidth are different measures from allocated memory.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-469",
      "kind": "snippet",
      "title": "Inference cost per million tokens",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-469.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "jq"
      ],
      "keywords": [
        "inference",
        "cost",
        "per",
        "million",
        "tokens"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-468",
        "CICD-470"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Number is cost per million output tokens using elapsed allocated-GPU time. Include total node count and billing overhead for production reports.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-470",
      "kind": "snippet",
      "title": "Cost-performance regression gate",
      "category": "finops",
      "difficulty": "advanced",
      "path": "snippets/CICD-470.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "finops",
        "jq"
      ],
      "keywords": [
        "cost",
        "performance",
        "regression",
        "gate"
      ],
      "prerequisites": "authorized read reports, explicit pricing period and reviewed ownership for cleanup",
      "related": [
        "CICD-469"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.finops.org/framework/capabilities/",
      "notes": "Compare equal request rates, workloads, currencies and GPU prices, then fail on slower latency or higher unit cost.",
      "chapter": "snippets-finops.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-471",
      "kind": "snippet",
      "title": "Android Gradle build",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-471.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary"
      ],
      "keywords": [
        "android",
        "gradle",
        "build"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-472"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.android.com/build",
      "notes": "Use the repository Gradle wrapper and provision the compatible JDK and Android SDK.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-472",
      "kind": "snippet",
      "title": "Android emulator testing",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-472.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary"
      ],
      "keywords": [
        "android",
        "emulator",
        "testing"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-471",
        "CICD-473"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.android.com/build",
      "notes": "Start a CI emulator with the pinned API level first and retain instrumentation reports on failure.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-473",
      "kind": "snippet",
      "title": "Android application signing",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-473.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary"
      ],
      "keywords": [
        "android",
        "application",
        "signing"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-472",
        "CICD-474"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.android.com/build",
      "notes": "Use a protected signing job and align the APK before signing. Confirm certificate digest matches the approved release key.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-474",
      "kind": "snippet",
      "title": "Android APK distribution",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-474.md",
      "platforms": [
        "github-actions",
        "github-cli"
      ],
      "tools": [
        "binary",
        "github-cli"
      ],
      "keywords": [
        "android",
        "apk",
        "distribution"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-473",
        "CICD-475"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.android.com/build",
      "notes": "Sign and checksum the artifact first. Ensure the release and destination are the intended channel.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-475",
      "kind": "snippet",
      "title": "iOS Xcode build",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-475.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary",
        "xcode"
      ],
      "keywords": [
        "ios",
        "xcode",
        "build"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-474",
        "CICD-476"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.apple.com/documentation/xcode",
      "notes": "Match a shared scheme and pinned Xcode image. This simulator build uses no signing identity.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-476",
      "kind": "snippet",
      "title": "iOS simulator testing",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-476.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary",
        "xcode"
      ],
      "keywords": [
        "ios",
        "simulator",
        "testing"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-475",
        "CICD-477"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.apple.com/documentation/xcode",
      "notes": "Provision an installed simulator runtime, select its UDID, and archive the result bundle.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-477",
      "kind": "snippet",
      "title": "iOS code signing",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-477.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary",
        "xcode"
      ],
      "keywords": [
        "ios",
        "code",
        "signing"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-476",
        "CICD-478"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.apple.com/documentation/xcode",
      "notes": "Provide approved provisioning profiles and an isolated keychain. Inspect the team identity and export method.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-478",
      "kind": "snippet",
      "title": "TestFlight distribution",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-478.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary"
      ],
      "keywords": [
        "testflight",
        "distribution"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-477",
        "CICD-479"
      ],
      "validation": {
        "status": "version-dependent",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.apple.com/help/app-store-connect/manage-builds/upload-builds/",
      "notes": "Verify tool support for the installed Xcode release and supply the approved App Store Connect private key through the secure signing environment.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-479",
      "kind": "snippet",
      "title": "React Native build",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-479.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary",
        "node"
      ],
      "keywords": [
        "react",
        "native",
        "build"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-478",
        "CICD-480"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.android.com/build",
      "notes": "Use matching Node, React Native, JDK and Android SDK versions. Run native build checks independently of JS tests.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-480",
      "kind": "snippet",
      "title": "Flutter build",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-480.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary"
      ],
      "keywords": [
        "flutter",
        "build"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-479",
        "CICD-481"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://docs.flutter.dev/deployment/android",
      "notes": "Pin Flutter to a project-supported version and verify tests precede the APK build.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-481",
      "kind": "snippet",
      "title": "Electron application build",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-481.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary",
        "node"
      ],
      "keywords": [
        "electron",
        "application",
        "build"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-480",
        "CICD-482"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.electronjs.org/docs/latest/tutorial/application-distribution",
      "notes": "Configure the package script in package.json and build for each OS on its native runner when required.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-482",
      "kind": "snippet",
      "title": "macOS binary distribution",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-482.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary"
      ],
      "keywords": [
        "macos",
        "binary",
        "distribution"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-481",
        "CICD-483"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.apple.com/documentation/security/notarizing-macos-software-before-distribution",
      "notes": "Sign the app and disk image using approved Developer ID certificates before submission.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-483",
      "kind": "snippet",
      "title": "Linux binary distribution",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-483.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary"
      ],
      "keywords": [
        "linux",
        "binary",
        "distribution"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-482",
        "CICD-484"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.android.com/build",
      "notes": "Include only intended files and inspect glibc compatibility on the oldest target distro.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-484",
      "kind": "snippet",
      "title": "Windows binary distribution",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-484.md",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "binary"
      ],
      "keywords": [
        "windows",
        "binary",
        "distribution"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-483",
        "CICD-485"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.android.com/build",
      "notes": "Verify the executable signature separately and compare checksums after upload.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-485",
      "kind": "snippet",
      "title": "Cross-platform release packaging",
      "category": "binary",
      "difficulty": "advanced",
      "path": "snippets/CICD-485.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "binary"
      ],
      "keywords": [
        "cross",
        "platform",
        "release",
        "packaging"
      ],
      "prerequisites": "approved toolchains and isolated build/signing runner when credentials are required",
      "related": [
        "CICD-484"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://developer.android.com/build",
      "notes": "Download one uniquely named archive per OS and architecture from the trusted build, then validate all expected targets.",
      "chapter": "snippets-binary.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-486",
      "kind": "snippet",
      "title": "Pipeline configuration linting",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-486.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gitea",
        "governance"
      ],
      "keywords": [
        "pipeline",
        "configuration",
        "linting"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-487"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Use .yamllint rules compatible with workflow syntax and treat GitHub actionlint as a baseline for Gitea-specific differences.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-487",
      "kind": "snippet",
      "title": "Workflow schema validation",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-487.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "python"
      ],
      "keywords": [
        "workflow",
        "schema",
        "validation"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-486",
        "CICD-488"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Render with a YAML 1.2 parser first and pin schema version. Verify semantics in a separate linter or actual server.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-488",
      "kind": "snippet",
      "title": "Workflow dependency auditing",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-488.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "node"
      ],
      "keywords": [
        "workflow",
        "dependency",
        "auditing"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-487",
        "CICD-489"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Workflow and library dependency findings are distinct reports. Review exceptions with owners and expiry dates.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-489",
      "kind": "snippet",
      "title": "Automated workflow documentation",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-489.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance"
      ],
      "keywords": [
        "automated",
        "workflow",
        "documentation"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-488",
        "CICD-490"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Commit generated documentation upstream. CI should fail when the checked-in job list goes stale.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-490",
      "kind": "snippet",
      "title": "Pipeline ownership enforcement",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-490.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance"
      ],
      "keywords": [
        "pipeline",
        "ownership",
        "enforcement"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-489",
        "CICD-491"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Require explicit workflow ownership and do a separate valid-team and review enforcement check.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-491",
      "kind": "snippet",
      "title": "Mandatory quality gates",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-491.md",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "governance"
      ],
      "keywords": [
        "mandatory",
        "quality",
        "gates"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-490",
        "CICD-492"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Protect the exact gate check name and test a failed dependency. Cancellation remains visible as cancellation.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-492",
      "kind": "snippet",
      "title": "Mandatory security gates",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-492.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "trivy"
      ],
      "keywords": [
        "mandatory",
        "security",
        "gates"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-491",
        "CICD-493"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Scan the exact candidate digest and use a documented, expiring exception policy.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-493",
      "kind": "snippet",
      "title": "Deployment freeze windows",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-493.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "jq"
      ],
      "keywords": [
        "deployment",
        "freeze",
        "windows"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-492",
        "CICD-494"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Use canonical UTC intervals and a protected calendar source. Verify both boundary and overlapping cases.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": true
    },
    {
      "id": "CICD-494",
      "kind": "snippet",
      "title": "Emergency deployment procedures",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-494.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "jq"
      ],
      "keywords": [
        "emergency",
        "deployment",
        "procedures"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-493",
        "CICD-495"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Require the emergency approver and approved execution environment. Record health checks, rollback and follow-up linkage.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-495",
      "kind": "snippet",
      "title": "Release audit trail generation",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-495.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "jq"
      ],
      "keywords": [
        "release",
        "audit",
        "trail",
        "generation"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-494",
        "CICD-496"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Join to approval and outcome evidence using an immutable deployment ID. Store centrally with restricted writes.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-496",
      "kind": "snippet",
      "title": "Deployment frequency measurement",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-496.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "jq"
      ],
      "keywords": [
        "deployment",
        "frequency",
        "measurement"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-495",
        "CICD-497"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "A count applies only to the named observation window. Deduplicate retries of the same deployment.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-497",
      "kind": "snippet",
      "title": "Change failure rate measurement",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-497.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "jq"
      ],
      "keywords": [
        "change",
        "failure",
        "rate",
        "measurement"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-496",
        "CICD-498"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Count deployment-caused failures linked by deployment ID. Do not infer failure only from CI status.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-498",
      "kind": "snippet",
      "title": "Change lead time measurement",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-498.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "jq"
      ],
      "keywords": [
        "change",
        "lead",
        "time",
        "measurement"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-497",
        "CICD-499"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Normalize timestamps and retain per-change samples. The example uses the upper median for even sample counts.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-499",
      "kind": "snippet",
      "title": "Failed deployment recovery time measurement",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-499.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "jq"
      ],
      "keywords": [
        "failed",
        "deployment",
        "recovery",
        "time",
        "measurement"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-498",
        "CICD-500"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Filter to deployment-caused incidents and define healthy restoration consistently. Report unresolved incidents separately.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CICD-500",
      "kind": "snippet",
      "title": "Engineering delivery metrics dashboard",
      "category": "governance",
      "difficulty": "advanced",
      "path": "snippets/CICD-500.md",
      "platforms": [
        "local-linux",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "governance",
        "jq"
      ],
      "keywords": [
        "engineering",
        "delivery",
        "metrics",
        "dashboard"
      ],
      "prerequisites": "trusted policy checkout and normalized deployment events with scoped access",
      "related": [
        "CICD-499"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://dora.dev/guides/dora-metrics/",
      "notes": "Each report must contain a named metric and time window. Publish aggregated data to an approved dashboard with historical trend and sample counts.",
      "chapter": "snippets-governance.md",
      "pipeline_visual": false
    },
    {
      "id": "CF-001",
      "kind": "configuration",
      "title": "Python fixture server",
      "category": "dockerfiles",
      "difficulty": "intermediate",
      "path": "config-dockerfiles.md#cf-001",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "dockerfiles",
        "python"
      ],
      "keywords": [
        "python",
        "fixture",
        "server"
      ],
      "prerequisites": "Dockerfile",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/reference/dockerfile/",
      "notes": "Use the health server below and build with docker build -t lab:web . Expect GET /healthz to pass."
    },
    {
      "id": "CF-002",
      "kind": "configuration",
      "title": "FastAPI locked source build",
      "category": "dockerfiles",
      "difficulty": "intermediate",
      "path": "config-dockerfiles.md#cf-002",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "dockerfiles",
        "python"
      ],
      "keywords": [
        "fastapi",
        "locked",
        "source",
        "build"
      ],
      "prerequisites": "Dockerfile",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/reference/dockerfile/",
      "notes": "Supply the generated hashes and deployed app. Verify startup and image user."
    },
    {
      "id": "CF-003",
      "kind": "configuration",
      "title": "Go static binary build",
      "category": "dockerfiles",
      "difficulty": "intermediate",
      "path": "config-dockerfiles.md#cf-003",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "dockerfiles",
        "go"
      ],
      "keywords": [
        "go",
        "static",
        "binary",
        "build"
      ],
      "prerequisites": "Dockerfile",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/reference/dockerfile/",
      "notes": "Build a static app. Include CA roots in runtime image when outbound TLS is required."
    },
    {
      "id": "CF-004",
      "kind": "configuration",
      "title": "Build and serve a Node frontend",
      "category": "dockerfiles",
      "difficulty": "intermediate",
      "path": "config-dockerfiles.md#cf-004",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "dockerfiles",
        "node"
      ],
      "keywords": [
        "build",
        "and",
        "serve",
        "a",
        "node",
        "frontend"
      ],
      "prerequisites": "Dockerfile",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/reference/dockerfile/",
      "notes": "Use a lockfile and build script. Verify the app's actual output directory."
    },
    {
      "id": "CF-005",
      "kind": "configuration",
      "title": "Run a JVM application",
      "category": "dockerfiles",
      "difficulty": "intermediate",
      "path": "config-dockerfiles.md#cf-005",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "dockerfiles"
      ],
      "keywords": [
        "run",
        "a",
        "jvm",
        "application"
      ],
      "prerequisites": "Dockerfile",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/reference/dockerfile/",
      "notes": "Build target/app.jar before the image and verify memory in a constrained job."
    },
    {
      "id": "CF-006",
      "kind": "configuration",
      "title": "Build and runtime targets",
      "category": "dockerfiles",
      "difficulty": "intermediate",
      "path": "config-dockerfiles.md#cf-006",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "dockerfiles",
        "python"
      ],
      "keywords": [
        "build",
        "and",
        "runtime",
        "targets"
      ],
      "prerequisites": "Dockerfile",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/reference/dockerfile/",
      "notes": "Run docker build --target test explicitly. Building runtime does not automatically exercise test."
    },
    {
      "id": "CF-007",
      "kind": "configuration",
      "title": "BuildKit download cache",
      "category": "dockerfiles",
      "difficulty": "intermediate",
      "path": "config-dockerfiles.md#cf-007",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "docker",
        "dockerfiles",
        "node"
      ],
      "keywords": [
        "buildkit",
        "download",
        "cache"
      ],
      "prerequisites": "Dockerfile",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/reference/dockerfile/",
      "notes": "Use BuildKit and test with cold and warm cache. The package lock remains authoritative."
    },
    {
      "id": "CF-008",
      "kind": "configuration",
      "title": "Healthcheck without curl",
      "category": "dockerfiles",
      "difficulty": "intermediate",
      "path": "config-dockerfiles.md#cf-008",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "dockerfiles",
        "python"
      ],
      "keywords": [
        "healthcheck",
        "without",
        "curl"
      ],
      "prerequisites": "Dockerfile",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/reference/dockerfile/",
      "notes": "Inspect .State.Health.Status and assert healthy before testing."
    },
    {
      "id": "CF-009",
      "kind": "configuration",
      "title": "Expose a CLI entrypoint",
      "category": "dockerfiles",
      "difficulty": "intermediate",
      "path": "config-dockerfiles.md#cf-009",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "dockerfiles",
        "python"
      ],
      "keywords": [
        "expose",
        "a",
        "cli",
        "entrypoint"
      ],
      "prerequisites": "Dockerfile",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/reference/dockerfile/",
      "notes": "Test default and explicit arguments. Avoid shell-form entrypoints if signals matter."
    },
    {
      "id": "CF-010",
      "kind": "configuration",
      "title": "OCI labels from build inputs",
      "category": "dockerfiles",
      "difficulty": "intermediate",
      "path": "config-dockerfiles.md#cf-010",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "dockerfiles",
        "python"
      ],
      "keywords": [
        "oci",
        "labels",
        "from",
        "build",
        "inputs"
      ],
      "prerequisites": "Dockerfile",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.docker.com/reference/dockerfile/",
      "notes": "Supply git SHA with --build-arg and inspect the resulting image label."
    },
    {
      "id": "CF-011",
      "kind": "configuration",
      "title": "Local app with loopback port",
      "category": "compose",
      "difficulty": "intermediate",
      "path": "config-compose.md#cf-011",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compose"
      ],
      "keywords": [
        "local",
        "app",
        "with",
        "loopback",
        "port"
      ],
      "prerequisites": "compose.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.docker.com/reference/compose-file/",
      "notes": "Run docker compose up --build and test localhost:18000."
    },
    {
      "id": "CF-012",
      "kind": "configuration",
      "title": "PostgreSQL readiness",
      "category": "compose",
      "difficulty": "intermediate",
      "path": "config-compose.md#cf-012",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compose"
      ],
      "keywords": [
        "postgresql",
        "readiness"
      ],
      "prerequisites": "compose.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.docker.com/reference/compose-file/",
      "notes": "The test password is isolated to the disposable network. Do not publish this service."
    },
    {
      "id": "CF-013",
      "kind": "configuration",
      "title": "Redis integration dependency",
      "category": "compose",
      "difficulty": "intermediate",
      "path": "config-compose.md#cf-013",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compose"
      ],
      "keywords": [
        "redis",
        "integration",
        "dependency"
      ],
      "prerequisites": "compose.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.docker.com/reference/compose-file/",
      "notes": "Wait with compose up --wait. Assert cache:6379 from containers."
    },
    {
      "id": "CF-014",
      "kind": "configuration",
      "title": "Service-health dependency order",
      "category": "compose",
      "difficulty": "intermediate",
      "path": "config-compose.md#cf-014",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compose"
      ],
      "keywords": [
        "service",
        "health",
        "dependency",
        "order"
      ],
      "prerequisites": "compose.override.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.docker.com/reference/compose-file/",
      "notes": "Merge with base files defining web and db. Tests should still handle DB restarts."
    },
    {
      "id": "CF-015",
      "kind": "configuration",
      "title": "Test-only service profile",
      "category": "compose",
      "difficulty": "intermediate",
      "path": "config-compose.md#cf-015",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compose",
        "python"
      ],
      "keywords": [
        "test",
        "only",
        "service",
        "profile"
      ],
      "prerequisites": "compose.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.docker.com/reference/compose-file/",
      "notes": "Use docker compose --profile test run --rm checks and retain its exit status."
    },
    {
      "id": "CF-016",
      "kind": "configuration",
      "title": "Read-only app container",
      "category": "compose",
      "difficulty": "intermediate",
      "path": "config-compose.md#cf-016",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compose"
      ],
      "keywords": [
        "read",
        "only",
        "app",
        "container"
      ],
      "prerequisites": "compose.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.docker.com/reference/compose-file/",
      "notes": "Smoke-test an image that writes only to /tmp. Restrict caps deliberately."
    },
    {
      "id": "CF-017",
      "kind": "configuration",
      "title": "Environment example file injection",
      "category": "compose",
      "difficulty": "intermediate",
      "path": "config-compose.md#cf-017",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compose"
      ],
      "keywords": [
        "environment",
        "example",
        "file",
        "injection"
      ],
      "prerequisites": "compose.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.docker.com/reference/compose-file/",
      "notes": "Use non-secret placeholders in checked-in example files and validate generated defaults."
    },
    {
      "id": "CF-018",
      "kind": "configuration",
      "title": "Internal database network",
      "category": "compose",
      "difficulty": "intermediate",
      "path": "config-compose.md#cf-018",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compose"
      ],
      "keywords": [
        "internal",
        "database",
        "network"
      ],
      "prerequisites": "compose.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.docker.com/reference/compose-file/",
      "notes": "Only attach app peers that need DB access. Do not publish ports."
    },
    {
      "id": "CF-019",
      "kind": "configuration",
      "title": "Mount a file-based secret",
      "category": "compose",
      "difficulty": "intermediate",
      "path": "config-compose.md#cf-019",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compose"
      ],
      "keywords": [
        "mount",
        "a",
        "file",
        "based",
        "secret"
      ],
      "prerequisites": "compose.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.docker.com/reference/compose-file/",
      "notes": "Provision outside version control. App reads /run/secrets/api_token."
    },
    {
      "id": "CF-020",
      "kind": "configuration",
      "title": "Reverse-proxy service config",
      "category": "compose",
      "difficulty": "intermediate",
      "path": "config-compose.md#cf-020",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "compose"
      ],
      "keywords": [
        "reverse",
        "proxy",
        "service",
        "config"
      ],
      "prerequisites": "compose.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.docker.com/reference/compose-file/",
      "notes": "Supply proxy.conf pointing at web:8000. Test host access through port 18080 only."
    },
    {
      "id": "CF-021",
      "kind": "configuration",
      "title": "Dedicated staging namespace",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-021",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "dedicated",
        "staging",
        "namespace"
      ],
      "prerequisites": "namespace.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Verify target cluster before application. Dependent Pods must comply with Pod Security."
    },
    {
      "id": "CF-022",
      "kind": "configuration",
      "title": "Minimal web deployment",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-022",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "minimal",
        "web",
        "deployment"
      ],
      "prerequisites": "deployment.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Set the real digest and merge the restricted security context before applying in restricted namespaces."
    },
    {
      "id": "CF-023",
      "kind": "configuration",
      "title": "ClusterIP service",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-023",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "clusterip",
        "service"
      ],
      "prerequisites": "service.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Verify endpoints are Ready and curl http://web/healthz from the same namespace."
    },
    {
      "id": "CF-024",
      "kind": "configuration",
      "title": "Readiness and memory budget",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-024",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "readiness",
        "and",
        "memory",
        "budget"
      ],
      "prerequisites": "deployment container fragment",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Tune using workload evidence. Check readiness and cgroups after applying."
    },
    {
      "id": "CF-025",
      "kind": "configuration",
      "title": "Namespace quota",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-025",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "namespace",
        "quota"
      ],
      "prerequisites": "quota.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Apply only to the intended namespace. Pod specs must satisfy required resource limits."
    },
    {
      "id": "CF-026",
      "kind": "configuration",
      "title": "Default resource limits",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-026",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "default",
        "resource",
        "limits"
      ],
      "prerequisites": "limits.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Check admitted Pod values, especially when the Deployment omits explicitly configured resources."
    },
    {
      "id": "CF-027",
      "kind": "configuration",
      "title": "Pod security context",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-027",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "pod",
        "security",
        "context"
      ],
      "prerequisites": "deployment Pod spec fragment",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Also set allowPrivilegeEscalation false and drop ALL capabilities on each container."
    },
    {
      "id": "CF-028",
      "kind": "configuration",
      "title": "Restricted container context",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-028",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "restricted",
        "container",
        "context"
      ],
      "prerequisites": "deployment container fragment",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Test writable volume mounts for required paths before enabling."
    },
    {
      "id": "CF-029",
      "kind": "configuration",
      "title": "Ingress health route",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-029",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "ingress",
        "health",
        "route"
      ],
      "prerequisites": "ingress.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Use a tested controller class and configure TLS in the target environment."
    },
    {
      "id": "CF-030",
      "kind": "configuration",
      "title": "Deny ingress by default",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-030",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "deny",
        "ingress",
        "by",
        "default"
      ],
      "prerequisites": "deny-ingress.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Require a policy enforcing CNI. Add explicit allowed routes before applying to active workloads."
    },
    {
      "id": "CF-031",
      "kind": "configuration",
      "title": "Permit traffic from test clients",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-031",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "permit",
        "traffic",
        "from",
        "test",
        "clients"
      ],
      "prerequisites": "allow-client.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Validate both allow and deny cases in the lab."
    },
    {
      "id": "CF-032",
      "kind": "configuration",
      "title": "Namespace-scoped rollout role",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-032",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "namespace",
        "scoped",
        "rollout",
        "role"
      ],
      "prerequisites": "role.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Add a reviewed RoleBinding and determine separate watch access if rollout status needs it."
    },
    {
      "id": "CF-033",
      "kind": "configuration",
      "title": "Disable app API token mounts",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-033",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "disable",
        "app",
        "api",
        "token",
        "mounts"
      ],
      "prerequisites": "serviceaccount.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Set serviceAccountName: web in workloads needing no API access."
    },
    {
      "id": "CF-034",
      "kind": "configuration",
      "title": "CPU autoscaling",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-034",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "cpu",
        "autoscaling"
      ],
      "prerequisites": "hpa.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Requires CPU requests and metrics. Verify under controlled load."
    },
    {
      "id": "CF-035",
      "kind": "configuration",
      "title": "Availability during voluntary evictions",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "config-kubernetes.md#cf-035",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "availability",
        "during",
        "voluntary",
        "evictions"
      ],
      "prerequisites": "pdb.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://kubernetes.io/docs/reference/kubernetes-api/",
      "notes": "Verify disruption budgets before a lab node drain. This cannot prevent involuntary disruption."
    },
    {
      "id": "CF-036",
      "kind": "configuration",
      "title": "Chart metadata",
      "category": "helm",
      "difficulty": "intermediate",
      "path": "config-helm.md#cf-036",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "chart",
        "metadata"
      ],
      "prerequisites": "helm/web/Chart.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://helm.sh/docs/chart_template_guide/",
      "notes": "Keep chart and package versions explicit. Run helm lint after adding templates."
    },
    {
      "id": "CF-037",
      "kind": "configuration",
      "title": "Chart values defaults",
      "category": "helm",
      "difficulty": "intermediate",
      "path": "config-helm.md#cf-037",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "chart",
        "values",
        "defaults"
      ],
      "prerequisites": "helm/web/values.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://helm.sh/docs/chart_template_guide/",
      "notes": "Replace repository/digest before deploying. Use separate staging overrides."
    },
    {
      "id": "CF-038",
      "kind": "configuration",
      "title": "Chart values validation",
      "category": "helm",
      "difficulty": "intermediate",
      "path": "config-helm.md#cf-038",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "chart",
        "values",
        "validation"
      ],
      "prerequisites": "helm/web/values.schema.json",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "JSON parse"
      },
      "documentation": "https://helm.sh/docs/chart_template_guide/",
      "notes": "Test invalid digest with helm lint and expect validation failure."
    },
    {
      "id": "CF-039",
      "kind": "configuration",
      "title": "Release label helper",
      "category": "helm",
      "difficulty": "intermediate",
      "path": "config-helm.md#cf-039",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "release",
        "label",
        "helper"
      ],
      "prerequisites": "helm/web/templates/_helpers.tpl",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://helm.sh/docs/chart_template_guide/",
      "notes": "Render labels with include and nindent to guarantee selector consistency."
    },
    {
      "id": "CF-040",
      "kind": "configuration",
      "title": "Digest-required deployment container",
      "category": "helm",
      "difficulty": "intermediate",
      "path": "config-helm.md#cf-040",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "digest",
        "required",
        "deployment",
        "container"
      ],
      "prerequisites": "helm/web/templates/deployment.yaml fragment",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://helm.sh/docs/chart_template_guide/",
      "notes": "Merge under the container. Render and check output uses repository@digest."
    },
    {
      "id": "CF-041",
      "kind": "configuration",
      "title": "Service templates with selector helper",
      "category": "helm",
      "difficulty": "intermediate",
      "path": "config-helm.md#cf-041",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "service",
        "templates",
        "with",
        "selector",
        "helper"
      ],
      "prerequisites": "helm/web/templates/service.yaml",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://helm.sh/docs/chart_template_guide/",
      "notes": "Include CF example selector helper and verify selectors match deployment."
    },
    {
      "id": "CF-042",
      "kind": "configuration",
      "title": "ConfigMap release fixtures",
      "category": "helm",
      "difficulty": "intermediate",
      "path": "config-helm.md#cf-042",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "configmap",
        "release",
        "fixtures"
      ],
      "prerequisites": "helm/web/templates/configmap.yaml",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://helm.sh/docs/chart_template_guide/",
      "notes": "Render with MODE override. Keep secrets out of ConfigMaps."
    },
    {
      "id": "CF-043",
      "kind": "configuration",
      "title": "Force a rollout on config change",
      "category": "helm",
      "difficulty": "intermediate",
      "path": "config-helm.md#cf-043",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "force",
        "a",
        "rollout",
        "on",
        "config",
        "change"
      ],
      "prerequisites": "deployment Pod-template annotations fragment",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://helm.sh/docs/chart_template_guide/",
      "notes": "Change ConfigMap values and verify the Pod template hash changes."
    },
    {
      "id": "CF-044",
      "kind": "configuration",
      "title": "One-shot Helm service smoke test",
      "category": "helm",
      "difficulty": "intermediate",
      "path": "config-helm.md#cf-044",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "curl",
        "helm"
      ],
      "keywords": [
        "one",
        "shot",
        "helm",
        "service",
        "smoke",
        "test"
      ],
      "prerequisites": "helm/web/templates/tests/smoke.yaml",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://helm.sh/docs/chart_template_guide/",
      "notes": "Use helm test --logs. In production pin image digest and set security context."
    },
    {
      "id": "CF-045",
      "kind": "configuration",
      "title": "Staging override",
      "category": "helm",
      "difficulty": "intermediate",
      "path": "config-helm.md#cf-045",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "helm"
      ],
      "keywords": [
        "staging",
        "override"
      ],
      "prerequisites": "helm/values-staging.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://helm.sh/docs/chart_template_guide/",
      "notes": "Check override order and verify only intended environment values change."
    },
    {
      "id": "CF-046",
      "kind": "configuration",
      "title": "Terraform required version",
      "category": "terraform",
      "difficulty": "intermediate",
      "path": "config-terraform.md#cf-046",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "terraform",
        "required",
        "version"
      ],
      "prerequisites": "versions.tf",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language",
      "notes": "Run terraform version and ensure CI uses an approved version in this range."
    },
    {
      "id": "CF-047",
      "kind": "configuration",
      "title": "Terraform provider constraint",
      "category": "terraform",
      "difficulty": "intermediate",
      "path": "config-terraform.md#cf-047",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "aws",
        "terraform"
      ],
      "keywords": [
        "terraform",
        "provider",
        "constraint"
      ],
      "prerequisites": "providers.tf",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language",
      "notes": "Commit provider lockfile after init. Verify approved registry and hashes."
    },
    {
      "id": "CF-048",
      "kind": "configuration",
      "title": "Use a validated deployment variable",
      "category": "terraform",
      "difficulty": "intermediate",
      "path": "config-terraform.md#cf-048",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "use",
        "a",
        "validated",
        "deployment",
        "variable"
      ],
      "prerequisites": "variables.tf",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language",
      "notes": "Prove an unexpected environment fails terraform plan."
    },
    {
      "id": "CF-049",
      "kind": "configuration",
      "title": "Cloud owner tags",
      "category": "terraform",
      "difficulty": "intermediate",
      "path": "config-terraform.md#cf-049",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "cloud",
        "owner",
        "tags"
      ],
      "prerequisites": "main.tf fragment",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language",
      "notes": "Merge local.common_tags into resources and test tags in the plan."
    },
    {
      "id": "CF-050",
      "kind": "configuration",
      "title": "Locking remote state",
      "category": "terraform",
      "difficulty": "intermediate",
      "path": "config-terraform.md#cf-050",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "locking",
        "remote",
        "state"
      ],
      "prerequisites": "backend.tf",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language",
      "notes": "Pre-provision bucket with restricted IAM and versioning. Use a compatible Terraform release."
    },
    {
      "id": "CF-051",
      "kind": "configuration",
      "title": "State-free fixture resource",
      "category": "terraform",
      "difficulty": "intermediate",
      "path": "config-terraform.md#cf-051",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "state",
        "free",
        "fixture",
        "resource"
      ],
      "prerequisites": "main.tf",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language",
      "notes": "Plan in a local temp directory without provider credentials. Use it for module test examples."
    },
    {
      "id": "CF-052",
      "kind": "configuration",
      "title": "Plan-only Terraform test",
      "category": "terraform",
      "difficulty": "intermediate",
      "path": "config-terraform.md#cf-052",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "plan",
        "only",
        "terraform",
        "test"
      ],
      "prerequisites": "tests/infra.tftest.hcl",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language",
      "notes": "Pair with the state-free fixture resource and run terraform test."
    },
    {
      "id": "CF-053",
      "kind": "configuration",
      "title": "Sensitive string contract",
      "category": "terraform",
      "difficulty": "intermediate",
      "path": "config-terraform.md#cf-053",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "sensitive",
        "string",
        "contract"
      ],
      "prerequisites": "variables.tf fragment",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language",
      "notes": "Sensitive values can still appear in plan and state. Restrict both to authorized roles."
    },
    {
      "id": "CF-054",
      "kind": "configuration",
      "title": "Expose a safe service output",
      "category": "terraform",
      "difficulty": "intermediate",
      "path": "config-terraform.md#cf-054",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "expose",
        "a",
        "safe",
        "service",
        "output"
      ],
      "prerequisites": "outputs.tf",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language",
      "notes": "Pair with the fixture resource and verify terraform output -json after isolated apply."
    },
    {
      "id": "CF-055",
      "kind": "configuration",
      "title": "Version a local module input",
      "category": "terraform",
      "difficulty": "intermediate",
      "path": "config-terraform.md#cf-055",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "terraform"
      ],
      "keywords": [
        "version",
        "a",
        "local",
        "module",
        "input"
      ],
      "prerequisites": "main.tf",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://developer.hashicorp.com/terraform/language",
      "notes": "Supply a module with declared name and tests. Review its version along with the caller commit."
    },
    {
      "id": "CF-056",
      "kind": "configuration",
      "title": "Local disposable inventory",
      "category": "ansible",
      "difficulty": "intermediate",
      "path": "config-ansible.md#cf-056",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "local",
        "disposable",
        "inventory"
      ],
      "prerequisites": "inventory/lab.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Review operations before running against the controller machine locally."
    },
    {
      "id": "CF-057",
      "kind": "configuration",
      "title": "Verify remote reachability",
      "category": "ansible",
      "difficulty": "intermediate",
      "path": "config-ansible.md#cf-057",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "verify",
        "remote",
        "reachability"
      ],
      "prerequisites": "playbooks/ping.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "The module tests remote Python and connectivity. It is separate from ICMP ping."
    },
    {
      "id": "CF-058",
      "kind": "configuration",
      "title": "Create a managed directory",
      "category": "ansible",
      "difficulty": "intermediate",
      "path": "config-ansible.md#cf-058",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "create",
        "a",
        "managed",
        "directory"
      ],
      "prerequisites": "playbooks/directory.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Run a disposable path and confirm a second run reports no change."
    },
    {
      "id": "CF-059",
      "kind": "configuration",
      "title": "Render app configuration",
      "category": "ansible",
      "difficulty": "intermediate",
      "path": "config-ansible.md#cf-059",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "render",
        "app",
        "configuration"
      ],
      "prerequisites": "playbooks/config.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Put the template next to the playbook's templates directory and use non-secret inputs."
    },
    {
      "id": "CF-060",
      "kind": "configuration",
      "title": "Protect secret-bearing tasks",
      "category": "ansible",
      "difficulty": "intermediate",
      "path": "config-ansible.md#cf-060",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "protect",
        "secret",
        "bearing",
        "tasks"
      ],
      "prerequisites": "playbooks/credentials.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Use only a disposable fixture secret and verified directory ownership. Use secure runtime retrieval in production."
    },
    {
      "id": "CF-061",
      "kind": "configuration",
      "title": "Install a curated Ubuntu package",
      "category": "ansible",
      "difficulty": "intermediate",
      "path": "config-ansible.md#cf-061",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "install",
        "a",
        "curated",
        "ubuntu",
        "package"
      ],
      "prerequisites": "playbooks/packages.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Scope to approved hosts and run --check first."
    },
    {
      "id": "CF-062",
      "kind": "configuration",
      "title": "Execute a rollback handler on failed task",
      "category": "ansible",
      "difficulty": "intermediate",
      "path": "config-ansible.md#cf-062",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "execute",
        "a",
        "rollback",
        "handler",
        "on",
        "failed",
        "task"
      ],
      "prerequisites": "playbooks/rollback.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Install trusted idempotent deploy/recover hooks. Rescue never silently reports deploy success."
    },
    {
      "id": "CF-063",
      "kind": "configuration",
      "title": "Roll through hosts one at a time",
      "category": "ansible",
      "difficulty": "intermediate",
      "path": "config-ansible.md#cf-063",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "roll",
        "through",
        "hosts",
        "one",
        "at",
        "a",
        "time"
      ],
      "prerequisites": "playbooks/deploy.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Include health and load balancer drain within the reviewed role."
    },
    {
      "id": "CF-064",
      "kind": "configuration",
      "title": "Only restart a changed service",
      "category": "ansible",
      "difficulty": "intermediate",
      "path": "config-ansible.md#cf-064",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "only",
        "restart",
        "a",
        "changed",
        "service"
      ],
      "prerequisites": "playbooks/service.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Verify a second copy is unchanged and therefore doesn't notify the handler."
    },
    {
      "id": "CF-065",
      "kind": "configuration",
      "title": "Validate app health remotely",
      "category": "ansible",
      "difficulty": "intermediate",
      "path": "config-ansible.md#cf-065",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "ansible"
      ],
      "keywords": [
        "validate",
        "app",
        "health",
        "remotely"
      ],
      "prerequisites": "playbooks/health.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.ansible.com/projects/ansible/latest/playbook_guide/index.html",
      "notes": "Probe from each host. Add a separate load balancer health probe."
    },
    {
      "id": "CF-066",
      "kind": "configuration",
      "title": "Strict entrypoint",
      "category": "shell",
      "difficulty": "intermediate",
      "path": "config-shell.md#cf-066",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "bash",
        "shell"
      ],
      "keywords": [
        "strict",
        "entrypoint"
      ],
      "prerequisites": "scripts/verify.sh",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.gnu.org/software/bash/manual/bash.html",
      "notes": "Run in a Git checkout and fail on a whitespace error."
    },
    {
      "id": "CF-067",
      "kind": "configuration",
      "title": "Bounded health request",
      "category": "shell",
      "difficulty": "intermediate",
      "path": "config-shell.md#cf-067",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "bash",
        "curl",
        "shell"
      ],
      "keywords": [
        "bounded",
        "health",
        "request"
      ],
      "prerequisites": "scripts/smoke.sh",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.gnu.org/software/bash/manual/bash.html",
      "notes": "Run against an authorized local health endpoint."
    },
    {
      "id": "CF-068",
      "kind": "configuration",
      "title": "Temporary state cleanup",
      "category": "shell",
      "difficulty": "intermediate",
      "path": "config-shell.md#cf-068",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "bash",
        "shell"
      ],
      "keywords": [
        "temporary",
        "state",
        "cleanup"
      ],
      "prerequisites": "scripts/workdir.sh",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.gnu.org/software/bash/manual/bash.html",
      "notes": "The trap removes only a script-owned directory generated by mktemp."
    },
    {
      "id": "CF-069",
      "kind": "configuration",
      "title": "Capture first failing exit code",
      "category": "shell",
      "difficulty": "intermediate",
      "path": "config-shell.md#cf-069",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "bash",
        "shell"
      ],
      "keywords": [
        "capture",
        "first",
        "failing",
        "exit",
        "code"
      ],
      "prerequisites": "scripts/check.sh",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.gnu.org/software/bash/manual/bash.html",
      "notes": "Pass a trusted command and args, such as false, to prove exit code preservation."
    },
    {
      "id": "CF-070",
      "kind": "configuration",
      "title": "Enforce immutable reference",
      "category": "shell",
      "difficulty": "intermediate",
      "path": "config-shell.md#cf-070",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "bash",
        "shell"
      ],
      "keywords": [
        "enforce",
        "immutable",
        "reference"
      ],
      "prerequisites": "scripts/validate-digest.sh",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.gnu.org/software/bash/manual/bash.html",
      "notes": "Verify with a valid dummy digest and an ignored tag fixture."
    },
    {
      "id": "CF-071",
      "kind": "configuration",
      "title": "Wait for an owned file with deadline",
      "category": "shell",
      "difficulty": "intermediate",
      "path": "config-shell.md#cf-071",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "bash",
        "shell"
      ],
      "keywords": [
        "wait",
        "for",
        "an",
        "owned",
        "file",
        "with",
        "deadline"
      ],
      "prerequisites": "scripts/wait-file.sh",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.gnu.org/software/bash/manual/bash.html",
      "notes": "Use for a bounded handoff, not as a replacement for workload health."
    },
    {
      "id": "CF-072",
      "kind": "configuration",
      "title": "Expose source metadata",
      "category": "shell",
      "difficulty": "intermediate",
      "path": "config-shell.md#cf-072",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "bash",
        "shell"
      ],
      "keywords": [
        "expose",
        "source",
        "metadata"
      ],
      "prerequisites": "scripts/emit-version.sh",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.gnu.org/software/bash/manual/bash.html",
      "notes": "Add a step ID and read the output downstream."
    },
    {
      "id": "CF-073",
      "kind": "configuration",
      "title": "Checksum release files",
      "category": "shell",
      "difficulty": "intermediate",
      "path": "config-shell.md#cf-073",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "bash",
        "shell"
      ],
      "keywords": [
        "checksum",
        "release",
        "files"
      ],
      "prerequisites": "scripts/check-release.sh",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.gnu.org/software/bash/manual/bash.html",
      "notes": "Treat the checksum list as trusted release metadata."
    },
    {
      "id": "CF-074",
      "kind": "configuration",
      "title": "Validate changed-service name",
      "category": "shell",
      "difficulty": "intermediate",
      "path": "config-shell.md#cf-074",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "bash",
        "shell"
      ],
      "keywords": [
        "validate",
        "changed",
        "service",
        "name"
      ],
      "prerequisites": "scripts/service-name.sh",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.gnu.org/software/bash/manual/bash.html",
      "notes": "Pass service name as an argument and verify traversal-like input is rejected."
    },
    {
      "id": "CF-075",
      "kind": "configuration",
      "title": "Generate UTC release timestamp",
      "category": "shell",
      "difficulty": "intermediate",
      "path": "config-shell.md#cf-075",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "bash",
        "shell"
      ],
      "keywords": [
        "generate",
        "utc",
        "release",
        "timestamp"
      ],
      "prerequisites": "scripts/utc-release.sh",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": "https://www.gnu.org/software/bash/manual/bash.html",
      "notes": "Use canonical ISO-like UTC timestamp for evidence. Verify terminal timezone doesn't affect output."
    },
    {
      "id": "CF-076",
      "kind": "configuration",
      "title": "Dependency-free fixture health service",
      "category": "python",
      "difficulty": "intermediate",
      "path": "config-python.md#cf-076",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "dependency",
        "free",
        "fixture",
        "health",
        "service"
      ],
      "prerequisites": "health.py",
      "related": [],
      "validation": {
        "status": "runtime-tested",
        "static_check": "Python parse",
        "runtime_environment": "Local Python 3.12, isolated HTTP and JSON fixtures",
        "last_verified": "2026-12-05"
      },
      "documentation": "https://docs.python.org/3/library/",
      "notes": "Use only as an isolated fixture service. Assert health and 404 behavior."
    },
    {
      "id": "CF-077",
      "kind": "configuration",
      "title": "Parse release manifest",
      "category": "python",
      "difficulty": "intermediate",
      "path": "config-python.md#cf-077",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "parse",
        "release",
        "manifest"
      ],
      "prerequisites": "scripts/manifest.py",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Python parse"
      },
      "documentation": "https://docs.python.org/3/library/",
      "notes": "Pass a JSON manifest. Empty or malformed commits should fail."
    },
    {
      "id": "CF-078",
      "kind": "configuration",
      "title": "Build a line-delimited evidence record",
      "category": "python",
      "difficulty": "intermediate",
      "path": "config-python.md#cf-078",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "build",
        "a",
        "line",
        "delimited",
        "evidence",
        "record"
      ],
      "prerequisites": "scripts/evidence.py",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Python parse"
      },
      "documentation": "https://docs.python.org/3/library/",
      "notes": "Supply GITHUB_SHA and append output to a per-run evidence file."
    },
    {
      "id": "CF-079",
      "kind": "configuration",
      "title": "Calculate p95 latency",
      "category": "python",
      "difficulty": "intermediate",
      "path": "config-python.md#cf-079",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "calculate",
        "p95",
        "latency"
      ],
      "prerequisites": "scripts/p95.py",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Python parse"
      },
      "documentation": "https://docs.python.org/3/library/",
      "notes": "Input is one nonnegative latency per line. Method is nearest rank and units follow input."
    },
    {
      "id": "CF-080",
      "kind": "configuration",
      "title": "Verify JSON health payload",
      "category": "python",
      "difficulty": "intermediate",
      "path": "config-python.md#cf-080",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "verify",
        "json",
        "health",
        "payload"
      ],
      "prerequisites": "scripts/probe.py",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Python parse"
      },
      "documentation": "https://docs.python.org/3/library/",
      "notes": "Pass an approved local fixture URL. Network or parse failures fail closed."
    },
    {
      "id": "CF-081",
      "kind": "configuration",
      "title": "Compare benchmark thresholds",
      "category": "python",
      "difficulty": "intermediate",
      "path": "config-python.md#cf-081",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "compare",
        "benchmark",
        "thresholds"
      ],
      "prerequisites": "scripts/compare.py",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Python parse"
      },
      "documentation": "https://docs.python.org/3/library/",
      "notes": "Verify test cases on both sides of 15 percent tolerance."
    },
    {
      "id": "CF-082",
      "kind": "configuration",
      "title": "Generate safe service names",
      "category": "python",
      "difficulty": "intermediate",
      "path": "config-python.md#cf-082",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "generate",
        "safe",
        "service",
        "names"
      ],
      "prerequisites": "scripts/changed-services.py",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Python parse"
      },
      "documentation": "https://docs.python.org/3/library/",
      "notes": "Pass changed file paths. Treat root/global changes separately."
    },
    {
      "id": "CF-083",
      "kind": "configuration",
      "title": "Compare two artifact hashes",
      "category": "python",
      "difficulty": "intermediate",
      "path": "config-python.md#cf-083",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "compare",
        "two",
        "artifact",
        "hashes"
      ],
      "prerequisites": "scripts/same-file.py",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Python parse"
      },
      "documentation": "https://docs.python.org/3/library/",
      "notes": "Requires Python 3.11 or later. Use a changed byte to prove rejection."
    },
    {
      "id": "CF-084",
      "kind": "configuration",
      "title": "Summarize JUnit suite counts",
      "category": "python",
      "difficulty": "intermediate",
      "path": "config-python.md#cf-084",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "summarize",
        "junit",
        "suite",
        "counts"
      ],
      "prerequisites": "scripts/test-report.py",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Python parse"
      },
      "documentation": "https://docs.python.org/3/library/",
      "notes": "Parse a bounded trusted test report, and check the producer's exit status separately for errors."
    },
    {
      "id": "CF-085",
      "kind": "configuration",
      "title": "Build test failure fixture CLI",
      "category": "python",
      "difficulty": "intermediate",
      "path": "config-python.md#cf-085",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "python"
      ],
      "keywords": [
        "build",
        "test",
        "failure",
        "fixture",
        "cli"
      ],
      "prerequisites": "scripts/fixture.py",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Python parse"
      },
      "documentation": "https://docs.python.org/3/library/",
      "notes": "Use to test CI gates with the same reviewed command in pass and fail modes."
    },
    {
      "id": "CF-086",
      "kind": "configuration",
      "title": "Prometheus lab scrape target",
      "category": "monitoring",
      "difficulty": "intermediate",
      "path": "config-monitoring.md#cf-086",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "monitoring"
      ],
      "keywords": [
        "prometheus",
        "lab",
        "scrape",
        "target"
      ],
      "prerequisites": "monitoring/prometheus.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Expose /metrics on web:8000 and verify the target becomes UP."
    },
    {
      "id": "CF-087",
      "kind": "configuration",
      "title": "Request-success recording rule",
      "category": "monitoring",
      "difficulty": "intermediate",
      "path": "config-monitoring.md#cf-087",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "monitoring"
      ],
      "keywords": [
        "request",
        "success",
        "recording",
        "rule"
      ],
      "prerequisites": "monitoring/rules/slo.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Test low/no traffic behavior and add labels for multiple services."
    },
    {
      "id": "CF-088",
      "kind": "configuration",
      "title": "Service down alert",
      "category": "monitoring",
      "difficulty": "intermediate",
      "path": "config-monitoring.md#cf-088",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "monitoring"
      ],
      "keywords": [
        "service",
        "down",
        "alert"
      ],
      "prerequisites": "monitoring/rules/alerts.yml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Validate with promtool and add absent-target alert separately when needed."
    },
    {
      "id": "CF-089",
      "kind": "configuration",
      "title": "Grafana datasource provisioning",
      "category": "monitoring",
      "difficulty": "intermediate",
      "path": "config-monitoring.md#cf-089",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "monitoring",
        "prometheus"
      ],
      "keywords": [
        "grafana",
        "datasource",
        "provisioning"
      ],
      "prerequisites": "provisioning/datasources/prometheus.yaml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Verify the expected UID and run a read-only dashboard query."
    },
    {
      "id": "CF-090",
      "kind": "configuration",
      "title": "Grafana availability dashboard",
      "category": "monitoring",
      "difficulty": "intermediate",
      "path": "config-monitoring.md#cf-090",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "monitoring",
        "prometheus"
      ],
      "keywords": [
        "grafana",
        "availability",
        "dashboard"
      ],
      "prerequisites": "monitoring/dashboards/web.json",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "JSON parse"
      },
      "documentation": "https://prometheus.io/docs/prometheus/latest/configuration/configuration/",
      "notes": "Provision matching datasource UID and check the rendered time series."
    },
    {
      "id": "CF-091",
      "kind": "configuration",
      "title": "Reject privileged container fixture",
      "category": "policy",
      "difficulty": "intermediate",
      "path": "config-policy.md#cf-091",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "policy"
      ],
      "keywords": [
        "reject",
        "privileged",
        "container",
        "fixture"
      ],
      "prerequisites": "policy/kubernetes/privileged.rego",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://www.openpolicyagent.org/docs/",
      "notes": "Run Conftest with a known-good and known-bad Deployment. Extend coverage to other workload kinds."
    },
    {
      "id": "CF-092",
      "kind": "configuration",
      "title": "Immutable container references",
      "category": "policy",
      "difficulty": "intermediate",
      "path": "config-policy.md#cf-092",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "policy"
      ],
      "keywords": [
        "immutable",
        "container",
        "references"
      ],
      "prerequisites": "policy/kubernetes/digest.rego",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://www.openpolicyagent.org/docs/",
      "notes": "Verify both image tag rejection and digest acceptance before CI enforcement."
    },
    {
      "id": "CF-093",
      "kind": "configuration",
      "title": "Reviewed dependency allowlist",
      "category": "policy",
      "difficulty": "intermediate",
      "path": "config-policy.md#cf-093",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "policy"
      ],
      "keywords": [
        "reviewed",
        "dependency",
        "allowlist"
      ],
      "prerequisites": "policy/packages.json",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "JSON parse"
      },
      "documentation": "https://www.openpolicyagent.org/docs/",
      "notes": "Pair with CICD-372. Normalize names and track approval for transitive dependencies."
    },
    {
      "id": "CF-094",
      "kind": "configuration",
      "title": "Exception metadata fixture",
      "category": "policy",
      "difficulty": "intermediate",
      "path": "config-policy.md#cf-094",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "policy"
      ],
      "keywords": [
        "exception",
        "metadata",
        "fixture"
      ],
      "prerequisites": "policy/exceptions.json",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "JSON parse"
      },
      "documentation": "https://www.openpolicyagent.org/docs/",
      "notes": "CI must reject this expired fixture. Production exceptions need approved ownership and scope."
    },
    {
      "id": "CF-095",
      "kind": "configuration",
      "title": "Kubernetes CEL validation core",
      "category": "policy",
      "difficulty": "intermediate",
      "path": "config-policy.md#cf-095",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "policy"
      ],
      "keywords": [
        "kubernetes",
        "cel",
        "validation",
        "core"
      ],
      "prerequisites": "manifest-validation fragment",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://www.openpolicyagent.org/docs/",
      "notes": "Place under ValidatingAdmissionPolicy spec with reviewed resource matches and binding; validate missing/defaulted field handling."
    },
    {
      "id": "CF-096",
      "kind": "configuration",
      "title": "Service runtime TOML",
      "category": "app",
      "difficulty": "intermediate",
      "path": "config-app.md#cf-096",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "app"
      ],
      "keywords": [
        "service",
        "runtime",
        "toml"
      ],
      "prerequisites": "app.toml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "TOML parse"
      },
      "documentation": "https://docs.python.org/3/library/tomllib.html",
      "notes": "Read with tomllib and validate settings at startup. Keep secrets external."
    },
    {
      "id": "CF-097",
      "kind": "configuration",
      "title": "Health JSON schema",
      "category": "app",
      "difficulty": "intermediate",
      "path": "config-app.md#cf-097",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "app"
      ],
      "keywords": [
        "health",
        "json",
        "schema"
      ],
      "prerequisites": "schemas/health.schema.json",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "JSON parse"
      },
      "documentation": "https://docs.python.org/3/library/tomllib.html",
      "notes": "Use jsonschema CLI with success and failure payloads."
    },
    {
      "id": "CF-098",
      "kind": "configuration",
      "title": "Non-secret CI environment sample",
      "category": "app",
      "difficulty": "intermediate",
      "path": "config-app.md#cf-098",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "app"
      ],
      "keywords": [
        "non",
        "secret",
        "ci",
        "environment",
        "sample"
      ],
      "prerequisites": ".env.ci.example",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": "https://docs.python.org/3/library/tomllib.html",
      "notes": "Copy for disposable local Compose runs. Never use this file to store credentials."
    },
    {
      "id": "CF-099",
      "kind": "configuration",
      "title": "Dependency-free Python verification package",
      "category": "app",
      "difficulty": "intermediate",
      "path": "config-app.md#cf-099",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "app",
        "pytest",
        "python"
      ],
      "keywords": [
        "dependency",
        "free",
        "python",
        "verification",
        "package"
      ],
      "prerequisites": "pyproject.toml",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "TOML parse"
      },
      "documentation": "https://docs.python.org/3/library/tomllib.html",
      "notes": "Add pytest as a locked dev dependency for uv workflows."
    },
    {
      "id": "CF-100",
      "kind": "configuration",
      "title": "Structured fixture readiness test",
      "category": "app",
      "difficulty": "intermediate",
      "path": "config-app.md#cf-100",
      "platforms": [
        "local-lab"
      ],
      "tools": [
        "app"
      ],
      "keywords": [
        "structured",
        "fixture",
        "readiness",
        "test"
      ],
      "prerequisites": "tests/test_health.py",
      "related": [],
      "validation": {
        "status": "runtime-tested",
        "static_check": "Python parse",
        "runtime_environment": "Local Python 3.12, isolated HTTP and JSON fixtures",
        "last_verified": "2026-12-05"
      },
      "documentation": "https://docs.python.org/3/library/tomllib.html",
      "notes": "Start the lab health server and run python -m unittest discover -s tests."
    },
    {
      "id": "F001",
      "kind": "failure",
      "title": "Nested run key",
      "category": "yaml",
      "difficulty": "intermediate",
      "path": "failures-yaml.md#f001",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "yaml"
      ],
      "keywords": [
        "nested",
        "run",
        "key"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "Parser or schema rejects steps. A step list was supplied as a mapping. Validate that steps contains a single item and its log prints hello."
    },
    {
      "id": "F002",
      "kind": "failure",
      "title": "Tab indentation",
      "category": "yaml",
      "difficulty": "intermediate",
      "path": "failures-yaml.md#f002",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "yaml"
      ],
      "keywords": [
        "tab",
        "indentation"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "scanner error near tab. A tab is illegal in indentation. Replace tabs with spaces, then complete the test job as in the syntax guide."
    },
    {
      "id": "F003",
      "kind": "failure",
      "title": "Misaligned steps",
      "category": "yaml",
      "difficulty": "intermediate",
      "path": "failures-yaml.md#f003",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "yaml"
      ],
      "keywords": [
        "misaligned",
        "steps"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "mapping values are not allowed here. steps must be a sibling of runs-on. Lint the workflow and inspect the sample job."
    },
    {
      "id": "F004",
      "kind": "failure",
      "title": "Unquoted colon in a command",
      "category": "yaml",
      "difficulty": "intermediate",
      "path": "failures-yaml.md#f004",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "yaml"
      ],
      "keywords": [
        "unquoted",
        "colon",
        "in",
        "a",
        "command"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "mapping values are not allowed here. The colon is interpreted as a mapping separator. Confirm the step log prints Check: passed."
    },
    {
      "id": "F005",
      "kind": "failure",
      "title": "Unclosed flow list",
      "category": "yaml",
      "difficulty": "intermediate",
      "path": "failures-yaml.md#f005",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "yaml"
      ],
      "keywords": [
        "unclosed",
        "flow",
        "list"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "expected comma or closing bracket. A closing bracket is missing. Parse and verify two branch names."
    },
    {
      "id": "F006",
      "kind": "failure",
      "title": "Duplicate job identifier",
      "category": "yaml",
      "difficulty": "intermediate",
      "path": "failures-yaml.md#f006",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "yaml"
      ],
      "keywords": [
        "duplicate",
        "job",
        "identifier"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "one job disappears or lint rejects duplicate key. Duplicate keys can overwrite one job or be rejected. List both jobs in workflow UI."
    },
    {
      "id": "F007",
      "kind": "failure",
      "title": "Unquoted glob",
      "category": "yaml",
      "difficulty": "intermediate",
      "path": "failures-yaml.md#f007",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "yaml"
      ],
      "keywords": [
        "unquoted",
        "glob"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "alias parser error. Asterisk begins a YAML alias token. Change src/main.py and verify a run."
    },
    {
      "id": "F008",
      "kind": "failure",
      "title": "Wrong boolean type",
      "category": "yaml",
      "difficulty": "intermediate",
      "path": "failures-yaml.md#f008",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "yaml"
      ],
      "keywords": [
        "wrong",
        "boolean",
        "type"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "unexpected string or incorrect behavior. A string was used where boolean or a typed expression is expected. Cause a deliberate failure and verify it blocks the run."
    },
    {
      "id": "F009",
      "kind": "failure",
      "title": "Unindented here document in YAML",
      "category": "yaml",
      "difficulty": "intermediate",
      "path": "failures-yaml.md#f009",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "yaml"
      ],
      "keywords": [
        "unindented",
        "here",
        "document",
        "in",
        "yaml"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "yaml parsing fails before shell starts. YAML stripped indentation only from lines inside the block. Verify stdout contains body."
    },
    {
      "id": "F010",
      "kind": "failure",
      "title": "Empty event mapped with an extra colon",
      "category": "yaml",
      "difficulty": "intermediate",
      "path": "failures-yaml.md#f010",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "yaml"
      ],
      "keywords": [
        "empty",
        "event",
        "mapped",
        "with",
        "an",
        "extra",
        "colon"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "workflow config reports invalid event or never triggers. The event name accidentally contains a colon. Push and manually dispatch in a lab."
    },
    {
      "id": "F011",
      "kind": "failure",
      "title": "Gitea workflow stored in random folder",
      "category": "triggers",
      "difficulty": "intermediate",
      "path": "failures-triggers.md#f011",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "gitea",
        "triggers"
      ],
      "keywords": [
        "gitea",
        "workflow",
        "stored",
        "in",
        "random",
        "folder"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "no run appears after push. Gitea scans a designated workflow path. Push a benign commit and check Actions."
    },
    {
      "id": "F012",
      "kind": "failure",
      "title": "PR branch filter targets the wrong ref",
      "category": "triggers",
      "difficulty": "intermediate",
      "path": "failures-triggers.md#f012",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "pr",
        "branch",
        "filter",
        "targets",
        "the",
        "wrong",
        "ref"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "opening feature-one into main creates no run. The filter matches the PR base ref. Open a PR targeting main and compare run event."
    },
    {
      "id": "F013",
      "kind": "failure",
      "title": "Push branch selected but release tag expected",
      "category": "triggers",
      "difficulty": "intermediate",
      "path": "failures-triggers.md#f013",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "push",
        "branch",
        "selected",
        "but",
        "release",
        "tag",
        "expected"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "release workflow absent after tag push. Tag pushes use a separate tag filter. Use a harmless v0.0.1-lab tag."
    },
    {
      "id": "F014",
      "kind": "failure",
      "title": "One path filter ignores shared dependencies",
      "category": "triggers",
      "difficulty": "intermediate",
      "path": "failures-triggers.md#f014",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "one",
        "path",
        "filter",
        "ignores",
        "shared",
        "dependencies"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "shared changes arrive without CI. Changed files skip the narrow workflow. Change uv.lock on a sample branch."
    },
    {
      "id": "F015",
      "kind": "failure",
      "title": "Manual workflow only exists on a feature branch",
      "category": "triggers",
      "difficulty": "intermediate",
      "path": "failures-triggers.md#f015",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "github-cli",
        "triggers"
      ],
      "keywords": [
        "manual",
        "workflow",
        "only",
        "exists",
        "on",
        "a",
        "feature",
        "branch"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "404 or missing Run workflow button. Workflow discovery for manual dispatch requires a default-branch workflow. Merge the declared trigger to default branch and dispatch to feature."
    },
    {
      "id": "F016",
      "kind": "failure",
      "title": "Scheduled time assumed local",
      "category": "triggers",
      "difficulty": "intermediate",
      "path": "failures-triggers.md#f016",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "scheduled",
        "time",
        "assumed",
        "local"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "job starts an hour later than intended in UK summer. Schedule is UTC unless a supported timezone is explicitly configured. Compare schedule run timestamps in UTC and account for seasonal changes."
    },
    {
      "id": "F017",
      "kind": "failure",
      "title": "Workflow chain runs on upstream failure",
      "category": "triggers",
      "difficulty": "intermediate",
      "path": "failures-triggers.md#f017",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "workflow",
        "chain",
        "runs",
        "on",
        "upstream",
        "failure"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "publish runs after a failed verification. completed is distinct from successful. Simulate a failed upstream test and confirm publishing is skipped."
    },
    {
      "id": "F018",
      "kind": "failure",
      "title": "Required check never reports after path filtering",
      "category": "triggers",
      "difficulty": "intermediate",
      "path": "failures-triggers.md#f018",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "triggers"
      ],
      "keywords": [
        "required",
        "check",
        "never",
        "reports",
        "after",
        "path",
        "filtering"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "required check stays pending. A workflow-level path filter can suppress the required workflow entirely. Use a stable gate with internal change detection and confirm docs-only PRs report."
    },
    {
      "id": "F019",
      "kind": "failure",
      "title": "Runner label mismatch",
      "category": "runner",
      "difficulty": "intermediate",
      "path": "failures-runner.md#f019",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "runner",
        "label",
        "mismatch"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "job stays queued. No runner advertises the requested label. Compare exact labels in the server and use the configured one."
    },
    {
      "id": "F020",
      "kind": "failure",
      "title": "Runner service is stopped",
      "category": "runner",
      "difficulty": "intermediate",
      "path": "failures-runner.md#f020",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "runner",
        "service",
        "is",
        "stopped"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "runner appears offline. Service state and logs were never checked. Diagnose startup and restart only the authorized service."
    },
    {
      "id": "F021",
      "kind": "failure",
      "title": "Wrong operating-system command",
      "category": "runner",
      "difficulty": "intermediate",
      "path": "failures-runner.md#f021",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "wrong",
        "operating",
        "system",
        "command"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "apt-get command not found. Linux package manager was used on Windows. Verify the run logs show Ubuntu."
    },
    {
      "id": "F022",
      "kind": "failure",
      "title": "Bash syntax executed in sh",
      "category": "runner",
      "difficulty": "intermediate",
      "path": "failures-runner.md#f022",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "bash",
        "runner"
      ],
      "keywords": [
        "bash",
        "syntax",
        "executed",
        "in",
        "sh"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "[[: not found. Double brackets are Bash syntax. Check shell selection and exit status."
    },
    {
      "id": "F023",
      "kind": "failure",
      "title": "Relative path assumes runner workspace root",
      "category": "runner",
      "difficulty": "intermediate",
      "path": "failures-runner.md#f023",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "pytest",
        "runner"
      ],
      "keywords": [
        "relative",
        "path",
        "assumes",
        "runner",
        "workspace",
        "root"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "file or directory not found tests. Tests live one subdirectory below checkout. Print pwd and list the test path in context."
    },
    {
      "id": "F024",
      "kind": "failure",
      "title": "Missing Docker socket access",
      "category": "runner",
      "difficulty": "intermediate",
      "path": "failures-runner.md#f024",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "runner"
      ],
      "keywords": [
        "missing",
        "docker",
        "socket",
        "access"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "cannot connect to Docker daemon or permissions denied. Docker CLI exists without reachable daemon. Use a trusted builder with intentionally provisioned access."
    },
    {
      "id": "F025",
      "kind": "failure",
      "title": "Missing executable bit",
      "category": "runner",
      "difficulty": "intermediate",
      "path": "failures-runner.md#f025",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "bash",
        "runner"
      ],
      "keywords": [
        "missing",
        "executable",
        "bit"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "Permission denied. Linux relies on executable mode or an explicit interpreter. Commit executable mode if direct execution is needed."
    },
    {
      "id": "F026",
      "kind": "failure",
      "title": "Wrong CPU architecture",
      "category": "runner",
      "difficulty": "intermediate",
      "path": "failures-runner.md#f026",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "runner"
      ],
      "keywords": [
        "wrong",
        "cpu",
        "architecture"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "Exec format error. An arm64 executable cannot run natively on x86-64. Run on an arm64 host or use a matching artifact."
    },
    {
      "id": "F027",
      "kind": "failure",
      "title": "Job exceeds runner disk capacity",
      "category": "runner",
      "difficulty": "intermediate",
      "path": "failures-runner.md#f027",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "runner"
      ],
      "keywords": [
        "job",
        "exceeds",
        "runner",
        "disk",
        "capacity"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "no space left on device. Build layers and workspace compete for storage. Use disposable workers or owner-approved cleanup after measuring."
    },
    {
      "id": "F028",
      "kind": "failure",
      "title": "Host-only name unavailable in job container",
      "category": "runner",
      "difficulty": "intermediate",
      "path": "failures-runner.md#f028",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "gitea",
        "runner"
      ],
      "keywords": [
        "host",
        "only",
        "name",
        "unavailable",
        "in",
        "job",
        "container"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "connection refused. Loopback inside a container refers to the container. Supply an approved host name reachable from the job network."
    },
    {
      "id": "F029",
      "kind": "failure",
      "title": "pytest missing from uv project",
      "category": "dependencies",
      "difficulty": "intermediate",
      "path": "failures-dependencies.md#f029",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "dependencies",
        "pytest",
        "uv"
      ],
      "keywords": [
        "pytest",
        "missing",
        "from",
        "uv",
        "project"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "Failed to spawn pytest. pytest must be declared in the project dependency group. Add it using uv add --dev pytest locally and commit the lock."
    },
    {
      "id": "F030",
      "kind": "failure",
      "title": "Typo in test executable",
      "category": "dependencies",
      "difficulty": "intermediate",
      "path": "failures-dependencies.md#f030",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "dependencies",
        "pytest",
        "uv"
      ],
      "keywords": [
        "typo",
        "in",
        "test",
        "executable"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "failed to spawn pytrest. The runner tries to launch a nonexistent executable. Read the exact command in the failed step and verify correction."
    },
    {
      "id": "F047",
      "kind": "failure",
      "title": "Lockfile stale after declaration change",
      "category": "dependencies",
      "difficulty": "intermediate",
      "path": "failures-dependencies.md#f047",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "dependencies",
        "uv"
      ],
      "keywords": [
        "lockfile",
        "stale",
        "after",
        "declaration",
        "change"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "lockfile changes unexpectedly or environment diverges. The default sync can rewrite resolution instead of reporting drift. Change pyproject.toml only in a fixture and expect a nonzero result."
    },
    {
      "id": "F032",
      "kind": "failure",
      "title": "npm manifest and lock disagree",
      "category": "dependencies",
      "difficulty": "intermediate",
      "path": "failures-dependencies.md#f032",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "dependencies",
        "node"
      ],
      "keywords": [
        "npm",
        "manifest",
        "and",
        "lock",
        "disagree"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "CI and developer environments resolve different versions. Floating CI install hides a stale package-lock.json. Update and commit lock locally then verify clean npm ci."
    },
    {
      "id": "F033",
      "kind": "failure",
      "title": "CI omits dependencies needed for tests",
      "category": "dependencies",
      "difficulty": "intermediate",
      "path": "failures-dependencies.md#f033",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "dependencies",
        "node"
      ],
      "keywords": [
        "ci",
        "omits",
        "dependencies",
        "needed",
        "for",
        "tests"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "test binary not found. Test runners are in devDependencies. Keep production pruning in a later packaging job."
    },
    {
      "id": "F034",
      "kind": "failure",
      "title": "Wrong Python executable",
      "category": "dependencies",
      "difficulty": "intermediate",
      "path": "failures-dependencies.md#f034",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "dependencies",
        "pytest",
        "python"
      ],
      "keywords": [
        "wrong",
        "python",
        "executable"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "No module named pytest. pip and test interpreter target different installations. Inspect sys.executable and pip --version."
    },
    {
      "id": "F035",
      "kind": "failure",
      "title": "Unpinned downloads break builds",
      "category": "dependencies",
      "difficulty": "intermediate",
      "path": "failures-dependencies.md#f035",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "dependencies",
        "python"
      ],
      "keywords": [
        "unpinned",
        "downloads",
        "break",
        "builds"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "build suddenly changes after a registry release. Dependencies were not locked across runs. Repeat checkout install and compare resolved versions."
    },
    {
      "id": "F036",
      "kind": "failure",
      "title": "Node version below project engines",
      "category": "dependencies",
      "difficulty": "intermediate",
      "path": "failures-dependencies.md#f036",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "dependencies"
      ],
      "keywords": [
        "node",
        "version",
        "below",
        "project",
        "engines"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "EBADENGINE or syntax error. Toolchain ignored committed configuration. Print node --version and inspect engine requirement."
    },
    {
      "id": "F037",
      "kind": "failure",
      "title": "Go dependency cache mistaken for version control",
      "category": "dependencies",
      "difficulty": "intermediate",
      "path": "failures-dependencies.md#f037",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "dependencies",
        "go"
      ],
      "keywords": [
        "go",
        "dependency",
        "cache",
        "mistaken",
        "for",
        "version",
        "control"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "tests pass with uncommitted dependency changes. CI updates manifest and sums rather than rejecting drift. Deliberately omit declared module and verify go test fails."
    },
    {
      "id": "F038",
      "kind": "failure",
      "title": "Registry auth configured after installing",
      "category": "dependencies",
      "difficulty": "intermediate",
      "path": "failures-dependencies.md#f038",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "dependencies",
        "node"
      ],
      "keywords": [
        "registry",
        "auth",
        "configured",
        "after",
        "installing"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "401 or 404 on private package. Install starts before its secured environment is available. Scope token to registry and test with approved package fixture."
    },
    {
      "id": "F039",
      "kind": "failure",
      "title": "Misspelled expression context",
      "category": "variables",
      "difficulty": "intermediate",
      "path": "failures-variables.md#f039",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "variables"
      ],
      "keywords": [
        "misspelled",
        "expression",
        "context"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "Unrecognized named-value. Expression contexts have fixed names. Confirm branch string explicitly in a non-secret fixture."
    },
    {
      "id": "F040",
      "kind": "failure",
      "title": "Output read before producer ID exists",
      "category": "variables",
      "difficulty": "intermediate",
      "path": "failures-variables.md#f040",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "variables"
      ],
      "keywords": [
        "output",
        "read",
        "before",
        "producer",
        "id",
        "exists"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "downstream version is empty. Name and ID are different. The producer ID is build. Print a benign release version into output and test nonempty."
    },
    {
      "id": "F041",
      "kind": "failure",
      "title": "Environment output written with no newline",
      "category": "variables",
      "difficulty": "intermediate",
      "path": "failures-variables.md#f041",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "variables"
      ],
      "keywords": [
        "environment",
        "output",
        "written",
        "with",
        "no",
        "newline"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "a contains a merged record, b is absent. File protocol requires one assignment per line. Verify steps.ID.outputs.a and .b independently."
    },
    {
      "id": "F042",
      "kind": "failure",
      "title": "Job if tries to read matrix before expansion",
      "category": "variables",
      "difficulty": "intermediate",
      "path": "failures-variables.md#f042",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "python",
        "variables"
      ],
      "keywords": [
        "job",
        "if",
        "tries",
        "to",
        "read",
        "matrix",
        "before",
        "expansion"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "unrecognized named-value matrix. Job-level if is evaluated before matrix expansion. Filter the matrix or use a step-level if."
    },
    {
      "id": "F043",
      "kind": "failure",
      "title": "String value used as boolean",
      "category": "variables",
      "difficulty": "intermediate",
      "path": "failures-variables.md#f043",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "variables"
      ],
      "keywords": [
        "string",
        "value",
        "used",
        "as",
        "boolean"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "deploy runs while flag prints false. The string false is nonempty and truthy. Test both literal values on a dry-run job."
    },
    {
      "id": "F044",
      "kind": "failure",
      "title": "Secret checked directly in step condition",
      "category": "variables",
      "difficulty": "intermediate",
      "path": "failures-variables.md#f044",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "variables"
      ],
      "keywords": [
        "secret",
        "checked",
        "directly",
        "in",
        "step",
        "condition"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "unrecognized named-value secrets. secrets is not available directly in if. Make the step safe when it gets no secret."
    },
    {
      "id": "F045",
      "kind": "failure",
      "title": "Invalid dynamic matrix JSON",
      "category": "variables",
      "difficulty": "intermediate",
      "path": "failures-variables.md#f045",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "variables"
      ],
      "keywords": [
        "invalid",
        "dynamic",
        "matrix",
        "json"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "error parsing fromJSON input. rows contains a plain string, matrix_json contains a validated object. Validate producer output with jq and ensure nonempty dimensions."
    },
    {
      "id": "F046",
      "kind": "failure",
      "title": "Plain shell variable lost between steps",
      "category": "variables",
      "difficulty": "intermediate",
      "path": "failures-variables.md#f046",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "variables"
      ],
      "keywords": [
        "plain",
        "shell",
        "variable",
        "lost",
        "between",
        "steps"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "the next step reads an empty variable. Every step gets a separate process. Check the tag in a later step."
    },
    {
      "id": "F031",
      "kind": "failure",
      "title": "File does not cross a job boundary",
      "category": "isolation",
      "difficulty": "intermediate",
      "path": "failures-isolation.md#f031",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "isolation"
      ],
      "keywords": [
        "file",
        "does",
        "not",
        "cross",
        "a",
        "job",
        "boundary",
        "pass data between jobs",
        "needs",
        "artifacts",
        "outputs",
        "isolation"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "cat: version.txt: No such file or directory. needs orders jobs while their filesystems stay isolated. Expect the downstream step to print 1.0.0. Use artifacts for actual files."
    },
    {
      "id": "F048",
      "kind": "failure",
      "title": "Gate skips when tests fail",
      "category": "isolation",
      "difficulty": "intermediate",
      "path": "failures-isolation.md#f048",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "isolation"
      ],
      "keywords": [
        "gate",
        "skips",
        "when",
        "tests",
        "fail"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "check is skipped instead of failing. Implicit success prevents the gate from inspecting a failed upstream result. Read needs.test.result in the gate and return nonzero unless success."
    },
    {
      "id": "F049",
      "kind": "failure",
      "title": "Missing dependency declares a race",
      "category": "isolation",
      "difficulty": "intermediate",
      "path": "failures-isolation.md#f049",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "isolation"
      ],
      "keywords": [
        "missing",
        "dependency",
        "declares",
        "a",
        "race"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "intermittent missing artifact. Consumer starts before package job finishes. Add explicit upload/download and validate dependency graph."
    },
    {
      "id": "F050",
      "kind": "failure",
      "title": "Job output references a nonexistent step",
      "category": "isolation",
      "difficulty": "intermediate",
      "path": "failures-isolation.md#f050",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "isolation"
      ],
      "keywords": [
        "job",
        "output",
        "references",
        "a",
        "nonexistent",
        "step"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "empty digest in downstream job. The producer step ID is publish. Validate nonempty digest and compare expected value."
    },
    {
      "id": "F051",
      "kind": "failure",
      "title": "Attempt to depend on a job in another workflow",
      "category": "isolation",
      "difficulty": "intermediate",
      "path": "failures-isolation.md#f051",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "isolation"
      ],
      "keywords": [
        "attempt",
        "to",
        "depend",
        "on",
        "a",
        "job",
        "in",
        "another",
        "workflow"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "unknown dependency other-workflow-build. needs accepts only job IDs within the same workflow. Run Build and filter its completed outcome in the consumer."
    },
    {
      "id": "F052",
      "kind": "failure",
      "title": "Repeated environment name does not serialize deploys",
      "category": "isolation",
      "difficulty": "intermediate",
      "path": "failures-isolation.md#f052",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "isolation"
      ],
      "keywords": [
        "repeated",
        "environment",
        "name",
        "does",
        "not",
        "serialize",
        "deploys"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "overlapping writes occur. Environment protection and concurrency are separate. Trigger two approved runs and observe queue behavior."
    },
    {
      "id": "F053",
      "kind": "failure",
      "title": "Each job must check out source",
      "category": "isolation",
      "difficulty": "intermediate",
      "path": "failures-isolation.md#f053",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "isolation"
      ],
      "keywords": [
        "each",
        "job",
        "must",
        "check",
        "out",
        "source"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "ci/test.sh: No such file or directory. No checkout occurs merely because an upstream job checked out source. Confirm git rev-parse works in the dependent job."
    },
    {
      "id": "F054",
      "kind": "failure",
      "title": "Job uses repeated matrix output key",
      "category": "isolation",
      "difficulty": "intermediate",
      "path": "failures-isolation.md#f054",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "isolation"
      ],
      "keywords": [
        "job",
        "uses",
        "repeated",
        "matrix",
        "output",
        "key"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "consumer sees only one platform output. Multiple jobs can race to provide the same output name. Collect uniquely named artifacts and verify target set."
    },
    {
      "id": "F055",
      "kind": "failure",
      "title": "Artifact name differs in consumer",
      "category": "artifact-cache",
      "difficulty": "intermediate",
      "path": "failures-artifact-cache.md#f055",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifact-cache"
      ],
      "keywords": [
        "artifact",
        "name",
        "differs",
        "in",
        "consumer"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "unable to find artifact. Producer publishes artifact wheel. Check a single canonical name and input path."
    },
    {
      "id": "F056",
      "kind": "failure",
      "title": "Upload path points to wrong directory",
      "category": "artifact-cache",
      "difficulty": "intermediate",
      "path": "failures-artifact-cache.md#f056",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifact-cache"
      ],
      "keywords": [
        "upload",
        "path",
        "points",
        "to",
        "wrong",
        "directory"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "no files were found. Build tool outputs files under dist. Inspect archive contents and fail on empty patterns."
    },
    {
      "id": "F057",
      "kind": "failure",
      "title": "Matrix jobs upload identical artifact names",
      "category": "artifact-cache",
      "difficulty": "intermediate",
      "path": "failures-artifact-cache.md#f057",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifact-cache",
        "python"
      ],
      "keywords": [
        "matrix",
        "jobs",
        "upload",
        "identical",
        "artifact",
        "names"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "conflict 409 during upload. Artifact names collide across parallel jobs. Verify one artifact per runtime."
    },
    {
      "id": "F058",
      "kind": "failure",
      "title": "Stale dependency cache survives lockfile changes",
      "category": "artifact-cache",
      "difficulty": "intermediate",
      "path": "failures-artifact-cache.md#f058",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifact-cache"
      ],
      "keywords": [
        "stale",
        "dependency",
        "cache",
        "survives",
        "lockfile",
        "changes"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "dependency state drifts between runs. Cache key omitted dependency fingerprint. Modify lock input and confirm new cache key."
    },
    {
      "id": "F059",
      "kind": "failure",
      "title": "Cache hit mistaken for dependency install",
      "category": "artifact-cache",
      "difficulty": "intermediate",
      "path": "failures-artifact-cache.md#f059",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifact-cache",
        "uv"
      ],
      "keywords": [
        "cache",
        "hit",
        "mistaken",
        "for",
        "dependency",
        "install"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "expected package absent from environment. Cache only stores downloads. Test a clean checkout with warm cache."
    },
    {
      "id": "F060",
      "kind": "failure",
      "title": "Wrong download extraction path",
      "category": "artifact-cache",
      "difficulty": "intermediate",
      "path": "failures-artifact-cache.md#f060",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifact-cache"
      ],
      "keywords": [
        "wrong",
        "download",
        "extraction",
        "path"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "file not found. Download action extracted artifact under received. Print download tree and verify hashes inside its directory."
    },
    {
      "id": "F061",
      "kind": "failure",
      "title": "Artifact expired before promotion",
      "category": "artifact-cache",
      "difficulty": "intermediate",
      "path": "failures-artifact-cache.md#f061",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifact-cache"
      ],
      "keywords": [
        "artifact",
        "expired",
        "before",
        "promotion"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "artifact not found during delayed approval. Retention is shorter than review time. Compare policy and promotion SLA. Use a registry for durable release artifacts."
    },
    {
      "id": "F062",
      "kind": "failure",
      "title": "GitHub artifact action copied to incompatible Gitea",
      "category": "artifact-cache",
      "difficulty": "intermediate",
      "path": "failures-artifact-cache.md#f062",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "artifact-cache"
      ],
      "keywords": [
        "github",
        "artifact",
        "action",
        "copied",
        "to",
        "incompatible",
        "gitea"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "artifact runtime reports unsupported service or endpoint. Backend protocol versions differ. Use a documented compatible action for the installed Gitea release. GitHub.com requires v4 or newer supported protocol."
    },
    {
      "id": "F063",
      "kind": "failure",
      "title": "Read-only release job cannot push package",
      "category": "permissions",
      "difficulty": "intermediate",
      "path": "failures-permissions.md#f063",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "permissions"
      ],
      "keywords": [
        "read",
        "only",
        "release",
        "job",
        "cannot",
        "push",
        "package"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "denied: permission_denied: write_package. Publish requires the registry's package write permission. Use an approved protected release job and confirm intended package ownership."
    },
    {
      "id": "F064",
      "kind": "failure",
      "title": "Cross-repository API call uses default token",
      "category": "permissions",
      "difficulty": "intermediate",
      "path": "failures-permissions.md#f064",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "github-cli",
        "permissions"
      ],
      "keywords": [
        "cross",
        "repository",
        "api",
        "call",
        "uses",
        "default",
        "token"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "HTTP 403 or 404. GitHub default token generally targets current repo. Use scoped GitHub App token allowing dispatch in the target."
    },
    {
      "id": "F065",
      "kind": "failure",
      "title": "OIDC token permission absent",
      "category": "permissions",
      "difficulty": "intermediate",
      "path": "failures-permissions.md#f065",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "permissions"
      ],
      "keywords": [
        "oidc",
        "token",
        "permission",
        "absent"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "unable to request OIDC token. Workflow cannot request OIDC token without permission. Verify protected claims and cloud role trust before calling provider."
    },
    {
      "id": "F066",
      "kind": "failure",
      "title": "Cloud role subject mismatch",
      "category": "permissions",
      "difficulty": "intermediate",
      "path": "failures-permissions.md#f066",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "permissions"
      ],
      "keywords": [
        "cloud",
        "role",
        "subject",
        "mismatch"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "Not authorized to perform sts:AssumeRoleWithWebIdentity. Role trust policy doesn't match repo/environment subject. Compare exact intended issuer, audience and subject to reviewed IAM conditions."
    },
    {
      "id": "F067",
      "kind": "failure",
      "title": "CI expects secret in fork PR",
      "category": "permissions",
      "difficulty": "intermediate",
      "path": "failures-permissions.md#f067",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "permissions"
      ],
      "keywords": [
        "ci",
        "expects",
        "secret",
        "in",
        "fork",
        "pr"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "auth token is empty on fork. Fork runs cannot access normal private secrets. Run a separate privileged job only on a trusted push and test fork path without secrets."
    },
    {
      "id": "F068",
      "kind": "failure",
      "title": "Docker login receives blank username",
      "category": "permissions",
      "difficulty": "intermediate",
      "path": "failures-permissions.md#f068",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker",
        "permissions"
      ],
      "keywords": [
        "docker",
        "login",
        "receives",
        "blank",
        "username"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "Cannot perform an interactive login. Registry auth needs nonempty user and scoped secret. Check inputs exist without printing token."
    },
    {
      "id": "F069",
      "kind": "failure",
      "title": "SSH server fingerprint not provisioned",
      "category": "permissions",
      "difficulty": "intermediate",
      "path": "failures-permissions.md#f069",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "permissions"
      ],
      "keywords": [
        "ssh",
        "server",
        "fingerprint",
        "not",
        "provisioned"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "Host key verification failed. Trusted host keys missing. Confirm reviewed fingerprint via an independent trusted source."
    },
    {
      "id": "F070",
      "kind": "failure",
      "title": "Kubernetes identity lacks deployment patch",
      "category": "permissions",
      "difficulty": "intermediate",
      "path": "failures-permissions.md#f070",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes",
        "permissions"
      ],
      "keywords": [
        "kubernetes",
        "identity",
        "lacks",
        "deployment",
        "patch"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "deployments.apps is forbidden. RBAC permits reads but not patch. Bind the namespace-specific reviewed Role and recheck effective permissions."
    },
    {
      "id": "F071",
      "kind": "failure",
      "title": "Credential accidentally included in logs",
      "category": "permissions",
      "difficulty": "intermediate",
      "path": "failures-permissions.md#f071",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "permissions"
      ],
      "keywords": [
        "credential",
        "accidentally",
        "included",
        "in",
        "logs"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "protected input visible or masked unexpectedly. Shell tracing expands secrets into logs. Revoke affected tokens and verify test logs contain no synthetic secret."
    },
    {
      "id": "F072",
      "kind": "failure",
      "title": "Permission granted at incorrect scope",
      "category": "permissions",
      "difficulty": "intermediate",
      "path": "failures-permissions.md#f072",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "permissions"
      ],
      "keywords": [
        "permission",
        "granted",
        "at",
        "incorrect",
        "scope"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "checkout can't clone private repository. Workflow defaults disable repository read. Grant only job-level contents read and verify succeeds."
    },
    {
      "id": "F073",
      "kind": "failure",
      "title": "COPY file outside build context",
      "category": "docker",
      "difficulty": "intermediate",
      "path": "failures-docker.md#f073",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker"
      ],
      "keywords": [
        "copy",
        "file",
        "outside",
        "build",
        "context"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "failed to calculate checksum: not found. Dockerfile copies a root-level input absent from service context. Adjust COPY sources for chosen context and inspect .dockerignore."
    },
    {
      "id": "F074",
      "kind": "failure",
      "title": "Build excludes needful lockfile",
      "category": "docker",
      "difficulty": "intermediate",
      "path": "failures-docker.md#f074",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker"
      ],
      "keywords": [
        "build",
        "excludes",
        "needful",
        "lockfile"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "uv.lock not found in build context. A broad pattern hides required dependencies. Inspect BuildKit logs and verify intended exception."
    },
    {
      "id": "F075",
      "kind": "failure",
      "title": "Smoke test tries service too early",
      "category": "docker",
      "difficulty": "intermediate",
      "path": "failures-docker.md#f075",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "docker"
      ],
      "keywords": [
        "smoke",
        "test",
        "tries",
        "service",
        "too",
        "early"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "connection refused immediately after docker run. Process start is not readiness. Poll readiness with a bounded retry policy."
    },
    {
      "id": "F076",
      "kind": "failure",
      "title": "Container listens on loopback internally",
      "category": "docker",
      "difficulty": "intermediate",
      "path": "failures-docker.md#f076",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker"
      ],
      "keywords": [
        "container",
        "listens",
        "on",
        "loopback",
        "internally"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "host curl connection reset. Published Docker port cannot reach process bound to container loopback. Bind all interfaces in isolated container and publish loopback on host as needed."
    },
    {
      "id": "F077",
      "kind": "failure",
      "title": "Image name contains uppercase characters",
      "category": "docker",
      "difficulty": "intermediate",
      "path": "failures-docker.md#f077",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker"
      ],
      "keywords": [
        "image",
        "name",
        "contains",
        "uppercase",
        "characters"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "invalid reference format. Repository components must be lowercase. Validate final printed image reference."
    },
    {
      "id": "F078",
      "kind": "failure",
      "title": "Push targets missing local tag",
      "category": "docker",
      "difficulty": "intermediate",
      "path": "failures-docker.md#f078",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker"
      ],
      "keywords": [
        "push",
        "targets",
        "missing",
        "local",
        "tag"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "An image does not exist locally with the tag. Building one name doesn't create a second local reference. Inspect exact manifest before push."
    },
    {
      "id": "F079",
      "kind": "failure",
      "title": "Buildx image inaccessible to docker run",
      "category": "docker",
      "difficulty": "intermediate",
      "path": "failures-docker.md#f079",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker"
      ],
      "keywords": [
        "buildx",
        "image",
        "inaccessible",
        "to",
        "docker",
        "run"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "unable to find image locally. Container driver doesn't load result by default. Verify docker image inspect succeeds after single-platform load."
    },
    {
      "id": "F080",
      "kind": "failure",
      "title": "Registry certificate fails verification",
      "category": "docker",
      "difficulty": "intermediate",
      "path": "failures-docker.md#f080",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "docker"
      ],
      "keywords": [
        "registry",
        "certificate",
        "fails",
        "verification"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "certificate signed by unknown authority. Private CA is missing from trusted clients. Trust approved CA through Docker daemon config and confirm chain."
    },
    {
      "id": "F081",
      "kind": "failure",
      "title": "Wrong CPU image selected on runtime host",
      "category": "docker",
      "difficulty": "intermediate",
      "path": "failures-docker.md#f081",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker"
      ],
      "keywords": [
        "wrong",
        "cpu",
        "image",
        "selected",
        "on",
        "runtime",
        "host"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "no matching manifest or exec format error. Single image has incompatible architecture. Check manifest list for target architecture."
    },
    {
      "id": "F082",
      "kind": "failure",
      "title": "Disk fills from unbounded images",
      "category": "docker",
      "difficulty": "intermediate",
      "path": "failures-docker.md#f082",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "docker"
      ],
      "keywords": [
        "disk",
        "fills",
        "from",
        "unbounded",
        "images"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "no space left on device. Per-run images were retained indefinitely. Use ephemeral runners or bounded cleanup after tests with no shared image deletion."
    },
    {
      "id": "F083",
      "kind": "failure",
      "title": "Wrong kubeconfig context",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f083",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "wrong",
        "kubeconfig",
        "context"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "namespace or object differs from intended deployment. Default context can point to another cluster. Test with a second local context and confirm preflight fails closed."
    },
    {
      "id": "F084",
      "kind": "failure",
      "title": "Wrong namespace",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f084",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "wrong",
        "namespace"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "deployments.apps web not found. Resource exists outside default namespace. Verify namespace and discover matching deployment."
    },
    {
      "id": "F085",
      "kind": "failure",
      "title": "Manifest API version removed",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f085",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "manifest",
        "api",
        "version",
        "removed"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "no matches for kind Ingress. Modern cluster removed extensions API for Ingress. Migrate backend schema too and run server dry run."
    },
    {
      "id": "F086",
      "kind": "failure",
      "title": "Container not ready",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f086",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "container",
        "not",
        "ready"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "Readiness probe failed HTTP statuscode 404. Probe route differs from service contract. Verify Pod Ready and EndpointSlice routing."
    },
    {
      "id": "F087",
      "kind": "failure",
      "title": "ImagePullBackOff",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f087",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "imagepullbackoff"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "Failed to pull image and ImagePullBackOff. Reference doesn't exist or credentials are not scoped. Check actual candidate digest and probe Registry access before applying."
    },
    {
      "id": "F088",
      "kind": "failure",
      "title": "CrashLoopBackOff missing required config",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f088",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "crashloopbackoff",
        "missing",
        "required",
        "config"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "back-off restarting failed container. Process starts without required configuration variable. Check previous logs and mount the referenced ConfigMap."
    },
    {
      "id": "F089",
      "kind": "failure",
      "title": "Resource unable to schedule",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f089",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "resource",
        "unable",
        "to",
        "schedule"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "FailedScheduling Insufficient cpu/memory. Requests exceed eligible node capacity in lab. Set based on observed workload and recheck scheduling events."
    },
    {
      "id": "F090",
      "kind": "failure",
      "title": "Service selects wrong label",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f090",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "service",
        "selects",
        "wrong",
        "label"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "EndpointSlices contain no ready endpoints. Selector does not match Pod labels. Compare selectors to actual Pods and smoke-test the Service."
    },
    {
      "id": "F091",
      "kind": "failure",
      "title": "Service port target mismatch",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f091",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "service",
        "port",
        "target",
        "mismatch"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": null,
      "notes": "connection refused despite healthy Pods. Service maps traffic to a port the app doesn't use. Probe Service and Pod directly to isolate routing."
    },
    {
      "id": "F092",
      "kind": "failure",
      "title": "Rollback fights GitOps desired state",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f092",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "rollback",
        "fights",
        "gitops",
        "desired",
        "state"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "reverted image reappears. Controller reconciles toward current Git target. Review and submit revert via approved GitOps path. Observe expected revision and rollout."
    },
    {
      "id": "F093",
      "kind": "failure",
      "title": "Apply waits incorrectly for health",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f093",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "kubernetes"
      ],
      "keywords": [
        "apply",
        "waits",
        "incorrectly",
        "for",
        "health"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "run reports success while Pods fail. Apply returns before deployment convergence. Force a bad readiness fixture and verify pipeline fails."
    },
    {
      "id": "F094",
      "kind": "failure",
      "title": "Namespace termination hung on finalizer",
      "category": "kubernetes",
      "difficulty": "intermediate",
      "path": "failures-kubernetes.md#f094",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "jq",
        "kubernetes"
      ],
      "keywords": [
        "namespace",
        "termination",
        "hung",
        "on",
        "finalizer"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "namespace stays Terminating. A controller may need to finish resource cleanup. Restore controller health and verify dependent resources before considering owner-approved recovery."
    },
    {
      "id": "F095",
      "kind": "failure",
      "title": "DNS search path differs within runner",
      "category": "networking",
      "difficulty": "intermediate",
      "path": "failures-networking.md#f095",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "networking"
      ],
      "keywords": [
        "dns",
        "search",
        "path",
        "differs",
        "within",
        "runner"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "Could not resolve host api. Short name resolves differently outside target namespace. Use an approved fully qualified name reachable from job network."
    },
    {
      "id": "F096",
      "kind": "failure",
      "title": "TLS host mismatch under IP probe",
      "category": "networking",
      "difficulty": "intermediate",
      "path": "failures-networking.md#f096",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "networking"
      ],
      "keywords": [
        "tls",
        "host",
        "mismatch",
        "under",
        "ip",
        "probe"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "certificate subject name does not match. Certificate covers hostname and expects SNI. Verify chain and expected hostname without disabling TLS verification."
    },
    {
      "id": "F097",
      "kind": "failure",
      "title": "HTTP error swallowed by default curl",
      "category": "networking",
      "difficulty": "intermediate",
      "path": "failures-networking.md#f097",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "networking"
      ],
      "keywords": [
        "http",
        "error",
        "swallowed",
        "by",
        "default",
        "curl"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "step passes despite error response. Default curl can return success for HTTP 500. Test against an endpoint returning 500."
    },
    {
      "id": "F098",
      "kind": "failure",
      "title": "No request deadline",
      "category": "networking",
      "difficulty": "intermediate",
      "path": "failures-networking.md#f098",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "networking"
      ],
      "keywords": [
        "no",
        "request",
        "deadline"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "step stalls until outer job timeout. A stalled remote service can hold a job indefinitely. Test against a fixture that delays headers."
    },
    {
      "id": "F099",
      "kind": "failure",
      "title": "Retry loop duplicates a mutation",
      "category": "networking",
      "difficulty": "intermediate",
      "path": "failures-networking.md#f099",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "networking"
      ],
      "keywords": [
        "retry",
        "loop",
        "duplicates",
        "a",
        "mutation"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "duplicate deployment requests. Timed-out writes can already be accepted server-side. Require server-enforced idempotency plus a way to query state."
    },
    {
      "id": "F100",
      "kind": "failure",
      "title": "Rate-limit response misread as no data",
      "category": "networking",
      "difficulty": "intermediate",
      "path": "failures-networking.md#f100",
      "platforms": [
        "local-lab",
        "github-actions",
        "gitea-actions"
      ],
      "tools": [
        "curl",
        "jq",
        "networking"
      ],
      "keywords": [
        "rate",
        "limit",
        "response",
        "misread",
        "as",
        "no",
        "data"
      ],
      "prerequisites": "Disposable negative test fixture",
      "related": [],
      "validation": {
        "status": "syntax-validated",
        "static_check": "Bash parse"
      },
      "documentation": null,
      "notes": "legitimate records appear to vanish. HTTP failure and unexpected shape were coerced to empty result. Test fixture 429 and follow bounded Retry-After policy for safe reads."
    },
    {
      "id": "T01",
      "kind": "template",
      "title": "First Gitea CI workflow",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t01",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "bash",
        "gitea",
        "gitea-actions"
      ],
      "keywords": [
        "first",
        "gitea",
        "ci",
        "workflow"
      ],
      "prerequisites": "README.md tracked",
      "related": [
        "CICD-001",
        "CICD-013"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "A runner probes the checked-out commit and fails if the fixture file is removed."
    },
    {
      "id": "T02",
      "kind": "template",
      "title": "GitHub PR verification with an aggregate gate",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t02",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions"
      ],
      "keywords": [
        "github",
        "pr",
        "verification",
        "with",
        "an",
        "aggregate",
        "gate"
      ],
      "prerequisites": "README.md and a two-commit test repository",
      "related": [
        "CICD-018",
        "CICD-491"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Require the named gate in branch protection. A deliberately missing README makes the gate fail even when verify is skipped."
    },
    {
      "id": "T03",
      "kind": "template",
      "title": "Python CI with uv",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t03",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "pytest",
        "python",
        "uv"
      ],
      "keywords": [
        "python",
        "ci",
        "with",
        "uv"
      ],
      "prerequisites": "pyproject.toml, uv.lock and pytest/Ruff in the default dev dependency group",
      "related": [
        "CICD-066",
        "CICD-067"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "The workflow provisions pinned uv. Stale lock state, a lint problem, or a failing test prevents a green check."
    },
    {
      "id": "T04",
      "kind": "template",
      "title": "Node test and build",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t04",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "node"
      ],
      "keywords": [
        "node",
        "test",
        "and",
        "build"
      ],
      "prerequisites": "package.json, package-lock.json, test and build scripts, Node 22",
      "related": [
        "CICD-069",
        "CICD-070"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use the project layout and inspect dist only after tests pass."
    },
    {
      "id": "T05",
      "kind": "template",
      "title": "Go verified release build",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t05",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "go"
      ],
      "keywords": [
        "go",
        "verified",
        "release",
        "build"
      ],
      "prerequisites": "go.mod, cmd/app and approved Go toolchain",
      "related": [
        "CICD-072",
        "CICD-073"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Verify modules and run race detection before building the Linux candidate."
    },
    {
      "id": "T06",
      "kind": "template",
      "title": "Java Maven verification",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t06",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "maven"
      ],
      "keywords": [
        "java",
        "maven",
        "verification"
      ],
      "prerequisites": "mvnw with executable mode, pom.xml and approved JDK",
      "related": [
        "CICD-076"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Maven verify includes project-configured integration tests. Check candidate count and filename."
    },
    {
      "id": "T07",
      "kind": "template",
      "title": "Rust locked build",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t07",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "go",
        "rust"
      ],
      "keywords": [
        "rust",
        "locked",
        "build"
      ],
      "prerequisites": "Cargo.lock, rustfmt and approved Rust toolchain",
      "related": [
        "CICD-074",
        "CICD-075"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Validate dependency and compiler versions independently."
    },
    {
      "id": "T08",
      "kind": "template",
      "title": ".NET locked build and tests",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t08",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions"
      ],
      "keywords": [
        "net",
        "locked",
        "build",
        "and",
        "tests"
      ],
      "prerequisites": "global.json plus a committed NuGet lock and installed SDK",
      "related": [
        "CICD-078"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Read .trx files for failures and pin the exact SDK in runner setup."
    },
    {
      "id": "T09",
      "kind": "template",
      "title": "CMake native build and tests",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t09",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions"
      ],
      "keywords": [
        "cmake",
        "native",
        "build",
        "and",
        "tests"
      ],
      "prerequisites": "CMakeLists.txt enables testing and compiler is installed",
      "related": [
        "CICD-079"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Removing tests fails the final stage instead of silently passing."
    },
    {
      "id": "T10",
      "kind": "template",
      "title": "TypeScript monorepo compilation",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t10",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "node",
        "pnpm"
      ],
      "keywords": [
        "typescript",
        "monorepo",
        "compilation"
      ],
      "prerequisites": "pinned pnpm and Corepack on runner, pnpm-lock.yaml, workspace scripts",
      "related": [
        "CICD-388",
        "CICD-393"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Build workspace packages only after lint and lock verification."
    },
    {
      "id": "T11",
      "kind": "template",
      "title": "Python package and artifact handoff",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t11",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "python",
        "uv"
      ],
      "keywords": [
        "python",
        "package",
        "and",
        "artifact",
        "handoff"
      ],
      "prerequisites": "Python package metadata, pinned uv available and importable test package",
      "related": [
        "CICD-090",
        "CICD-093",
        "CICD-094"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Verifies a fresh install. Enable artifact collection for dist and wheel.sha256."
    },
    {
      "id": "T12",
      "kind": "template",
      "title": "JUnit and coverage gate",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t12",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "pytest",
        "uv"
      ],
      "keywords": [
        "junit",
        "and",
        "coverage",
        "gate"
      ],
      "prerequisites": "Python repo with pinned uv, pytest and pytest-cov",
      "related": [
        "CICD-062",
        "CICD-063"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Read test failure and coverage thresholds independently. Collect reports even on a failed gate."
    },
    {
      "id": "T13",
      "kind": "template",
      "title": "Compose PostgreSQL integration",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t13",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "docker",
        "github-actions",
        "pytest",
        "uv"
      ],
      "keywords": [
        "compose",
        "postgresql",
        "integration"
      ],
      "prerequisites": "compose.yaml has db healthcheck; Python tests and pinned uv available",
      "related": [
        "CICD-068",
        "CICD-340"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Run with an isolated per-run database. Configure test DSN with the port exposed by the fixture."
    },
    {
      "id": "T14",
      "kind": "template",
      "title": "Frontend browser testing",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t14",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "node"
      ],
      "keywords": [
        "frontend",
        "browser",
        "testing"
      ],
      "prerequisites": "package lock and Playwright Chromium project with local webServer config",
      "related": [
        "CICD-083"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Test trace collection on a failed assertion."
    },
    {
      "id": "T15",
      "kind": "template",
      "title": "Container build and local smoke test",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t15",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "curl",
        "docker",
        "github-actions",
        "jq"
      ],
      "keywords": [
        "container",
        "build",
        "and",
        "local",
        "smoke",
        "test"
      ],
      "prerequisites": "Dockerfile serves /healthz on port 8000",
      "related": [
        "CICD-112",
        "CICD-282"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Verify the actual built image. Use a runner with isolated ports."
    },
    {
      "id": "T16",
      "kind": "template",
      "title": "Multi-architecture image validation",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t16",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "docker",
        "github-actions"
      ],
      "keywords": [
        "multi",
        "architecture",
        "image",
        "validation"
      ],
      "prerequisites": "native amd64 and arm64 workers or approved QEMU Buildx support",
      "related": [
        "CICD-109",
        "CICD-126"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Export both targets and test the artifact on both target architectures before release."
    },
    {
      "id": "T17",
      "kind": "template",
      "title": "GHCR immutable candidate publish",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t17",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "docker",
        "github-actions",
        "python"
      ],
      "keywords": [
        "ghcr",
        "immutable",
        "candidate",
        "publish"
      ],
      "prerequisites": "Dockerfile, approved registry access and configured staging environment",
      "related": [
        "CICD-123",
        "CICD-124"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Registry metadata must identify the pushed candidate. Use package visibility appropriate for the repository."
    },
    {
      "id": "T18",
      "kind": "template",
      "title": "Gitea registry candidate publish",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t18",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "bash",
        "docker",
        "gitea",
        "gitea-actions"
      ],
      "keywords": [
        "gitea",
        "registry",
        "candidate",
        "publish"
      ],
      "prerequisites": "approved registry, scoped Gitea access token, buildable Dockerfile, provisioned trusted runner",
      "related": [
        "CICD-202",
        "CICD-205"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Only run trusted main refs on a dedicated lab runner. Configure compatible CLI and protected secrets."
    },
    {
      "id": "T19",
      "kind": "template",
      "title": "Release archive verification",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t19",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions"
      ],
      "keywords": [
        "release",
        "archive",
        "verification"
      ],
      "prerequisites": "dist/app.tar.gz is committed only as a synthetic fixture or produced by a prior build in the same job",
      "related": [
        "CICD-093",
        "CICD-131"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "A changed archive byte fails verification. Establish artifact provenance for real releases."
    },
    {
      "id": "T20",
      "kind": "template",
      "title": "Helm render and test staging",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t20",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "helm",
        "kubernetes"
      ],
      "keywords": [
        "helm",
        "render",
        "and",
        "test",
        "staging"
      ],
      "prerequisites": "lab namespace staging, chart helm/web and configured kubecontext",
      "related": [
        "CICD-141",
        "CICD-148",
        "CICD-149"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Add a Helm test hook and verify intended staging context."
    },
    {
      "id": "T21",
      "kind": "template",
      "title": "Kubernetes digest staging rollout",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t21",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "curl",
        "github-actions",
        "jq",
        "kubernetes"
      ],
      "keywords": [
        "kubernetes",
        "digest",
        "staging",
        "rollout"
      ],
      "prerequisites": "staging Deployment web, container web and scoped kubecontext",
      "related": [
        "CICD-134",
        "CICD-135"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Verify API convergence and independent traffic health."
    },
    {
      "id": "T22",
      "kind": "template",
      "title": "Reviewed lab rollback",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t22",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "curl",
        "github-actions",
        "kubernetes"
      ],
      "keywords": [
        "reviewed",
        "lab",
        "rollback",
        "automatically roll back a failed kubernetes deployment",
        "known-good digest"
      ],
      "prerequisites": "immutable known-good image and reviewed compatibility assessment",
      "related": [
        "CICD-167",
        "CICD-304"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use a known-good digest and do not overwrite GitOps desired state imperatively."
    },
    {
      "id": "T23",
      "kind": "template",
      "title": "GitOps pull request validation",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t23",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "kubernetes"
      ],
      "keywords": [
        "gitops",
        "pull",
        "request",
        "validation"
      ],
      "prerequisites": "overlays in environments/staging and kubectl client",
      "related": [
        "CICD-168",
        "CICD-293"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Prove the artifact remains immutable. Add schema/policy validation before applying."
    },
    {
      "id": "T24",
      "kind": "template",
      "title": "Dependency and image scanning",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t24",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "docker",
        "github-actions",
        "trivy"
      ],
      "keywords": [
        "dependency",
        "and",
        "image",
        "scanning"
      ],
      "prerequisites": "preprovisioned scanner and Docker builder, trusted CI runner",
      "related": [
        "CICD-176",
        "CICD-492"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Remove trust in mutable tags by storing the tested digest. Use reviewed expires-on exceptions."
    },
    {
      "id": "T25",
      "kind": "template",
      "title": "Pipeline diagnostics and evidence",
      "category": "templates-foundation",
      "difficulty": "intermediate",
      "path": "templates-foundation.md#t25",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions"
      ],
      "keywords": [
        "pipeline",
        "diagnostics",
        "and",
        "evidence"
      ],
      "prerequisites": "disposable fixture and approved sanitized evidence retention",
      "related": [
        "CICD-180",
        "CICD-198"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "A short-lived artifact preserves basic runner evidence without collecting credentials."
    },
    {
      "id": "T26",
      "kind": "template",
      "title": "Self-hosted Gitea runner infrastructure",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t26",
      "platforms": [
        "gitea-actions"
      ],
      "tools": [
        "bash",
        "curl",
        "gitea",
        "gitea-actions",
        "jq"
      ],
      "keywords": [
        "self",
        "hosted",
        "gitea",
        "runner",
        "infrastructure",
        "gitea act_runner local homelab",
        "runner",
        "github compatibility"
      ],
      "prerequisites": "registered act_runner, dedicated trusted Linux runner, Gitea Actions enabled",
      "related": [
        "CICD-201",
        "CICD-204",
        "CICD-205",
        "CICD-215"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.gitea.com/usage/actions/overview",
      "notes": "Follow CICD-201 to CICD-215 to provision and constrain runner. A successful service probe confirms checkout and route wiring. On a dedicated runner VM, create a volume for the Gitea runner state, register the runner against your Gitea instance and start it in Docker or as a dedicated system service. Configure GITEA_URL as a repository variable that the job container can reach. Provision trust for any private CA and reserve a different runner label for privileged workloads."
    },
    {
      "id": "T27",
      "kind": "template",
      "title": "Autoscaling Kubernetes CI runners",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t27",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "helm",
        "kubernetes"
      ],
      "keywords": [
        "autoscaling",
        "kubernetes",
        "ci",
        "runners"
      ],
      "prerequisites": "disposable cluster with ARC controller, trusted installed runner group and approved scale-set values",
      "related": [
        "CICD-209",
        "CICD-210"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "After bootstrap, queue a known trusted job targeting ci-runners and measure min/max capacity."
    },
    {
      "id": "T28",
      "kind": "template",
      "title": "Multi-repository workflow orchestration",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t28",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "github-cli"
      ],
      "keywords": [
        "multi",
        "repository",
        "workflow",
        "orchestration"
      ],
      "prerequisites": "targets.txt holds one allowlisted repo per line; scoped GitHub App token and downstream consume.yml manual trigger",
      "related": [
        "CICD-218",
        "CICD-224",
        "CICD-230"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Replace example-org with your approved organization. Downstream jobs must deduplicate SHA and emit correlation evidence."
    },
    {
      "id": "T29",
      "kind": "template",
      "title": "Terraform plan, approval and apply",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t29",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "aws",
        "bash",
        "github-actions",
        "jq",
        "terraform"
      ],
      "keywords": [
        "terraform",
        "plan",
        "approval",
        "and",
        "apply"
      ],
      "prerequisites": "Pinned Terraform and AWS CLI, approved staging backend, restricted KMS-encrypted plan bucket, trusted runner identity and a staging approval rule. Reviewers require read-only access to the private plan review prefix",
      "related": [
        "CICD-235",
        "CICD-237",
        "CICD-239"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "The plan job stores a restricted review file and an immutable per-attempt binary plan with its checksum. The staging environment reviewer checks that exact plan summary before allowing apply. Use separate scoped credentials for planning and applying, and emergency recovery if state moves. Do not rerun only the apply job after a failed attempt, because the run attempt is part of the plan key."
    },
    {
      "id": "T30",
      "kind": "template",
      "title": "Terraform drift detection and remediation",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t30",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "terraform"
      ],
      "keywords": [
        "terraform",
        "drift",
        "detection",
        "and",
        "remediation"
      ],
      "prerequisites": "Terraform provisioned, read-only plan identity and disposable approved backend",
      "related": [
        "CICD-240",
        "CICD-241"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "The drift job never applies a refresh plan automatically. Remediate through reviewed source and T29, then rerun."
    },
    {
      "id": "T31",
      "kind": "template",
      "title": "Ansible server provisioning",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t31",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "ansible",
        "bash",
        "github-actions"
      ],
      "keywords": [
        "ansible",
        "server",
        "provisioning"
      ],
      "prerequisites": "pinned Ansible and collections, approved staging SSH trust and inventory",
      "related": [
        "CICD-247",
        "CICD-251",
        "CICD-260"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "The canary provision and health gate precede a separately approved wider rollout."
    },
    {
      "id": "T32",
      "kind": "template",
      "title": "Automated Linux security patching",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t32",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "ansible",
        "bash",
        "github-actions"
      ],
      "keywords": [
        "automated",
        "linux",
        "security",
        "patching"
      ],
      "prerequisites": "approved Debian canary inventory, reviewed patch and health playbooks with serial batches",
      "related": [
        "CICD-255",
        "CICD-258"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Review allowed package origins and reboot strategy. Run the workflow only during an approved patch window."
    },
    {
      "id": "T33",
      "kind": "template",
      "title": "AWS ECS continuous delivery",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t33",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "aws",
        "bash",
        "github-actions"
      ],
      "keywords": [
        "aws",
        "ecs",
        "continuous",
        "delivery"
      ],
      "prerequisites": "trusted AWS CLI identity, ECS cluster, service and immutable registered task definition",
      "related": [
        "CICD-261",
        "CICD-265"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Stable alone is insufficient when deployments roll back. Verify intended revision and application health."
    },
    {
      "id": "T34",
      "kind": "template",
      "title": "AWS Lambda serverless delivery",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t34",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "aws",
        "bash",
        "github-actions",
        "jq"
      ],
      "keywords": [
        "aws",
        "lambda",
        "serverless",
        "delivery"
      ],
      "prerequisites": "build inputs in lambda/, Python Lambda function, authorized CLI identity and test function",
      "related": [
        "CICD-267"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Smoke-test the version before moving an alias through a reviewed step."
    },
    {
      "id": "T35",
      "kind": "template",
      "title": "Azure AKS continuous delivery",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t35",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "azure",
        "bash",
        "curl",
        "github-actions",
        "kubernetes"
      ],
      "keywords": [
        "azure",
        "aks",
        "continuous",
        "delivery"
      ],
      "prerequisites": "preconfigured federated Azure CLI session, kubelogin and scoped AKS RBAC",
      "related": [
        "CICD-270",
        "CICD-272"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Verify subscription and RBAC. Use the scoped runner identity instead of admin kubeconfig."
    },
    {
      "id": "T36",
      "kind": "template",
      "title": "Google GKE continuous delivery",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t36",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "curl",
        "gcp",
        "github-actions",
        "kubernetes"
      ],
      "keywords": [
        "google",
        "gke",
        "continuous",
        "delivery"
      ],
      "prerequisites": "scoped gcloud federation, gke-gcloud-auth-plugin and staging RBAC",
      "related": [
        "CICD-273",
        "CICD-275"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Verify project/location and match test digest. Add separate endpoint authentication as needed."
    },
    {
      "id": "T37",
      "kind": "template",
      "title": "Multi-cluster Kubernetes delivery",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t37",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "jq",
        "kubernetes"
      ],
      "keywords": [
        "multi",
        "cluster",
        "kubernetes",
        "delivery"
      ],
      "prerequisites": "two isolated staging cluster contexts, scoped identity and manifests/web.yaml",
      "related": [
        "CICD-290"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "The second write requires primary success. Watch each cluster independently and preserve partial deployment state."
    },
    {
      "id": "T38",
      "kind": "template",
      "title": "Argo CD ApplicationSet delivery",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t38",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "argo-cd",
        "bash",
        "github-actions",
        "go",
        "kubernetes"
      ],
      "keywords": [
        "argo",
        "cd",
        "applicationset",
        "delivery"
      ],
      "prerequisites": "staging Argo CD installed with authorized cluster access and reviewed ApplicationSet file",
      "related": [
        "CICD-291",
        "CICD-292"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use a scoped Argo Project and verify the generated Applications reference approved repositories."
    },
    {
      "id": "T39",
      "kind": "template",
      "title": "Flux CD GitOps delivery",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t39",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "flux",
        "github-actions",
        "kubernetes"
      ],
      "keywords": [
        "flux",
        "cd",
        "gitops",
        "delivery"
      ],
      "prerequisites": "Flux installed, approved staging Kustomization and GitRepository",
      "related": [
        "CICD-299",
        "CICD-300"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Review desired state in Git. The pipeline reconciles and verifies, while rollback uses a reviewed revert."
    },
    {
      "id": "T40",
      "kind": "template",
      "title": "Metric-driven progressive delivery",
      "category": "templates-infrastructure",
      "difficulty": "intermediate",
      "path": "templates-infrastructure.md#t40",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "go",
        "jq",
        "kubernetes"
      ],
      "keywords": [
        "metric",
        "driven",
        "progressive",
        "delivery"
      ],
      "prerequisites": "Argo Rollouts, Prometheus with loaded baseline rule and reviewed rollout/analysis manifests",
      "related": [
        "CICD-301",
        "CICD-303",
        "CICD-304"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Bind evidence to the current Rollout in real CI. Use a bounded metric window and a minimum sample gate."
    },
    {
      "id": "T41",
      "kind": "template",
      "title": "Zero-downtime database migration",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t41",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "pytest"
      ],
      "keywords": [
        "zero",
        "downtime",
        "database",
        "migration"
      ],
      "prerequisites": "previous app fixture, disposable DATABASE_URL and expand-only Alembic migration with compatibility tests",
      "related": [
        "CICD-315",
        "CICD-318",
        "CICD-320"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Run the old app against the expanded schema. Separate backfill and contract with independent promotion."
    },
    {
      "id": "T42",
      "kind": "template",
      "title": "Database backup and recovery",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t42",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "postgresql"
      ],
      "keywords": [
        "database",
        "backup",
        "and",
        "recovery"
      ],
      "prerequisites": "test DATABASE_URL, a different disposable RESTORE_URL, rights to dump/restore, invariant SQL",
      "related": [
        "CICD-312",
        "CICD-313",
        "CICD-350"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Never publish backup bytes in CI logs or general artifacts. Verify restore destination through owner-approved inventory."
    },
    {
      "id": "T43",
      "kind": "template",
      "title": "Microservices contract testing",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t43",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "pytest",
        "uv"
      ],
      "keywords": [
        "microservices",
        "contract",
        "testing"
      ],
      "prerequisites": "consumer and provider contract directories, pinned test toolchain and local fixtures",
      "related": [
        "CICD-329",
        "CICD-330"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use the consumer-generated contract bytes in provider verification. Let mismatch block promotion."
    },
    {
      "id": "T44",
      "kind": "template",
      "title": "Distributed systems integration testing",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t44",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "docker",
        "github-actions",
        "pytest"
      ],
      "keywords": [
        "distributed",
        "systems",
        "integration",
        "testing"
      ],
      "prerequisites": "pinned Compose fixture with RabbitMQ and Redis healthchecks and approved isolated runner",
      "related": [
        "CICD-338",
        "CICD-340",
        "CICD-341"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Verify redelivery/idempotency using synthetic messages. Keep evidence of test outcomes."
    },
    {
      "id": "T45",
      "kind": "template",
      "title": "Chaos engineering pipeline",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t45",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "curl",
        "github-actions",
        "kubernetes"
      ],
      "keywords": [
        "chaos",
        "engineering",
        "pipeline"
      ],
      "prerequisites": "isolated chaos-lab cluster only, kubectl scoped to lab, deployment web and health fixture",
      "related": [
        "CICD-346",
        "CICD-347",
        "CICD-348"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Collect continuous probe data when measuring disruption. Never run against production or an unidentified context."
    },
    {
      "id": "T46",
      "kind": "template",
      "title": "Observability configuration delivery",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t46",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "loki",
        "opentelemetry",
        "prometheus"
      ],
      "keywords": [
        "observability",
        "configuration",
        "delivery"
      ],
      "prerequisites": "pinned promtool, Loki and otelcol-contrib versions and lab config dry-run fixtures",
      "related": [
        "CICD-351",
        "CICD-352",
        "CICD-355",
        "CICD-356"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "All artifacts validate before config is delivered through GitOps."
    },
    {
      "id": "T47",
      "kind": "template",
      "title": "SLO-governed deployment",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t47",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "curl",
        "github-actions",
        "jq",
        "kubernetes",
        "prometheus"
      ],
      "keywords": [
        "slo",
        "governed",
        "deployment"
      ],
      "prerequisites": "SLO query, protected staging identity and digest-pinned candidate",
      "related": [
        "CICD-359",
        "CICD-360"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Missing samples fail closed. Review the query window and gate limits with the SLO owner."
    },
    {
      "id": "T48",
      "kind": "template",
      "title": "Compliance-enforced software delivery",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t48",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "jq",
        "opa"
      ],
      "keywords": [
        "compliance",
        "enforced",
        "software",
        "delivery"
      ],
      "prerequisites": "stored Conftest policies, policy tests and reviewed cloud manifest fixture",
      "related": [
        "CICD-244",
        "CICD-369",
        "CICD-380"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Known-bad fixture must be rejected by policy tests. Keep audit evidence alongside immutable manifests."
    },
    {
      "id": "T49",
      "kind": "template",
      "title": "Signed and attested software supply chain",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t49",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions"
      ],
      "keywords": [
        "signed",
        "and",
        "attested",
        "software",
        "supply",
        "chain"
      ],
      "prerequisites": "trusted GitHub-hosted runner, supported attestation plan, files under app/",
      "related": [
        "CICD-376",
        "CICD-377"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Attest after verifying bytes. In a separate deployment workflow use CICD-377 to verify trusted repository and signer identity."
    },
    {
      "id": "T50",
      "kind": "template",
      "title": "Large-scale monorepo CI",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t50",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "node",
        "pnpm"
      ],
      "keywords": [
        "large",
        "scale",
        "monorepo",
        "ci"
      ],
      "prerequisites": "package lock, Node/pnpm and Nx project graph, base reference origin/main",
      "related": [
        "CICD-381",
        "CICD-383",
        "CICD-395"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Running on a candidate ref should include downstream dependents. Review main-base behavior for this manual template."
    },
    {
      "id": "T51",
      "kind": "template",
      "title": "Pull request preview environments",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t51",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "helm",
        "kubernetes"
      ],
      "keywords": [
        "pull",
        "request",
        "preview",
        "environments"
      ],
      "prerequisites": "trusted controller sets numeric PREVIEW_PR and digest, Helm chart and scoped preview namespace provisioner",
      "related": [
        "CICD-276",
        "CICD-396",
        "CICD-404",
        "CICD-405"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Resolve trusted PR metadata in the controller. Pair with CICD-404 and CICD-405 for teardown and expiry."
    },
    {
      "id": "T52",
      "kind": "template",
      "title": "Internal developer platform golden path",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t52",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "docker",
        "github-actions",
        "pytest",
        "uv"
      ],
      "keywords": [
        "internal",
        "developer",
        "platform",
        "golden",
        "path"
      ],
      "prerequisites": "Backstage catalog-info.yaml, CODEOWNERS and Python service fixture generated from trusted template",
      "related": [
        "CICD-411",
        "CICD-416",
        "CICD-417"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "A newly scaffolded repo must identify ownership and build cleanly before catalog onboarding."
    },
    {
      "id": "T53",
      "kind": "template",
      "title": "Self-service infrastructure provisioning",
      "category": "templates-reliability",
      "difficulty": "intermediate",
      "path": "templates-reliability.md#t53",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "opa",
        "terraform"
      ],
      "keywords": [
        "self",
        "service",
        "infrastructure",
        "provisioning"
      ],
      "prerequisites": "reviewed request.tfvars, infra backend, terraform, Conftest policy and request approval",
      "related": [
        "CICD-235",
        "CICD-244",
        "CICD-418",
        "CICD-419"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use a trusted protected worker. Treat the request plan as sensitive and apply only an approved request."
    },
    {
      "id": "T54",
      "kind": "template",
      "title": "RAG application evaluation and deployment",
      "category": "templates-inference",
      "difficulty": "intermediate",
      "path": "templates-inference.md#t54",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "curl",
        "github-actions",
        "jq",
        "kubernetes",
        "pytest",
        "uv"
      ],
      "keywords": [
        "rag",
        "application",
        "evaluation",
        "and",
        "deployment"
      ],
      "prerequisites": "disposable service, synthetic gold retrieval data, pinned uv and approved staging identity",
      "related": [
        "CICD-433",
        "CICD-434",
        "CICD-435"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "The last step probes the application endpoint. Keep retrieval and generation metrics distinct."
    },
    {
      "id": "T55",
      "kind": "template",
      "title": "LLM model validation and promotion",
      "category": "templates-inference",
      "difficulty": "intermediate",
      "path": "templates-inference.md#t55",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "jq",
        "prometheus",
        "pytest"
      ],
      "keywords": [
        "llm",
        "model",
        "validation",
        "and",
        "promotion"
      ],
      "prerequisites": "approved model artifact under model/, checksums, pinned evaluation fixture, yq and tracked environments/staging/model.yaml",
      "related": [
        "CICD-427",
        "CICD-432",
        "CICD-439"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Submit the validated desired-state artifact via a reviewed GitOps change. Verify the digest came from the same approved model manifest that supplied the file checksums."
    },
    {
      "id": "T56",
      "kind": "template",
      "title": "vLLM inference infrastructure delivery",
      "category": "templates-inference",
      "difficulty": "intermediate",
      "path": "templates-inference.md#t56",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "curl",
        "github-actions",
        "gpu",
        "jq",
        "kubernetes",
        "vllm"
      ],
      "keywords": [
        "vllm",
        "inference",
        "infrastructure",
        "delivery",
        "gpu",
        "model serving",
        "kubernetes",
        "vllm"
      ],
      "prerequisites": "dedicated trusted GPU runner, approved vLLM dependency and GPU-enabled staging deployment",
      "related": [
        "CICD-441",
        "CICD-446",
        "CICD-450"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Treat this model-list check as a readiness probe and run T57 or CICD-450 for a separate streamed completion and latency gate."
    },
    {
      "id": "T57",
      "kind": "template",
      "title": "Multi-engine inference benchmarking",
      "category": "templates-inference",
      "difficulty": "intermediate",
      "path": "templates-inference.md#t57",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "gpu",
        "jq",
        "prometheus",
        "sglang",
        "vllm"
      ],
      "keywords": [
        "multi",
        "engine",
        "inference",
        "benchmarking"
      ],
      "prerequisites": "running vLLM and SGLang fixture endpoints, shared model ID and tokenizer, vLLM benchmark CLI",
      "related": [
        "CICD-447",
        "CICD-450",
        "CICD-451",
        "CICD-452"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Control hardware, warm-up and profile. Repeat alternating order to reduce measurement bias."
    },
    {
      "id": "T58",
      "kind": "template",
      "title": "GPU cost-performance optimization",
      "category": "templates-inference",
      "difficulty": "intermediate",
      "path": "templates-inference.md#t58",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "jq"
      ],
      "keywords": [
        "gpu",
        "cost",
        "performance",
        "optimization",
        "inference",
        "tokens",
        "cost performance",
        "gpu"
      ],
      "prerequisites": "baseline.json and candidate.json with validated completed, elapsed_seconds, output_tokens and hourly_cost per measured run",
      "related": [
        "CICD-455",
        "CICD-469",
        "CICD-470"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Use equal load and matching GPU costs. A faster candidate must still meet unit-cost budget."
    },
    {
      "id": "T59",
      "kind": "template",
      "title": "Mobile application release pipeline",
      "category": "templates-inference",
      "difficulty": "intermediate",
      "path": "templates-inference.md#t59",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "github-actions",
        "github-cli"
      ],
      "keywords": [
        "mobile",
        "application",
        "release",
        "pipeline"
      ],
      "prerequisites": "Android Gradle app, fixture keystore in trusted isolated signing environment, approved version tag and release",
      "related": [
        "CICD-473",
        "CICD-475",
        "CICD-476",
        "CICD-477",
        "CICD-478"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "Review certificate and checksum before distribution. Keep keystore outside the checkout. Android is materialized here, and CICD-475–478 documents the parallel iOS route."
    },
    {
      "id": "T60",
      "kind": "template",
      "title": "Enterprise multi-environment delivery platform",
      "category": "templates-inference",
      "difficulty": "intermediate",
      "path": "templates-inference.md#t60",
      "platforms": [
        "github-actions"
      ],
      "tools": [
        "bash",
        "curl",
        "github-actions",
        "jq",
        "kubernetes"
      ],
      "keywords": [
        "enterprise",
        "multi",
        "environment",
        "delivery",
        "platform"
      ],
      "prerequisites": "immutable tested image and protected staging/production environments, audited source commit, mapped namespace and health per environment",
      "related": [
        "CICD-305",
        "CICD-491",
        "CICD-493",
        "CICD-495"
      ],
      "validation": {
        "status": "syntax-validated",
        "static_check": "YAML parse"
      },
      "documentation": "https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax",
      "notes": "The same candidate moves through separate gated environments. Use distinct credentials and explicit rollback ownership."
    },
    {
      "id": "P01",
      "kind": "pattern",
      "title": "Sequential pipeline",
      "category": "execution-and-optimization",
      "difficulty": "intermediate",
      "path": "patterns.md#p01",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "sequential",
        "pipeline"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-025",
        "CICD-086"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "A small codebase needs ordered checks with simple failure isolation. One job can share its checkout, but long independent steps extend the critical path. Time each step and inject a failing lint assertion to prove packaging is skipped."
    },
    {
      "id": "P02",
      "kind": "pattern",
      "title": "Fork and join",
      "category": "execution-and-optimization",
      "difficulty": "intermediate",
      "path": "patterns.md#p02",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "fork",
        "and",
        "join"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-018",
        "CICD-491"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Independent verifications share a source commit and must all succeed. Split jobs use isolated filesystems and some may queue if runner capacity is low. Fail one limb and verify the stable named check fails without starting publish."
    },
    {
      "id": "P03",
      "kind": "pattern",
      "title": "Directed acyclic graph",
      "category": "execution-and-optimization",
      "difficulty": "intermediate",
      "path": "patterns.md#p03",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "directed",
        "acyclic",
        "graph"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-017",
        "CICD-222"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Components have partial dependencies and can start as soon as their upstream artifact exists. Incorrect edges introduce races or unnecessary serialization. Inspect the DAG and start times, then fail one required upstream."
    },
    {
      "id": "P04",
      "kind": "pattern",
      "title": "Conditional branch",
      "category": "execution-and-optimization",
      "difficulty": "intermediate",
      "path": "patterns.md#p04",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "conditional",
        "branch"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-221",
        "CICD-381",
        "CICD-385"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Monorepo changes affect a subset of components. Base-ref errors and shared files can silently omit required checks. Compare isolated service, shared module and docs-only commits against the expected check set."
    },
    {
      "id": "P05",
      "kind": "pattern",
      "title": "Dynamic matrix",
      "category": "execution-and-optimization",
      "difficulty": "intermediate",
      "path": "patterns.md#p05",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "dynamic",
        "matrix"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-219",
        "CICD-220"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Test targets vary with the commit, architecture or feature set. Invalid JSON and unbounded input can block the workflow or flood runners. Test an empty set, a valid set and a set larger than the concurrency cap."
    },
    {
      "id": "P06",
      "kind": "pattern",
      "title": "Deterministic sharding",
      "category": "execution-and-optimization",
      "difficulty": "intermediate",
      "path": "patterns.md#p06",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "deterministic",
        "sharding"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-043",
        "CICD-045"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "One test suite exceeds the size or duration of a single runner job. Uneven shards and incompatible fixtures can hide cases or serialize internally. Compare union and intersection of test IDs and measure time of the slowest shard."
    },
    {
      "id": "P07",
      "kind": "pattern",
      "title": "Incremental builds",
      "category": "execution-and-optimization",
      "difficulty": "intermediate",
      "path": "patterns.md#p07",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "incremental",
        "builds"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-383",
        "CICD-393"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Workspace has declared inputs and reproducible build outputs. Hidden environment inputs create stale results. Change a shared dependency and compare incremental output against a clean build."
    },
    {
      "id": "P08",
      "kind": "pattern",
      "title": "Distributed caching",
      "category": "execution-and-optimization",
      "difficulty": "intermediate",
      "path": "patterns.md#p08",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "distributed",
        "caching"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-384",
        "CICD-389"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Repeated deterministic actions run on interchangeable workers. Cache poisoning or weak keys affect future trusted jobs. Compare cold and warm duration and force a cache miss by changing an input."
    },
    {
      "id": "P09",
      "kind": "pattern",
      "title": "Build once, promote everywhere",
      "category": "release-and-deployment",
      "difficulty": "intermediate",
      "path": "patterns.md#p09",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "build",
        "once",
        "promote",
        "everywhere"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-098",
        "CICD-305",
        "CICD-377",
        "CICD-127"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Environment paths differ but should test and promote exactly the same artifact. Mutable tags or rebuilding independently make evidence non-transferable. Compare approved digest, deployed digest and provenance across environments."
    },
    {
      "id": "P10",
      "kind": "pattern",
      "title": "Release train",
      "category": "release-and-deployment",
      "difficulty": "intermediate",
      "path": "patterns.md#p10",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "release",
        "train"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-130",
        "CICD-493"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Teams need predictable integrated release windows. One late unvalidated change delays the train or requires deferral. Track included SHAs, rollback plan and the cutoff applied to the batch."
    },
    {
      "id": "P11",
      "kind": "pattern",
      "title": "Tag-based releases",
      "category": "release-and-deployment",
      "difficulty": "intermediate",
      "path": "patterns.md#p11",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "tag",
        "based",
        "releases"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-008",
        "CICD-173"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Release intent is expressed through consistent versioned tags. Tag creation permissions and concurrent duplicate runs must be checked. Send a tag targeting an unapproved SHA and confirm no release artifacts publish."
    },
    {
      "id": "P12",
      "kind": "pattern",
      "title": "Rolling deployment",
      "category": "release-and-deployment",
      "difficulty": "intermediate",
      "path": "patterns.md#p12",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "rolling",
        "deployment"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-137",
        "CICD-164"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Stateless workloads can coexist across old and new revisions. Resource pressure or incompatible shared schemas can stall replacement. Track available replicas and external error rate throughout rollout."
    },
    {
      "id": "P13",
      "kind": "pattern",
      "title": "Blue-green deployment",
      "category": "release-and-deployment",
      "difficulty": "intermediate",
      "path": "patterns.md#p13",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "blue",
        "green",
        "deployment"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-302",
        "CICD-320"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Fast traffic switching matters and double capacity is acceptable. Both environments share data and may drift, making traffic reversal risky. Prove old/new schema compatibility and measure route restoration."
    },
    {
      "id": "P14",
      "kind": "pattern",
      "title": "Canary deployment",
      "category": "release-and-deployment",
      "difficulty": "intermediate",
      "path": "patterns.md#p14",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "canary",
        "deployment"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-301",
        "CICD-303",
        "CICD-304"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "A candidate must demonstrate health with real or representative traffic. Low volume, noisy metrics and unrepresentative traffic can produce false approval. Verify minimum observations and exercise a failing metric threshold."
    },
    {
      "id": "P15",
      "kind": "pattern",
      "title": "Shadow traffic",
      "category": "release-and-deployment",
      "difficulty": "intermediate",
      "path": "patterns.md#p15",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "shadow",
        "traffic"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-324",
        "CICD-357",
        "CICD-437"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Compare outputs and latency without changing what callers receive. Duplicate writes and production data export can cause material harm. Disable mutation on the candidate, use approved traffic and compare paired samples."
    },
    {
      "id": "P16",
      "kind": "pattern",
      "title": "Feature flags",
      "category": "release-and-deployment",
      "difficulty": "intermediate",
      "path": "patterns.md#p16",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "feature",
        "flags"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-358",
        "CICD-495"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "App activation must be independent of artifact delivery. Stale flags and defaults make behavior hard to audit and test. Test both values and record config version in deployment evidence."
    },
    {
      "id": "P17",
      "kind": "pattern",
      "title": "Bounded read retry",
      "category": "reliability-and-security",
      "difficulty": "intermediate",
      "path": "patterns.md#p17",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "bounded",
        "read",
        "retry"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-229",
        "CICD-343"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "A read-only check encounters intermittent network or dependency errors. Unbounded attempts can exhaust job budget or overload unhealthy services. Inject transient and permanent failures and measure total elapsed time."
    },
    {
      "id": "P18",
      "kind": "pattern",
      "title": "Compensating action",
      "category": "reliability-and-security",
      "difficulty": "intermediate",
      "path": "patterns.md#p18",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "compensating",
        "action"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-342",
        "CICD-365"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Workflow spans resources with no shared transaction. Compensation may fail or be unsafe when ownership has changed. Fail B deliberately and verify A is rolled back only for this run's resource ID."
    },
    {
      "id": "P19",
      "kind": "pattern",
      "title": "Verified rollback",
      "category": "reliability-and-security",
      "difficulty": "intermediate",
      "path": "patterns.md#p19",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "verified",
        "rollback"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-304",
        "CICD-320",
        "CICD-440"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Fast recovery requires known-good evidence and data compatibility. Old application may fail after an irreversible schema contraction. Rehearse response time, app metrics and exact restored digest."
    },
    {
      "id": "P20",
      "kind": "pattern",
      "title": "Circuit breaker",
      "category": "reliability-and-security",
      "difficulty": "intermediate",
      "path": "patterns.md#p20",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "circuit",
        "breaker"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-344",
        "CICD-345"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "A downstream dependency may become persistently unhealthy. Balancing test timing and half-open concurrency is critical. Fake time and verify no requests except bounded probes while open."
    },
    {
      "id": "P21",
      "kind": "pattern",
      "title": "Zero-trust delivery",
      "category": "reliability-and-security",
      "difficulty": "intermediate",
      "path": "patterns.md#p21",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "zero",
        "trust",
        "delivery"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-375",
        "CICD-376",
        "CICD-377",
        "CICD-244",
        "CICD-368",
        "CICD-379"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Build input, runners, artifacts and credentials have different trust boundaries. A downstream privileged job must verify provenance and avoid blindly trusting upstream filenames. Run fork validation with no secrets and reject mismatched evidence."
    },
    {
      "id": "P22",
      "kind": "pattern",
      "title": "Signed artifacts",
      "category": "reliability-and-security",
      "difficulty": "intermediate",
      "path": "patterns.md#p22",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "signed",
        "artifacts"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-376",
        "CICD-377"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Consumers must establish provenance independently of distribution. A signature without signer policy or artifact binding is insufficient. Modify one byte and test an unexpected signer. Both must be rejected."
    },
    {
      "id": "P23",
      "kind": "pattern",
      "title": "GitOps reconciliation",
      "category": "infrastructure-and-platform",
      "difficulty": "intermediate",
      "path": "patterns.md#p23",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "gitops",
        "reconciliation"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-293",
        "CICD-295",
        "CICD-298"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "The versioned repository declares intended state for environments. Implicit deletions and emergency manual drift require independent procedures. Change a disposable resource and observe correction or deliberate drift signal."
    },
    {
      "id": "P24",
      "kind": "pattern",
      "title": "Plan and apply",
      "category": "infrastructure-and-platform",
      "difficulty": "intermediate",
      "path": "patterns.md#p24",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "plan",
        "and",
        "apply"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-235",
        "CICD-237",
        "CICD-239"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Declarative infrastructure changes need change-set review and state ownership. State changes can invalidate the reviewed plan and plan files can reveal credentials. Verify plan hash and reject stale state before writes."
    },
    {
      "id": "P25",
      "kind": "pattern",
      "title": "Ephemeral environments",
      "category": "infrastructure-and-platform",
      "difficulty": "intermediate",
      "path": "patterns.md#p25",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "ephemeral",
        "environments"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-276",
        "CICD-396",
        "CICD-404"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Reviewers need isolated temporary service copies. Shared databases, dangling DNS and privileges from untrusted PRs are risks. Test teardown after failed deployment and verify budget and ownership tags."
    },
    {
      "id": "P26",
      "kind": "pattern",
      "title": "Platform golden path",
      "category": "infrastructure-and-platform",
      "difficulty": "intermediate",
      "path": "patterns.md#p26",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "platform",
        "golden",
        "path"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-411",
        "CICD-416",
        "CICD-417",
        "CICD-104",
        "CICD-421"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Product teams need a repeatable service delivery default. A template can drift from its upgrades or become an inflexible gate. Scaffold a disposable service and measure time-to-first-green run."
    },
    {
      "id": "P27",
      "kind": "pattern",
      "title": "Self-service provisioning",
      "category": "infrastructure-and-platform",
      "difficulty": "intermediate",
      "path": "patterns.md#p27",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "self",
        "service",
        "provisioning"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-418",
        "CICD-419",
        "CICD-420"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Platform users need a governed way to provision standard resources. Ownership, quota and rollback must survive a partial or retried request. Replay the same request ID and prove no duplicate resources are created."
    },
    {
      "id": "P28",
      "kind": "pattern",
      "title": "Model promotion",
      "category": "ai-and-inference",
      "difficulty": "intermediate",
      "path": "patterns.md#p28",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "model",
        "promotion"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-427",
        "CICD-434",
        "CICD-439"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Model artifacts, tokenizer and runtime data contracts must travel together. Incompatible embedding vectors or silent model substitutions can degrade results. Use an immutable manifest and mismatch fixture for model and tokenizer revisions."
    },
    {
      "id": "P29",
      "kind": "pattern",
      "title": "Benchmark-gated model release",
      "category": "ai-and-inference",
      "difficulty": "intermediate",
      "path": "patterns.md#p29",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "benchmark",
        "gated",
        "model",
        "release"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-450",
        "CICD-455",
        "CICD-470"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Runtime quality under load is a release requirement. GPU temperature, sampling mix and concurrency distort comparisons. Repeat runs, report completion counts, TTFT, ITL and throughput, and compare operating cost."
    },
    {
      "id": "P30",
      "kind": "pattern",
      "title": "GPU-aware scheduling",
      "category": "ai-and-inference",
      "difficulty": "intermediate",
      "path": "patterns.md#p30",
      "platforms": [
        "cross-platform"
      ],
      "tools": [],
      "keywords": [
        "gpu",
        "aware",
        "scheduling"
      ],
      "prerequisites": "Review the workflow, runner and toolchain requirements for the linked examples",
      "related": [
        "CICD-211",
        "CICD-441",
        "CICD-443"
      ],
      "validation": {
        "status": "untested",
        "static_check": null
      },
      "documentation": null,
      "notes": "Workloads need a particular CUDA/VRAM/hardware combination. Labels can drift and scheduling capacity may be scarce. Record hardware, driver, CUDA and peak memory from inside the candidate job."
    }
  ]
}
