"""自治闭环周期任务（目标→治理→证据→通知）."""
import json
import sys
from pathlib import Path

ROOT = Path(__file__).parent.parent
SRC_DIR = ROOT / "src"
for candidate in (ROOT, SRC_DIR):
    candidate_str = str(candidate)
    if candidate_str not in sys.path:
        sys.path.insert(0, candidate_str)

from autonomy_loop import run_autonomy_loop_cycle  # type: ignore


if __name__ == "__main__":
    payload = run_autonomy_loop_cycle(ROOT, "default", "cron_autonomy_cycle")
    print(json.dumps(payload, ensure_ascii=False))
