Add runtime logging to DoD verification gate
- SHA
dd052a1ff27e5445a0bc888913b64e240b89ae60- Parents
-
f063e57 - Tree
a8e297d
dd052a1
dd052a1ff27e5445a0bc888913b64e240b89ae60f063e57
a8e297d| Status | File | + | - |
|---|---|---|---|
| M |
src/loader/runtime/finalization.py
|
8 | 0 |
src/loader/runtime/finalization.pymodified@@ -3,6 +3,7 @@ | ||
| 3 | 3 | from __future__ import annotations |
| 4 | 4 | |
| 5 | 5 | from collections.abc import Awaitable, Callable |
| 6 | +from .logging import get_runtime_logger | |
| 6 | 7 | from dataclasses import dataclass, field |
| 7 | 8 | from datetime import UTC, datetime |
| 8 | 9 | from pathlib import Path |
@@ -105,6 +106,13 @@ class TurnFinalizer: | ||
| 105 | 106 | |
| 106 | 107 | mutating_paths = [path for path in dod.touched_files if path] |
| 107 | 108 | 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 | + ) | |
| 108 | 116 | if tracked_pending_items and not requires_verification: |
| 109 | 117 | pending_provenance = [ |
| 110 | 118 | EvidenceProvenance( |