diff --git a/scripts/prepare_world_class_submission_kit.py b/scripts/prepare_world_class_submission_kit.py index c1674152..1d0ed4ab 100644 --- a/scripts/prepare_world_class_submission_kit.py +++ b/scripts/prepare_world_class_submission_kit.py @@ -36,7 +36,7 @@ def write_json(path: Path, payload: dict[str, Any]) -> None: def html_text(value: Any) -> str: - return html.escape(str(value or ""), quote=True) + return html.escape("" if value is None else str(value), quote=True) def has_glob_pattern(value: str) -> bool: diff --git a/scripts/render_world_class_operator_runbook.py b/scripts/render_world_class_operator_runbook.py index de5e111a..c9cb4c33 100644 --- a/scripts/render_world_class_operator_runbook.py +++ b/scripts/render_world_class_operator_runbook.py @@ -24,7 +24,7 @@ def rel_path(path: Path, root: Path) -> str: def html_text(value: Any) -> str: - return html.escape(str(value or ""), quote=True) + return html.escape("" if value is None else str(value), quote=True) def by_key(items: list[dict[str, Any]], key_name: str) -> dict[str, dict[str, Any]]: diff --git a/tests/verify_world_class_evidence_intake.py b/tests/verify_world_class_evidence_intake.py index 42728062..a57b9f6e 100644 --- a/tests/verify_world_class_evidence_intake.py +++ b/tests/verify_world_class_evidence_intake.py @@ -232,6 +232,9 @@ def main() -> None: assert "provider-holdout" in kit_html, kit_html assert "Artifact Checklist" in kit_html, kit_html assert "Source Evidence Snapshot" in kit_html, kit_html + assert "
model_executed_count0>02