Problem Codes
Generated by scripts/gen_reference.py from kirak.catalog. Do not edit by hand:
run python scripts/gen_reference.py after changing a spec or upgrading a dependency.
Every problem the facts commands report (--json envelope, problems[].code) and what it
means. Codes are stable: tools may branch on them. JSON Schema failures are reported as
schema_<keyword>, e.g. schema_required, schema_additional_properties, schema_enum.
“startup” means the app refuses to start with the same problem.
| Code | Reported by | Meaning |
|---|---|---|
access_condition |
validate, startup | An access condition is outside the safe grammar, or strict_access finds a model without access. |
access_condition_field |
validate, startup | An access condition uses a column the model does not have; every request with that rule would fail. |
agents_without_ai_module |
validate | Agent files exist but the ai module is not enabled (warning). |
ambiguous_tool_ref |
validate, startup | A tool’s ref names something that is both a model and a module; rename the model. |
app_not_reachable |
dev MCP kirak_api_docs | The app did not answer at the docs URL (not running, wrong base_url, or an HTTP error). |
as_system_in_route |
validate –code | as_system() is used inside a route handler, so the caller’s request runs as Kirak itself; fix the model’s access rules instead (warning). |
bad_argument |
validate, env, catalog | An option is malformed, e.g. –override without KIND=PATH, or –env-names-file cannot be read (exit code 2). |
budget_not_enforced |
validate | An agent sets max_budget_usd but its model has no price (not in genai-prices, not in ai.model_prices), so the budget is never enforced (warning). |
check_inconclusive |
provider check() | The provider answered in a way the check cannot classify (unverified). |
check_not_supported |
provider check() | The provider has no credential check, or no read-only call exists (unverified). |
command_failed |
all | The command could not run, e.g. the database is unreachable; the message says why. |
credentials_invalid |
provider check() | The provider rejected the credentials. |
credentials_malformed |
provider check() | A secret has the wrong format, or only one of a pair is set; found without the network. |
credentials_missing |
provider check() | A required secret is not set, or the SDK’s default credential chain found none. |
database_driver_not_installed |
validate, info | The driver for database.type (kirak[mysql] or kirak[postgres]) is not installed. An error for kirak validate, a warning for kirak info. |
database_name_missing |
validate, startup | database.name is empty. |
database_pool |
validate, startup | database.pool_min is larger than database.pool_max. |
default_provider_missing |
validate, startup | A provider set has providers but no default_provider. |
default_provider_unknown |
validate, startup | default_provider is not one of the configured instances. |
default_type_mismatch |
validate | A field’s default is not a value of the field’s type (any value fits a json field). |
docs_need_credential |
dev MCP kirak_api_docs | The app answered 401: docs.public is false. |
docs_not_served |
dev MCP kirak_api_docs | The app answered 404: /docs is turned off or served at another docs.path. |
duplicate_agent |
validate, startup | Two agent files use the same name. |
duplicate_mcp_server |
validate, startup | Two files in mcp/ declare the same server name. |
duplicate_tool_name |
validate, startup | Two tools of one file, or a declared tool and a function tool, have the same name. |
env_missing |
env, validate, deploy | A required environment variable is not set (an error for kirak env, a warning for kirak validate and kirak deploy). path is the variable’s name. kirak deploy leaves out the auth keys (KIRAK_AUTH_*): the deploy service generates them for the deployed app. |
fixed_params_overlap |
validate, startup | A tool’s fixed and params share a key; a fixed value cannot also be constrained by params. |
graphql_fixed_query_invalid |
validate, startup | A ‘graphql’ tool’s fixed.query is not valid GraphQL. |
graphql_fixed_query_missing |
validate, startup | A ‘graphql’ tool has no fixed.query; the query document must be fixed so the model cannot write arbitrary queries. |
graphql_mutation_requires_confirmation |
validate, startup | A ‘graphql’ tool’s document contains a mutation; set requires_confirmation: true so a person approves it before it runs. |
guest_agent_with_confirmation_tools |
validate, startup | An agent with access “Guest” declares tools with requires_confirmation; approvals need an authenticated caller, so set access to “User” or higher. |
hook_decorator_incomplete |
validate –code | @…hook without the event, .hook() without arguments, or @…on(…) without .hook(…). |
hook_module_has_no_hooks |
validate –code | A hook is on a module that fires none (mcp, monitoring). |
hook_module_not_enabled |
validate –code | A hook is on a module kirak.json does not enable; it fires only when your code calls the module (warning). |
hook_never_fires |
validate –code | A module’s event is registered where the module does not look: with kirak.on(…), or on a model other than the module’s own. Use kirak. |
hook_outside_on_kirak_ready |
validate –code | A hook is registered when its file is imported, not from on_kirak_ready or a function (warning). |
hook_unknown_event |
validate –code | A hook names an event its model or module does not fire; it would never run. |
hook_unknown_model |
validate –code | kirak.on() names no model of the project or of an enabled module, or no model at all. |
host_not_allowed |
dev MCP kirak_api_docs | The docs URL is not on localhost and allow_remote is not set. |
import_not_found |
validate –code | An import of kirak or of the project’s own code names a module or name that does not exist. Project modules are imported from the project root (src.hooks, not hooks). |
import_not_installed |
validate –code | A third-party package is not installed in the Python running the command (warning). |
index_missing |
validate | A model defines no indexes entry; the primary key and unique fields are automatic and do not count. |
index_unknown_column |
validate | An indexes entry names a column that is not a field of the model. |
instructions_file_missing |
validate, startup | An agent’s instructions_file does not exist. |
integration_allowed_host_invalid |
validate, startup | An allowed_hosts entry is a bare * or a wildcard that is not a leading *. on a domain. |
integration_grant_unsupported |
validate | An oauth2 integration’s grant is not one its profile lists in auth.grants (default authorization_code). |
integration_key_owner_invalid |
validate, startup | An integration’s key_owner is not ‘app’ or ‘user’. |
integration_keyring_missing |
validate, startup | Integrations are configured but KIRAK_AUTH_ENCRYPTION_KEYS is not set. |
integration_multiple_accounts_no_account |
validate | An oauth2 integration has multiple_accounts on, but its profile has no account section, so each connect would replace the user’s one connection. |
integration_not_declared |
integrations check | No instance with that name is in kirak.json’s integrations.providers; exit code 2. |
integration_profile_connect_after_connect |
validate, startup | A profile URL or header used after the connect (refresh, revoke, API calls, expiry lookup; token_url when it is also the refresh endpoint) uses a {connect.x} placeholder, which is gone by then; use {connection.x}. |
integration_profile_connection_too_early |
validate, startup | A profile’s authorize_url uses a {connection.x} value, or its token_url uses one that is read with the token; neither is known yet when the URL is used. A token_url may use a connection value from the callback or the connect call. |
integration_profile_host_not_allowed |
validate, startup | A profile’s account, connection or expiry lookup URL is not on its host list (api.base_url host or api.allowed_hosts). |
integration_profile_invalid |
validate, startup | An integration profile file does not match the profile schema, or its name is not its file name. |
integration_profile_name_taken |
validate, startup | A project profile uses the name of a bundled integration profile. |
integration_profile_placeholder |
validate, startup | A profile URL uses a {settings|connect|connection} placeholder that is not declared, or has no pattern. |
integration_profile_secrets |
validate, startup | A profile’s secrets section does not list exactly the secrets it uses (a used secret is missing, or a declared one is never used), or a public client (token_auth none) turns PKCE off. |
integration_profile_sites_missing |
validate, startup | A profile’s connection value has from site, but the profile has no sites section that lists the sites. |
integration_profile_token_host_open |
validate, startup | A profile’s token_url, refresh_url or revoke_url takes its whole host from a callback or connect value whose pattern does not list the allowed values; the client secret would go wherever a forged value points. |
integration_profile_unknown |
validate, startup | An integration names a profile that is neither bundled nor in integrations/. |
integration_scope_on_api_key |
validate, startup | An api_key integration sets scope; API keys have no scopes. |
integration_setting_invalid |
validate, startup | An integration’s setting does not match the profile’s pattern. |
integration_setting_missing |
validate, startup | An integration’s profile URL needs a setting that has no value and no default. |
integration_setting_unknown |
validate | An integration sets a setting its profile does not declare; it is ignored. |
integration_type_mismatch |
validate, startup | An integration’s type differs from its profile’s auth.type; leave type out when a profile is named. |
integration_type_missing |
validate, startup | An integration has neither a type nor a profile to take it from. |
integration_type_unknown |
integrations check | The instance’s type is not an integration type (oauth2 or api_key); exit code 2. |
integration_url_not_https |
validate, startup | An integration URL (base_url, an OAuth endpoint) is not https://. |
integration_webhook_token_signature |
validate | A profile’s webhooks send the shared secret itself (signature.kind token), which is weaker than an HMAC signature; a warning. |
invalid_json |
info, validate | A config file is not valid JSON. |
invalid_redirect_url |
validate, startup | An auth.redirect_urls entry is not an absolute URL without query, fragment or wildcard, or is plain http to a host other than localhost. |
invalid_tool_output |
validate, startup | A tool’s output is not a valid JSON Schema. |
invalid_trusted_proxy |
validate, startup | A rate_limit.trusted_proxy_ips entry is not an IP address or a CIDR range. |
kirak_version_ahead |
upgrade, upgrade check | kirak.json is written for a newer Kirak than the one installed; install that version or newer. Nothing is written. |
kirak_version_invalid |
upgrade, upgrade check | kirak.json kirak_version is not a version like “1.0.0”. |
kirak_version_missing |
upgrade, upgrade check | kirak.json has no kirak_version: every upgrade step up to the installed Kirak is checked, and kirak upgrade --apply sets it (warning). |
manifest_missing |
validate | kirak.json does not exist. |
mcp_base_url_not_set |
mcp inspect | kirak.json has no base_url, so the server URL and client config assume http://localhost:8000 (warning). |
mcp_server_not_found |
mcp inspect | No server file in mcp/ declares that name, or its file has errors (listed with it); exit code 2 when there is nothing else to report. |
mcp_without_mcp_module |
validate | mcp/ has server files but kirak.json does not enable the mcp module, so they are not served (warning). |
migration_modified |
db status | A migration file changed after it was applied. |
migration_pending |
db status | A migration file is not applied yet (warning). |
model_name_reserved |
validate | A project model has the name of a built-in model, which overrides it: the project model is ignored (warning). |
model_provider_not_installed |
validate | An agent’s model provider’s extra is not installed. |
module_not_installed |
validate, startup, mcp inspect | An enabled module’s pip extra is not installed (for kirak mcp inspect: the mcp extra). |
monitoring_store_unreadable |
dev MCP live tools | The monitoring store exists but cannot be read. |
no_log_file |
dev MCP live tools | No kirak.log where log_path points: the app has not run here yet. Or log_output has no “file”: the lines go to stdout. |
no_models |
info | Neither a models/ directory nor a models.json exists (warning). The app still starts, with only the built-in tables. |
no_monitoring_store |
dev MCP live tools | No monitoring store: enable the monitoring module in development. An error for tools that need it, a warning where the log file is used instead. |
no_providers |
validate, startup | An enabled module that needs providers has none configured. |
no_snapshot |
db makemigrations –dry-run | migrations/models_snapshot.json does not exist; run kirak db init first. |
not_a_project |
all project commands | No kirak.json in the directory or its parents (exit code 2). |
output_schema_unresolvable |
validate | An agent’s output_schema dotted path cannot be resolved: the module is not importable or the class does not exist in it. |
password_type_unsupported |
validate, startup | A field has type ‘password’, which Kirak does not have; use ‘string’ with access.fields “read”: [] and hash it in a hook. |
permission_denied |
provider check() | The credentials work but lack a permission Kirak needs (bucket, index, scope). |
provider_not_installed |
validate | A configured provider’s pip extra is not installed (startup fails when it is first used). |
provider_setting_missing |
validate | A provider instance lacks a setting its type requires. |
provider_timeout |
provider check() | The provider did not answer within the timeout. |
provider_unreachable |
provider check() | The provider could not be reached: DNS, connection or TLS failure. |
python_syntax_error |
validate –code | A Python file does not parse, or is not UTF-8. |
rate_limit_disabled |
validate | rate_limit.enabled is false, which turns off the model (CRUD and GraphQL), auth and MCP server limits; the AI, storage, payments and integrations cost limits stay on (warning; startup logs it too). |
rate_limit_shape |
validate, startup | A rate_limit block mixes the flat and per-operation forms, or lacks max_requests. |
redirect_uri_mismatch |
provider check() | Social login or an integration: the provider rejected the configured redirect URI (for an integration, a warning: the client was accepted, the callback is not registered). |
relationship_target_missing |
validate | A relationship points to a model that does not exist. |
renamed_from_conflict |
validate | A field’s renamed_from names a column the model still declares, one Kirak adds to every model, or one a second field also claims. |
request_not_found |
dev MCP live tools | No trace of that request id in the monitoring store or the log. |
reserved_field |
validate, startup | A model declares id, created_at, updated_at or deleted_at, which Kirak adds, or a field named or or or_groups, which filters reserve. |
reserved_provider_key |
validate, startup | A provider instance sets a key Kirak adds itself (name). |
resource_not_found |
provider check() | The credentials work but the configured bucket, index, queue or model does not exist. |
route_overrides_kirak |
validate –code | A custom route has the method and path of a Kirak route (CRUD, GraphQL, /docs, openapi.json) and replaces it (warning). |
route_under_kirak_prefix |
validate –code | A custom route is under a path where Kirak mounts a module’s routes (warning). |
scale_exceeds_precision |
validate | A decimal field’s scale is larger than its precision. |
schemas_stale |
info, upgrade check | A schema in .kirak/ was exported from another Kirak version; run kirak schema. |
searchable_ignored |
validate | A field is searchable but its type is not string, text or email, which search does not match (warning). |
secret_in_manifest |
validate | A provider secret is written in kirak.json; it belongs in the environment. |
single_database_scheduler |
validate, startup | More than one scheduler provider of type database. |
social_credentials_missing |
validate, startup | An enabled social login has no client_id (Apple: also key_id and team_id; a few backends also their own url, domain or similar, marked required in the providers reference) in auth.social. |
social_provider_no_redirect |
validate, startup | An enabled social provider has no browser redirect sign-in (telegram, vk-openapi, odnoklassniki-app) or is not a sign-in (twilio), so /login cannot start one. Remove it from auth.social_providers. |
social_provider_not_installed |
validate, startup | A social login backend needs a social-auth-core extra that is not installed. |
social_setting_not_allowed |
validate, startup | auth.social. |
storage_signing_key_missing |
validate, startup | A private local storage instance has no URL signing key (KIRAK_STORAGE_URL_SIGNING_KEY or the JWT secret); its serve route would refuse every file. |
storage_visibility_invalid |
validate | A storage instance’s visibility is not ‘public’ or ‘private’. |
table_reserved |
validate | A project model uses the table of a built-in model (users, auth_tokens, …). |
test_mode_key |
provider check() | The key is a sandbox or test key (warning). |
too_many_mcp_tools |
validate | An MCP server offers more than 30 tools; models pick the wrong one more often – split it by audience (warning). |
tool_module_not_enabled |
validate, startup | A tool names an operation of a module that kirak.json does not enable. |
tool_not_callable |
validate, startup | The module operation cannot be a tool: it is not called with JSON arguments (webhooks, file uploads, browser redirect flows), or its arguments or result carry a credential (sign-in, passwords, tokens, one-time codes, API keys). |
unbound_integration_tool |
validate | An integrations method tool (get, post, put, patch, delete) has no fixed.integration or fixed.path; an unbound call reaches every endpoint of every connected integration. An error in MCP server files; a warning in agent files. |
unknown_mcp_server |
startup | Python tools are registered with @kirak.mcp(“ |
unknown_mcp_toolset |
validate | An agent’s toolsets map names a Kirak-own server with no url and no matching mcp/ |
unknown_model_provider |
validate | An agent’s model prefix has no Kirak extra; pydantic-ai may still support it (warning). |
unknown_module |
modules, providers, validate | A module name is not one of Kirak’s modules. |
unknown_override |
validate | An –override key is not models, model: |
unknown_provider |
providers | The module has no provider of that type. |
unknown_provider_kind |
providers | The module has no provider kind of that name, or the type exists in several kinds and –kind is needed. |
unknown_provider_setting |
validate | A provider instance has a key its type does not read; it is ignored (warning). |
unknown_provider_type |
validate, startup | A provider instance’s type is neither built in nor added by an installed package. A warning for kirak validate, which cannot see types the app registers with register_provider(); startup fails if the app does not register it. |
unknown_social_provider |
validate, startup | auth.social_providers names a backend that is not installed. |
unknown_tool_operation |
validate, startup | The model or module has no such operation (a model has delete and restore only with soft_delete, search only with a searchable field). |
unknown_tool_ref |
validate, startup | A tool’s ref names neither a model nor a module. |
unsafe_change |
db makemigrations | A change to one of Kirak’s own tables that makemigrations refuses: a new required field without a default. |
upgrade_file_unreadable |
upgrade, upgrade check | A project JSON file is not valid JSON, so no upgrade step runs and nothing is written. |
upgrade_needs_human |
upgrade, upgrade check | An upgrade step found something it does not change itself, such as a Python hook; the message says what to do (warning). |