{
  "slug": "azure-yaml-infra-layers-dependson-declares-explicit-layer-dependencies-025ada45314d",
  "title": "azure.yaml infra.layers[].dependsOn declares explicit layer dependencies",
  "tools": [
    "azd"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-09T02:42:23.000Z",
  "announced_at": "2026-05-09T02:42:23.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a layer depends on a value produced by another layer’s hook and that dependency cannot be inferred from parameter references, add the producing layer’s name to the dependent layer’s `dependsOn` list in `azure.yaml`.",
    "examples": [
      "infra:\n  layers:\n    - name: <producer-layer>\n      path: <producer-path>\n    - name: <consumer-layer>\n      path: <consumer-path>\n      dependsOn:\n        - <producer-layer>"
    ],
    "gotchas": [
      "Version: 1.25.0",
      "infra.layers[].dependsOn: Array of names of layers this layer depends on; declares dependencies the static analyzer cannot infer, including hook-mediated dependencies.",
      "Prerequisite: The `dependsOn` field was introduced in azd 1.25.0.",
      "This field declares hook-mediated edges that static analysis cannot infer from `.bicep`, `.bicepparam`, or `.parameters.json` contents alone.",
      "Explicit edges are validated for unknown layer names, self-references, and cycles."
    ]
  },
  "why_it_matters": "Model a hook-mediated dependency in a multi-layer azd project that static analysis cannot infer from the infrastructure files.",
  "sources": [
    "https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.25.0",
    "https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/azd-schema"
  ],
  "rank": 0.9602,
  "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": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-e33ed7855b3b7a3d-4:gate",
    "evidence_hash": "834d33221c49e358dace50b302735e34979b987081c989b747528cc611a0d40c"
  },
  "review": {
    "draft_hash": "40888b455d8928ed0df65a78487eaad6768aefbe1bdffc3a36b0a15cabe6ab58",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.68 (>= 0.6 needed)."
  }
}
