{
  "slug": "hf-jobs-ps-filters-by-labels-and-negated-conditions-5978bc41462c",
  "title": "hf jobs ps filters by labels and negated conditions",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-03T16:19:53.000Z",
  "announced_at": "2026-02-03T16:19:53.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When reviewing Hub Jobs, use `hf jobs ps -a` with repeated `--filter` options to match status, command, or labels; use `!=` to exclude matches.",
    "examples": [
      "hf jobs ps -a --filter status!=error",
      "hf jobs ps -a --filter \"command!=*train.py\"",
      "hf jobs ps -a --filter label=model=Qwen3-06B --filter label=dataset!=Capybara"
    ],
    "gotchas": [
      "Version: v1.4.0",
      "-a, --all: Show Jobs of all statuses; without it, the command shows running Jobs by default.",
      "-f, --filter <condition>: Filter by a condition in `key=value` form. Repeat the option to require multiple filters; documented label examples include `label=<key>` and `label=<key>=<value>`.",
      "!= operator: Negate a condition, including status, command, and label conditions.",
      "label filter condition: `label=<key>` matches a label without a specified value; `label=<key>=<value>` matches a key-value label. Filters are applied together; docs do not describe them as mutually exclusive.",
      "Prerequisite: Install the `hf` CLI; v1.4.0 docs say it is shipped with `huggingface_hub` and provide standalone and `uvx` installation options.",
      "Prerequisite: The Jobs CLI guide says to be logged in to manage Hub Jobs; login uses a Hugging Face user access token."
    ]
  },
  "why_it_matters": "When reviewing Hub Jobs used to run repository workflows, filter the job listing by status, command, or labels.",
  "before": "The release note documents status and command filters using `=` before this change; label filtering and `!=` are the additions.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.4.0",
    "https://github.com/huggingface/huggingface_hub/pull/3742",
    "https://github.com/huggingface/huggingface_hub/blob/v1.4.0/docs/source/en/guides/cli.md",
    "https://github.com/huggingface/huggingface_hub/blob/v1.4.0/src/huggingface_hub/cli/jobs.py"
  ],
  "rank": 0.92027,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-cd28f29f91e5b3a2-11:gate",
    "evidence_hash": "e1638677dc007e48aa1c9f9e2c9e8d4539f1f50b00365f579b50c3056facffe3"
  },
  "review": {
    "draft_hash": "dd72b1572ca26ad6c203d39adcc6f83f9012d8c3cb9d97adddcbce8c29a6eb87",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.79 (>= 0.6 needed)."
  }
}
