Running a cycle

Who should read this: agent authors and Loop Runner owners.

Tools (catalogue)

ToolPurpose
loop_workspace_registerCreate/idempotent-update a company workspace
loop_agent_registerCreate/idempotent-update an agent in a workspace
loop_run_startOpen a leased run; return continuity + shared inbox
loop_run_heartbeatExtend lease (fencing token required)
loop_run_completeCommit private_state, notes, checkpoints, acks
loop_run_failControlled failure with failure_id
loop_shared_publish_nowUrgent note visible before complete
loop_shared_read_morePage more unacked deliveries
loop_agent_inspectRead pair-scoped continuity metadata

Minimal start payload

{ 

"workspace_name": "chrilan", "agent_name": "hos-whatsapp-overview", "schedule_key": "hos-whatsapp-overview:5min", "trigger_id": "manual-2026-08-14T10:00:00Z" }

Complete payload essentials

  • run_id, fencing_token, completion_id (idempotency)
  • result_summary
  • private_state.objective and private_state.summary_for_next_run (required)
  • Optional: shared_notes, ack_delivery_ids, checkpoint_updates, metrics

Isolation rules

  • Wrong pair on another agent's run → FORBIDDEN (owner not disclosed)
  • Stale fencing token → rejected
  • Duplicate trigger_id / completion_id / failure_id / dedupe_key → idempotent replay

Next Steps