---
title: Push rejection codes
slug: push-rejections
summary: Find the cause and recovery step for a Git or CLI source rejection.
---

# Push rejection codes

A source or ref validation rejection leaves the target ref unchanged. Read the
`where:` location and `fix:` action first. The trailer `[code=...]` identifies
the rejection for scripts; the correlation ID lets support find its server
record. CLI commands that commit files return the same rejection.

Run `limilake explain <code>` to read these recovery instructions offline,
without a profile or login. For example:

```bash
limilake explain function_handler_signature_unsupported
```

A Function handler's defaulted parameter needs a source correction. Remove the
default value from the named parameter, preserving its type, body, durable ID,
and return annotation. For example, change
`def run(run_input: dict[str, str] = {}) -> dict[str, str]:` to
`def run(run_input: dict[str, str]) -> dict[str, str]:`.
Then run `limilake build`, commit the corrected file, and retry the push.

For a Contract-v1 identity migration, the candidate's Function entrypoint must
match the Function evidence from the exact previous remote revision. Preserve
the existing paths and identities during the migration. Use
`limilake workspace migrate --dry-run` to inspect a local Contract-v1 migration,
then `limilake workspace migrate` to apply it before reviewing and committing
its changes. This local command cannot restore missing platform evidence. If
that evidence is missing or ambiguous, give support the correlation ID so an
administrator can reconcile it through the governed migration. Do not invent
replacement IDs or force-push to bypass identity admission.

