{
  "slug": "sam-local-processing-of-aws-languageextensions-is-opt-in-f323bdb71680",
  "title": "sam local processing of AWS::LanguageExtensions is opt-in",
  "tools": [
    "sam"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-22T00:05:41.000Z",
  "announced_at": "2026-05-22T00:05:41.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a template uses `AWS::LanguageExtensions` and you want SAM to process it locally, pass `--language-extensions` on that command; local processing is off by default and the choice applies per invocation.",
    "examples": [
      "sam local invoke <FunctionLogicalId> --language-extensions"
    ],
    "gotchas": [
      "Version: v1.161.0",
      "--language-extensions: Opts in to local processing of `AWS::LanguageExtensions` for this command invocation.",
      "<FunctionLogicalId>: Function resource logical ID to invoke; required when the template defines multiple functions.",
      "Prerequisite: Install the AWS SAM CLI and meet the AWS SAM prerequisites to use `sam local invoke`.",
      "Prerequisite: The template must list `AWS::LanguageExtensions` in `Transform` before `AWS::Serverless-2016-10-31` for SAM to detect and locally expand it."
    ]
  },
  "why_it_matters": "When locally processing a template that uses AWS::LanguageExtensions, enable local processing if you need it.",
  "sources": [
    "https://github.com/aws/aws-sam-cli/releases/tag/v1.161.0",
    "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-language-extensions.html",
    "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-local-invoke.html",
    "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/using-sam-cli-local-invoke.html"
  ],
  "rank": 0.92024,
  "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-14cac2cf271bf6af-0:gate",
    "evidence_hash": "c96186c9ea13d73a9019682c5ec8cb3ba4eff6d64c92cf158539c81fbc80c7ac"
  },
  "review": {
    "draft_hash": "2d396bfd39276d87451848765e6273a5ec034b63eb5d94513b049a07cbf66189",
    "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.92 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
