Functions | |
| str | slug (str value) |
| Convert a selector value into the anchor slug its entry must use. | |
| str | strip_non_prose (str text) |
| Remove fenced code blocks and HTML comments so anchors inside examples do not count. | |
| list[str] | check_generated_current () |
| Verify the committed inventory matches what the sources currently produce. | |
| dict[str, dict] | parity_by_kind (dict family) |
| Index a family's parity records by source kind. | |
| list[str] | check_parity (dict family) |
| Verify the public selector set agrees with every declared parity source. | |
| list | check_metadata (dict family, dict registry_entry) |
| Verify declared value metadata is complete, well-typed, and matches the sources. | |
| tuple | check_coverage (dict family, dict registry_entry, list all_entries=None) |
| Verify every public value has a Tier-2 entry carrying its required fields. | |
| str | entry_body (str prose, str anchor) |
| Return the text of one capability entry, from its anchor to the next entry. | |
| bool | source_exists (str identifier) |
| Check that one evidence source identifier names something that exists. | |
| list | measurement_records () |
| Every recorded measurement available as an evidence source. | |
| list | check_measurement_records () |
| Verify every recorded measurement carries what a reader needs to judge it. | |
| str | source_token (str identifier) |
| The human-readable token a capability entry must cite for a declared source. | |
| list[str] | check_evidence (dict family, dict registry_entry, dict facets) |
| Verify declared evidence sources exist and are cited by the capability entry. | |
| list[str] | check_scope_records () |
| Verify every known-defective scope record is disclosed where it claims to be. | |
| list | check_lifecycle_requirements (dict family, dict registry_entry) |
| Enforce the documentation each lifecycle status owes. | |
| int | main () |
| Fail on capability parity breaks, metadata drift, or missing entries. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| str | REGISTRY_PATH = REPO_ROOT / "tests" / "tooling" / "capability_families.json" |
| str | INVENTORY_PATH = REPO_ROOT / "docs" / "generated" / "capability_inventory.json" |
| str | GENERATOR = REPO_ROOT / "tests" / "tooling" / "generate_capability_inventory.py" |
| tuple | CANONICAL_FIELDS |
| tuple | ALIAS_FIELDS = ("Identity", "Status", "Migration") |
| str | SCOPE_RECORDS_PATH = REPO_ROOT / "tests" / "tooling" / "capability_scope_records.json" |
| str | MEASUREMENTS_PATH = REPO_ROOT / "tests" / "tooling" / "measurement_records.json" |
| tuple | VALID_STATUSES |
| tuple | NON_SELECTABLE_STATUSES = ("planned", "internal", "removed") |
| dict | LIFECYCLE_REQUIREMENTS |
Enforce capability parity across the full source chain and Tier-2 documentation coverage.
| str audit_capability_coverage.slug | ( | str | value | ) |
Convert a selector value into the anchor slug its entry must use.
| [in] | value | Public selector value. |
Definition at line 31 of file audit_capability_coverage.py.
| str audit_capability_coverage.strip_non_prose | ( | str | text | ) |
Remove fenced code blocks and HTML comments so anchors inside examples do not count.
| [in] | text | Raw page text. |
Definition at line 40 of file audit_capability_coverage.py.
| list[str] audit_capability_coverage.check_generated_current | ( | ) |
Verify the committed inventory matches what the sources currently produce.
Definition at line 51 of file audit_capability_coverage.py.
| dict[str, dict] audit_capability_coverage.parity_by_kind | ( | dict | family | ) |
Index a family's parity records by source kind.
| [in] | family | Inventory record for one family. |
Definition at line 65 of file audit_capability_coverage.py.
| list[str] audit_capability_coverage.check_parity | ( | dict | family | ) |
Verify the public selector set agrees with every declared parity source.
Every declared source kind is handled explicitly; an unrecognized kind is a violation rather than a silent pass, because a source that is registered but never compared produces a false assurance of parity.
| [in] | family | Inventory record for one family. |
Definition at line 74 of file audit_capability_coverage.py.
| list audit_capability_coverage.check_metadata | ( | dict | family, |
| dict | registry_entry | ||
| ) |
Verify declared value metadata is complete, well-typed, and matches the sources.
Fails closed on the status field. A canonical value with no status, or with a typo such as "suported", previously passed every check while generation quietly defaulted it to supported - so a defective capability could read as production-ready through an omission.
| [in] | family | Inventory record for one family. |
| [in] | registry_entry | Registry entry carrying value metadata. |
Definition at line 153 of file audit_capability_coverage.py.
| tuple audit_capability_coverage.check_coverage | ( | dict | family, |
| dict | registry_entry, | ||
| list | all_entries = None |
||
| ) |
Verify every public value has a Tier-2 entry carrying its required fields.
| [in] | family | Inventory record for one family. |
| [in] | registry_entry | Registry entry carrying anchor prefix and enforcement flag. |
| [in] | all_entries | Every registry entry, so anchors owned by a sibling family on the same page are not misreported as stale. |
Definition at line 231 of file audit_capability_coverage.py.
| str audit_capability_coverage.entry_body | ( | str | prose, |
| str | anchor | ||
| ) |
Return the text of one capability entry, from its anchor to the next entry.
| [in] | prose | Page text with code fences removed. |
| [in] | anchor | Entry anchor name. |
Definition at line 311 of file audit_capability_coverage.py.
| bool audit_capability_coverage.source_exists | ( | str | identifier | ) |
Check that one evidence source identifier names something that exists.
| [in] | identifier | Source identifier such as make:unit-boundaries. |
Definition at line 330 of file audit_capability_coverage.py.
| list audit_capability_coverage.measurement_records | ( | ) |
Every recorded measurement available as an evidence source.
Definition at line 347 of file audit_capability_coverage.py.
| list audit_capability_coverage.check_measurement_records | ( | ) |
Verify every recorded measurement carries what a reader needs to judge it.
A measurement is cited in place of a re-runnable artifact, so the record has to stand on its own: what was asked, at what revision, on what machine and configuration, what the verdict was, and what it does not establish. A verdict of not-met or inconclusive is a legitimate record; an absent or empty field is not.
Definition at line 357 of file audit_capability_coverage.py.
| str audit_capability_coverage.source_token | ( | str | identifier | ) |
The human-readable token a capability entry must cite for a declared source.
| [in] | identifier | Source identifier such as make:unit-boundaries. |
Definition at line 396 of file audit_capability_coverage.py.
| list[str] audit_capability_coverage.check_evidence | ( | dict | family, |
| dict | registry_entry, | ||
| dict | facets | ||
| ) |
Verify declared evidence sources exist and are cited by the capability entry.
This checks correspondence, not scientific validity. It establishes that a declared source names something real and that the entry a reader sees cites the same source the registry does. It cannot establish that the source actually demonstrates the claimed result - that remains a human review judgement, which is why these are described as declared evidence sources rather than verified evidence.
| [in] | family | Inventory record for one family. |
| [in] | registry_entry | Registry entry carrying value metadata. |
| [in] | facets | The project-wide facet vocabulary. |
Definition at line 406 of file audit_capability_coverage.py.
| list[str] audit_capability_coverage.check_scope_records | ( | ) |
Verify every known-defective scope record is disclosed where it claims to be.
A safety valve that nothing reads is not a safety valve. This makes the scope records load-bearing: a record marked known-defective must either name the pages that disclose it and have them actually say so, or be resolved.
Definition at line 472 of file audit_capability_coverage.py.
| list audit_capability_coverage.check_lifecycle_requirements | ( | dict | family, |
| dict | registry_entry | ||
| ) |
Enforce the documentation each lifecycle status owes.
Requirements grow with the status a capability claims: supported owes evidence, experimental and known-defective owe stated limitations, and deprecated owes migration guidance. The gate fires when a value claims a status, which is the moment the claim becomes readable.
| [in] | family | Inventory record for one family. |
| [in] | registry_entry | Registry entry carrying value metadata and the page. |
Definition at line 537 of file audit_capability_coverage.py.
| int audit_capability_coverage.main | ( | ) |
Fail on capability parity breaks, metadata drift, or missing entries.
Definition at line 576 of file audit_capability_coverage.py.
| audit_capability_coverage.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 13 of file audit_capability_coverage.py.
| str audit_capability_coverage.REGISTRY_PATH = REPO_ROOT / "tests" / "tooling" / "capability_families.json" |
Definition at line 14 of file audit_capability_coverage.py.
| str audit_capability_coverage.INVENTORY_PATH = REPO_ROOT / "docs" / "generated" / "capability_inventory.json" |
Definition at line 15 of file audit_capability_coverage.py.
| str audit_capability_coverage.GENERATOR = REPO_ROOT / "tests" / "tooling" / "generate_capability_inventory.py" |
Definition at line 16 of file audit_capability_coverage.py.
| tuple audit_capability_coverage.CANONICAL_FIELDS |
Definition at line 18 of file audit_capability_coverage.py.
| tuple audit_capability_coverage.ALIAS_FIELDS = ("Identity", "Status", "Migration") |
Definition at line 28 of file audit_capability_coverage.py.
| str audit_capability_coverage.SCOPE_RECORDS_PATH = REPO_ROOT / "tests" / "tooling" / "capability_scope_records.json" |
Definition at line 326 of file audit_capability_coverage.py.
| str audit_capability_coverage.MEASUREMENTS_PATH = REPO_ROOT / "tests" / "tooling" / "measurement_records.json" |
Definition at line 327 of file audit_capability_coverage.py.
| tuple audit_capability_coverage.VALID_STATUSES |
Definition at line 520 of file audit_capability_coverage.py.
| tuple audit_capability_coverage.NON_SELECTABLE_STATUSES = ("planned", "internal", "removed") |
Definition at line 527 of file audit_capability_coverage.py.
| dict audit_capability_coverage.LIFECYCLE_REQUIREMENTS |
Definition at line 529 of file audit_capability_coverage.py.