tenseleyflow/loader / dd052a1

Browse files

Add runtime logging to DoD verification gate

Authored by espadonne
SHA
dd052a1ff27e5445a0bc888913b64e240b89ae60
Parents
f063e57
Tree
a8e297d

1 changed file

StatusFile+-
M src/loader/runtime/finalization.py 8 0
src/loader/runtime/finalization.pymodified
@@ -3,6 +3,7 @@
33
 from __future__ import annotations
44
 
55
 from collections.abc import Awaitable, Callable
6
+from .logging import get_runtime_logger
67
 from dataclasses import dataclass, field
78
 from datetime import UTC, datetime
89
 from pathlib import Path
@@ -105,6 +106,13 @@ class TurnFinalizer:
105106
 
106107
         mutating_paths = [path for path in dod.touched_files if path]
107108
         requires_verification = bool(mutating_paths or dod.mutating_actions)
109
+        rlog = get_runtime_logger()
110
+        rlog.completion_check(
111
+            "dod_gate",
112
+            "requires_verification" if requires_verification else "no_verification",
113
+            reason=f"files={mutating_paths[:3]}, actions={len(dod.mutating_actions)}"
114
+            if requires_verification else None,
115
+        )
108116
         if tracked_pending_items and not requires_verification:
109117
             pending_provenance = [
110118
                 EvidenceProvenance(