Answer: The KGL policy file is YAML with version "0.1" and optional metadata, rules, and settings sections. Rules have id, name, capability, effect, match, exclude, and when fields, while settings map setting keys to values with !locked or !replace. Status: Confirmed Entry: tool/kiro/admin-and-enterprise/kgl-grammar-and-file-layout Revision: 3 Digest: sha256:ce6b9c6bcab0341f (changes whenever the content changes) Timeline: Created: 2026-11-13T03:40:27Z Last changed: 2026-11-20T13:25:47Z (settings replace: — → !replace) Last verified: 2026-11-20T13:25:47Z Next check: 2026-11-21T13:25:47Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of version | 0.1 | [1] | 2026-11-20 top-level sections | metadata | [1] | 2026-11-20 rule fields | capability | [1] | 2026-11-20 effect values | allow, deny, or ask | [1] | 2026-11-20 when syntax | groups in [""] | [1] | 2026-11-20 settings locked | !locked | [1] | 2026-11-20 settings replace | !replace | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "KGL reference - Enterprise Management - Enterprise - Docs - Kiro". https://kiro.dev/docs/enterprise/enterprise-management/kgl/ Role: primary. Accessed: 2026-11-20T13:25:47Z Quote: "version : "0.1" # optional; read but not checked" (Supports: version) Quote: "metadata : # optional; notes for you, ignored by the service" (Supports: top-level sections) Quote: "capability : model_use # required; a capability or group below" (Supports: rule fields) Quote: "effect : allow # required; allow, deny, or ask. deny always wins" (Supports: effect values) Quote: "when : 'groups in [""]' # optional; single-quoted. Omit for all" (Supports: when syntax) Quote: "# !locked: the developer cannot change it. Every setting takes it" (Supports: settings locked) Quote: "# !replace: a default the developer can change. default_model only" (Supports: settings replace) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: 73730c90b40ff4d031ecc19d51c751d6bd8225fa73676d7bea7572c7f45c0d02 (captured 2026-11-20T13:25:47Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T13:25:47Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:25:47Z Last attempt: 2026-11-20T13:25:47Z Notes and limitations: Extracted automatically from a single official source (section "Grammar at a glance"). Related: https://latestn.com/tool/kiro/admin-and-enterprise/kgl-lock-model-lineup How do I write a Kiro KGL policy that locks the model lineup for enterprise users? https://latestn.com/tool/kiro/admin-and-enterprise/kgl-rules-capabilities-conditions How do Kiro KGL rules combine, and what capabilities, patterns, and conditions can I use? https://latestn.com/tool/kiro/admin-and-enterprise/kgl-settings What settings can I configure in a Kiro KGL file? https://latestn.com/tool/kiro/admin-and-enterprise/join-user-activity-events How do I join Kiro user activity events together to trace a single request? https://latestn.com/tool/kiro/admin-and-enterprise/kgl-disable-api-keys How do I configure Kiro KGL to keep API keys disabled for developers? https://latestn.com/tool/kiro/admin-and-enterprise/kgl-enable-logging-reports How do I enable logging and reports in a Kiro enterprise KGL policy? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:25:47Z | changed | settings replace: — → !replace | [1] 2026-11-20T13:25:47Z | changed | settings locked: — → !locked | [1] 2026-11-20T13:25:47Z | changed | when syntax: — → groups in [""] | [1] 2026-11-20T13:25:47Z | changed | effect values: — → allow, deny, or ask | [1] 2026-11-20T13:25:47Z | changed | rule fields: — → capability | [1] 2026-11-20T13:25:47Z | changed | settings section: settings → — | [1] 2026-11-20T13:25:47Z | changed | rule match field: match → — | [1] 2026-11-20T13:25:47Z | changed | rule effect field: effect → — | [1] 2026-11-20T13:25:47Z | changed | rule capability field: capability → — | [1] 2026-11-20T13:25:47Z | changed | rule id field: id → — | [1] 2026-11-20T13:25:47Z | changed | rules section: rules → — | [1] 2026-11-18T13:21:19Z | changed | settings section: — → settings | [1] 2026-11-18T13:21:19Z | changed | rule match field: — → match | [1] 2026-11-18T13:21:19Z | changed | rule effect field: — → effect | [1] 2026-11-18T13:21:19Z | changed | rule capability field: — → capability | [1] 2026-11-18T13:21:19Z | changed | rule id field: — → id | [1] 2026-11-18T13:21:19Z | changed | rules section: — → rules | [1] 2026-11-18T13:21:19Z | changed | top-level sections: — → metadata | [1] 2026-11-18T13:21:19Z | changed | settings: settings → — | [1] 2026-11-18T13:21:19Z | changed | rule when: 'groups in [""]' → — | [1] 2026-11-18T13:21:19Z | changed | rule exclude: [ "claude-opus-5" ] → — | [1] 2026-11-18T13:21:19Z | changed | rule match: [ "claude-*" ] → — | [1] 2026-11-18T13:21:19Z | changed | rule effect: allow → — | [1] 2026-11-18T13:21:19Z | changed | rule capability: model_use → — | [1] 2026-11-18T13:21:19Z | changed | version: "0.1" → 0.1 | [1] 2026-11-13T03:40:27Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/admin-and-enterprise/kgl-grammar-and-file-layout/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/kiro/admin-and-enterprise/kgl-grammar-and-file-layout POST: https://latestn.com/dispute/tool/kiro/admin-and-enterprise/kgl-grammar-and-file-layout with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/admin-and-enterprise/kgl-grammar-and-file-layout?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What is the grammar and file layout for a Kiro Governance Language (KGL) policy file? Revision 3, last verified 2026-11-20T13:25:47Z. https://latestn.com/tool/kiro/admin-and-enterprise/kgl-grammar-and-file-layout (accessed 2026-11-21T10:04:52Z). @misc{LatestN_tool_kiro_admin_and_enterprise_kgl_grammar_and_file_layout_r3, title = {What is the grammar and file layout for a Kiro Governance Language (KGL) policy file?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/admin-and-enterprise/kgl-grammar-and-file-layout}}, note = {Revision 3; digest sha256:ce6b9c6bcab0341f; last verified 2026-11-20T13:25:47Z; accessed 2026-11-21T10:04:52Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/kiro/admin-and-enterprise/kgl-grammar-and-file-layout