# Build validation reference

When you upload a build zip, the portal unpacks it in memory, checks it and produces a **validation report**. Errors block the build; warnings and notes do not. Blocking safety findings count as errors. The report is stored with the build, so you can open it again later in the console, and your studio gets a notification when a build passes or is rejected (see [notifications](https://docs.zokogames.com/guides/notifications)). Builds validated before the structured report existed show only the older list of issues.

The size and file limits are summarised on [technical requirements](https://docs.zokogames.com/requirements/technical); this page lists everything by code. Terms used here: a **build** is one set of uploaded files; the report belongs to that build. A **version** always means an SDK version.

## If your build was rejected

The validator rejects a build when you upload it; a reviewer sends a game back after you submit it. The two are fixed differently:

- **Build rejected.** The report lists at least one error. Find each error code in [errors](#errors-the-build-is-rejected) below, fix the cause and upload a new zip. A rejected build is never served to players, and warnings never reject a build.
- **Game sent back.** Your studio receives the decision with numbered reasons and a note. [Quality guidelines](https://docs.zokogames.com/requirements/quality) explain each reason, and the [testing checklist](https://docs.zokogames.com/getting-started/testing-checklist) lists every line the reviewer answers.

## Check a build before you submit

The validator runs when you upload, and the report opens from the **Build** step of the submission. You can see most findings earlier:

1. Zip the contents of your export folder and look at the size and file count against the table below.
2. Run the game from `localhost` (the SDK mocks the portal, see [local testing](https://docs.zokogames.com/getting-started/local-testing)) and watch the console for 404s: they are what `missing_reference`, `case_mismatch` and `absolute_path` warn about.
3. Open the [Preview tool](https://www.zokogames.com/preview) with your address, or the **Preview and QA** tab of the game once a build has passed. Its checklist ticks from the SDK calls your game makes and flags a first `gameplayStart` later than 20 seconds.
4. Upload, open the report and clear every error. Read each warning: they do not block the build, but reviewers see them too.

Every finding in the report links to the page that explains it. The groups below say which requirement page covers which codes.

## Limits

| Limit | Value |
| --- | --- |
| Unpacked size | 250 MB |
| Files | 1,500 |
| Initial download | Error above 50 MB; warning above 20 MB (mobile target) |
| Single file | A warning for any file above 20 MB (up to the three largest are listed) |
| Compression ratio | Error for a file above 1 MB that expands more than 200 to 1, or an archive that expands more than 400 to 1 overall |
| Zip entries | Error for an archive with more than 6,500 entries (the file limit plus room for folder entries) |
| Path length | A path over 1,024 characters or a single segment over 255 is unsafe |
| Problems listed | The first 40 errors and the first 40 warnings; further ones are summarised as one `more` entry |
| Findings in the report | 60 at most |
| Text scan, per file | Files above 3 MB are not scanned |
| Text scan, total | Stops after 24 MB of text |
| Text scan, time | Stops after 8 seconds |

"Initial download" is estimated from the uncompressed size of `index.html`, every file it references and the engine bootstrap payload. Files fetched after the game starts do not count.

Why these limits exist: the size and file caps keep a build fast to unpack and serve; the 50 MB initial-download cap keeps first play short for a visitor on a phone; the ratio and path rules stop archives that could exhaust memory or write outside the build folder; blocked types keep the host static.

## Errors (the build is rejected)

| Code | Meaning | Fix |
| --- | --- | --- |
| `not_zip`, `corrupt`, `central_mismatch`, `size_mismatch`, `total_bytes` | The file is not a readable zip, is damaged, or its entries are inconsistent or inflate beyond their declared or total size. The portal never trusts the sizes a zip declares, so it inflates every entry under a hard cap. | Re-create the zip with a standard tool. |
| `zip64`, `too_many_entries` | Zip64 archives are not supported, or the archive has more than 6,500 entries. | Split large data into fewer, smaller files and zip without Zip64. |
| `empty` | The archive has no files. | Zip the contents of your export folder. |
| `no_index` | No `index.html` at the root, or inside a single top-level folder (which is stripped and reported as `nested_root`). | Put `index.html` at the root. |
| `unsafe_path` | An absolute path, drive letter, `..`, backslash, `?` or `#` in a name, control or bidirectional-override character, empty or dot segment, or an over-long name. | Rename the file. |
| `symlink` | The zip contains a symbolic link. | Zip real files. |
| `encrypted` | An entry is password protected. | Remove the password. |
| `compression` | An unsupported zip compression method. | Use Deflate or store. |
| `duplicate` | The same path appears twice. | Remove the duplicate. |
| `blocked_type` | An executable or server-side file such as `.php`, `.exe`, `.dll`, `.bat`, `.sh`, `.jar`, `.py`, `.htaccess`, `.htpasswd`, `web.config`, `php.ini`. | Remove it; games are static. |
| `compression_ratio` | A suspicious ratio, per file or overall. | Do not zip data that expands this far. |
| `too_many_files` | More than 1,500 files. | Combine files, for example into an atlas or pack. |
| `too_large` | Unpacked size above 250 MB, or a single entry that is too large. | Compress assets and load some later. |
| `initial_too_large` | Estimated initial download above 50 MB. | See [first frame fast](https://docs.zokogames.com/guides/first-frame). |
| `bad_precompressed` | A `.gz` file that is not gzip data. | Re-export with gzip, or upload uncompressed. |
| `unsafe_<rule>` | The safety scan matched a blocking rule, one of `unsafe_native_executable`, `unsafe_executable_extension`, `unsafe_double_extension`, `unsafe_shell_script`, `unsafe_invalid_wasm`, `unsafe_nested_archive_executable`, `unsafe_crypto_miner`, `unsafe_credential_phishing`, `unsafe_obfuscated_eval`, `unsafe_script_from_ip`, `unsafe_script_from_shortener`, `unsafe_cookie_exfiltration` or `unsafe_reputation_malicious`. The rule names are in [the safety scan](#the-safety-scan). Not to be confused with `unsafe_path`, which is a path problem. | Remove the file or code the finding names. |

## Warnings and notes (the build is accepted)

| Code | Severity | Meaning |
| --- | --- | --- |
| `mobile_initial_large` | warn | Initial download above 20 MB. Reviewers test on a phone. |
| `large_file` | warn | A single file above 20 MB. |
| `missing_reference` | warn | `index.html` references a file that is not in the zip. |
| `case_mismatch` | warn | A referenced file differs from the real name only by letter case, so it returns 404 on our host (names are case sensitive there, unlike on many desktops). |
| `external_url` | warn | The build references external hosts (the first eight are named). Bundle what the game needs into the zip. The report replaces it with one `origin_*` finding per kind of host. |
| `case_collision` | warn | Two paths differ only by case. |
| `reserved_name` | warn | A file name starts with `_zoko`. The game origin never serves such a file (404). |
| `reserved_path` | warn | A file sits in the top-level `__zk/` folder, which the portal reserves for offline play. Nothing in it is served (404). |
| `hidden_file` | warn | A file or folder whose name starts with a dot (`.git`, `.env`, `.vite`). The game origin never serves it (404). |
| `absolute_path` | warn | A root-absolute path such as `/game.js` in `index.html`. Use relative paths. |
| `index_not_html` | warn | `index.html` does not look like an HTML document. |
| `unknown_type` | warn | A file type the portal does not recognise, served as generic binary. |
| `no_sdk` | warn | The ZokoGames SDK script is not referenced, so ads, saves and scores will not work. |
| `sdk_bundled` | warn | A copy of the SDK appears to be bundled. Load the hosted script so fixes reach players. |
| `third_party_sdk` | warn | Another portal's SDK was detected. Remove it. |
| `non_utf8_name` | warn | A file name is not stored as UTF-8 and may be garbled. |
| `origin_fonts`, `origin_cdn`, `origin_analytics`, `origin_ads`, `origin_unknown` | warn | External hosts referenced from your code, grouped by kind. They may break under the sandbox, and a build that needs external hosts cannot be saved for offline play. Ad networks other than the SDK are not allowed (see [advertisement rules](https://docs.zokogames.com/requirements/advertisements)). |
| `mixed_content` | warn | Absolute `http://` URLs, blocked on an https page. |
| `service_worker` | warn | The build registers a service worker, which can clash with the portal's offline handling. |
| `cookie_access` | warn, or info when the code looks like a known vendor | Code uses `document.cookie`. Cookies are not shared inside the frame; use the [data module](https://docs.zokogames.com/sdk/data). |
| `top_navigation` | warn, or info for a known vendor | Code touches `window.top` or opens `_top`. A sandboxed frame cannot navigate the portal. |
| `unity_unityweb` | warn | `.unityweb` files get no content encoding, so the loader unpacks them in JavaScript and the game starts slower. Turn **Decompression Fallback** off and re-export with Brotli or Gzip. |
| `unity_mixed_compression` | warn | `.br` and `.gz` files are mixed. Re-export. |
| `unity_compression_mismatch` | warn | Some Build files are compressed and others not. |
| `sdk_pinned` | info | The SDK URL is pinned to a version; it will not receive fixes until you update it. |
| `sdk_no_init` | info | No SDK init call was found by a static scan. Engine wrappers and minified code can hide it; check the [Preview tool](https://www.zokogames.com/preview). |
| `sdk_compat_shim` | info | The SDK is used through the [compat shim](https://docs.zokogames.com/guides/migrating), so its init call goes through the legacy global, which a static scan cannot follow. Nothing to do if the [Preview tool](https://www.zokogames.com/preview) shows the init call; otherwise check that the shim script loads after the SDK script. |
| `nested_root` | info | Everything was inside one folder; it was detected as the root. |
| `junk_ignored` | info | System files such as `__MACOSX` and `.DS_Store` were ignored. |
| `engine_low_confidence` | info | The engine was guessed from text signatures only. |
| `scan_truncated` | info | The static scan hit its time or size budget, so some findings may be missing. |

## Finding reference {#finding-reference}

Each finding in the report links to its entry here. An entry says what was found and how to fix it. The report adds the file, and the line in `index.html` where the validator can place it. Several findings with the same code about different files are shown once, with a count and an expandable list of files. **Copy report** and **Download report** put the whole report into plain text you can paste to a teammate or a coding agent. Safety scan rules (`unsafe_<rule>`) are explained in [the safety scan](#the-safety-scan).

### `not_zip` {#code-not-zip}

The file is not a zip, or is too small to be one. **Fix:** Create the zip again with your system's zip tool. `.rar`, `.7z` and `.tar.gz` are not accepted.

### `corrupt` {#code-corrupt}

The zip could not be unpacked, usually because the upload was cut short or the archive is damaged. **Fix:** Create the zip again from your export folder and upload it again.

### `central_mismatch` {#code-central-mismatch}

The zip's file list (central directory) does not match the files inside it. **Fix:** Create the zip again with a standard tool; archives edited or merged by hand break this way.

### `size_mismatch` {#code-size-mismatch}

A file inflates to a different size than the zip declares for it. **Fix:** Create the zip again with a standard tool.

### `total_bytes` {#code-total-bytes}

The zip inflates beyond the total size limit while being unpacked. **Fix:** Remove unneeded files and compress textures and audio. See the [limits](#limits).

### `zip64` {#code-zip64}

The archive uses Zip64, which is not supported. **Fix:** Reduce the number and size of files so a normal zip is enough, and zip again.

### `too_many_entries` {#code-too-many-entries}

The archive has more than 6,500 entries. **Fix:** Combine small files into atlases or packs.

### `empty` {#code-empty}

The zip contains no files. **Fix:** Select the files inside your export folder and zip those.

### `no_index` {#code-no-index}

There is no `index.html` at the root of the zip, or inside a single top-level folder. The report shows the nearest `index.html` it found, if any. **Fix:** Zip the contents of your export folder, not the folder itself. If the entry page is two folders deep, move its folder's contents up to the root. The name must be exactly `index.html` in lower case.

### `unsafe_path` {#code-unsafe-path}

A name is an absolute path (`/game.js`), has a drive letter (`C:\\`), a `..` segment, a backslash, `?` or `#`, a control character, or is too long. The details line says which. **Fix:** Rename the file or zip again with relative paths. Zip tools that store absolute paths usually do so because the zip was made from the wrong folder.

### `symlink` {#code-symlink}

The zip contains a symbolic link. **Fix:** Replace the link with a real copy of the file.

### `encrypted` {#code-encrypted}

An entry is password protected. **Fix:** Zip again without a password.

### `compression` {#code-compression}

An entry uses a compression method other than Deflate or store. **Fix:** Zip again with the standard method.

### `duplicate` {#code-duplicate}

The same path appears twice. **Fix:** Remove the duplicate and zip again.

### `blocked_type` {#code-blocked-type}

The zip contains an executable or server-side file (`.php`, `.exe`, `.sh`, `.py`, `.htaccess` and similar). The report names the file. **Fix:** Delete it from your export folder (a stray build script, `.sh`, `.exe`, `.php` or `.htaccess`) and zip again. Games are static files only; nothing in the zip is ever run on the server.

### `compression_ratio` {#code-compression-ratio}

A file above 1 MB expands more than 200 to 1, or the archive expands more than 400 to 1 overall. **Fix:** Do not zip data that expands this far.

### `too_many_files` {#code-too-many-files}

The zip has more than 1,500 files. **Fix:** Combine files into atlases or packs.

### `too_large` {#code-too-large}

The build unpacks to more than 250 MB, or one entry is too large. **Fix:** Compress assets and load optional content after the game starts.

### `initial_too_large` {#code-initial-too-large}

The estimated first download is above 50 MB. **Fix:** See [first frame fast](https://docs.zokogames.com/guides/first-frame).

### `bad_precompressed` {#code-bad-precompressed}

A `.gz` file is not gzip data. **Fix:** Re-export with gzip, or upload the file uncompressed.

### `more` {#code-more}

More errors were found than the report lists (40 are listed). **Fix:** Fix the ones shown and upload again.

### `mobile_initial_large` {#code-mobile-initial-large}

The estimated first download is above 20 MB. **Fix:** Load levels and audio after the first frame. See [first frame fast](https://docs.zokogames.com/guides/first-frame).

### `large_file` {#code-large-file}

A single file is above 20 MB. **Fix:** Split or compress it, or load it after the game starts.

### `missing_reference` {#code-missing-reference}

`index.html` references a file that is not in the zip. The report lists each file, grouped under one finding when there are several, with the line in `index.html`. **Fix:** Add the file to the export folder, or correct the path; the path is read from the zip root. See [relative paths only](https://docs.zokogames.com/requirements/technical#relative-paths-only).

### `case_mismatch` {#code-case-mismatch}

A referenced file differs from the real name only by letter case. **Fix:** Match the exact case; the host is case sensitive.

### `external_url` {#code-external-url}

The build references external hosts. The report shows one `origin_*` finding per kind instead. **Fix:** Bundle what the game needs into the zip.

### `case_collision` {#code-case-collision}

Two paths differ only by letter case. **Fix:** Delete or rename one of the two files so no two names are the same when letter case is ignored (for example `Hero.png` and `hero.png`), and update the code that loads it. The portal keeps both, but a zip unpacked on Windows or a Mac overwrites one of them.

### `reserved_name` {#code-reserved-name}

A file name starts with `_zoko` (any case, in any folder). The portal keeps these names for its own files, and the game origin answers a request for one with 404, so the file is in the build but never reaches the player. **Fix:** Rename the file (for example without the underscore prefix) and the code or data that loads it, then zip again. Nothing breaks if the game never loads it.

### `reserved_path` {#code-reserved-path}

A file sits in a folder named `__zk` at the top of the zip. The portal uses `/__zk/` on the game address for offline play and answers every other request there with 404. **Fix:** Move the files of that folder to another one (for example `assets/`), update the paths that load them and zip again. A folder named `__zk` deeper down, such as `assets/__zk/`, is fine.

### `hidden_file` {#code-hidden-file}

A file or folder whose name starts with a dot (`.git`, `.env`, `.vite`, `.well-known`). The game origin never serves such a name, so a request for it answers 404. `.DS_Store` and `__MACOSX` are ignored separately (`junk_ignored`). **Fix:** If the game does not load it, delete it from the export folder and zip again; a `.git` folder or a `.env` file should not be in the zip at all. If the game does load it, rename it without the dot and update the path.

### `absolute_path` {#code-absolute-path}

`index.html` uses a root-absolute path such as `/game.js`, which 404s under the build folder. **Fix:** Make the path relative: `./game.js`, not `/game.js`. If a bundler writes it, set a relative base and build again: Vite `base: './'` in `vite.config`, webpack `output.publicPath: ''`, Create React App `"homepage": "."` in `package.json`. Links to `/sdk/` and `/_shared/` are fine.

### `index_not_html` {#code-index-not-html}

`index.html` does not look like an HTML document. **Fix:** Open `index.html` in a text editor: it must start with `<!doctype html>` and contain `<html>`. If it holds a redirect, an error message or an engine template that was not filled in, export the game again and zip the new `index.html`.

### `unknown_type` {#code-unknown-type}

The zip has files of a type the portal does not recognise; they are served as generic binary. **Fix:** Nothing to do unless the engine needs a specific Content-Type.

### `no_sdk` {#code-no-sdk}

The SDK script is not referenced, so ads, saves and scores will not work. **Fix:** Add `<script src="https://sdk.zokogames.com/zokogames-sdk-v1.js"></script>` to the `<head>` of `index.html` and call `ZokoGames.SDK.init()` when the game starts. The engine plugins do both for you. See the [SDK introduction](https://docs.zokogames.com/sdk/introduction).

### `sdk_bundled` {#code-sdk-bundled}

A copy of the SDK appears to be bundled in the build. **Fix:** Delete the copied SDK file and load `https://sdk.zokogames.com/zokogames-sdk-v1.js` from `index.html` instead, so SDK fixes reach players without a new upload. See [versioning](https://docs.zokogames.com/sdk/versioning#do-not-self-host-an-old-copy).

### `third_party_sdk` {#code-third-party-sdk}

Another portal's SDK was detected. **Fix:** Delete the other portal's `<script>` tag and its init and ad calls, then add this portal's SDK instead (see [migrating](https://docs.zokogames.com/guides/migrating)). Only this portal's SDK is supported.

### `non_utf8_name` {#code-non-utf8-name}

A file name is not stored as UTF-8 and may be garbled. **Fix:** Zip again with UTF-8 names, or use plain ASCII names.

### `origin_fonts` {#code-origin-fonts}

The code calls an external font host. **Fix:** Download the font files (`woff2`) into the zip and load them with `@font-face` and a relative `url(./fonts/name.woff2)`.

### `origin_cdn` {#code-origin-cdn}

The code loads from an external CDN. **Fix:** Download the script or asset into the zip and load it with a relative path (`./lib/name.js`), or install it with npm so the bundler includes it.

### `origin_analytics` {#code-origin-analytics}

The code calls an external analytics host. **Fix:** Remove the analytics script and its calls; measurement comes from the SDK's own events.

### `origin_ads` {#code-origin-ads}

The code calls an ad network other than the SDK. **Fix:** Remove the ad network's script and calls; ads in a game come only from the SDK's ad calls. See the [advertisement rules](https://docs.zokogames.com/requirements/advertisements).

### `origin_unknown` {#code-origin-unknown}

The code calls an external host that could not be classified. **Fix:** If it is your own game server (multiplayer, login, saves) it is allowed over `https://` and `wss://`: write its host name in the **Server host and notes for reviewers** field of the **Your own game server and notes for reviewers** card on the Technical step, where the reviewer reads it next to this finding, and make that server accept the game's origin (shown on the same card). Bundle everything else.

### `mixed_content` {#code-mixed-content}

The code uses absolute `http://` URLs, which are blocked on an https page. **Fix:** Use `https://` or relative paths.

### `service_worker` {#code-service-worker}

The build registers a service worker. **Fix:** Ship no worker of your own, because the portal handles offline saving. Construct 3: Project Properties, **Offline support: No**. Godot: turn **Progressive Web App** off in the Web export preset. Vite or webpack: disable the PWA plugin (`vite-plugin-pwa`, Workbox) for this build. Hand-written code: delete the `navigator.serviceWorker.register` call and the worker file, then export again.

### `cookie_access` {#code-cookie-access}

Code uses `document.cookie`. **Fix:** Use the [data module](https://docs.zokogames.com/sdk/data); cookies are not shared inside the frame.

### `top_navigation` {#code-top-navigation}

Code touches `window.top` or opens `_top`. **Fix:** Remove it; a sandboxed frame cannot navigate the portal.

### `unity_unityweb` {#code-unity-unityweb}

`.unityweb` files are served without `Content-Encoding`, so the loader unpacks them in JavaScript and the game starts slower. This is Unity's Decompression Fallback, or a 2019 or older export. **Fix:** In Player Settings > Publishing Settings turn **Decompression Fallback** off, set **Compression Format** to Brotli or Gzip and build again; the portal then serves `.br` and `.gz` with the right header and the loader has nothing to unpack.

### `unity_mixed_compression` {#code-unity-mixed-compression}

`.br` and `.gz` Build files are mixed. Stale files from an earlier build are the usual cause. **Fix:** Choose one **Compression Format** in Publishing Settings, delete the build output folder and build again, so every file in `Build` ends in the same `.br` or `.gz`.

### `unity_compression_mismatch` {#code-unity-compression-mismatch}

Some Build files are compressed and others are not. **Fix:** Delete the build output folder and build again with one **Compression Format**. The report names the uncompressed file; check that `dataUrl`, `frameworkUrl` and `codeUrl` in `index.html` name the same set of files.

### `sdk_pinned` {#code-sdk-pinned}

The SDK URL is pinned to a version. **Fix:** Use the latest URL unless you need a fixed version.

### `sdk_no_init` {#code-sdk-no-init}

No SDK init call was found by a static scan. **Fix:** Check the [Preview tool](https://www.zokogames.com/preview); engine wrappers and minified code can hide the call.

### `sdk_compat_shim` {#code-sdk-compat-shim}

The SDK is used through the compat shim, which a static scan cannot follow. **Fix:** Check the init call in the [Preview tool](https://www.zokogames.com/preview).

### `nested_root` {#code-nested-root}

Everything was inside one folder, which was used as the root. **Fix:** Nothing to do; zip the folder's contents to avoid the note.

### `junk_ignored` {#code-junk-ignored}

System files such as `__MACOSX` and `.DS_Store` were ignored. **Fix:** Nothing to do.

### `engine_low_confidence` {#code-engine-low-confidence}

The engine was guessed from text signatures only. **Fix:** Nothing to fix.

### `scan_truncated` {#code-scan-truncated}

The static scan hit its time or size budget, so some findings may be missing. **Fix:** Run the build in the [Preview tool](https://www.zokogames.com/preview).

## The safety scan

Every upload also goes through a safety scan that looks for code and files with no place in a game. It runs on the same upload, and its findings appear in a **Safety scan** section of the report, each with the rule, the file and a short excerpt. A finding has one of three severities:

| Severity | Effect |
| --- | --- |
| Blocked | The build is rejected with the code `unsafe_<rule>`. |
| Needs review | The build passes, but a moderator checks it before players get it (see below). |
| Note | Shown to you only. |

A build that needs review is held for a moderator at every stage. Before launch it can be your active build for Preview, and the moderator checks it in the review of your submission. In basic launch, where updates normally go live with no review, **Activate** and **Roll back** on such a build turn into **Send for review**: it waits in the review queue like a full-launch update, and players keep the current build until a moderator approves it (an approval counts for good, so switching back to that build later is instant). Calling the activate endpoint for it returns `outcome: "queued_for_review"` with `reason: "safety_review"`. Size and download-budget warnings never hold a build.

| What it catches | Rule name | Severity | What triggers it |
| --- | --- | --- | --- |
| Native program | `native_executable` | Blocked | A file whose first bytes are a Windows, Linux, macOS or Java executable, or a Windows shortcut, whatever its name. |
| Program or script extension | `executable_extension` | Blocked | A program, installer or script extension such as `.exe`, `.msi`, `.sh`, `.ps1`, `.jar`, `.apk` or `.dylib`. |
| Disguised file name | `double_extension` | Blocked | An executable name hidden behind a harmless one, such as `report.exe.png`. |
| Not WebAssembly | `invalid_wasm` | Blocked | A `.wasm` file that does not start with the WebAssembly header (`\0asm`), or is really another file type. Re-export the build; never rename another file to `.wasm`. |
| Shell script | `shell_script` | Blocked | A file that starts with a shebang line (`#!`), unless it is JavaScript. |
| Program inside a nested zip | `nested_archive_executable` | Blocked | A zip inside your zip that contains a program or script. |
| Cryptocurrency miner | `crypto_miner` | Blocked | Code that matches a known browser miner. |
| Password phishing form | `credential_phishing` | Blocked | A form with a password field that posts to another website. |
| Hidden eval | `obfuscated_eval` | Needs review for 1 to 3, blocked for 4 or more | `eval` of base64 data (`eval(atob(...))`). |
| Script from an IP address | `script_from_ip` | Blocked; needs review for a private address | A script loaded from a raw IP address. |
| Script from a URL shortener | `script_from_shortener` | Blocked | A script loaded through a URL shortener. |
| Cookie theft | `cookie_exfiltration` | Blocked | `document.cookie` next to a network request to another host. |
| Reputation lookup | `reputation_malicious` | Needs review at 3 to 9 engine flags, blocked at 10 or more | A reputation lookup reports a file as malicious (see below). |
| Other review flags | `frame_breakout`, `popup_loop`, `password_input`, `websocket_raw_ip`, `disguised_archive`, `nested_archives`, `ole_container`, `type_mismatch`, `service_worker` | Needs review (some are notes) | Assigning `top.location`, opening windows in a loop, a password field in a page, a WebSocket to a raw IP, an archive stored under another name, more than 3 nested archives, a legacy Office or installer container, a file whose content does not match its extension, or a service worker that is external, computed or missing from the build. A worker shipped in the build is a note. |

Limits of the scan: it reads at most 2 MB of each HTML and JavaScript file, 16 MB of text in total and stops after 6 seconds; if it stops early the report says so (`scan_truncated`). It keeps at most 40 findings. Absence of a finding is not a guarantee.

When the portal has a reputation service configured, the scan sends only the SHA-256 hash (never the file) of up to 20 large binaries, such as `.wasm` files above 64 KB and engine data files above 1 MB. A failed lookup never blocks a build. Unsafe code found by a reviewer is rejected with the final reason **Security** (see [quality guidelines](https://docs.zokogames.com/requirements/quality#reasons-a-submission-is-sent-back-or-rejected)).

## What else the report contains

- **Engine:** the detected engine (Unity, Godot, Construct, GameMaker, Cocos, Defold, Phaser, plain HTML5 or unknown), a version where one can be read, the evidence, and any rendering libraries spotted on top.
- **Totals:** unpacked bytes, file count, bytes by file type and the ten largest files.
- **Initial download:** the estimate with its pass, warn or fail status against 20 MB and 50 MB.
- **SDK:** whether the hosted SDK, a pinned version or a bundled copy is used, and whether an init call was found.
- **Origins:** the external hosts (at most 25 are recorded) and their kinds: fonts, CDN, analytics, ads or unknown.
- **Scan:** how many text files were scanned. The scanner reads only text files below a per-file cap, stops at a total byte cap and at a time budget, so absence of a finding is not a guarantee.

The scan is static: it cannot prove your game works. Always run the build in the [Preview tool](https://www.zokogames.com/preview) before submitting.

## What the build check returns

The console uploads a build in two requests. `POST /api/developer/games/{id}/builds/presign` prepares the upload and says where to send the zip; `POST /api/developer/games/{id}/builds/confirm` checks the zip once it has arrived. The check runs in the confirm request, which answers `200` whether the build passes or not, so read `ok` rather than the status:

| Field | Meaning |
| --- | --- |
| `ok` (top level) | `true` when the build was accepted and stored, `false` when the check rejected it. |
| `buildId`, `version` | The new build's id and number, or `null` for a rejected build. |
| `activated` (top level) | `true` when the build became the game's active build straight away: every valid build does while the game is not live (draft, changes requested, rejected, unpublished). On a live game it is `false`, and players keep the current build until you switch. |
| `validation.ok` | The same value as `ok`. |
| `validation.issueDetails` | One entry per error, in order: a stable `code` from [the errors table](#errors-the-build-is-rejected), a `message` for people and, when the error concerns one file, its `path`. |
| `validation.issues` | The same errors as plain messages, in the same order, with the path in brackets. |
| `validation.warnings` | Warnings as plain messages. They never reject a build. |
| `validation.engine`, `fileCount`, `totalBytes`, `initialBytes`, `usesSdk`, `externalHosts` | What the check measured: the detected engine, the file count, the unpacked and initial-download bytes, whether the SDK script is referenced, and up to 25 external hosts. |
| `validation.report` | The full validation report described on this page. |

The archive is read in two passes, and a build that fails the first one (the zip structure, paths, file types, size and file count) is not scanned further. A fixed build can therefore show new errors on the next upload. When the first pass finds more than 40 errors, the list ends with one entry with the code `more` instead of the rest. Limits are in the [limits table](#limits).

A rejected build (the `report` object is left out of both examples):

```json
{
  "ok": false,
  "buildId": null,
  "version": null,
  "validation": {
    "ok": false,
    "issues": [
      "Executable or server-side files are not allowed (tools/export.sh)",
      "index.html must be at the root of the zip (not found; multiple top-level folders)"
    ],
    "issueDetails": [
      {
        "code": "blocked_type",
        "message": "Executable or server-side files are not allowed",
        "path": "tools/export.sh"
      },
      {
        "code": "no_index",
        "message": "index.html must be at the root of the zip (not found; multiple top-level folders)"
      }
    ],
    "warnings": [],
    "engine": "unknown",
    "externalHosts": [],
    "initialBytes": 0,
    "usesSdk": false,
    "totalBytes": 0,
    "fileCount": 37
  },
  "activated": false
}
```

An accepted build:

```json
{
  "ok": true,
  "buildId": "3f9c2a71-6b4e-4d0a-9e85-2c1f7a604b19",
  "version": 4,
  "validation": {
    "ok": true,
    "issues": [],
    "issueDetails": [],
    "warnings": [
      "Initial download ~24 MB is above the 20 MB mobile target"
    ],
    "engine": "godot",
    "externalHosts": [],
    "initialBytes": 25165824,
    "usesSdk": true,
    "totalBytes": 41943040,
    "fileCount": 12
  },
  "activated": false
}
```

Branch on `code`, not on `message`: codes are stable, while the wording of messages may change. `issues` stays for compatibility with older clients, and `issueDetails` is absent on builds checked before it existed. In the console, the **Build** step shows the report, and every finding links to the part of this page that explains it.

### When the check does not run {#when-the-check-does-not-run}

These answers carry `{"error": "<code>", "message": "..."}` instead of a check result, with a non-`200` status:

| Status | Code | When |
| --- | --- | --- |
| 400 | `invalid_body` | The request is malformed, for example a declared zip size below 22 bytes or above 266 MB (250 MB plus 16 MB), or release notes over the limit. |
| 400 | `parts_required` | A multipart upload was confirmed without its parts. |
| 404, 409 | `upload_not_found` | The upload does not exist, belongs to another account or game, or its file is gone from storage (a 409; upload again). |
| 409 | `locked_in_review` | The game is in review, so its builds cannot change. |
| 409 | `not_uploaded` | The zip has not arrived in storage yet. Finish the upload, then confirm again. |
| 409 | `upload_in_progress`, `already_processed` | This upload is already being checked, or was checked before. |
| 409 | `upload_invalid` | The uploaded file is not the size declared when the upload was prepared. Upload again. |
| 429 | `too_many_open_uploads` | Too many uploads are still open (see below). |
| 429 | `daily_upload_limit` | Too many build or video uploads were started in the last 24 hours and never confirmed (see below). |
| 429 | `rate_limited` | More than 20 prepare or 20 confirm requests in an hour. |
| 503 | `storage_unavailable` | Storage is not reachable right now. The upload stays open: confirm it again in a minute, without sending the file again. |

You can hold at most 20 open uploads at a time, counting every upload you have prepared but not yet confirmed, across all your games; one more answers `429 too_many_open_uploads`. A single-request upload that was never sent stops counting 20 minutes after it was prepared (its 15-minute upload link plus 5 minutes), while a multipart upload (a zip above 50 MB) counts for 24 hours, because its parts can be signed again. Separately, the build and video uploads you started in the last 24 hours but have not confirmed may add up to at most 40 uploads or 4 GiB in total; reaching either limit answers `429 daily_upload_limit`. Confirmed uploads do not count, so confirm the uploads you have finished, or wait: unconfirmed uploads are cleaned up 24 hours after they were prepared, and the budget frees itself.

The public [developer API](https://docs.zokogames.com/guides/developer-api#builds) cannot upload builds. Its build list returns `validation` with `ok` and `issues` only.

## Findings by topic

Each finding in the report links to its own entry in the finding reference above; these pages explain the topics behind the entries. Warnings and notes never block a build, but a reviewer can still send a game back for them.

### Size and file codes

`too_large`, `too_many_files`, `too_many_entries`, `initial_too_large`, `mobile_initial_large` and `large_file` are explained under [size and files](https://docs.zokogames.com/requirements/technical#size-and-files). The reason: a first-time visitor must fetch the initial download before play can start, and most of them are on a phone.

### Path codes

`absolute_path`, `case_mismatch`, `missing_reference` and `mixed_content` are explained under [relative paths only](https://docs.zokogames.com/requirements/technical#relative-paths-only). The reason: the game is served from its own build folder on its own host, so anything that assumes a different root or an `http` address fails there.

### Archive and file type codes

`not_zip`, `corrupt`, `central_mismatch`, `size_mismatch`, `total_bytes`, `zip64`, `empty`, `no_index`, `unsafe_path`, `symlink`, `encrypted`, `compression`, `duplicate`, `blocked_type`, `compression_ratio`, `bad_precompressed`, `case_collision`, `index_not_html`, `unknown_type`, `non_utf8_name`, `junk_ignored` and `nested_root` are covered under [what the validator rejects](https://docs.zokogames.com/requirements/technical#what-the-validator-rejects) (`nested_root` also in the [quick start](https://docs.zokogames.com/getting-started/quick-start)).

### SDK codes

`no_sdk`, `sdk_no_init` and `third_party_sdk` are explained in the [SDK introduction](https://docs.zokogames.com/sdk/introduction); `sdk_bundled` and `sdk_pinned` in [versioning](https://docs.zokogames.com/sdk/versioning). The SDK is optional for a basic launch and required for a full launch, so a build without it cannot go to full launch. See the [requirements overview](https://docs.zokogames.com/requirements/overview).

**Accepted forms of the SDK script URL.** The check reads every text file in the zip (`.html`, `.htm`, `.js`, `.mjs`, `.css`), not only `index.html`. The SDK counts as used when a file contains `sdk.zokogames.com` or the global name `ZokoGames`. A script is classed as **hosted** when it is written as `https://sdk.zokogames.com/<path>`, `http://sdk.zokogames.com/<path>` or protocol-relative `//sdk.zokogames.com/<path>`. If the path starts with a version such as `1.6.0/`, it is **pinned** to that version (`sdk_pinned`); any other path, for example `https://sdk.zokogames.com/zokogames-sdk-v1.js`, is the **latest** alias that receives fixes. A file that mentions the global without the hosted address is read as a bundled copy (`sdk_bundled`). Use `https`: an `http://` script is also blocked as mixed content when the page runs on the portal.

### External host and frame behaviour codes

`external_url` and the `origin_*` codes cover hosts your code calls; the [advertisement rules](https://docs.zokogames.com/requirements/advertisements) explain why ad hosts are not allowed. `service_worker`, `cookie_access` and `top_navigation` are explained in [embedding and sitelock](https://docs.zokogames.com/requirements/embedding), because the game runs in a sandboxed frame.

### Engine codes

`unity_unityweb`, `unity_mixed_compression` and `unity_compression_mismatch` are explained in the [Unity guide](https://docs.zokogames.com/engines/unity); `engine_low_confidence` in [HTML5 libraries](https://docs.zokogames.com/engines/html5-libraries).

## Next steps

- [Troubleshooting](https://docs.zokogames.com/guides/troubleshooting)
- [Testing checklist before you submit](https://docs.zokogames.com/getting-started/testing-checklist)
