{
  "slug": "bk-build-view-filters-jobs-by-state-84e22fd0c762",
  "title": "bk build view filters jobs by state",
  "tools": [
    "bk"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-31T04:26:59.000Z",
  "announced_at": "2026-03-31T04:26:59.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When investigating jobs in a build, run `bk build view` with `-s`/`--job-states` and one or more documented states. For example, `bk build view <build-number> -s failed,broken` filters the displayed jobs to failed and broken states.",
    "examples": [
      "bk build view <build-number> -s failed,broken"
    ],
    "gotchas": [
      "Version: v3.33.1",
      "-s, --job-states=JOB-STATES,...: Filters jobs by state; pass comma-separated values. Valid values: `running`, `scheduled`, `passed`, `failed`, `canceled`, `skipped`, `not_run`, `broken`.",
      "[<build-number>]: Build number to view; omit to resolve the most recent build.",
      "Prerequisite: Install the Buildkite CLI (`bk`)."
    ]
  },
  "why_it_matters": "When reviewing a build’s jobs by state, filter the output to the job states relevant to the investigation.",
  "sources": [
    "https://github.com/buildkite/cli/releases/tag/v3.33.1",
    "https://github.com/buildkite/cli/pull/735",
    "https://github.com/buildkite/cli/blob/v3.33.1/cmd/build/view.go",
    "https://buildkite.com/docs/platform/cli/installation"
  ],
  "rank": 0.98019,
  "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-1ee6d9123917bb1f-0:gate",
    "evidence_hash": "a54431ddf8c845a6fbcd44f1f87876647e099236581fed1814d81da4102e6b4a"
  },
  "review": {
    "draft_hash": "9417fe86deab3aec12c09f2872e1cda41a4f16270778f57462858605e1bba685",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.62 (>= 0.6 needed)."
  }
}
