{
  "slug": "ast-grep-adds-a-min-severity-cli-option-e5e4abb20771",
  "title": "ast-grep adds a min-severity CLI option",
  "tools": [
    "ast-grep"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-31T01:42:23.000Z",
  "announced_at": "2026-08-31T01:42:23.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When running repository checks with `ast-grep scan`, use `--min-severity <LEVEL>` to run only rules whose final severity is at least the threshold.",
    "examples": [
      "ast-grep scan --min-severity warning",
      "ast-grep scan --error=<rule-id> --min-severity error"
    ],
    "gotchas": [
      "Version: 0.45.3",
      "--min-severity <LEVEL>: Minimum final rule severity to run; accepted values: `hint`, `info`, `warning`, `error`, `off` (case-insensitive). Default `off` disables filtering.",
      "--error[=<RULE_ID>...]: Set the named rule's severity to error; repeat for multiple rules. `=` is required when specifying a rule ID. Severity overrides apply before the threshold."
    ]
  },
  "why_it_matters": "Set a minimum severity when running ast-grep checks in a repository.",
  "sources": [
    "https://github.com/ast-grep/ast-grep/releases/tag/0.45.3",
    "https://ast-grep.github.io/guide/project/severity",
    "https://ast-grep.github.io/reference/cli/scan"
  ],
  "rank": 0.92043,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3-rejudge+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-362385487702b95e-0:rescue",
    "evidence_hash": "d4084910bbe7cdeb49642806eef476f12936714d9b06966c19ac750ae7a43660"
  },
  "review": {
    "draft_hash": "1133290eae4dc0da606869c93c8e34462883cc9d97609441915c4bb1314aa590",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:rescue",
    "reason": "Rescue path: first rejected only because the extracted card lacked usage; judged again on the enriched card, 3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
