{
  "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } },
  "AllowedHosts": "*",
  "CareFix": {
    "ControlDb": "Server=localhost,1433;Database=CS_CAREFIX;User Id=carefix_app;Password=SET-IN-ENV;Encrypt=True;TrustServerCertificate=True",
    "MasterKey": "SET-IN-ENV (base64 of 32 random bytes)",
    "Jwt": { "Issuer": "CareFix", "Audience": "CareFix", "SigningKey": "SET-IN-ENV (min 32 chars)", "HoursValid": 8 },
    "Claude": { "ApiKey": "SET-IN-ENV", "Model": "claude-sonnet-5", "BaseUrl": "https://api.anthropic.com", "MaxTokens": 4096, "MaxToolCallsPerRun": 15,
                 "MonthlyBudgetUsd": 300, "MaxUsdPerTicket": 1.50,
                 "Pricing": { "InputPerMTok": 2, "OutputPerMTok": 10, "CacheWritePerMTok": 2.50, "CacheReadPerMTok": 0.20 } },
    "Safety": { "MaxRowsPerSelect": 200, "SelectTimeoutSeconds": 30, "LockTimeoutMs": 5000, "MaxStepsPerFix": 50, "HighRiskStepThreshold": 10, "MaxConsentFileBytes": 5242880 },
    "AiWorkers": 4,
    "BootstrapAdmin": { "Username": "admin", "Password": "SET-IN-ENV", "FullName": "CareFix Admin" },
    "Integration": { "InboundKey": "", "WebhookUrl": "", "WebhookSecret": "" },
    "Retention": { "QueryResultDays": 90, "QueryLogDays": 365, "TranscriptDays": 180, "SnapshotDays": 180, "LearningDays": 180 },
    "Maintenance": { "HourUtc": 19, "SchemaRecaptureDays": 30 }
  }
}
