Functions | |
| None | run (list[str] command, str label) |
| Run one certification gate and stream its output. | |
| str | git_output (*str args) |
| Return trimmed output from one Git command. | |
| str | require_clean_revision () |
| Require that HEAD names a clean, commit-scoped source revision. | |
| None | ensure_empty_doxygen_warning_log () |
| Fail certification when Doxygen reports a warning. | |
| str | invariant_contract_scope () |
| Describe how much of the invariant surface has an automated checker. | |
| str | capability_coverage_scope () |
| Describe how much of the capability surface has enforced documentation coverage. | |
| str | freshness_scope () |
| Describe the four freshness states separately. | |
| Path | write_certificate (str sha, bool runtime_checked) |
| Write a reproducible certification record for one validated revision. | |
| argparse.Namespace | parse_args (list[str] argv) |
| Parse documentation-certification command-line arguments. | |
| int | main (list[str]|None argv=None) |
| Run the commit-scoped documentation certification workflow. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
Create a commit-scoped documentation certification after strict validation.
| None certify_documentation.run | ( | list[str] | command, |
| str | label | ||
| ) |
Run one certification gate and stream its output.
| [in] | command | Executable and arguments for the gate. |
| [in] | label | Human-readable gate label. |
Definition at line 17 of file certify_documentation.py.
| str certify_documentation.git_output | ( | *str | args | ) |
Return trimmed output from one Git command.
| [in] | args | Arguments passed after git. |
Definition at line 31 of file certify_documentation.py.
| str certify_documentation.require_clean_revision | ( | ) |
Require that HEAD names a clean, commit-scoped source revision.
Definition at line 41 of file certify_documentation.py.
| None certify_documentation.ensure_empty_doxygen_warning_log | ( | ) |
Fail certification when Doxygen reports a warning.
Definition at line 55 of file certify_documentation.py.
| str certify_documentation.invariant_contract_scope | ( | ) |
Describe how much of the invariant surface has an automated checker.
Most invariant contracts are tracked rather than enforced, so the certificate must not imply that every guarantee is verified.
Definition at line 69 of file certify_documentation.py.
| str certify_documentation.capability_coverage_scope | ( | ) |
Describe how much of the capability surface has enforced documentation coverage.
The certificate must not imply that every capability is documented while families are still being backfilled, so it names what is enforced and what is advisory.
Definition at line 90 of file certify_documentation.py.
| str certify_documentation.freshness_scope | ( | ) |
Describe the four freshness states separately.
Mechanical verification, a current fingerprint, a soft suspicion, and a human review are four different claims. The certificate must not blur them: a matching digest records that a review happened, never that the prose it covers is correct.
Definition at line 113 of file certify_documentation.py.
| Path certify_documentation.write_certificate | ( | str | sha, |
| bool | runtime_checked | ||
| ) |
Write a reproducible certification record for one validated revision.
| [in] | sha | Full Git revision validated by the certification gates. |
| [in] | runtime_checked | Whether the PETSc/MPI runtime suite was included. |
Definition at line 165 of file certify_documentation.py.
| argparse.Namespace certify_documentation.parse_args | ( | list[str] | argv | ) |
Parse documentation-certification command-line arguments.
| [in] | argv | Arguments excluding the executable name. |
Definition at line 225 of file certify_documentation.py.
| int certify_documentation.main | ( | list[str] | None | argv = None | ) |
Run the commit-scoped documentation certification workflow.
| [in] | argv | Optional command-line arguments excluding the executable name. |
Definition at line 251 of file certify_documentation.py.
| certify_documentation.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 14 of file certify_documentation.py.