Documentation Standards
Architecture-version applicability
| Architecture version | Status | Notes |
|---|---|---|
| V2 | Not retrospective | V2 documentation predates this standard. |
| V3 | Adopted | Governs this migrated documentation set. |
| V4 | Not reviewed | Adoption requires an accepted V4 baseline. |
How the ION architecture documentation works. Read this before authoring, reviewing, or substantially editing architecture content.
1. Sources of truth (ordered)
The documentation reflects, in this precedence:
- Accepted architecture decisions and owner clarifications — the intended platform behavior and authoritative resolution of known conflicts.
- Deployed implementation — application code, infrastructure as code, and effective Azure configuration.
- Reference material — design notes under
references/. - Existing architecture pages — useful context that must be reconciled before reuse.
Do not silently choose between conflicting sources. Record the conflict in governance discrepancies, obtain an owner decision, and make current implementation versus target design explicit.
2. Evidence and validation discipline
Architecture pages describe the platform, not the documentation process. Do not add prose such as “from references,” “partially validated,” or “authored from” to user-facing architecture pages.
- Reconcile design references with the deployed implementation when the page claims to describe current behavior.
- Label a proposed design, deferred optimization, migration state, or known implementation gap directly where it affects the architecture.
- Put unresolved questions in assumptions and confirmed conflicts in discrepancies.
- Record broad reference reconciliation in the applicable governance matrix.
- Keep validation evidence in the change record or governance artifact rather than repeating provenance footers on every architecture page.
3. Architecture-version lifecycle metadata
Version-specific documents declare architecture-version: vN. Reusable artifacts remain in shared catalogs and declare a separate lifecycle:
kind: principle | pattern | standard-edition | decision
lifecycle: proposed | active | deprecated | retired
introduced-in: v2
retired-in: null
last-reviewed-for: v3
owners: [platform-architecture]
lifecycle describes whether a reusable artifact is architecturally in force.
Version-owned architecture pages use architecture-version; they do not require
an evidence-status taxonomy.
Every reusable artifact also includes a human-readable Architecture-version
applicability table. last-reviewed-for is mandatory: silence must not be
interpreted as applicability to a newer version.
Use these editorial rules:
- No meaningful generation change: keep one shared document and update its applicability table.
- Minor generation-specific change: add version-specific guidance to the shared document.
- Materially different solution or consequences: create a concept directory with explicit
variants/<version>.mddocuments. - Standards use independent editions; version pages link directly to the applicable shared standard and state any version-specific deviation.
- ADRs remain append-only and use
effective-from,effective-through,superseded-in, andsuperseded-bymetadata.
See ../../../templates/shared-artifact.md, ../../../templates/standard-edition.md, and ../../../templates/version-baseline.md.
4. ADR discipline
- Location:
../decisions/. - Template:
../decisions/_template.md. - Promotion rule: if a decision is realized by more than one service or
system, it is a platform ADR in
../decisions/, not a service-local ADR inservices/<service>/decisions/. Test: “would changing this force changes across multiple services?” → yes → platform ADR. - V2/V3 policy: default is a single V3 ADR with an inline “Previous
approach (V2)” section. Escape hatch: if the V2 decision was foundational and
its rationale is still substantive, spin out a standalone V2 ADR with
Status: supersededand reference it viaSupersedes:metadata on the V3 ADR. - Frontmatter: see
../decisions/README.md.
5. Cross-cutting authoring (Well-Architected)
Every capability under versions/<version>/well-architected/<pillar>/<capability>/ follows the
same 3-file skeleton:
architecture.md— how the capability is realized in ION. MUST open with a “WAF Pillar Impact” section declaring the primary pillar, secondary pillars affected, and the trade-offs.guidelines.md— rules services MUST follow.implementation/README.md— step-by-step implementation and operational procedures for engineers.
The capability lives under the pillar it was primarily chosen to serve. Cross -links to secondary pillars go inside the doc; do not duplicate.
6. Diagram tool split
| Diagram kind | Tool | Location |
|---|---|---|
| Landscape / System Context (L1) | drawio | versions/<version>/diagrams/ |
| System topology (L2) | drawio | versions/<version>/diagrams/ |
| Per-service topology (L3) | drawio | versions/<version>/diagrams/ or services/<svc>/versions/<version>/ |
| Sequence diagram | mermaid | inline in the referencing doc |
| Workflow diagram | mermaid | inline in the referencing doc |
| ER / small data model | mermaid | inline in the referencing doc |
Rule of thumb: spatial map → drawio; flow over time → mermaid.
Author diagrams in .drawio.xml under the version diagram directory and embed
the source from a design page. The documentation renderer provides the inline
viewer and full-page view; do not duplicate or move the source into the design
directory.
7. Services — stable identity + versioned realization
- Every service is a folder directly under
services/, following the skeleton in../services/_template/. - The service
README.mdowns stable identity, responsibility, system/domain membership, ownership history, and lifecycle. - Version-specific implementation lives in
services/<service>/versions/<version>/. - Service-local decisions remain in
services/<service>/decisions/and declare version effectivity. - System membership is a tag in the service’s
README.mdfrontmatter (system: alya), not a folder path. - The service’s architectural role lives in the relevant version baseline at
versions/<version>/design/systems/<system>.md; the versioned service realization cross-links to it. Do not duplicate.
8. Vocabulary rules
- Use “system” (Area of Volatility) in all new writing. Only use
“container” when quoting a historical reference file name. See the glossary
in
../principles/README.md. - Use “WAF” to mean Azure Well-Architected Framework. Spell it out on first use in each doc.
9. When in doubt
- Prefer linking to duplicating.
- If content genuinely belongs in two places, put it in one and cross-link; add a one-line pointer in the other.
- If a file feels like it doesn’t fit the taxonomy, raise it — don’t invent a new top-level folder without discussion.
10. Traceability (requirement → principle → decision → realization)
Every decision in this tree must be traceable back to a driver and forward to its realization. Three mechanisms enforce this:
- Forces / Drivers section in every ADR. The ADR template opens with a
Forces / Drivers block naming (a) the requirement or constraint from
versions/<version>/context/, (b) the principle(s) the decision embodies, and (c) the primary WAF pillar it optimizes. No ADR is complete without this block. Realized by:line under every principle. Each entry in../principles/README.mdcloses with a**Realized by:**list of ADR IDs. Empty (*(ADRs pending)*) is acceptable for a principle whose ADR is not yet authored. When an ADR is added, the authoring engineer updates the principle’sRealized bylist in the same change.- Shared decision catalog. Decision records link outward
to version context, shared principles, and realizing folders
(
versions/<version>/well-architected/,patterns/,versions/<version>/design/,services/).
Author checklist when adding a new ADR
-
Fill the Forces / Drivers section with concrete links to
context/*.mdandprinciples/README.md#<slug>. -
Update every principle the ADR realizes: append the ADR ID to
**Realized by:**inprinciples/README.md. -
In Alternatives considered, if any rejected option is a self-hosted or third-party alternative to an available Azure PaaS service, cite § 21 Azure-native managed services first as a first-class rejection reason. If the ADR adopts a self-hosted option, it MUST justify the § 21 exception explicitly (missing capability + inadequate Azure workaround + operational owner).
-
If the ADR supersedes a prior ADR, set
supersedesfrontmatter on the new ADR andsuperseded-byon the old one; keep the old one visible.
Author checklist when adding a new capability doc (well-architected/*/architecture.md)
- Open with the
WAF Pillar Impactsection (primary + secondary + trade-offs). - Link back to the ADR(s) that authorize the capability’s shape.
- Link the capability to its version context, shared principles, and authorizing decisions where those relationships apply.