{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "AI Cockpit State", "type": "object", "required": [ "active_focus", "current_work", "sidecars", "next_allowed_step", "todos", "open_threads" ], "additionalProperties": false, "properties": { "active_focus": { "type": "object", "required": ["name", "subtitle", "goal", "active_for"], "additionalProperties": false, "properties": { "name": {"type": "string"}, "subtitle": {"type": "string"}, "goal": {"type": "string"}, "active_for": {"type": "string"} } }, "current_work": { "type": "object", "required": ["file_path", "status", "language", "saved", "code_lines", "notes"], "additionalProperties": false, "properties": { "file_path": {"type": "string"}, "status": {"type": "string"}, "language": {"type": "string"}, "saved": {"type": "string"}, "code_lines": { "type": "array", "items": {"type": "string"} }, "notes": { "type": "array", "items": {"type": "string"} } } }, "sidecars": { "type": "array", "minItems": 5, "maxItems": 5, "items": { "type": "object", "required": ["id", "title", "tone", "is_lead", "sentences"], "additionalProperties": false, "properties": { "id": {"type": "string"}, "title": {"type": "string"}, "tone": {"type": "string", "enum": ["HARD", "MEDIUM", "LOW"]}, "is_lead": {"type": "boolean"}, "sentences": { "type": "array", "minItems": 1, "maxItems": 3, "items": {"type": "string"} } } } }, "next_allowed_step": {"type": "string"}, "todos": { "type": "array", "items": { "type": "object", "required": ["id", "text", "status"], "additionalProperties": false, "properties": { "id": {"type": "string"}, "text": {"type": "string"}, "status": {"type": "string", "enum": ["open", "done"]} } } }, "open_threads": { "type": "array", "items": { "type": "object", "required": ["id", "title", "kind", "status"], "additionalProperties": false, "properties": { "id": {"type": "string"}, "title": {"type": "string"}, "kind": {"type": "string"}, "status": {"type": "string"} } } } } }