{
  "id": "cmd.opsec-prepush-diff-audit",
  "version": 1,
  "category": "command_snippet",
  "severity": "medium",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / Git & Public OSS",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "contentOrigin": "HUMAN_ORIGINAL",
  "aiModel": "",
  "summaryEn": "Read-only Git audit snippet to inspect staged file names and untracked cache folders before committing to a public repository.",
  "match": {
    "field": "command",
    "containsAny": [
      "git add . && git commit",
      "git add -a && git push"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Git repositories preparing public commits or releases",
    "symptom": "Blind `git add -A` accidentally stages `.wrangler/cache/`, `.env`, or temporary key files into public commit history.",
    "rootCause": "CLI tools generate hidden cache directories containing cloud account identifiers inside the project root.",
    "verifiedFix": "Run a read-only `git status --short` and `git diff --cached --name-only` inspection before committing, paired with an automated OPSEC gate.",
    "verificationCheck": "Verify zero `.env`, `.pem`, `.key`, or `.wrangler` entries appear in staged output.",
    "commandPattern": "git status --short && git diff --cached --name-only",
    "commandRisk": "READ_ONLY",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  },
  "playbookSha256": "a1e207cfe741c4ac224cfb09b9a42cae4ffe54b9f683c954cf5cd6d3abdeb94e",
  "snapshotSha256": "116114a19ef52fd932a20216d0c0a4136c3ef2489839d44e6e031683fb594cd2",
  "advisoryOnly": true
}
