{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://itlackey.github.io/akm/schemas/akm-config.0.9.0.json",
  "title": "AKM Configuration",
  "description": "Configuration file for the akm CLI (Agent Knowledge Manager). Stored at ~/.config/akm/config.json (Linux/macOS) or %APPDATA%\\akm\\config.json (Windows). Supports JSONC (JavaScript-style comments). Auto-generated from src/core/config/config-schema.ts by scripts/gen-config-schema.ts — do NOT edit by hand.",
  "type": "object",
  "properties": {
    "configVersion": {
      "type": "string",
      "const": "0.9.0"
    },
    "extends": {
      "type": "string",
      "minLength": 1
    },
    "engines": {
      "type": "object",
      "additionalProperties": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "llm"
              },
              "provider": {
                "type": "string"
              },
              "endpoint": {
                "type": "string"
              },
              "model": {
                "type": "string",
                "minLength": 1
              },
              "apiKey": {
                "type": "string"
              },
              "apiKeyFile": {
                "type": "string",
                "minLength": 1
              },
              "temperature": {
                "type": "number"
              },
              "maxTokens": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "timeoutMs": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 2147483647
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "concurrency": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "extraParams": {
                "type": "object",
                "additionalProperties": {}
              },
              "contextLength": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "enableThinking": {
                "type": "boolean"
              },
              "reasoningEffort": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "kind",
              "endpoint",
              "model"
            ],
            "additionalProperties": true
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "agent"
              },
              "platform": {
                "type": "string",
                "enum": [
                  "opencode",
                  "claude",
                  "opencode-sdk",
                  "codex",
                  "copilot",
                  "pi",
                  "gemini",
                  "aider",
                  "amazonq",
                  "openhands"
                ]
              },
              "bin": {
                "type": "string",
                "minLength": 1
              },
              "args": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "workspace": {
                "type": "string",
                "minLength": 1
              },
              "model": {
                "type": "string",
                "minLength": 1
              },
              "timeoutMs": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 2147483647
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "llmEngine": {
                "type": "string",
                "maxLength": 63,
                "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
              }
            },
            "required": [
              "kind",
              "platform"
            ],
            "additionalProperties": true
          }
        ]
      },
      "propertyNames": {
        "maxLength": 63,
        "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
      }
    },
    "defaults": {
      "type": "object",
      "properties": {
        "engine": {
          "type": "string",
          "maxLength": 63,
          "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
        },
        "llmEngine": {
          "type": "string",
          "maxLength": 63,
          "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
        },
        "improveStrategy": {
          "type": "string",
          "maxLength": 63,
          "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
        }
      },
      "additionalProperties": true
    },
    "semanticSearchMode": {
      "type": "string",
      "enum": [
        "off",
        "auto"
      ],
      "default": "off"
    },
    "embedding": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string"
        },
        "endpoint": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "apiKey": {
          "type": "string"
        },
        "dimension": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 4096
        },
        "localModel": {
          "type": "string",
          "minLength": 1
        },
        "maxInputTokens": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "maxTokens": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "batchSize": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "contextLength": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "ollamaOptions": {
          "type": "object",
          "properties": {
            "num_ctx": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "additionalProperties": true
        },
        "timeoutMs": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "concurrency": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 16
        }
      },
      "additionalProperties": true
    },
    "execution": {
      "type": "object",
      "properties": {
        "allowedTools": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "default": []
        }
      },
      "additionalProperties": false
    },
    "index": {
      "type": "object",
      "properties": {
        "defaults": {
          "type": "object",
          "properties": {
            "engine": {
              "type": "string",
              "maxLength": 63,
              "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
            },
            "model": {
              "type": "string",
              "minLength": 1
            },
            "timeoutMs": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ]
            },
            "llm": {
              "type": "object",
              "properties": {
                "temperature": {
                  "type": "number"
                },
                "maxTokens": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "supportsJsonSchema": {
                  "type": "boolean"
                },
                "extraParams": {
                  "type": "object",
                  "additionalProperties": {}
                },
                "contextLength": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "enableThinking": {
                  "type": "boolean"
                },
                "reasoningEffort": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": true
            }
          },
          "additionalProperties": true
        },
        "metadataEnhance": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            }
          },
          "additionalProperties": true
        }
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "engine": {
            "type": "string",
            "maxLength": 63,
            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
          },
          "model": {
            "type": "string",
            "minLength": 1
          },
          "timeoutMs": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "llm": {
            "type": "object",
            "properties": {
              "temperature": {
                "type": "number"
              },
              "maxTokens": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "supportsJsonSchema": {
                "type": "boolean"
              },
              "extraParams": {
                "type": "object",
                "additionalProperties": {}
              },
              "contextLength": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "enableThinking": {
                "type": "boolean"
              },
              "reasoningEffort": {
                "type": "string",
                "minLength": 1
              }
            },
            "additionalProperties": true
          },
          "graphExtractionBatchSize": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "graphExtractionIncludeTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1
          },
          "lazyGraphExtraction": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      }
    },
    "registries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "enabled": {
            "type": "boolean"
          },
          "provider": {
            "type": "string",
            "minLength": 1
          },
          "options": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": true
      }
    },
    "bundles": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1
          },
          "git": {
            "type": "string",
            "minLength": 1
          },
          "website": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "refresh": {
                "type": "string",
                "minLength": 1
              },
              "maxPages": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "maxDepth": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "respectRobots": {
                "type": "boolean"
              },
              "crawlTimeoutMs": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "url"
            ],
            "additionalProperties": true
          },
          "npm": {
            "type": "string",
            "minLength": 1
          },
          "credential": {
            "type": "string",
            "minLength": 1
          },
          "writable": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          },
          "registryId": {
            "type": "string",
            "minLength": 1
          },
          "components": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "root": {
                  "type": "string",
                  "minLength": 1
                },
                "adapter": {
                  "type": "string",
                  "minLength": 1
                },
                "writable": {
                  "type": "boolean"
                }
              },
              "additionalProperties": true
            },
            "propertyNames": {
              "minLength": 1
            }
          }
        },
        "additionalProperties": true
      }
    },
    "defaultBundle": {
      "type": "string",
      "minLength": 1
    },
    "output": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string",
          "enum": [
            "json",
            "yaml",
            "text",
            "jsonl",
            "md",
            "html"
          ]
        },
        "detail": {
          "type": "string",
          "enum": [
            "brief",
            "normal",
            "full"
          ]
        }
      },
      "additionalProperties": true
    },
    "defaultWriteTarget": {
      "type": "string",
      "minLength": 1
    },
    "search": {
      "type": "object",
      "properties": {
        "minScore": {
          "type": "number",
          "minimum": 0
        },
        "defaultExcludeTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "graphBoost": {
          "type": "object",
          "properties": {
            "directBoostPerEntity": {
              "type": "number",
              "minimum": 0
            },
            "directBoostCap": {
              "type": "number",
              "minimum": 0
            },
            "hopBoostPerEntity": {
              "type": "number",
              "minimum": 0
            },
            "hopBoostCap": {
              "type": "number",
              "minimum": 0
            },
            "maxHops": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 3
            },
            "confidenceMode": {
              "type": "string",
              "enum": [
                "blend"
              ],
              "default": "blend"
            },
            "confidenceWeight": {
              "type": "number",
              "minimum": 0,
              "maximum": 1,
              "default": 0.2
            }
          },
          "additionalProperties": true
        },
        "curateRerank": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "endpoint": {
              "type": "string"
            },
            "model": {
              "type": "string",
              "minLength": 1
            },
            "apiKey": {
              "type": "string"
            },
            "timeoutMs": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "topN": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 50
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": true
    },
    "feedback": {
      "type": "object",
      "properties": {
        "requireReason": {
          "type": "boolean"
        },
        "allowedFailureModes": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      },
      "additionalProperties": true
    },
    "archiveRetentionDays": {
      "type": "number",
      "minimum": 0
    },
    "improve": {
      "type": "object",
      "properties": {
        "strategies": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "engine": {
                "type": "string",
                "maxLength": 63,
                "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
              },
              "model": {
                "type": "string",
                "minLength": 1
              },
              "timeoutMs": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "llm": {
                "type": "object",
                "properties": {
                  "temperature": {
                    "type": "number"
                  },
                  "maxTokens": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "supportsJsonSchema": {
                    "type": "boolean"
                  },
                  "extraParams": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "contextLength": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "enableThinking": {
                    "type": "boolean"
                  },
                  "reasoningEffort": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "additionalProperties": true
              },
              "description": {
                "type": "string",
                "minLength": 1
              },
              "processes": {
                "type": "object",
                "properties": {
                  "reflect": {
                    "type": "object",
                    "properties": {
                      "engine": {
                        "type": "string",
                        "maxLength": 63,
                        "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1
                      },
                      "llm": {
                        "type": "object",
                        "properties": {
                          "temperature": {
                            "type": "number"
                          },
                          "maxTokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "supportsJsonSchema": {
                            "type": "boolean"
                          },
                          "extraParams": {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          "contextLength": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "enableThinking": {
                            "type": "boolean"
                          },
                          "reasoningEffort": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "timeoutMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "allowedTypes": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "limit": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "qualityGate": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": true
                      },
                      "lowValueFilter": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": true
                      }
                    },
                    "additionalProperties": true
                  },
                  "distill": {
                    "type": "object",
                    "properties": {
                      "engine": {
                        "type": "string",
                        "maxLength": 63,
                        "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1
                      },
                      "llm": {
                        "type": "object",
                        "properties": {
                          "temperature": {
                            "type": "number"
                          },
                          "maxTokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "supportsJsonSchema": {
                            "type": "boolean"
                          },
                          "extraParams": {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          "contextLength": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "enableThinking": {
                            "type": "boolean"
                          },
                          "reasoningEffort": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "timeoutMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "allowedTypes": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "limit": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "qualityGate": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": true
                      },
                      "requirePlannedRefs": {
                        "type": "boolean"
                      },
                      "cls": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "adjacentCount": {
                            "type": "integer",
                            "minimum": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "fidelityCheck": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": true
                      }
                    },
                    "additionalProperties": true
                  },
                  "consolidate": {
                    "type": "object",
                    "properties": {
                      "engine": {
                        "type": "string",
                        "maxLength": 63,
                        "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1
                      },
                      "llm": {
                        "type": "object",
                        "properties": {
                          "temperature": {
                            "type": "number"
                          },
                          "maxTokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "supportsJsonSchema": {
                            "type": "boolean"
                          },
                          "extraParams": {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          "contextLength": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "enableThinking": {
                            "type": "boolean"
                          },
                          "reasoningEffort": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "timeoutMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "allowedTypes": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "limit": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "minPoolSize": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "maxChunkSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "incrementalSince": {
                        "type": "string"
                      },
                      "neighborsPerChanged": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "p90ChunkSecondsDefault": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "antiCollapse": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "maxGeneration": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "lexicalDiversityCheck": {
                            "type": "boolean"
                          },
                          "randomClusterFraction": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "mergeInformationFloor": {
                            "type": "boolean"
                          },
                          "minSpecificityRetention": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "contradictionDetection": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": true
                      }
                    },
                    "additionalProperties": true
                  },
                  "memoryInference": {
                    "type": "object",
                    "properties": {
                      "engine": {
                        "type": "string",
                        "maxLength": 63,
                        "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1
                      },
                      "llm": {
                        "type": "object",
                        "properties": {
                          "temperature": {
                            "type": "number"
                          },
                          "maxTokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "supportsJsonSchema": {
                            "type": "boolean"
                          },
                          "extraParams": {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          "contextLength": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "enableThinking": {
                            "type": "boolean"
                          },
                          "reasoningEffort": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "timeoutMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "minPendingCount": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "cls": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "adjacentCount": {
                            "type": "integer",
                            "minimum": 1
                          }
                        },
                        "additionalProperties": true
                      }
                    },
                    "additionalProperties": true
                  },
                  "graphExtraction": {
                    "type": "object",
                    "properties": {
                      "engine": {
                        "type": "string",
                        "maxLength": 63,
                        "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1
                      },
                      "llm": {
                        "type": "object",
                        "properties": {
                          "temperature": {
                            "type": "number"
                          },
                          "maxTokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "supportsJsonSchema": {
                            "type": "boolean"
                          },
                          "extraParams": {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          "contextLength": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "enableThinking": {
                            "type": "boolean"
                          },
                          "reasoningEffort": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "timeoutMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "topN": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "includeTypes": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        },
                        "minItems": 1
                      },
                      "batchSize": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "fullScan": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": true
                  },
                  "extract": {
                    "type": "object",
                    "properties": {
                      "engine": {
                        "type": "string",
                        "maxLength": 63,
                        "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1
                      },
                      "llm": {
                        "type": "object",
                        "properties": {
                          "temperature": {
                            "type": "number"
                          },
                          "maxTokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "supportsJsonSchema": {
                            "type": "boolean"
                          },
                          "extraParams": {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          "contextLength": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "enableThinking": {
                            "type": "boolean"
                          },
                          "reasoningEffort": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "timeoutMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "defaultSince": {
                        "type": "string",
                        "minLength": 1
                      },
                      "maxTotalChars": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "minContentChars": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "triage": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "minScore": {
                            "type": "number",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": true
                      },
                      "minNewSessions": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "maxSessionsPerRun": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "indexSessions": {
                        "type": "boolean"
                      },
                      "minSessionDuration": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": true
                  },
                  "validation": {
                    "type": "object",
                    "properties": {
                      "engine": {
                        "type": "string",
                        "maxLength": 63,
                        "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1
                      },
                      "llm": {
                        "type": "object",
                        "properties": {
                          "temperature": {
                            "type": "number"
                          },
                          "maxTokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "supportsJsonSchema": {
                            "type": "boolean"
                          },
                          "extraParams": {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          "contextLength": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "enableThinking": {
                            "type": "boolean"
                          },
                          "reasoningEffort": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "timeoutMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": true
                  },
                  "triage": {
                    "type": "object",
                    "properties": {
                      "engine": {
                        "type": "string",
                        "maxLength": 63,
                        "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1
                      },
                      "llm": {
                        "type": "object",
                        "properties": {
                          "temperature": {
                            "type": "number"
                          },
                          "maxTokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "supportsJsonSchema": {
                            "type": "boolean"
                          },
                          "extraParams": {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          "contextLength": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "enableThinking": {
                            "type": "boolean"
                          },
                          "reasoningEffort": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "timeoutMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "applyMode": {
                        "type": "string",
                        "enum": [
                          "queue",
                          "promote"
                        ]
                      },
                      "policy": {
                        "type": "string",
                        "minLength": 1
                      },
                      "maxAcceptsPerRun": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "maxDiffLines": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "rejectEmpty": {
                        "type": "boolean"
                      },
                      "judgment": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "engine": {
                                "type": "string",
                                "maxLength": 63,
                                "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                              },
                              "model": {
                                "type": "string",
                                "minLength": 1
                              },
                              "timeoutMs": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "llm": {
                                "type": "object",
                                "properties": {
                                  "temperature": {
                                    "type": "number"
                                  },
                                  "maxTokens": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "supportsJsonSchema": {
                                    "type": "boolean"
                                  },
                                  "extraParams": {
                                    "type": "object",
                                    "additionalProperties": {}
                                  },
                                  "contextLength": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "enableThinking": {
                                    "type": "boolean"
                                  },
                                  "reasoningEffort": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "additionalProperties": true
                  },
                  "proactiveMaintenance": {
                    "type": "object",
                    "properties": {
                      "engine": {
                        "type": "string",
                        "maxLength": 63,
                        "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1
                      },
                      "llm": {
                        "type": "object",
                        "properties": {
                          "temperature": {
                            "type": "number"
                          },
                          "maxTokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "supportsJsonSchema": {
                            "type": "boolean"
                          },
                          "extraParams": {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          "contextLength": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "enableThinking": {
                            "type": "boolean"
                          },
                          "reasoningEffort": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": true
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "timeoutMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dueDays": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "maxPerRun": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "limit": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      }
                    },
                    "additionalProperties": true
                  }
                },
                "additionalProperties": true
              },
              "limit": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "sync": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "push": {
                    "type": "boolean"
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "additionalProperties": true
              }
            },
            "additionalProperties": true
          },
          "propertyNames": {
            "maxLength": 63,
            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
          }
        },
        "utilityDecay": {
          "type": "object",
          "properties": {
            "halfLifeDays": {
              "type": "number",
              "minimum": 0.1
            },
            "feedbackStabilityBoost": {
              "type": "number",
              "minimum": 1
            }
          },
          "additionalProperties": true
        },
        "eventRetentionDays": {
          "type": "number",
          "minimum": 0
        },
        "salience": {
          "type": "object",
          "properties": {
            "outcomeWeightEnabled": {
              "type": "boolean"
            },
            "salienceThreshold": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "replayBudget": {
              "type": "integer",
              "minimum": 0
            }
          },
          "additionalProperties": true
        },
        "collapseDetector": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "canaryCount": {
              "type": "integer",
              "minimum": 3,
              "maximum": 200
            },
            "k": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "windowCycles": {
              "type": "integer",
              "minimum": 2,
              "maximum": 50
            },
            "recallDropThreshold": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "entropyDropThreshold": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "retentionDays": {
              "type": "integer",
              "minimum": 1
            }
          },
          "additionalProperties": true
        },
        "stateGc": {
          "type": "object",
          "properties": {
            "collect": {
              "type": "boolean"
            }
          },
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    },
    "workflow": {
      "type": "object",
      "properties": {
        "maxConcurrency": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "defaultMapConcurrency": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "judgeEngine": {
          "type": "string",
          "maxLength": 63,
          "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
        }
      },
      "additionalProperties": true
    },
    "scheduler": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "task",
                  "workflow"
                ]
              },
              "ref": {
                "type": "string",
                "minLength": 1
              },
              "sourceId": {
                "type": "string",
                "pattern": "^sha256:[0-9a-f]{64}$"
              }
            },
            "required": [
              "kind",
              "ref",
              "sourceId"
            ],
            "additionalProperties": false
          },
          "default": []
        }
      },
      "additionalProperties": false
    },
    "setup": {
      "type": "object",
      "properties": {},
      "additionalProperties": true
    },
    "experimental": {
      "type": "object",
      "properties": {
        "improveAutonomy": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "configVersion"
  ],
  "additionalProperties": true,
  "$defs": {
    "AkmConfig": {
      "type": "object",
      "properties": {
        "configVersion": {
          "type": "string",
          "const": "0.9.0"
        },
        "extends": {
          "type": "string",
          "minLength": 1
        },
        "engines": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "llm"
                  },
                  "provider": {
                    "type": "string"
                  },
                  "endpoint": {
                    "type": "string"
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1
                  },
                  "apiKey": {
                    "type": "string"
                  },
                  "apiKeyFile": {
                    "type": "string",
                    "minLength": 1
                  },
                  "temperature": {
                    "type": "number"
                  },
                  "maxTokens": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "timeoutMs": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 2147483647
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "concurrency": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "extraParams": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "contextLength": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "enableThinking": {
                    "type": "boolean"
                  },
                  "reasoningEffort": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "kind",
                  "endpoint",
                  "model"
                ],
                "additionalProperties": true
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "agent"
                  },
                  "platform": {
                    "type": "string",
                    "enum": [
                      "opencode",
                      "claude",
                      "opencode-sdk",
                      "codex",
                      "copilot",
                      "pi",
                      "gemini",
                      "aider",
                      "amazonq",
                      "openhands"
                    ]
                  },
                  "bin": {
                    "type": "string",
                    "minLength": 1
                  },
                  "args": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "workspace": {
                    "type": "string",
                    "minLength": 1
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1
                  },
                  "timeoutMs": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 2147483647
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "llmEngine": {
                    "type": "string",
                    "maxLength": 63,
                    "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                  }
                },
                "required": [
                  "kind",
                  "platform"
                ],
                "additionalProperties": true
              }
            ]
          },
          "propertyNames": {
            "maxLength": 63,
            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
          }
        },
        "defaults": {
          "type": "object",
          "properties": {
            "engine": {
              "type": "string",
              "maxLength": 63,
              "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
            },
            "llmEngine": {
              "type": "string",
              "maxLength": 63,
              "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
            },
            "improveStrategy": {
              "type": "string",
              "maxLength": 63,
              "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
            }
          },
          "additionalProperties": true
        },
        "semanticSearchMode": {
          "type": "string",
          "enum": [
            "off",
            "auto"
          ],
          "default": "off"
        },
        "embedding": {
          "type": "object",
          "properties": {
            "provider": {
              "type": "string"
            },
            "endpoint": {
              "type": "string"
            },
            "model": {
              "type": "string"
            },
            "apiKey": {
              "type": "string"
            },
            "dimension": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 4096
            },
            "localModel": {
              "type": "string",
              "minLength": 1
            },
            "maxInputTokens": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "maxTokens": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "batchSize": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "contextLength": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "ollamaOptions": {
              "type": "object",
              "properties": {
                "num_ctx": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                }
              },
              "additionalProperties": true
            },
            "timeoutMs": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "concurrency": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 16
            }
          },
          "additionalProperties": true
        },
        "execution": {
          "type": "object",
          "properties": {
            "allowedTools": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              },
              "default": []
            }
          },
          "additionalProperties": false
        },
        "index": {
          "type": "object",
          "properties": {
            "defaults": {
              "type": "object",
              "properties": {
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": true
                }
              },
              "additionalProperties": true
            },
            "metadataEnhance": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                }
              },
              "additionalProperties": true
            }
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "engine": {
                "type": "string",
                "maxLength": 63,
                "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
              },
              "model": {
                "type": "string",
                "minLength": 1
              },
              "timeoutMs": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "enabled": {
                "type": "boolean"
              },
              "llm": {
                "type": "object",
                "properties": {
                  "temperature": {
                    "type": "number"
                  },
                  "maxTokens": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "supportsJsonSchema": {
                    "type": "boolean"
                  },
                  "extraParams": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "contextLength": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "enableThinking": {
                    "type": "boolean"
                  },
                  "reasoningEffort": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "additionalProperties": true
              },
              "graphExtractionBatchSize": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "graphExtractionIncludeTypes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "minItems": 1
              },
              "lazyGraphExtraction": {
                "type": "boolean"
              }
            },
            "additionalProperties": true
          }
        },
        "registries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "enabled": {
                "type": "boolean"
              },
              "provider": {
                "type": "string",
                "minLength": 1
              },
              "options": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "url"
            ],
            "additionalProperties": true
          }
        },
        "bundles": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string",
                "minLength": 1
              },
              "git": {
                "type": "string",
                "minLength": 1
              },
              "website": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "refresh": {
                    "type": "string",
                    "minLength": 1
                  },
                  "maxPages": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "maxDepth": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "respectRobots": {
                    "type": "boolean"
                  },
                  "crawlTimeoutMs": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "url"
                ],
                "additionalProperties": true
              },
              "npm": {
                "type": "string",
                "minLength": 1
              },
              "credential": {
                "type": "string",
                "minLength": 1
              },
              "writable": {
                "type": "boolean"
              },
              "enabled": {
                "type": "boolean"
              },
              "registryId": {
                "type": "string",
                "minLength": 1
              },
              "components": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "root": {
                      "type": "string",
                      "minLength": 1
                    },
                    "adapter": {
                      "type": "string",
                      "minLength": 1
                    },
                    "writable": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": true
                },
                "propertyNames": {
                  "minLength": 1
                }
              }
            },
            "additionalProperties": true
          }
        },
        "defaultBundle": {
          "type": "string",
          "minLength": 1
        },
        "output": {
          "type": "object",
          "properties": {
            "format": {
              "type": "string",
              "enum": [
                "json",
                "yaml",
                "text",
                "jsonl",
                "md",
                "html"
              ]
            },
            "detail": {
              "type": "string",
              "enum": [
                "brief",
                "normal",
                "full"
              ]
            }
          },
          "additionalProperties": true
        },
        "defaultWriteTarget": {
          "type": "string",
          "minLength": 1
        },
        "search": {
          "type": "object",
          "properties": {
            "minScore": {
              "type": "number",
              "minimum": 0
            },
            "defaultExcludeTypes": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              }
            },
            "graphBoost": {
              "type": "object",
              "properties": {
                "directBoostPerEntity": {
                  "type": "number",
                  "minimum": 0
                },
                "directBoostCap": {
                  "type": "number",
                  "minimum": 0
                },
                "hopBoostPerEntity": {
                  "type": "number",
                  "minimum": 0
                },
                "hopBoostCap": {
                  "type": "number",
                  "minimum": 0
                },
                "maxHops": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 3
                },
                "confidenceMode": {
                  "type": "string",
                  "enum": [
                    "blend"
                  ],
                  "default": "blend"
                },
                "confidenceWeight": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1,
                  "default": 0.2
                }
              },
              "additionalProperties": true
            },
            "curateRerank": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "endpoint": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "apiKey": {
                  "type": "string"
                },
                "timeoutMs": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "topN": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 50
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": true
        },
        "feedback": {
          "type": "object",
          "properties": {
            "requireReason": {
              "type": "boolean"
            },
            "allowedFailureModes": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "additionalProperties": true
        },
        "archiveRetentionDays": {
          "type": "number",
          "minimum": 0
        },
        "improve": {
          "type": "object",
          "properties": {
            "strategies": {
              "type": "object",
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "engine": {
                    "type": "string",
                    "maxLength": 63,
                    "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1
                  },
                  "timeoutMs": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "llm": {
                    "type": "object",
                    "properties": {
                      "temperature": {
                        "type": "number"
                      },
                      "maxTokens": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "supportsJsonSchema": {
                        "type": "boolean"
                      },
                      "extraParams": {
                        "type": "object",
                        "additionalProperties": {}
                      },
                      "contextLength": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "enableThinking": {
                        "type": "boolean"
                      },
                      "reasoningEffort": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": true
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1
                  },
                  "processes": {
                    "type": "object",
                    "properties": {
                      "reflect": {
                        "type": "object",
                        "properties": {
                          "engine": {
                            "type": "string",
                            "maxLength": 63,
                            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                          },
                          "model": {
                            "type": "string",
                            "minLength": 1
                          },
                          "llm": {
                            "type": "object",
                            "properties": {
                              "temperature": {
                                "type": "number"
                              },
                              "maxTokens": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "supportsJsonSchema": {
                                "type": "boolean"
                              },
                              "extraParams": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "contextLength": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "enableThinking": {
                                "type": "boolean"
                              },
                              "reasoningEffort": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeoutMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "allowedTypes": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "limit": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "qualityGate": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": true
                          },
                          "lowValueFilter": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "additionalProperties": true
                      },
                      "distill": {
                        "type": "object",
                        "properties": {
                          "engine": {
                            "type": "string",
                            "maxLength": 63,
                            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                          },
                          "model": {
                            "type": "string",
                            "minLength": 1
                          },
                          "llm": {
                            "type": "object",
                            "properties": {
                              "temperature": {
                                "type": "number"
                              },
                              "maxTokens": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "supportsJsonSchema": {
                                "type": "boolean"
                              },
                              "extraParams": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "contextLength": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "enableThinking": {
                                "type": "boolean"
                              },
                              "reasoningEffort": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeoutMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "allowedTypes": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "limit": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "qualityGate": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": true
                          },
                          "requirePlannedRefs": {
                            "type": "boolean"
                          },
                          "cls": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "adjacentCount": {
                                "type": "integer",
                                "minimum": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "fidelityCheck": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "additionalProperties": true
                      },
                      "consolidate": {
                        "type": "object",
                        "properties": {
                          "engine": {
                            "type": "string",
                            "maxLength": 63,
                            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                          },
                          "model": {
                            "type": "string",
                            "minLength": 1
                          },
                          "llm": {
                            "type": "object",
                            "properties": {
                              "temperature": {
                                "type": "number"
                              },
                              "maxTokens": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "supportsJsonSchema": {
                                "type": "boolean"
                              },
                              "extraParams": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "contextLength": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "enableThinking": {
                                "type": "boolean"
                              },
                              "reasoningEffort": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeoutMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "allowedTypes": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "limit": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "minPoolSize": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "maxChunkSize": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50
                          },
                          "incrementalSince": {
                            "type": "string"
                          },
                          "neighborsPerChanged": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "p90ChunkSecondsDefault": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "antiCollapse": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "maxGeneration": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "lexicalDiversityCheck": {
                                "type": "boolean"
                              },
                              "randomClusterFraction": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              },
                              "mergeInformationFloor": {
                                "type": "boolean"
                              },
                              "minSpecificityRetention": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "contradictionDetection": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "additionalProperties": true
                      },
                      "memoryInference": {
                        "type": "object",
                        "properties": {
                          "engine": {
                            "type": "string",
                            "maxLength": 63,
                            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                          },
                          "model": {
                            "type": "string",
                            "minLength": 1
                          },
                          "llm": {
                            "type": "object",
                            "properties": {
                              "temperature": {
                                "type": "number"
                              },
                              "maxTokens": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "supportsJsonSchema": {
                                "type": "boolean"
                              },
                              "extraParams": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "contextLength": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "enableThinking": {
                                "type": "boolean"
                              },
                              "reasoningEffort": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeoutMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "minPendingCount": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "cls": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "adjacentCount": {
                                "type": "integer",
                                "minimum": 1
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "additionalProperties": true
                      },
                      "graphExtraction": {
                        "type": "object",
                        "properties": {
                          "engine": {
                            "type": "string",
                            "maxLength": 63,
                            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                          },
                          "model": {
                            "type": "string",
                            "minLength": 1
                          },
                          "llm": {
                            "type": "object",
                            "properties": {
                              "temperature": {
                                "type": "number"
                              },
                              "maxTokens": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "supportsJsonSchema": {
                                "type": "boolean"
                              },
                              "extraParams": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "contextLength": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "enableThinking": {
                                "type": "boolean"
                              },
                              "reasoningEffort": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeoutMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "topN": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "includeTypes": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1
                            },
                            "minItems": 1
                          },
                          "batchSize": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "fullScan": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": true
                      },
                      "extract": {
                        "type": "object",
                        "properties": {
                          "engine": {
                            "type": "string",
                            "maxLength": 63,
                            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                          },
                          "model": {
                            "type": "string",
                            "minLength": 1
                          },
                          "llm": {
                            "type": "object",
                            "properties": {
                              "temperature": {
                                "type": "number"
                              },
                              "maxTokens": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "supportsJsonSchema": {
                                "type": "boolean"
                              },
                              "extraParams": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "contextLength": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "enableThinking": {
                                "type": "boolean"
                              },
                              "reasoningEffort": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeoutMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "defaultSince": {
                            "type": "string",
                            "minLength": 1
                          },
                          "maxTotalChars": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "minContentChars": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "triage": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "minScore": {
                                "type": "number",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": true
                          },
                          "minNewSessions": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "maxSessionsPerRun": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "indexSessions": {
                            "type": "boolean"
                          },
                          "minSessionDuration": {
                            "type": "number",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": true
                      },
                      "validation": {
                        "type": "object",
                        "properties": {
                          "engine": {
                            "type": "string",
                            "maxLength": 63,
                            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                          },
                          "model": {
                            "type": "string",
                            "minLength": 1
                          },
                          "llm": {
                            "type": "object",
                            "properties": {
                              "temperature": {
                                "type": "number"
                              },
                              "maxTokens": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "supportsJsonSchema": {
                                "type": "boolean"
                              },
                              "extraParams": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "contextLength": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "enableThinking": {
                                "type": "boolean"
                              },
                              "reasoningEffort": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeoutMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": true
                      },
                      "triage": {
                        "type": "object",
                        "properties": {
                          "engine": {
                            "type": "string",
                            "maxLength": 63,
                            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                          },
                          "model": {
                            "type": "string",
                            "minLength": 1
                          },
                          "llm": {
                            "type": "object",
                            "properties": {
                              "temperature": {
                                "type": "number"
                              },
                              "maxTokens": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "supportsJsonSchema": {
                                "type": "boolean"
                              },
                              "extraParams": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "contextLength": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "enableThinking": {
                                "type": "boolean"
                              },
                              "reasoningEffort": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeoutMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "applyMode": {
                            "type": "string",
                            "enum": [
                              "queue",
                              "promote"
                            ]
                          },
                          "policy": {
                            "type": "string",
                            "minLength": 1
                          },
                          "maxAcceptsPerRun": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "maxDiffLines": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "rejectEmpty": {
                            "type": "boolean"
                          },
                          "judgment": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "engine": {
                                    "type": "string",
                                    "maxLength": 63,
                                    "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                                  },
                                  "model": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "timeoutMs": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "llm": {
                                    "type": "object",
                                    "properties": {
                                      "temperature": {
                                        "type": "number"
                                      },
                                      "maxTokens": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      },
                                      "supportsJsonSchema": {
                                        "type": "boolean"
                                      },
                                      "extraParams": {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      "contextLength": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      },
                                      "enableThinking": {
                                        "type": "boolean"
                                      },
                                      "reasoningEffort": {
                                        "type": "string",
                                        "minLength": 1
                                      }
                                    },
                                    "additionalProperties": false
                                  }
                                },
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        "additionalProperties": true
                      },
                      "proactiveMaintenance": {
                        "type": "object",
                        "properties": {
                          "engine": {
                            "type": "string",
                            "maxLength": 63,
                            "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                          },
                          "model": {
                            "type": "string",
                            "minLength": 1
                          },
                          "llm": {
                            "type": "object",
                            "properties": {
                              "temperature": {
                                "type": "number"
                              },
                              "maxTokens": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "supportsJsonSchema": {
                                "type": "boolean"
                              },
                              "extraParams": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "contextLength": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "enableThinking": {
                                "type": "boolean"
                              },
                              "reasoningEffort": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeoutMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dueDays": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "maxPerRun": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          }
                        },
                        "additionalProperties": true
                      }
                    },
                    "additionalProperties": true
                  },
                  "limit": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "sync": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "push": {
                        "type": "boolean"
                      },
                      "message": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": true
                  }
                },
                "additionalProperties": true
              },
              "propertyNames": {
                "maxLength": 63,
                "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
              }
            },
            "utilityDecay": {
              "type": "object",
              "properties": {
                "halfLifeDays": {
                  "type": "number",
                  "minimum": 0.1
                },
                "feedbackStabilityBoost": {
                  "type": "number",
                  "minimum": 1
                }
              },
              "additionalProperties": true
            },
            "eventRetentionDays": {
              "type": "number",
              "minimum": 0
            },
            "salience": {
              "type": "object",
              "properties": {
                "outcomeWeightEnabled": {
                  "type": "boolean"
                },
                "salienceThreshold": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "replayBudget": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": true
            },
            "collapseDetector": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "canaryCount": {
                  "type": "integer",
                  "minimum": 3,
                  "maximum": 200
                },
                "k": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "windowCycles": {
                  "type": "integer",
                  "minimum": 2,
                  "maximum": 50
                },
                "recallDropThreshold": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "entropyDropThreshold": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "retentionDays": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "additionalProperties": true
            },
            "stateGc": {
              "type": "object",
              "properties": {
                "collect": {
                  "type": "boolean"
                }
              },
              "additionalProperties": true
            }
          },
          "additionalProperties": true
        },
        "workflow": {
          "type": "object",
          "properties": {
            "maxConcurrency": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "defaultMapConcurrency": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "judgeEngine": {
              "type": "string",
              "maxLength": 63,
              "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
            }
          },
          "additionalProperties": true
        },
        "scheduler": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "task",
                      "workflow"
                    ]
                  },
                  "ref": {
                    "type": "string",
                    "minLength": 1
                  },
                  "sourceId": {
                    "type": "string",
                    "pattern": "^sha256:[0-9a-f]{64}$"
                  }
                },
                "required": [
                  "kind",
                  "ref",
                  "sourceId"
                ],
                "additionalProperties": false
              },
              "default": []
            }
          },
          "additionalProperties": false
        },
        "setup": {
          "type": "object",
          "properties": {},
          "additionalProperties": true
        },
        "experimental": {
          "type": "object",
          "properties": {
            "improveAutonomy": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "configVersion"
      ],
      "additionalProperties": true
    },
    "LlmProfileConfig": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string"
        },
        "endpoint": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "apiKey": {
          "type": "string"
        },
        "temperature": {
          "type": "number"
        },
        "maxTokens": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "timeoutMs": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 2147483647
            },
            {
              "type": "null"
            }
          ]
        },
        "concurrency": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "supportsJsonSchema": {
          "type": "boolean"
        },
        "extraParams": {
          "type": "object",
          "additionalProperties": {}
        },
        "contextLength": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "enableThinking": {
          "type": "boolean"
        },
        "reasoningEffort": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "endpoint",
        "model"
      ],
      "additionalProperties": true
    },
    "EmbeddingConnectionConfig": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string"
        },
        "endpoint": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "apiKey": {
          "type": "string"
        },
        "dimension": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 4096
        },
        "localModel": {
          "type": "string",
          "minLength": 1
        },
        "maxInputTokens": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "maxTokens": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "batchSize": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "contextLength": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "ollamaOptions": {
          "type": "object",
          "properties": {
            "num_ctx": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "additionalProperties": true
        },
        "timeoutMs": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "concurrency": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 16
        }
      },
      "additionalProperties": true
    },
    "ImproveProcessConfig": {
      "type": "object",
      "properties": {
        "engine": {
          "type": "string",
          "maxLength": 63,
          "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
        },
        "model": {
          "type": "string",
          "minLength": 1
        },
        "llm": {
          "type": "object",
          "properties": {
            "temperature": {
              "type": "number"
            },
            "maxTokens": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "supportsJsonSchema": {
              "type": "boolean"
            },
            "extraParams": {
              "type": "object",
              "additionalProperties": {}
            },
            "contextLength": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "enableThinking": {
              "type": "boolean"
            },
            "reasoningEffort": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": true
        },
        "enabled": {
          "type": "boolean"
        },
        "timeoutMs": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "allowedTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "limit": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "qualityGate": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            }
          },
          "additionalProperties": true
        },
        "lowValueFilter": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            }
          },
          "additionalProperties": true
        },
        "requirePlannedRefs": {
          "type": "boolean"
        },
        "cls": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "adjacentCount": {
              "type": "integer",
              "minimum": 1
            }
          },
          "additionalProperties": true
        },
        "fidelityCheck": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            }
          },
          "additionalProperties": true
        },
        "minPoolSize": {
          "type": "integer",
          "minimum": 0
        },
        "maxChunkSize": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50
        },
        "incrementalSince": {
          "type": "string"
        },
        "neighborsPerChanged": {
          "type": "integer",
          "minimum": 1
        },
        "p90ChunkSecondsDefault": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "antiCollapse": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "maxGeneration": {
              "type": "integer",
              "minimum": 1
            },
            "lexicalDiversityCheck": {
              "type": "boolean"
            },
            "randomClusterFraction": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "mergeInformationFloor": {
              "type": "boolean"
            },
            "minSpecificityRetention": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            }
          },
          "additionalProperties": true
        },
        "contradictionDetection": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            }
          },
          "additionalProperties": true
        },
        "minPendingCount": {
          "type": "integer",
          "minimum": 0
        },
        "topN": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "includeTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 1
        },
        "batchSize": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "fullScan": {
          "type": "boolean"
        },
        "defaultSince": {
          "type": "string",
          "minLength": 1
        },
        "maxTotalChars": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "minContentChars": {
          "type": "integer",
          "minimum": 0
        },
        "triage": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "minScore": {
              "type": "number",
              "minimum": 0
            }
          },
          "additionalProperties": true
        },
        "minNewSessions": {
          "type": "integer",
          "minimum": 0
        },
        "maxSessionsPerRun": {
          "type": "integer",
          "minimum": 0
        },
        "indexSessions": {
          "type": "boolean"
        },
        "minSessionDuration": {
          "type": "number",
          "minimum": 0
        },
        "applyMode": {
          "type": "string",
          "enum": [
            "queue",
            "promote"
          ]
        },
        "policy": {
          "type": "string",
          "minLength": 1
        },
        "maxAcceptsPerRun": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "maxDiffLines": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "rejectEmpty": {
          "type": "boolean"
        },
        "judgment": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "dueDays": {
          "type": "integer",
          "minimum": 0
        },
        "maxPerRun": {
          "type": "integer",
          "exclusiveMinimum": 0
        }
      },
      "additionalProperties": true
    },
    "ImproveProfileConfig": {
      "type": "object",
      "properties": {
        "engine": {
          "type": "string",
          "maxLength": 63,
          "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
        },
        "model": {
          "type": "string",
          "minLength": 1
        },
        "timeoutMs": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "llm": {
          "type": "object",
          "properties": {
            "temperature": {
              "type": "number"
            },
            "maxTokens": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "supportsJsonSchema": {
              "type": "boolean"
            },
            "extraParams": {
              "type": "object",
              "additionalProperties": {}
            },
            "contextLength": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "enableThinking": {
              "type": "boolean"
            },
            "reasoningEffort": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": true
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "processes": {
          "type": "object",
          "properties": {
            "reflect": {
              "type": "object",
              "properties": {
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "allowedTypes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "qualityGate": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": true
                },
                "lowValueFilter": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": true
                }
              },
              "additionalProperties": true
            },
            "distill": {
              "type": "object",
              "properties": {
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "allowedTypes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "qualityGate": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": true
                },
                "requirePlannedRefs": {
                  "type": "boolean"
                },
                "cls": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "adjacentCount": {
                      "type": "integer",
                      "minimum": 1
                    }
                  },
                  "additionalProperties": true
                },
                "fidelityCheck": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": true
                }
              },
              "additionalProperties": true
            },
            "consolidate": {
              "type": "object",
              "properties": {
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "allowedTypes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "minPoolSize": {
                  "type": "integer",
                  "minimum": 0
                },
                "maxChunkSize": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 50
                },
                "incrementalSince": {
                  "type": "string"
                },
                "neighborsPerChanged": {
                  "type": "integer",
                  "minimum": 1
                },
                "p90ChunkSecondsDefault": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "antiCollapse": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "maxGeneration": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "lexicalDiversityCheck": {
                      "type": "boolean"
                    },
                    "randomClusterFraction": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mergeInformationFloor": {
                      "type": "boolean"
                    },
                    "minSpecificityRetention": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    }
                  },
                  "additionalProperties": true
                },
                "contradictionDetection": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": true
                }
              },
              "additionalProperties": true
            },
            "memoryInference": {
              "type": "object",
              "properties": {
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "minPendingCount": {
                  "type": "integer",
                  "minimum": 0
                },
                "cls": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "adjacentCount": {
                      "type": "integer",
                      "minimum": 1
                    }
                  },
                  "additionalProperties": true
                }
              },
              "additionalProperties": true
            },
            "graphExtraction": {
              "type": "object",
              "properties": {
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "topN": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "includeTypes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  },
                  "minItems": 1
                },
                "batchSize": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "fullScan": {
                  "type": "boolean"
                }
              },
              "additionalProperties": true
            },
            "extract": {
              "type": "object",
              "properties": {
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "defaultSince": {
                  "type": "string",
                  "minLength": 1
                },
                "maxTotalChars": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "minContentChars": {
                  "type": "integer",
                  "minimum": 0
                },
                "triage": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "minScore": {
                      "type": "number",
                      "minimum": 0
                    }
                  },
                  "additionalProperties": true
                },
                "minNewSessions": {
                  "type": "integer",
                  "minimum": 0
                },
                "maxSessionsPerRun": {
                  "type": "integer",
                  "minimum": 0
                },
                "indexSessions": {
                  "type": "boolean"
                },
                "minSessionDuration": {
                  "type": "number",
                  "minimum": 0
                }
              },
              "additionalProperties": true
            },
            "validation": {
              "type": "object",
              "properties": {
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true
            },
            "triage": {
              "type": "object",
              "properties": {
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "applyMode": {
                  "type": "string",
                  "enum": [
                    "queue",
                    "promote"
                  ]
                },
                "policy": {
                  "type": "string",
                  "minLength": 1
                },
                "maxAcceptsPerRun": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "maxDiffLines": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "rejectEmpty": {
                  "type": "boolean"
                },
                "judgment": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "engine": {
                          "type": "string",
                          "maxLength": 63,
                          "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                        },
                        "model": {
                          "type": "string",
                          "minLength": 1
                        },
                        "timeoutMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "llm": {
                          "type": "object",
                          "properties": {
                            "temperature": {
                              "type": "number"
                            },
                            "maxTokens": {
                              "type": "integer",
                              "exclusiveMinimum": 0
                            },
                            "supportsJsonSchema": {
                              "type": "boolean"
                            },
                            "extraParams": {
                              "type": "object",
                              "additionalProperties": {}
                            },
                            "contextLength": {
                              "type": "integer",
                              "exclusiveMinimum": 0
                            },
                            "enableThinking": {
                              "type": "boolean"
                            },
                            "reasoningEffort": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": true
            },
            "proactiveMaintenance": {
              "type": "object",
              "properties": {
                "engine": {
                  "type": "string",
                  "maxLength": 63,
                  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1
                },
                "llm": {
                  "type": "object",
                  "properties": {
                    "temperature": {
                      "type": "number"
                    },
                    "maxTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "supportsJsonSchema": {
                      "type": "boolean"
                    },
                    "extraParams": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "contextLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "enableThinking": {
                      "type": "boolean"
                    },
                    "reasoningEffort": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "additionalProperties": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "timeoutMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dueDays": {
                  "type": "integer",
                  "minimum": 0
                },
                "maxPerRun": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                }
              },
              "additionalProperties": true
            }
          },
          "additionalProperties": true
        },
        "limit": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "sync": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "push": {
              "type": "boolean"
            },
            "message": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    },
    "RegistryConfigEntry": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "enabled": {
          "type": "boolean"
        },
        "provider": {
          "type": "string",
          "minLength": 1
        },
        "options": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "required": [
        "url"
      ],
      "additionalProperties": true
    }
  }
}