See [Git push troubleshooting](./getting-started.md#git-push-troubleshooting)
for authentication, commit, and branch recovery steps, or
[Report a platform problem](./reporting-problems.md) to contact support.

## Code index

- [app_capability_unresolved](#app_capability_unresolved)
- [app_entrypoint_missing](#app_entrypoint_missing)
- [app_identity_duplicate](#app_identity_duplicate)
- [app_identity_invalid](#app_identity_invalid)
- [app_identity_missing](#app_identity_missing)
- [app_metadata_image_prefix_invalid](#app_metadata_image_prefix_invalid)
- [app_metadata_invalid](#app_metadata_invalid)
- [app_metadata_parse](#app_metadata_parse)
- [app_metadata_unknown_key](#app_metadata_unknown_key)
- [app_metadata_value_invalid](#app_metadata_value_invalid)
- [app_slug_invalid](#app_slug_invalid)
- [app_stray_file](#app_stray_file)
- [app_vite_config_ambiguous](#app_vite_config_ambiguous)
- [bootstrap_contract_version_invalid](#bootstrap_contract_version_invalid)
- [bootstrap_contract_version_missing](#bootstrap_contract_version_missing)
- [bootstrap_contract_version_unsupported](#bootstrap_contract_version_unsupported)
- [bootstrap_invalid](#bootstrap_invalid)
- [bootstrap_missing](#bootstrap_missing)
- [bootstrap_parse](#bootstrap_parse)
- [bootstrap_toolchain_channel_invalid](#bootstrap_toolchain_channel_invalid)
- [bootstrap_unknown_key](#bootstrap_unknown_key)
- [cli_upgrade_required](#cli_upgrade_required)
- [contract_v1_migration_ambiguous](#contract_v1_migration_ambiguous)
- [dependency_lockfile_drift](#dependency_lockfile_drift)
- [dependency_lockfile_invalid](#dependency_lockfile_invalid)
- [dependency_lockfile_missing](#dependency_lockfile_missing)
- [dependency_manifest_invalid](#dependency_manifest_invalid)
- [dependency_manifest_missing](#dependency_manifest_missing)
- [function_declaration_duplicate](#function_declaration_duplicate)
- [function_declaration_invalid](#function_declaration_invalid)
- [function_declaration_missing](#function_declaration_missing)
- [function_decorator_invalid](#function_decorator_invalid)
- [function_decorator_unsupported](#function_decorator_unsupported)
- [function_entrypoint_invalid](#function_entrypoint_invalid)
- [function_entrypoint_missing](#function_entrypoint_missing)
- [function_extractor_unavailable](#function_extractor_unavailable)
- [function_handler_signature_unsupported](#function_handler_signature_unsupported)
- [function_handler_unannotated](#function_handler_unannotated)
- [function_identity_duplicate](#function_identity_duplicate)
- [function_identity_invalid](#function_identity_invalid)
- [function_identity_missing](#function_identity_missing)
- [function_mcp_method_unsupported](#function_mcp_method_unsupported)
- [function_slug_invalid](#function_slug_invalid)
- [function_source_syntax](#function_source_syntax)
- [function_stray_file](#function_stray_file)
- [git_authentication_required](#git_authentication_required)
- [git_authorization_denied](#git_authorization_denied)
- [git_conflict](#git_conflict)
- [git_grant_expired](#git_grant_expired)
- [git_internal_error](#git_internal_error)
- [git_malformed_proposal](#git_malformed_proposal)
- [git_multi_ref_unsupported](#git_multi_ref_unsupported)
- [git_non_fast_forward](#git_non_fast_forward)
- [git_protected_ref_delete](#git_protected_ref_delete)
- [git_ref_not_allowed](#git_ref_not_allowed)
- [git_repository_denied](#git_repository_denied)
- [git_repository_purged](#git_repository_purged)
- [git_repository_unavailable](#git_repository_unavailable)
- [git_reserved_ref](#git_reserved_ref)
- [git_size_limit](#git_size_limit)
- [layout_not_directory](#layout_not_directory)
- [path_reserved](#path_reserved)
- [path_symlink_escape](#path_symlink_escape)
- [path_traversal](#path_traversal)
- [query_schema_contract](#query_schema_contract)
- [query_schema_invalid](#query_schema_invalid)
- [query_schema_missing](#query_schema_missing)
- [query_schema_orphaned](#query_schema_orphaned)
- [query_schema_version_unsupported](#query_schema_version_unsupported)
- [query_slug_invalid](#query_slug_invalid)
- [query_sql_invalid](#query_sql_invalid)
- [query_stray_entry](#query_stray_entry)
- [resource_identity_kind_reuse](#resource_identity_kind_reuse)
- [source_admission_rejected](#source_admission_rejected)
- [workspace_contract_not_activated](#workspace_contract_not_activated)
- [workspace_contract_regression](#workspace_contract_regression)
- [workspace_tree_too_large](#workspace_tree_too_large)

## app_capability_unresolved

An App capability names an undeclared resource.

**Fix:** Declare the referenced Function or Query, or remove its name from the App capability list.

## app_entrypoint_missing

The App entrypoint is missing.

**Fix:** Commit the configured App entrypoint, normally src/main.tsx, inside the App directory.

## app_identity_duplicate

Several Apps declare the same durable ID.

**Fix:** Restore each App's own durable UUID and assign a new UUID only to a newly created App.

## app_identity_invalid

The App's durable ID is invalid.

**Fix:** Set [app].id to its canonical lowercase hyphenated UUID.

## app_identity_missing

The App's durable ID is missing.

**Fix:** Add the App's canonical UUID as [app].id, preserving its existing identity during migration.

## app_metadata_image_prefix_invalid

An App image source prefix is invalid.

**Fix:** Declare at most 32 `[capabilities].images` prefixes, each `https://<lowercase DNS host>/<path>/` ending in a slash, without a port, IP address, query, dot segment or encoded slash.

## app_metadata_invalid

App metadata is not a regular file.

**Fix:** Replace the App's limilake.toml with a regular TOML file.

## app_metadata_parse

App metadata contains invalid TOML.

**Fix:** Correct the App's limilake.toml syntax and run limilake generate --check.

## app_metadata_unknown_key

App metadata contains an unsupported key.

**Fix:** Remove unsupported keys using the App metadata schema.

## app_metadata_value_invalid

An App metadata value is invalid.

**Fix:** Correct the App metadata types, non-empty values and contained entrypoint path using the App schema.

## app_slug_invalid

The App directory name is invalid.

**Fix:** Rename the App directory to a lowercase slug using letters, digits and hyphens.

## app_stray_file

A file sits directly in the Apps area.

**Fix:** Move the file into its App directory or remove it from apps/.

## app_vite_config_ambiguous

The App has several Vite configuration files.

**Fix:** Keep one supported Vite configuration file in the App directory.

## bootstrap_contract_version_invalid

The Workspace Contract version is not an integer.

**Fix:** Use an integer for [workspace].contract in limilake.toml.

## bootstrap_contract_version_missing

The Workspace Contract version is missing.

**Fix:** Set contract under [workspace] in limilake.toml to the Workspace's supported Contract version.

## bootstrap_contract_version_unsupported

The Workspace Contract version is unsupported.

**Fix:** Upgrade the LimiLake toolchain or contact support for this Contract version; do not lower an existing Workspace's Contract version.

## bootstrap_invalid

The Workspace marker is not a readable regular file.

**Fix:** Replace limilake.toml with a regular UTF-8 TOML file.

## bootstrap_missing

The Workspace marker is missing.

**Fix:** Add a root limilake.toml with a supported [workspace].contract value.

## bootstrap_parse

The Workspace marker contains invalid TOML.

**Fix:** Correct the TOML syntax in limilake.toml and run limilake generate --check.

## bootstrap_toolchain_channel_invalid

The toolchain channel is invalid.

**Fix:** Set [toolchain].channel to a non-empty string or remove the optional toolchain table.

## bootstrap_unknown_key

The Workspace marker contains an unsupported key.

**Fix:** Remove unsupported keys from limilake.toml using the Workspace Contract schema.

## cli_upgrade_required

This CLI version is no longer supported.

**Fix:** Run limilake upgrade (limilake update on CLIs older than 0.1.35), then retry the command; your sign-in is kept.

## contract_v1_migration_ambiguous

Contract-v1 migration lacks exact expected-old Function identity evidence.

**Fix:** Preserve the existing Function paths and IDs; ask an administrator to reconcile the expected-old Function evidence through the governed migration using the correlation ID.

## dependency_lockfile_drift

A dependency lockfile does not match its manifests.

**Fix:** Run pnpm install or uv lock and commit the updated manifests and root lockfile together.

## dependency_lockfile_invalid

A dependency lockfile is invalid.

**Fix:** Regenerate the root lockfile with pnpm install or uv lock and commit it.

## dependency_lockfile_missing

A required dependency lockfile is missing.

**Fix:** Run pnpm install for Apps or uv lock for Functions and commit the root lockfile.

## dependency_manifest_invalid

A dependency manifest is invalid.

**Fix:** Correct the reported manifest's syntax and required fields, then refresh its lockfile.

## dependency_manifest_missing

A required root dependency manifest is missing.

**Fix:** Commit package.json for Apps or pyproject.toml for Functions at the Workspace root.

## function_declaration_duplicate

The Function has several declarations.

**Fix:** Keep exactly one top-level limilake.function declaration in function.py.

## function_declaration_invalid

The Function declaration is invalid.

**Fix:** Use supported literal limilake.function keywords and valid access and run_as values.

## function_declaration_missing

The Function declaration is missing.

**Fix:** Add one top-level limilake.function declaration to function.py.

## function_decorator_invalid

A Function handler decorator has an invalid shape.

**Fix:** Use @fn.action or @fn.sync without parentheses, or an HTTP decorator with one literal route path.

## function_decorator_unsupported

A Function handler decorator is unsupported.

**Fix:** Use a supported action, sync or HTTP handler decorator on the Function declaration.

## function_entrypoint_invalid

The Function entrypoint is not a regular file.

**Fix:** Replace function.py with a regular UTF-8 Python file.

## function_entrypoint_missing

The Function entrypoint is missing.

**Fix:** Commit function.py inside the Function directory.

## function_extractor_unavailable

The server's governed Python extractor is unavailable.

**Fix:** Ask support to restore the governed CPython 3.12 toolchain using the correlation ID.

## function_handler_signature_unsupported

The Function handler input cannot be delivered by the runtime.

**Fix:** For action/sync, use zero parameters or one required positional-or-keyword dict[str, T] input without a default; for HTTP, replace positional-only or variadic parameters with explicit typed positional-or-keyword or keyword-only parameters.

## function_handler_unannotated

A Function handler is missing type annotations.

**Fix:** Add type annotations to every handler parameter and its return value.

## function_identity_duplicate

Several Functions declare the same durable ID.

**Fix:** Restore each Function's own durable UUID and assign a new UUID only to a newly created Function.

## function_identity_invalid

The Function's durable ID is invalid.

**Fix:** Set the Function id to its canonical lowercase hyphenated UUID.

## function_identity_missing

The Function's durable ID is missing.

**Fix:** Add the Function's canonical UUID to limilake.function(id=...), preserving its existing identity during migration.

## function_mcp_method_unsupported

The MCP handler does not accept one JSON object.

**Fix:** Use a POST handler with exactly one object-shaped body parameter, or disable MCP exposure.

## function_slug_invalid

The Function directory name is invalid.

**Fix:** Rename the Function directory to a lowercase slug using letters, digits and hyphens.

## function_source_syntax

The Function contains invalid Python syntax.

**Fix:** Correct the Python syntax at the reported source location and run limilake generate --check.

## function_stray_file

A file sits directly in the Functions area.

**Fix:** Move the file into its Function directory or remove it from functions/.

## git_authentication_required

Git authentication is missing or invalid.

**Fix:** Run limilake auth login and limilake auth setup-git for your intended profile, then retry.

## git_authorization_denied

This credential cannot write this Workspace.

**Fix:** Check the selected Workspace and profile; pushing needs editor or owner access, and a scoped sandbox or Git session credential also needs workspace.write. Ask a Workspace owner for editor access.

## git_conflict

The remote ref or file changed since it was read.

**Fix:** Run git fetch origin, review the current remote branch and files, then retry with its current HEAD.

## git_grant_expired

The Git authorization has expired.

**Fix:** Run limilake auth login and limilake auth setup-git for your intended profile, then retry the push.

## git_internal_error

The server could not complete Git admission.

**Fix:** Retry once; if it fails again, give the correlation ID to support.

## git_malformed_proposal

The Git ref proposal is malformed.

**Fix:** Retry with a current stock Git client and one explicit branch refspec.

## git_multi_ref_unsupported

A push containing a protected ref must update exactly one ref.

**Fix:** Push main separately with git push origin HEAD:main.

## git_non_fast_forward

The push would replace remote history.

**Fix:** Run git fetch origin, integrate the remote branch, then retry without --force.

## git_protected_ref_delete

This ref cannot be deleted with this credential.

**Fix:** Keep main intact and push your changes with git push origin HEAD:drafts/workspace when that target is allowed.

## git_ref_not_allowed

This credential cannot push this ref.

**Fix:** For a human authoring credential, save the revision with git push origin HEAD:drafts/workspace; human push targets are main and drafts/workspace.

## git_repository_denied

Access to the Workspace repository is disabled.

**Fix:** Ask a Workspace owner to restore repository access using the correlation ID.

## git_repository_purged

The Workspace repository has been permanently deleted.

**Fix:** Use an existing Workspace repository or create a new Workspace; this repository cannot be restored.

## git_repository_unavailable

The Workspace repository is temporarily unavailable.

**Fix:** Wait for Workspace maintenance to finish, then retry; contact support with the correlation ID if it persists.

## git_reserved_ref

The ref belongs to a server-owned namespace.

**Fix:** Remove refs/limilake/ from your push refspec and push only authoring refs.

## git_size_limit

The push exceeds the server's size or ref-count limit.

**Fix:** Remove large generated files from the commits being pushed or split the ref updates into smaller pushes.

## layout_not_directory

A source area is not a directory.

**Fix:** Replace the apps, functions or queries entry with a directory containing its resources.

## path_reserved

A source path uses a reserved directory.

**Fix:** Move authored source outside .git and .limilake and update its references.

## path_symlink_escape

A source path escapes the Workspace through a symlink.

**Fix:** Replace the escaping symlink with a file contained inside the Workspace.

## path_traversal

A source name is not a safe path component.

**Fix:** Rename the resource to a single directory name without path traversal.

## query_schema_contract

The Query schema violates the source contract.

**Fix:** Correct the schema's query slug, unique parameter and column names, and supported keys using the Query schema contract.

## query_schema_invalid

The Query schema is unreadable or malformed.

**Fix:** Replace the Query schema with a regular valid JSON schema file from authorized introspection.

## query_schema_missing

The Query's reviewed schema is missing.

**Fix:** Refresh the Query schema through authorized introspection and commit the matching .schema.json file.

## query_schema_orphaned

The Query schema has no matching SQL file.

**Fix:** Commit the matching .sql file or remove the orphaned schema.

## query_schema_version_unsupported

The Query schema version is unsupported.

**Fix:** Refresh and commit a Query schema with supported schemaVersion 1.

## query_slug_invalid

The Query filename is invalid.

**Fix:** Rename the Query SQL and schema files to the same lowercase slug.

## query_sql_invalid

The Query SQL source is unreadable or invalid.

**Fix:** Commit the Query SQL as a contained regular UTF-8 file.

## query_stray_entry

The Queries area contains an unsupported entry.

**Fix:** Keep only named .sql and matching .schema.json files in queries/.

## resource_identity_kind_reuse

The resource UUID already belongs to a different resource kind.

**Fix:** Restore this resource's own durable UUID; assign a new UUID only if you are creating a new resource.

## source_admission_rejected

The candidate does not satisfy source admission.

**Fix:** Run limilake generate --check, fix its diagnostics, then retry; give unresolved cases and the correlation ID to support.

## workspace_contract_not_activated

Contract-v2 admission has not been activated.

**Fix:** Ask platform support to complete the governed Contract-v2 activation using the correlation ID; keep the current Contract version.

## workspace_contract_regression

The candidate lowers the accepted Workspace Contract version.

**Fix:** Restore the accepted Contract version in limilake.toml and keep the existing durable resource IDs.

## workspace_tree_too_large

The Workspace tree is larger than the platform can build.

The rejection names the tree's size and file count, the build limit, and the
top-level paths holding the most of whichever limit was exceeded. The limit covers every file in the
pushed revision, so committed dependencies such as `node_modules/` exceed it
quickly.

**Fix:** Remove dependency and build output such as node_modules/, .venv/ and dist/ from Git (for example git rm -r --cached node_modules), list it in .gitignore, commit, and push again; keep large data files in a Lakehouse instead of Git.
