{
  "$schema": "./branch-protection-policy.schema.json",
  "schemaVersion": 1,
  "provider": "github",
  "mode": "advisory",
  "protected_branches": [
    {
      "pattern": "main",
      "required_checks": [
        {
          "check_id": "ai-dev-quality-gate",
          "workflow_name": "AI Dev Quality Gate",
          "workflow_path": ".github/workflows/ai-dev-quality-gate.yml",
          "job_name": "ai-dev-gate",
          "command": "npm run test:ai-dev:gate",
          "reason": "Protect workflow runtime contracts, workflow anchors, and quality-gate contracts.",
          "covers_paths": [
            "src/contracts/**",
            "src/verification/**",
            "src/cli/contracts/quality-gates/**",
            "docs/plans/**",
            "docs/contracts/workflows/**",
            "docs/contracts/verifiers/**",
            "docs/contracts/quality-gates/**",
            "scripts/run-ai-dev-benchmark-fixtures.js",
            "scripts/run-ai-dev-quality-gate.js",
            "scripts/run-test-suite.cjs",
            "src/cli/gitignore-policy.js",
            "skills/spec-plan/**",
            "skills/spec-write-tasks/**",
            "skills/spec-work/**",
            "skills/spec-code-review/**",
            "skills/spec-doc-review/**",
            "skills/spec-mcp-setup/**",
            "tests/unit/branch-protection-policy.test.js",
            "tests/unit/init-source-path-coverage.test.js",
            "tests/unit/package-install-contracts.test.js",
            "tests/unit/mcp-setup-powershell-contracts.test.js",
            "tests/unit/ai-dev-quality-gate.test.js",
            "tests/unit/plan-status-taxonomy.test.js",
            "tests/unit/ai-dev-benchmark-fixtures.test.js",
            "tests/unit/spec-plan-contracts.test.js",
            "tests/unit/task-pack-command.test.js",
            "tests/unit/spec-write-tasks-contracts.test.js",
            "tests/unit/spec-work-contracts.test.js",
            "tests/unit/spec-doc-review-contracts.test.js",
            "tests/unit/spec-code-review-contracts.test.js",
            "tests/fixtures/ai-dev-benchmarks/**",
            "tests/integration/verification-gate.integration.test.js",
            ".github/workflows/ai-dev-quality-gate.yml",
            "package.json",
            "package-lock.json"
          ]
        }
      ]
    }
  ],
  "non_goals": [
    "does_not_modify_github_branch_settings",
    "does_not_infer_workflow_state",
    "does_not_replace_repo_specific_human_judgment"
  ]
}
