{
  "slug": "bk-build-view-recursive-reports-failures-across-triggered-builds-04b29d1ee196",
  "title": "bk build view --recursive reports failures across triggered builds",
  "tools": [
    "bk"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-08T11:00:57.000Z",
  "announced_at": "2026-10-08T11:00:57.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When diagnosing a build that may have failed in a triggered child, run `bk build view <build> --recursive --json` to retrieve current hard-failed and timed-out command jobs from the build and its reachable descendants. Review `complete` and `issues`; incomplete traversal returns partial results and a nonzero exit status.",
    "examples": [
      "bk build view acme/my-pipeline/123 --recursive --json"
    ],
    "gotchas": [
      "Version: v3.61.0",
      "<build> (required): Build to inspect, in `org/pipeline/number` form.",
      "--recursive (required): Follow available child references and return current hard-failed (`failed`) and timed-out (`timed_out`) command jobs from the selected build and descendants. Cannot be combined with `--summary`, `--web`, or `--job-states`.",
      "--json: Output JSON; JSON/YAML output contains `root_build`, `complete`, `failures`, and `issues`. `--json`, `--yaml`, and `--text` are alternative output formats.",
      "read_builds (required): Token scope required for build access; pipeline read permission is also required.",
      "read_build_logs: Required to follow log pointers separately.",
      "Prerequisite: Authenticate the CLI with Buildkite; its README gives `bk auth login`. Build access requires `read_builds` and permission to read each pipeline.",
      "Prerequisite: Use `read_build_logs` to follow log pointers separately.",
      "Follows every available child reference, including passed, asynchronous, and soft-failed triggers, without filtering by build state.",
      "Excludes superseded retry attempts and children of superseded trigger attempts.",
      "Reports current hard-failed and timed-out command jobs; soft-failed command jobs, canceled or expired jobs, configuration-excluded (`broken`) jobs, jobs stopped by failed dependencies, and running jobs that have promised failure are excluded.",
      "Uses the existing REST API and fetches each reachable build once; it does not download logs, artifacts, or annotations.",
      "Requires `read_builds` and permission to read each pipeline. Following log pointers separately requires `read_build_logs`.",
      "Inaccessible children, invalid child references, missing or not-yet-created child builds (except skipped or configuration-excluded triggers), and request failures produce partial output with `complete: false`, explanatory `issues`, and a nonzero exit status; accessible sibling failures are still returned.",
      "`complete` describes traversal of observed current attempts, not an atomic snapshot or a guarantee that running builds have finished.",
      "Builds created by scripts or API calls without a trigger-job link cannot be discovered.",
      "Docs conflict: Current CLI reference page documents `bk build view` formats but does not list `--recursive`; the v3.61.0 README documents `--recursive`."
    ]
  },
  "why_it_matters": "When diagnosing a build that may have failed in a triggered child, inspect command failures across the root build and its reachable descendants.",
  "before": "Run `bk build view` on each child build separately to find underlying failures.",
  "sources": [
    "https://github.com/buildkite/cli/releases/tag/v3.61.0",
    "https://github.com/buildkite/cli/pull/1023",
    "https://github.com/buildkite/cli/blob/v3.61.0/README.md"
  ],
  "rank": 0.98032,
  "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-7542f5f0b24ae8a0-2:gate",
    "evidence_hash": "ed2dcc0e637d31274ef00dd4dcc45b3548dfb5e0051792e5cbceed34afb5e2ad"
  },
  "review": {
    "draft_hash": "8b0ac50a2ebc01e813a7cabe291c96d8fd2594c1ee94fe9b78bdfd4c827a8ce8",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-08T11:00:57.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.82 (>= 0.6 needed)."
  }
}
