Architecture decision records¶
Bylaw records significant design decisions as MADR 4.0.0 files. See ADR-0001. New ADRs start from adr-template.md.
| ADR | Title | Status |
|---|---|---|
| 0001 | Record architecture decisions as MADR files | Accepted |
| 0002 | Authors describe the compliant state; the compiler inverts it | Accepted |
| 0003 | Multiple Require blocks and multiple Must statements combine with AND | Accepted |
| 0004 | Missing fields fail requirements by default (strict), with explicit leniency | Accepted |
| 0005 | Only Policy and the utility cmdlets are exported; inner keywords exist only inside Policy | Accepted |
| 0006 | Keywords build an IR of PowerShell classes; passes transform it; emitters serialise it | Accepted |
| 0007 | Bylaw compiles policy definitions and never deploys them | Accepted |
| 0008 | Resolve and validate aliases offline against a bundled snapshot | Accepted |
| 0009 | Byte-identical output from a canonical JSON writer | Accepted |
| 0010 | The definition name comes only from Policy 'name', and can be any name Azure accepts that is also a safe file name | Accepted |
| 0011 | Plain definition JSON is the default output, with EPAC one setting away, one file per policy | Accepted |
| 0012 | The language version is set in a bylaw.json project settings file, defaulting to 1.0 | Accepted |
| 0013 | Build-Bylaw discovers *.bylaw.ps1 files recursively; names are unique across a build | Accepted |
| 0014 | Each source file is compiled in a fresh runspace | Accepted |
| 0015 | Must operator names follow PowerShell expectations, not raw Azure operator names | Accepted |
| 0016 | How Properties keys map into the definition, and their defaults | Accepted |
| 0017 | Effects supported in language version 1.0, and how they are validated | Accepted |
| 0018 | Parameter name casing in emitted JSON | Accepted |
| 0019 | Provenance metadata in emitted definitions | Proposed |
| 0020 | Which typed ARM expression helpers ship in v1 | Accepted |
| 0021 | Compile-time validation of parameter declarations and usage | Accepted |
| 0022 | Resolving built-in role names for Modify -Role | Accepted |
| 0023 | Conforming to the EPAC policy definition schema | Accepted |
| 0024 | Modify is a block that replaces Effect, with operations that take their field from the pipeline | Accepted |
| 0025 | Must can test an expression as well as a field, emitting a value condition | Accepted |
| 0026 | AnyOf and AllOf groups let a requirement have alternatives | Accepted |
| 0027 | Plain JSON output is a policy definition with name and properties, emitted as written | Accepted |
| 0028 | DenyAction and Manual are keywords that take the place of Effect | Superseded by 0017 |
| 0029 | Append is a block of Add operations, like Modify | Accepted |
| 0030 | AuditIfNotExists and DeployIfNotExists describe the related resource's compliant state | Accepted |
| 0031 | DeployIfNotExists takes its template from a JSON file or a hashtable, with checked parameters | Accepted |
| 0032 | Count is piped to Must, for field counts and value counts | Accepted |
| 0033 | Initiative is a top-level keyword like Policy, with PolicyDefinition for each policy it includes | Accepted |
| 0034 | Initiative members are checked against the emitted definitions after every file has compiled | Accepted |
| 0035 | Initiatives are emitted as EPAC policy set definitions or plain JSON, to their own output folder | Accepted |
| 0036 | Releases are published from main when CHANGELOG.md has a "## !Deploy" heading | Accepted |
| 0037 | Reference documentation is generated from the source and published to the GitHub wiki | Accepted |
| 0038 | Policies are tested against example resources with a local evaluator | Proposed |
| 0039 | ConvertTo-Bylaw turns policy JSON into Bylaw files that compile back to the same rule | Accepted |
| 0040 | Condition writes a raw policy condition, for what the language can't express | Accepted |
| 0041 | Definitions are compared by meaning, through a normal form and a truth table over their conditions | Accepted |
| 0042 | A pinned copy of the Azure Landing Zones Library is test data, with a coverage report and a regression baseline | Accepted |
| 0043 | A KeyVaultSecret keyword passes a Key Vault secret to a deployment template parameter | Accepted |
| 0044 | A Caller keyword tests the identity making the request | Proposed |
| 0045 | ConvertTo-Bylaw rewrites negated and [*] conditions into forms the language has, rather than the language gaining a Not group or bare [*] fields |
Accepted |
| 0046 | The bundled role map and alias snapshot are refreshed weekly from a sandbox, signed in by OIDC, through a reviewed pull request | Accepted |
| 0047 | A restricted mode compiles only policy files made of keywords and literals, checked before they run | Proposed |
| 0048 | A versioned documentation site, built with Zensical and published to GitHub Pages, beside the wiki | Accepted |
| 0049 | Each takes a -Where block that selects the elements its requirement applies to | Accepted |