Payload/scripts/kaden/harness/fixtures/copilot-hook-coverage-envelopes.json

{
  "schema": "harness.copilot-hook-coverage-envelopes/v1",
  "supported": [
    {
      "id": "copilot-cli-create-review-loop",
      "toolFamilyClaim": "edit",
      "expectsPreToolUse": true,
      "envelope": {
        "toolName": "create_file",
        "toolArgs": {
          "path": "docs/harness/features/demo/.review-loop.json"
        }
      }
    },
    {
      "id": "copilot-cli-replace-journal",
      "toolFamilyClaim": "edit",
      "expectsPreToolUse": true,
      "envelope": {
        "toolName": "replace_string_in_file",
        "toolArgs": {
          "path": "docs/harness/features/demo/journal/events.jsonl"
        }
      }
    },
    {
      "id": "copilot-vscode-write-review-loop",
      "toolFamilyClaim": "edit",
      "expectsPreToolUse": true,
      "envelope": {
        "hook_event_name": "preToolUse",
        "tool_name": "create_file",
        "tool_input": {
          "path": "docs/harness/features/demo/.review-loop.json"
        }
      }
    }
  ],
  "denied_classes": [
    {
      "id": "ri-registered-report-denial",
      "deniedClass": "registered-report denial",
      "setup": "register-quality-report",
      "featureSlug": "demo-copilot-reg",
      "relativeArtifact": "quality/security-assessment-report-copilot-reg.md",
      "envelope": {
        "toolName": "create_file",
        "toolArgs": {
          "path": "docs/harness/features/demo-copilot-reg/quality/security-assessment-report-copilot-reg.md"
        }
      }
    },
    {
      "id": "ri-unregistered-draft-outside-turn",
      "deniedClass": "unregistered-draft denial outside a turn",
      "setup": "empty-feature-no-turn",
      "featureSlug": "demo-copilot-draft",
      "envelope": {
        "toolName": "create_file",
        "toolArgs": {
          "path": "docs/harness/features/demo-copilot-draft/quality/new-draft-report.md"
        }
      }
    },
    {
      "id": "ri-no-turn-production-denial",
      "deniedClass": "no-turn production denial",
      "setup": "empty-feature-no-turn",
      "featureSlug": "demo-copilot-prod",
      "envelope": {
        "toolName": "create_file",
        "toolArgs": {
          "path": "tests/harness/CopilotCoverageProof.Example.Tests.ps1"
        }
      }
    }
  ],
  "unsupported": [
    {
      "id": "no-pretooluse-dark-edit",
      "toolFamilyClaim": "other",
      "expectsPreToolUse": false,
      "rationale": "Tool families that never emit a preToolUse edit envelope cannot be denied by the hook; direct gate-file mutation fallback validation is required. File-based detection (GATE_ARTIFACT_DRIFT) covers silent edits on every host including Copilot surfaces without local hook execution.",
      "envelope": {
        "toolName": "run_in_terminal_without_path",
        "toolArgs": {
          "note": "synthetic envelope with no path and no shell command"
        }
      }
    }
  ]
}