Context
agent-handover status prints a human-readable checklist
(src/agent_handover/cli.py). Automation (CI, dashboards) needs a stable
machine-readable form.
Task
Add a --json flag to status that prints the checkpoint state as one JSON
object to stdout, e.g. {"status": "in_progress", "steps": {...}, "pending": [...]}.
Human output stays the default when --json is absent.
Acceptance criteria
Pointers
src/agent_handover/cli.py (status branch)
Checkpoint.load() / Checkpoint.pending_steps() in src/agent_handover/checkpoint.py
- Tests:
tests/test_cli.py
Context
agent-handover statusprints a human-readable checklist(
src/agent_handover/cli.py). Automation (CI, dashboards) needs a stablemachine-readable form.
Task
Add a
--jsonflag tostatusthat prints the checkpoint state as one JSONobject to stdout, e.g.
{"status": "in_progress", "steps": {...}, "pending": [...]}.Human output stays the default when
--jsonis absent.Acceptance criteria
agent-handover status --jsonprints valid JSON (one object, no extra logs)json.loadson captured stdoutPointers
src/agent_handover/cli.py(statusbranch)Checkpoint.load()/Checkpoint.pending_steps()insrc/agent_handover/checkpoint.pytests/test_cli.py