Files

46 lines
1.6 KiB
JSON
Raw Permalink Normal View History

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Symphony orchestrator state",
"type": "object",
"required": ["running", "retry_attempts", "claimed", "completed"],
"properties": {
"running": {
"type": "object",
"additionalProperties": {
"type": "object",
"required": ["task_id", "worktree", "started_at"],
"properties": {
"task_id": { "type": "string" },
"session_id": { "type": ["string", "null"], "description": "Identifier for the orchestrator session that spawned this task. Other sessions reconcile via the heartbeat file when this session's TaskList does not include the task_id." },
"worktree": { "type": "string" },
"started_at": { "type": "string", "format": "date-time" },
"issue_identifier": { "type": "string" }
}
}
},
"retry_attempts": {
"type": "object",
"additionalProperties": {
"type": "object",
"required": ["attempt", "due_at_ms"],
"properties": {
"attempt": { "type": "integer", "minimum": 1 },
"due_at_ms": { "type": "integer" },
"last_error": { "type": ["string", "null"] }
}
}
},
"claimed": { "type": "array", "items": { "type": "string" } },
"completed": { "type": "array", "items": { "type": "string" } },
"totals": {
"type": "object",
"properties": {
"ticks": { "type": "integer" },
"dispatched": { "type": "integer" },
"completed": { "type": "integer" },
"failed": { "type": "integer" }
}
}
}
}