Architecture assurance and validation
The ontology validator checks the structural and cross-file integrity of the authoritative ontology. Documentation generation runs this validation before writing portal pages, so invalid source artefacts cannot produce a refreshed portal.
From the repository root, run the complete fail-fast quality gate:
python scripts/build_portal.py
To also verify URL resolution beneath a repository-specific GitHub Pages prefix, use:
python scripts/build_portal.py --base-path /enterprise-data-portal/
The pipeline validates JSON Schema structure, stable identifiers, relationship references, manifest inventory and version pins, duplicate definitions and specialisation cycles; generates the portal; performs a strict MkDocs build; checks built HTML links, assets and page anchors; and runs all automated tests. External website availability is deliberately separate. Deterministic validation does not determine general semantic equivalence; potentially overlapping meanings require architectural review and human judgment.
The canonical website URL defaults to the repository's GitHub Pages project
path. For a different deployment path, --base-path controls both the
generated MkDocs site_url and the link validator's simulated URL root.
Generated documentation is a presentation of source artefacts, not approval evidence. Draft lifecycle status is not approval. Accepted ADRs and lifecycle changes continue to follow the Git pull-request review and accountable business approval process.