iop/agent-ops/skills/project/orchestrate-agent-task-loop/scripts/dispatcher_observation.py
toki da506ba71d fix(agent-ops): PLAN 쓰기 경로 검증을 강제한다
PLAN 생성과 리뷰 후속 상태 기록 전에 동일한 디스패처 검증을 적용해 broad path가 다시 활성 작업을 차단하지 않도록 한다.
2026-07-29 13:43:00 +09:00

26 lines
761 B
Python

#!/usr/bin/env python3
"""Observation output emitter and formatting utilities for agent-task dispatcher."""
from __future__ import annotations
SEP = "-" * 42
def banner(event: str, task: str, lines: list[str] | None = None) -> None:
display_task = task.rsplit("/", 1)[-1]
print(SEP, flush=True)
print(f"{event}: {display_task}", flush=True)
print(SEP, flush=True)
if display_task != task:
print(f"task={task}", flush=True)
for line in lines or []:
print(line, flush=True)
def attempt_event(prefix: str, message: str) -> None:
print(f"{prefix} {message}", flush=True)
def validation_claim(path: str) -> None:
"""Emit one canonical write claim for standalone PLAN validation."""
print(path, flush=True)