from pathlib import Path
import sys


PROJECT_ROOT = Path(__file__).resolve().parents[1]
if str(PROJECT_ROOT) not in sys.path:
    sys.path.insert(0, str(PROJECT_ROOT))

from decision_logger import TrackingDecisionLogger


def test_decision_logger_contains_handoff_fields():
    assert "stale_lock_active" in TrackingDecisionLogger.FIELDNAMES
    assert "stale_lock_reason" in TrackingDecisionLogger.FIELDNAMES
    assert "fast_handoff_active" in TrackingDecisionLogger.FIELDNAMES
    assert "guidance_reset_event" in TrackingDecisionLogger.FIELDNAMES
