Source: admission_manifest.md #
On this page
Generated automatically from the published contract sources.
Source path: admission_manifest.md.
Contract text #
The Admission Manifest — Format Contract #
Purpose #
This document defines the JSON format of the application manifest the admission PRD describes: its required fields, allowed values, and format errors. The JSON Schema at schemas/manifest.schema.json is maintained alongside this contract; neither file is generated from the other. A test in the platform's suite checks their agreement.
Runtime admission checks belong to the requirements that own the affected service, region, audience, and policy. A valid JSON document does not prove those runtime checks passed. MAN-01 states how the manifest reaches submit_manifest; account-side egress policy belongs to ADM-L0-04.
Requirements are numbered MAN-nn.
The document #
MAN-01 (decided): A manifest is one JSON document conforming to the schema, and it opens with its own contract revision: manifest_version, the integer 1 for this form. A manifest whose version is not a known revision is refused as malformed rather than best-effort-read, because a reader guessing at an unknown revision enforces something other than what the author declared. The manifest's home is a file in the application project — manifest.json at the project root — and the admitting act reads it from the submit_manifest request body: the customer's tool sends the file's content, and no path is fetched from anywhere.
MAN-02 (decided): The manifest requires ADM-L0-01's five declarations services, region, egress, audience and packages, and manifest_version. It admits optional health (MAN-05), settings, upstreams, realm, websockets, smoke_paths, immutable_client_folder, redirects and application, and nothing else. application names the folder's deployment target and is no admission declaration: it provisions or enforces nothing. The plane requires its lowercase UUID form and takes no other act on it. Membership changes by ADM-L0-01 amendment, with schema and citing tests changed together. An unknown member fails validation instead of passing as inert: a field the check ignores is a declaration the reader believes and Turn Zero does not enforce. This applies the nothing-undeclared rule to the manifest. An application's kind is chosen at creation and held on its record, never in its manifest (FNS-L0-01).
One unknown member is refused by its own name rather than as unknown: an environments member is refused environment_unsupported with the remedy (MAN-06). It is named because an application's environments are the platform's, set by create_environment and delete_environment (PLD-L0-96), and the author of a manifest written against an earlier revision of this contract is told what to change. The ai_purposes member, which carried the retired AI gateway's purposes and which no service read, left the manifest with MAN-04's retirement. A manifest written against the earlier revision fails as an unknown member at that member's path (MAN-12), and the remedy is to delete the member.
The manifest's one identity member is application, a lowercase UUID naming the application the folder deploys to, a binding the folder carries. Which application a submitted manifest binds to is the admitting action's (API-L0-01): the platform admits the member, holds it to its form, leaves it out of the deploy's manifest notice (PLD-L0-63), and never reads it as the application admitted to. A fork deployed to another application changes or removes the member, and the manifest's declarations serve one application today and the fork tomorrow without other editing. The turnzero command reads the member and enforces it before every deploy and check of a folder, refusing a line that names another application (PLD-L0-94; PLD-L0-107), so it is no field every check ignores.
The optional members may be absent. The settings member is the settings the application's process reads, each a stored secret or a plain value; a manifest that omits it sets no setting (MAN-14). The upstreams member is the keyed upstreams the application calls through the gateway; a manifest that omits it leaves its upstreams to declare_outbound_api (EGW-L0-02). The realm member is the sign-in configuration of the application's end-user realms; a manifest that omits it leaves that configuration to configure_app_sign_in (ACS-L0-07).
This paragraph names the fourth optional member, websockets, the upgrades the application accepts. A manifest that omits it accepts none (MAN-15).
This paragraph names the fifth optional member, smoke_paths, the paths a deploy or a promote requests once its health gate has passed (MAN-18). A manifest that omits it has the deploy request the health path alone.
This paragraph names the sixth optional member, immutable_client_folder, the one folder of client files answered with a year's cache header (MAN-19). A version deployed from a manifest that omits it has every client file answered no-cache.
This paragraph names the seventh optional member, redirects, the redirect rules the router answers by exact path (MAN-20). A version deployed from a manifest that omits it answers no redirect rule.
The members #
MAN-03 (decided): services declares the provisioned services the application consumes, by the catalog's own names (SVC-L0-01; SVC-L0-06). It is an array of at most 20 entries, each {"kind": …}. The kinds database, object_storage, email, accounts, and push (SVC-L0-20) stand alone, and issue_tracking stands alone or carries a space, a level, and components, as its own paragraphs below state. custom_domain carries its domain, one lowercase hostname of at least three labels, the attach SVC-L0-25 states, and a second custom_domain entry naming another hostname is refused manifest_invalid at its path once the first entry's own checks admit it. schedule carries its schedules, and job carries its jobs.
schedules is a list of one to twenty-five declarations at the shape's cap, the plan's schedule-count-limit refused at submit by name. Each declaration is a name, a cron, and a path. The name is a lowercase letter followed by lowercase letters, digits, or underscores, with no hyphen, at most 64 characters long, and is unique within the application. The cron is five fields in UTC, minute, hour, day of month, month, and day of week, each *, an integer, a range, a list, or a step. The schema refuses any other shape at its path, and the admitting act refuses a field out of range or an expression with no due time inside a year. The path is the absolute HTTP path of a handler in the application, in MAN-05's form, under neither reserved path prefix, /__account/ (ACS-L0-04) nor /__router/. The schedule service PRD's declaration statement owns the plan's bounds.
schedule is the recurring time-driven invocation service (SVC-L0-15), renamed from scheduled_jobs while no admitted manifest existed to carry the old kind. A schedule entry carrying no schedules is refused, a kind carrying no schedule declaring nothing. A resubmission converges the application's schedules to the entry. An unchanged declaration keeps its standing, a changed timing or path takes effect from the environment's next deploy (the schedule service PRD's environments statement), and a removed name ends its schedule with its run history kept. No submission fires a run (ADM-L0-07).
job is the run-to-completion service (SVC-L0-27), a kind apart from schedule. A schedule is a recurring request to a handler, and a job is a script the platform runs to its exit in a container of its own. jobs is a list of one to five declarations. Each is a name, a script, a size and a timeout_seconds, and nothing else. The job service PRD's declaration statement owns their forms and bounds (JOB-L0-01). A job entry carrying no jobs is refused, and a second job entry is refused manifest_invalid at its path. A serverless application's submission declaring the kind is refused serverless_no_job (FNS-L0-01). While the plane setting job_kind reads off, every submission declaring the kind is refused: jobs_not_available, unless an earlier check refuses it first (JOB-L0-02). No submission starts a run.
accounts is the application's end-user realms on the accounts service (SVC-L0-10), one per environment (PLD-L0-40), each created with its environment and deleted with it (PLD-L0-66).
issue_tracking is the application's space at the issue-tracking service (SVC-L0-19), one for both environments (PLD-L0-40), created at the first submission naming the kind with no space. The entry may name space, one account-kind space the account holds or { development, production } naming one per environment, and level, report or contribute, report where none is named, with space alone. level with no space is refused invalid_request naming space, a level outside the two level_invalid, a space the account cannot bind, an application's own among them, space_not_owned, and a standing pair's manifest naming space invalid_request naming the pair, each before any write. On a plane serving no issue service, an entry naming a chosen space is answered not_yet_provisioned instead, the manifest recorded (ITS-L0-01). The issue service PRD's provisioning row states the act, the binding, the standing pairs, the egress gateway's route, and the space's deletion.
With space, the submission binds the application, or each environment, to the named space and creates nothing. An application bound to a chosen space moves to another space its later manifest names, the space it leaves standing. A later manifest naming no space keeps the chosen binding as it stands. An application holding its own space whose manifest names space is refused invalid_request before any write, its own space serving both environments until the application is deleted.
This paragraph qualifies the two paragraphs above on the space an entry names. With components, one to two hundred of the space's declared component names, each once and at most 64 characters, the binding is served under a report token the platform mints for it with that list. The application then reads and files within those components alone (ITS-L0-01). components rides space at report alone: with no space it is refused invalid_request naming space, and beside another level level_invalid. The platform's own space is bound by its owning account this way alone, at report with a list, a missing list refused invalid_request naming components. The schema holds each member's shape, and the submission judges the words by name.
The kind vocabulary is closed at this revision and duplicates are refused. services means per-application provisioned services, so an application consuming account-grain surfaces alone declares the empty array, which is a statement, not an omission, its account-grain consumption visible in the account's own declarations. Hosting is not an entry: every admitted application is hosted, and a declaration that cannot be declined is not a declaration.
This paragraph qualifies the first paragraph's clause that push stands alone: a push entry may also name its providers, apns and fcm, whose configuration each submission records (PSH-L0-01). A second push entry is refused manifest_invalid at its path.
This paragraph qualifies the first paragraph's clause that object_storage stands alone: an object_storage entry may also carry areas, the storage areas each submission declares (OST-L0-01). areas is a list of one to fifty declarations, each a name and account_keyed, a boolean, and nothing else. The name is in OST-L0-01's character class, and a name the list repeats is refused manifest_invalid at its path. A declaration names no version_keeping and no application: the area keeps no versions, and it binds to the application the admitting action names (API-L0-01). A second object_storage entry is refused manifest_invalid at its path.
A custom_domain entry may also carry proxied_by, the one value cloudflare, and proxy_secret, the name of a secret stored at the application's production scope, the two together or neither. With both, the router reads a visitor's address from Cloudflare's header on that domain only where the request comes from Cloudflare's published ranges and carries the header X-Turnzero-Proxy-Secret with the stored value. Otherwise the socket address stands (PLD-L0-67). The router removes that header from every request before the application sees it.
The proxy secret serves the visitor address reading alone. A proxy_secret naming a secret a setting binds, an upstream's key, or a realm's or a push provider's credential is refused manifest_invalid at its path. The violation names the sibling rule: name_bound_to_setting, name_bound_to_upstream, name_bound_to_realm, or name_bound_to_push. A platform-minted name is refused platform_minted_name. In turn, declare_outbound_api, configure_app_sign_in, and configure_push refuse the declared name name_bound_to_proxy. A binding of it is refused name_bound_to_proxy at a deploy and a promote (MAN-14).
A stored proxy secret shorter than 32 characters is read as not stored. Otherwise the platform keeps the stored value's SHA-256 digest on the custom domain's row. It takes the digest when store_secret writes a value the owner supplies, and reads the value once from custody when a submission names the secret anew (SCRT-L0-09; SCRT-L0-11). A value the platform creates gives no digest and is never read for one, since its owner never holds it (SEC-L0-20). A proxy_secret naming a value the custody index still marks as created, which every value is until an owner's store_secret write of it lands, is refused manifest_invalid at its path, proxy_secret_not_supplied, with the cure of storing a value again. It clears the digest when the value is deleted or a write's outcome is unknown. No answer an owner reads carries the digest.
MAN-04: *Retired 2026-09-12 UTC.* The ai_purposes member leaves the manifest at Anthony's direction: no service read it, and the AI gateway whose purposes it carried was retired into the egress gateway. Keyed upstream declarations have their own manifest member, upstreams (EGW-L0-02), rather than growing this one.
MAN-05 (decided): health declares the application's health endpoint as an absolute HTTP path: / followed by non-whitespace (PLD-L0-59; SVC-L0-08). It is a path rather than a URL; its host is the application's managed address, since another host would check something Turn Zero does not run.
The schema admits health without requiring it. A zip naming its own start, through root package.json's scripts.start or root server.js, requires it at deploy. A deploy, promote or redeploy needing the health gate refuses health_path_undeclared (400) at the act's start if the recorded manifest declares none, before any version row or compute act. The remedy is to add health, call submit_manifest, and repeat the act. submit_manifest admits a manifest without health only while neither environment has a placement row naming compute or a server application's deploy, promote or redeploy row in flight; it then answers without that member.
After schema validation and the region refusal, submit_manifest and check_manifest refuse 400 health_path_undeclared if the manifest declares no health and either environment has a placement row naming compute or a server application's deploy, promote or redeploy row in flight. A halted environment counts. The refusal precedes every other check and every write, and records nothing.
MAN-18 (decided): smoke_paths, optional, lists one to five distinct absolute HTTP paths, each / followed by non-whitespace, that a deploy or a promote requests with GET in the step smoke_check, once the health gate has passed (PLD-L0-63). A path, not a URL, as MAN-05 reads health, and outside the platform's prefixes (ADM-L0-01); a manifest without the member has the deploy request the health path alone. List the routes whose crash should stop a deploy or a promote before it switches: a route answering 404, a status of 500 or above, or nothing fails, and every other status passes. List routes that change nothing on GET and answer within ten seconds, since on a promote they run against production's data and secrets. A serverless application's deploy runs no health gate and requests none of these paths (PLD-L0-63).
MAN-19: immutable_client_folder, optional, names one folder below the artifact's client/ folder, as assets, whose files the router answers with a year's cache header under a public audience (SVC-L0-26). The value is the folder's path with no leading or closing slash: at least one segment, each admitted as a segment of a client file's name is, and the first none of the reserved top-level folders (SVC-L0-26). The path leaves room for a file directly under it within the bounds on a client file's whole name, so it holds at most 31 segments and 510 characters. Any other value is refused 400 manifest_invalid at the member's path (MAN-12). So is the member in a manifest whose audience is not public: under an invited or workforce audience every reuse of a client file passes the audience gate again, which a year's cache would end.
The deploy that publishes a version's client files records the folder with them, so a change of the member takes effect at the next deploy, a promote carries it, and a version published without it answers no-cache. A file named index.html keeps no-cache, and so does an answer that sets a session cookie (SVC-L0-26). Declare it only for files whose name changes whenever their content changes. The platform does not check that, and a browser that holds such a file does not ask for it again for a year, also after the application's audience is gated. On a custom domain declared as proxied, the owner's proxy may keep such a file as well (SVC-L0-26).
MAN-20: redirects, optional, lists at most 200 redirect rules, each of which the router answers itself for one exact path (SVC-L0-26). A rule holds exactly from, to and status. from is the path the rule answers, to is the path on the same hostname the visitor is sent to, and status is 301 or 302. No two rules share a from, and no rule's to is a rule's from, its own among them, so no rule leads to another rule.
Each path opens with / and holds at most 512 characters. It holds ASCII letters, digits, the marks -._~!$&'()*+,;=:@, /, and % followed by two hexadecimal digits, and nothing else, so neither ? nor # and no backslash. It holds no . or .. segment and no escaped dot, %2e in either letter case.
A to never opens with //, which a browser reads as another host, and it may name a path under the platform's prefixes, the sign-in page among them. A from under /__account/ or /__router/, read as the router reads a path's prefix (ADM-L0-01), is refused, since the router refuses such a path before it reads a rule. A member that breaks this form is refused 400 manifest_invalid at the rule's own path, or at the member's own path where the list is no list or holds more than 200 rules (MAN-12).
The deploy that publishes a version records the rules in the version's index, so a change of the member takes effect at the next deploy and a promote carries the version's rules. A version deployed from a manifest that omits it answers no redirect rule. The rules are kept and pruned with the version's client files, and those of a version that published no client file are kept until its image is pruned (SVC-L0-26).
For a GET or a HEAD whose path, as sent, is a rule's from, the router answers the rule's status with Location set to to and Cache-Control: no-cache, the request's query kept. It compares the path character for character, with no case folding and no decoding, so /old and /old/ are two paths. It answers after the halt, the three well-known documents (SVC-L0-07), the audience gate and not_deployed, and ahead of the shell, every client file, a function and the application's routes (SVC-L0-26; FNS-L0-04). So a server application's HEAD of a rule's path does not reach the application. Any other method, and an upgrade, pass the rules by.
A rule's answer counts in no window of SVC-L0-18 and as no backend action, and it adds no data transfer; while a traffic measure stands over, it is refused as a client file is. No rule is checked against the artifact: a rule at the path of a client file, a function or a route answers its redirect. A rule at the health path or at a smoke path leaves the deploy's checks requesting a route that visitors are redirected from (MAN-05; MAN-18). The turnzero command's local run applies no rule (PLD-L0-102; FNS-L0-04).
MAN-06 (decided): The manifest declares no environments. An application has one environment or two, its environment count the application's own, which create_environment and delete_environment change (PLD-L0-96). One manifest text serves every environment the application has; what an environment is, and what promotion between them means, is the platform and deployment PRD's. A manifest carrying an environments member is refused at submission with the slug environment_unsupported and the reason — an application's actions set its environments, never its manifest, and the member is removed from the manifest — before anything is provisioned (ADM-L0-08). The refusal is named rather than left to MAN-02's unknown-member failure so that the author of a manifest written against an earlier revision of this contract, which admitted the member, is told what to change.
MAN-07 (decided): region declares exactly one of the day-one values — usa, europe, uk, global (the list and what a region choice means are PLD-L0-22's). The enum is closed at this revision: a new region is a schema revision, never a free string, because an unavailable region must refuse before anything is provisioned (ADM-L0-08) and a string the format waves through defers that refusal to the worst possible moment.
MAN-08: *Retired 2026-08-17 UTC.* The update_channel member left the manifest with ADM-L0-01's amendment: no update service exists at launch and clients are the coding tool's work; a channel vocabulary returns only with a future distribution service, the backlog's territory.
MAN-09 (decided): egress declares the network allowlist: an array of at most 200 entries, no duplicates, each an exact lowercase DNS hostname (api.stripe.com) or a host family written with one leading wildcard label (*.googleapis.com). An empty list declares no tunneled external destinations. In enforce mode those connections are refused; observe mode follows EGW-L0-17. The platform endpoints described in ADM-L0-03 are separate from this list.
A family admits every hostname below its labels at any depth — *.example.com admits api.example.com and a.b.example.com — and never the apex example.com, which is its own exact entry where it is reached. The wildcard stands only as the whole first label, followed by at least two labels, so *.com, *.*.example.com, a*.example.com, and a wildcard anywhere but first are refused. The grammar carries no schemes, ports, or address literals: tunneled connections are restricted to port 443 during our introductory period without inspecting their TLS or HTTP protocol (EGW-L0-12), and a destination's addresses are checked at establishment rather than declared (EGW-L0-13).
The member is the tunnel mode's declaration carrier (EGW-L0-11; CQ-172), read live and never injected at deploy. The control plane answers it to the tunnel seat at the seat's resolve of the application, and the seat's records classify an undeclared host against it. Where a keyed upstream is declared, in the manifest's upstreams member or through declare_outbound_api, is EGW-L0-02's rule.
MAN-10 (decided): audience declares exactly one boundary: {"kind": "public"}, {"kind": "invited"}, or {"kind": "workforce", "tenant": …}. Beside those members, a shape admits only session_free_paths and requests_per_minute_without_session, each where its own rule allows it. {"kind": "invited"} is the invited audience of ADM-L0-05: gated by the serving router on the realm's session, it binds the application's end-user realms to invitation-only creation from the declaration, its invitations issued by the author (ACS-L0-08). {"kind": "workforce", "tenant": …} is one company's workforce, the tenant member a non-empty identity-provider tenant identifier whose interpretation is the provider's (ACS-L0-09). It is Microsoft Entra ID's tenant id for the entra route. A value that opens with https:// is a company issuer's address for the oidc route, compared exactly with that route's pinned issuer (ADM-L0-05).
The workforce kind was renamed from tenant so that the bare word keeps Turn Zero Cloud's own multi-tenancy sense (ADM-L0-10) and the directory sense stands qualified. The rename is on MAN-03's terms, with no alias: a manifest carrying the old value is refused at its next submission as the fourth shape it now is, and a recorded one is read as the workforce value and never as public (ADM-L0-05). One member, three shapes, no fourth: an audience the schema does not name is refused, not defaulted, because a defaulted audience is an exposure nobody declared.
The invited and workforce kinds may carry session_free_paths, the path prefixes the serving router lets through with no session, so a provider's callback reaches the application, which checks the caller's signature itself (ADM-L0-05). The list holds at most ten prefixes. Each starts with /, is not / alone, holds no whitespace and no .., and stands outside /__account/ and /__router/ in any letter case, the platform's own prefixes. A prefix covers the path equal to it and every path below it. The public kind carries no list, because it admits every request already. Submission refuses a list that breaks a rule by the rule's name, at the entry's own JSON path (MAN-12).
Each of the three kinds may carry requests_per_minute_without_session, a whole number from 10 to 3,000: the anonymous bound of SVC-L0-18, the requests one source may make to the application in a UTC minute with no valid session, on each serving router replica. Absent, the bound is 300. It takes effect at the next resolution after the manifest is submitted, and it moves neither signed-in bound of SVC-L0-18. Submission refuses a value that is not a whole number within those bounds, at the member's own JSON path (MAN-12).
MAN-14: settings binds a stored secret, or gives a plain value, to a setting the application's process reads. It is optional, one of the optional members MAN-02 admits absent, and an object from a setting name to {"secret": "<stored name>"} or {"value": "<text>"} (the nineteenth paragraph), at most 200 entries. EGW-L0-02 owns the second, upstreams. ACS-L0-07 owns the third, realm. The setting name is an upper-case letter, then upper-case letters, digits, or underscores, ending in a letter or a digit, at most sixty-four characters. The secret is a custody name (SCRT-L0-01) stored at the application's scope, which the platform reads at each environment's own scope (SCRT-L0-08).
A setting name the platform reserves is refused manifest_invalid at the setting's own path (MAN-12). The platform reserves every name under TURNZERO_, HOSTING_, EGRESS_, ROUTER_, NODE_, or NPM_, and twelve exact names: PORT, PATH, HOME, HTTPS_PROXY, HTTP_PROXY, NO_PROXY, APP_DATABASE_URL, APP_DATABASE_DIRECT_URL, APP_DATABASE_CONNECTION_LIMIT, APP_PUBLIC_HOST, APP_ENVIRONMENT, and APP_VERSION. One rule holds the reserved names, applied at submission, in the deploy's and the promote's refusal orders, and when a redeploy or a rollback re-applies a binding (PLD-L0-63; PLD-L0-84). The member is optional where MAN-02's other members are required, because every manifest submitted before it would otherwise fail validation, and an absent member binds nothing. The packages member stays required, because its omission would read as a fact not yet known (MAN-13).
Six kinds of secret are never bound, each refused at submission before anything is recorded. A platform-minted name of any application of the account is refused platform_minted_name (SEC-L0-07), so no platform credential, database credential, or issue-tracking token reaches a process through a binding. A name an upstream declaration of the application names is refused setting_is_upstream_key, and declare_outbound_api refuses the reverse, a key a binding feeds, upstream_key_is_bound. So the gateway never gives an upstream's key to the application (EGW-L0-03).
A route credential of the application, at either environment scope, is refused as declare_outbound_api refuses it. A realm's work-account client secret or Apple signing key, or a name resting in the cell's realm vault, is refused name_bound_to_realm (ACS-L0-09). A push configuration's provider credential is refused name_bound_to_push. The name a production custom domain's proxy_secret gives is refused at submission as MAN-03 states, at that entry's path, and name_bound_to_proxy at a deploy and a promote. A name at the account scope or at another application's scope is refused setting_scope_refused, because a value stored at the account scope is applied only to a declared upstream's calls and a name never moves between scopes (SCRT-L0-08). The detail names the remedy, a new name stored at this application's scope.
The answer of submit_manifest carries one row per binding and environment the application has, naming the secret and whether it is stored at that environment's application scope. One name may stand at both environment scopes of one application, each with its own value (SCRT-L0-08), so development can bind a test value and production a live one. A name stored nowhere yet is admitted, and the rows say so. A brief answer gives setting_count in place of settings, with the number of those rows in each environment and zero where it has none (PLD-L0-105).
A deploy or a promote reads each bound value at its environment's application scope solely to compose that environment's injected settings (SCRT-L0-09), and injects it as a secure setting of the binding's name. It holds each binding again to every rule above but the scope rule, and refuses setting_secret_missing where the name stands at no entry of that scope (PLD-L0-63). A value whose entry stands and whose store does not answer never reads as missing. It ends the act's row failed 502 bound_setting_unreadable before the compute apply, a deploy's, a promote's, a redeploy's, and a rollback's alike.
A redeploy re-applies the bindings its source row recorded, and a rollback those the latest production row of its version recorded (PLD-L0-84; PLD-L0-43). Neither reads the current manifest, and neither refuses for a binding a rule refuses or whose entry is gone, which it leaves out. A rotated value takes effect at the environment's next deploy or promote, and at a restart_application where the running copy already carries the binding (SCRT-L0-05). The answers of store_secret with replace: true and list_secrets name the settings a stored name feeds.
A binding and a plain value live in the manifest because a setting the code reads is a declaration Turn Zero enforces, reviewed with the code and versioned with it as egress is (MAN-09). A member on store_secret would make the binding a custody fact that no review of the code reads, and a new action would offer nothing the manifest does not.
A bound name is refused both ways. configure_app_sign_in and configure_push refuse a name a binding feeds 409 name_bound_to_setting (ACS-L0-09; PSH-L0-01), and declare_outbound_api refuses it upstream_key_is_bound (EGW-L0-01). A binding feeds a name where the recorded manifest binds it, and where either environment's serving row or row in flight recorded it. Each refusal's detail names the setting and where it is bound: the recorded manifest, a running copy, or an act in flight. Each such action reads the bindings again after recording its route, and takes the route back and refuses where one now feeds the name. An act reads the routes again once its row records the bindings, refusing or leaving out a binding a route now names as the two paragraphs above state. So no interleaving makes a value a process reads or will read a route's credential or an upstream's key.
This paragraph qualifies the seventh paragraph's last sentence for store_secret with replace: true. Its answer names, as restart_environment, the one environment whose application scope the rotation wrote where that environment's serving row binds the name, and says a restart_application of it applies the new value. A row in flight is never named, since a restart is refused while it runs (PLD-L0-84) and which value it applies depends on when it read its bindings. For a name at an application scope, the answer points to read_status's rotated_since_read, which answers such a row once it ends; where only such a row binds the name, the answer names no environment and still points there. An account-scope name names none and carries no pointer, since rotated_since_read reads a serving row's bindings and binding such a name is refused setting_scope_refused. So a rotation says which running copy still needs a restart.
This paragraph extends the paragraph above to next (MAPI-24). Where a store_secret with replace: true write's answer names restart_environment and starts no restart, it also carries next, a restart_application call naming the application and that environment. store_secret with replace: true's preparing form, a call naming no value (SEC-L0-19), carries the same next where the serving row of the environment whose application scope the call names binds the name, to make once the answered line ends 0. The preparing call makes the read the rotation's own answer makes, so next names the environment that answer names as restart_environment. Where only a row in flight binds the name, at the account scope, and on a store_secret call that stores nothing or stores a name for the first time, the answer carries no next.
This paragraph extends the two above with the replacing form's optional restart member, a boolean. A call naming restart true that writes a value under a bearer credential on the HTTP action route then starts the platform redeploy of the environment its answer names as restart_environment (PLD-L0-84). The rotation stands whatever the outcome, and the answer's restart names that environment or none, whether the restart started, its version or the refusal's name, and, where that environment did not restart, the restart_application call to make. Neither a preparing call, whose grant records nothing of it, nor a browser-session write, a client restart_application does not admit (MAPI-03), starts a restart, and each answer's restart names that call or none (SEC-L0-19). restart is refused invalid_request before any write where it is not a boolean or the call re-mints a platform-minted name over the wire (SEC-L0-07), and secret_grant_not_admitted first under a secret grant (SEC-L0-19).
submit_manifest and create_environment follow each realm's and push configuration's record with the bindings half of configure_app_sign_in's and configure_push's second read. Each credential a binding is read to feed is taken back where the record changed it, and the act is refused 409 name_bound_to_setting at the first one's path. Where a later credential's read or withdrawal fails, the refusal is answered, the failure recorded for the operator, and that credential stays as recorded until a repeat. The custody half is not run, since a manifest may name a credential not yet stored. A refused submission leaves its manifest recorded, its detail naming the realms or push configurations done and not. A submission whose store fails in this phase is answered store_unavailable with the same detail, nothing taken back. A route recorded after a submission's check is not read again: each later deploy and promote refuses a binding of its credential.
This paragraph extends the seventh paragraph's last sentence for list_secrets. Each name it lists at one environment's scope of an application also carries applied_settings and restart_needed. applied_settings names each setting that environment's serving row recorded as read from the name (PLD-L0-63). restart_needed is true where applied_settings names a setting and the name's entry was stored or rotated after that row started. It is read_status's reading for that environment's rotated_since_read. A restart_application of that environment that PLD-L0-84 admits applies the stored value and clears restart_needed and that listing; it is refused while a row of the environment is in flight or a halt stands. A setting in settings and absent from applied_settings reaches the running copy at the next deploy or promote. Where nothing serves, and at the account scope, applied_settings is empty and restart_needed false. No row in flight is read.
This paragraph extends the paragraph above to store_secret. Its answer to a call that stored a value at an application scope carries restart_needed, the paragraph above's reading for the name at that scope, read from the environment's serving row after the write. At the account scope, where nothing serves, and where no setting of the running copy reads the name, it is false. Where the serving row cannot be read after the write, the value stands, the answer carries no restart_needed, and the failure is recorded for the operator. Where the member is true, the answer's detail says the value reaches the running copy only after a deploy, promote, or restart.
This paragraph extends the paragraph above. Where the value replaced one and restart_needed is true, the answer also carries next: the restart_application call naming the application and that environment, read as a rotation reads the bindings. Its detail says the restart is its own call. Where restart_needed is left out, so is next.
This paragraph extends the twelfth paragraph with store_secret with replace: true's optional wait_seconds member, an integer from 1 to 45 that rides restart true alone. Where that restart starts, the answer is held until the restart's version-history row ends or the bound passes, as MAPI-04 holds restart_application's answer. The answer's restart then adds settled and waited_ms, the row's end state and outcome where it settled, and as its next the read_status call where it did not. A restart that is refused or not started holds nothing, and the rotation stands whatever the restart answers. The member is refused invalid_request before any write where restart is not true or the value is outside its range, and secret_grant_not_admitted first under a secret grant (SEC-L0-19).
This paragraph extends the fourteenth paragraph for list_secrets. Each name it lists at one environment's scope of an application also carries fingerprint and applied_fingerprint, as the custody statement on the keyed fingerprint states them (SEC-L0-22). fingerprint is custody's keyed mark of the value stored now, and applied_fingerprint the mark that environment's serving row recorded as read from the name. Equal under one key id, the running copy has the stored value; different, the restart_application that paragraph names applies it; a null on either side, or two key ids, compares nothing.
This paragraph extends the first paragraph with the plain value. An entry is {"secret": "<stored name>"} or {"value": "<text>"}, exactly one. An entry with both, with neither, or a bare string is refused manifest_invalid at its own path, the violation naming both forms and never the value (MAN-12). A value is at most 4,096 characters, empty allowed, with no character from U+0000 to U+001F or U+007F, so it fits one line of a process environment. The reserved-name rule, the upstream-name rule, and the 200-entry cap hold both forms. The other rules above read a stored name and hold secret entries alone. A plain value is the same in every environment, and a value that differs stays a stored name at each environment's scope.
This paragraph extends the sixth and seventh paragraphs to the plain value. A deploy and a promote inject each plain value of the recorded manifest as a plain setting, with no custody read, and the row's applied_settings records {setting, value}. A redeploy and a rollback re-apply the plain values their row recorded as they re-apply bindings, leaving out one a name rule now refuses, with the warn event a binding gets. submit_manifest's rows, list_secrets, rotated_since_read, and not_stored never name a plain setting, which has no stored name. read_status's bound_not_applied lists a plain setting whose recorded value the serving row did not apply, a changed value among them, as {setting}, never with the value. A secret never goes in value (SCRT-L0-02): one put there stays on each version row that applied it, so it is stored, bound, and rotated instead (SCRT-L0-06).
This paragraph extends the fourteenth paragraph for list_secrets. Each name it lists at one environment's scope of an application also carries consumers, each entry with its kind, its environment, and the credential in words. An entry is the environment's sign-in route where the name is its work-account client secret or Apple signing key, its push configuration where the name is a provider credential, or an upstream bound to the application that declares the name as its credential. Settings a binding feeds stand in settings and applied_settings, never in consumers.
This paragraph extends the reserved-name rule. The six reserved names under APP_ are the settings the platform sets there (PLD-L0-92), and each is reserved whether or not an act sets it for the environment. Every other name under APP_ is the application's to declare, because an application moved from another host often reads such a name already.
The plain values of one manifest hold at most 204,800 characters in all, each value counted as the plain value's own bound counts it, and a bound secret counts nothing toward the total. A manifest past it is refused manifest_invalid at /settings, the violation naming both forms and no value (MAN-12). The total equals fifty values of 4,096 characters, so the 200-entry cap adds no size to a manifest, to a version row that records its plain values, or to the settings a compute apply writes.
The bound values a deploy, a promote, a redeploy, or a rollback reads hold at most 786,432 UTF-8 bytes in all, 768 KiB, each value counted with its setting name. An act past that total ends its row failed 422 settings_too_large before the compute apply, under every such act alike, and leaves no binding out for it, since leaving one out would choose which setting the application loses. The detail gives the total, the limit, the application, and the environment, and never a setting or a value. The total is three quarters of the 1 MiB a cluster holds one Secret object to, because a function reads every secure setting of its version from one such object and the platform's own settings share it. A plain value counts nothing toward it.
MAN-16: The answer of submit_manifest carries next where a name a setting, an upstream, a sign-in method, or a push provider uses is stored at no scope its environment reads. It is an array in MAPI-24's form, one entry per name and environment the detail's line of names not stored yet counts, in that line's order of names, a name missing at both environments giving development's entry first. Each entry is the store_secret call naming the name, the application, and the environment. A key an upstream names may be stored at the account scope instead (EGW-L0-08).
An answer owing no such call carries no next. The whole answer keeps the detail's line with the names where the line applies. The next member rides the MCP and wire surfaces alike. A resubmission naming local_run is never an entry (MAPI-24). Nor is an upstream key's development step on an application holding no development environment, which serves local runs alone (MAPI-24). Unlike the other steps MAPI-24 has the detail name, the line leaves this one out, and the upstreams member's development row carries it for a local run (EGW-L0-02). provisioning.next off the wire where SEC-L0-07 answers it, and the detail's last line where it stands, say when it applies (SEC-L0-07; PLD-L0-39).
A brief answer leaves out next. Where the whole answer carries it, a brief answer gives secrets_not_stored, the number of distinct secret names in those calls. Its not-stored detail line gives a count and directs the reader to list_secrets or to the whole submission answer for the store_secret calls (PLD-L0-105).
read_status answers the same names for each environment the application has as not_stored: the names the recorded manifest's settings, upstreams, sign-in methods, and push providers use that no scope the environment reads holds. They stand in the line's order of names, each once, in an empty array where every one is stored, and the member is null where custody does not answer, the answer standing. A caller that has made its store_secret calls reads that member alone to learn they are done, with no resubmission. The brief answer keeps it (PLD-L0-105), and the operator's read of another account's application leaves it out (PLD-L0-84). The deploy's refusal of a bound setting whose secret is missing stands as MAN-14 states it.
MAN-17: The answer of submit_manifest carries deploy_reads on every recorded submission: one sentence saying that a deploy runs under the manifest this submission recorded, and reads the zip's manifest.json only to compare it, answering manifest_notice where the two differ (PLD-L0-63). The member rides the MCP and wire surfaces alike, and a resubmission carries it as a first submission does.
The request's manifest member is described as the manifest itself, carried whole by the call, since the platform reads no file on the caller's computer.
MAN-15: websockets declares that the application accepts WebSocket upgrades, and from which browser origins beside the hostname an upgrade arrives on. It is optional, one of the optional members MAN-02 admits absent, and an object holding at most origins, a list of at most ten browser origins. A manifest that omits it accepts no upgrade (SVC-L0-22).
Each origin is exact: the https scheme, a lowercase host, and an optional port other than the default 443, with no path, no wildcard, and no duplicate. A host label holds at most 63 characters, and the host at most 253. The empty object admits a page on the application's own hostname and a client outside a browser. Submission refuses a list that breaks a rule by the rule's name, at the entry's own JSON path (MAN-12).
Both environments read the one declaration. The serving router reads it from the resolution (SVC-L0-07), and the plan's figure bounds its connections (SVC-L0-23).
After the kind's availability check, submit_manifest and check_manifest refuse a serverless application's websockets member, in either admitted form, with 400 serverless_no_websocket (FNS-L0-06). The recorded manifest stays unchanged. A malformed member is refused manifest_invalid first (MAN-12). This refusal precedes serverless_unsupported; a server application's manifest is unaffected.
The check's format half #
MAN-11 (decided): One schema admits both provenances. A generated manifest and a hand-written one validate against the same schema, and the format carries no member marking which it was — the check is the same check because the format gives it nothing to branch on. Provenance is ADM-L0-06's tier, held by Turn Zero Cloud about the application; a self-declared provenance field would be an honesty the format cannot verify.
MAN-12 (decided): A format refusal names what failed: validation reports the JSON path of every violation, within the bounds below, so a malformed allowlist refuses as /egress/3 and a misspelled member as itself, rather than only a generic error. This is ADM-L0-08's named-refusal promise at the format layer; the runtime checks name their refusals on the same terms when they arrive. A schema violation's detail also names the read_context read of each top-level schema member the violations fall in, manifest_schema:<member>, once each and at most three, so the expected shape is one read away (CTX-07).
What a refusal lists is bounded. A manifest_invalid refusal lists at most 100 violations, the first found, and where more were found its detail says how many were found and how many more stand. A violation's JSON path longer than 256 characters is cut there and marked. Neither bound limits what a manifest may hold: a valid manifest is admitted as before whatever its size, and one within every bound of this statement is checked and refused as before.
A manifest read by its first violation. If the manifest holds more than 10,000 values or the validator collects more than 1,000 schema errors, the check lists only the first schema violation. The refusal lists that violation's lines: one for each form the validator tried and one for the member, where the member takes alternative forms. Its detail says so and names the member's read, as any schema violation's does. The caller corrects it and checks again to read the next. A value is the manifest itself, each member's value and each list item, at every depth.
MAN-13: The packages member lists one entry per library entry the application holds, each as its name and the version held (SPM-L0-50's rows; SPM-L0-49; Q-235). It is derived from the project's own record rather than kept beside it: the folder manifest system/manifest.json holds one row per vendored entry, written by the act that writes the files. The act that writes the files writes the member too: the turnzero command's scaffold composes the member from the folder's rows, and its library take rewrites it from them, making the application manifest in the application's folder where none stands (PLD-L0-100; PLD-L0-103). For a manifest those acts did not write, the author copies each row's name and version from the folder manifest at each submission. What the rule forbids is a list kept by hand beside it, never that copy, because a second home for one fact goes stale further from the bytes.
API-L0-16 requires admission to use this member to refuse a deploy declaring a version whose compatibility window has closed, once the first-customer-release date activates that policy. That use is the reason the member is declared at all: the operated backend behind a package contract is Turn Zero Cloud's to run, and Turn Zero Cloud cannot keep every version of every backend alive forever. An application holding no library entry declares an empty list rather than omitting the member: MAN-02 requires it, and an omission would read as a fact not yet known where the truth is that there are none. The declaration and its format checks are implemented. Compatibility-window enforcement is not active during our introductory period while the first-customer-release date remains unset (API-L0-16).
Where no project or library folder exists and deploy_files will fill the runtime library copies, derive each required entry's name and current version from the served library catalog at submission. Those catalog entries are the source for this route; do not invent versions or maintain another list. A submission from a project with a library folder continues to derive its list from that folder's manifest.
The list holds at most 100 entries.
Source Markdown #
---
document: admission_manifest
prefix: MAN
---
# The Admission Manifest — Format Contract
## Purpose
This document defines the JSON format of the application manifest the admission PRD describes: its required fields, allowed values, and format errors. The JSON Schema at `schemas/manifest.schema.json` is maintained alongside this contract; neither file is generated from the other. A test in the platform's suite checks their agreement.
Runtime admission checks belong to the requirements that own the affected service, region, audience, and policy. A valid JSON document does not prove those runtime checks passed. MAN-01 states how the manifest reaches `submit_manifest`; account-side egress policy belongs to ADM-L0-04.
Requirements are numbered MAN-nn.
## The document
MAN-01 (decided): A manifest is one JSON document conforming to the schema, and it opens with its own contract revision: `manifest_version`, the integer `1` for this form. A manifest whose version is not a known revision is refused as malformed rather than best-effort-read, because a reader guessing at an unknown revision enforces something other than what the author declared. The manifest's home is a file in the application project — `manifest.json` at the project root — and the admitting act reads it from the `submit_manifest` request body: the customer's tool sends the file's content, and no path is fetched from anywhere.
MAN-02 (decided): The manifest requires ADM-L0-01's five declarations `services`, `region`, `egress`, `audience` and `packages`, and `manifest_version`. It admits optional `health` (MAN-05), `settings`, `upstreams`, `realm`, `websockets`, `smoke_paths`, `immutable_client_folder`, `redirects` and `application`, and nothing else. `application` names the folder's deployment target and is no admission declaration: it provisions or enforces nothing. The plane requires its lowercase UUID form and takes no other act on it. Membership changes by ADM-L0-01 amendment, with schema and citing tests changed together. An unknown member fails validation instead of passing as inert: a field the check ignores is a declaration the reader believes and Turn Zero does not enforce. This applies the nothing-undeclared rule to the manifest. An application's kind is chosen at creation and held on its record, never in its manifest (FNS-L0-01).
One unknown member is refused by its own name rather than as unknown: an `environments` member is refused `environment_unsupported` with the remedy (MAN-06). It is named because an application's environments are the platform's, set by `create_environment` and `delete_environment` (PLD-L0-96), and the author of a manifest written against an earlier revision of this contract is told what to change. The `ai_purposes` member, which carried the retired AI gateway's purposes and which no service read, left the manifest with MAN-04's retirement. A manifest written against the earlier revision fails as an unknown member at that member's path (MAN-12), and the remedy is to delete the member.
The manifest's one identity member is `application`, a lowercase UUID naming the application the folder deploys to, a binding the folder carries. Which application a submitted manifest binds to is the admitting action's (API-L0-01): the platform admits the member, holds it to its form, leaves it out of the deploy's manifest notice (PLD-L0-63), and never reads it as the application admitted to. A fork deployed to another application changes or removes the member, and the manifest's declarations serve one application today and the fork tomorrow without other editing. The turnzero command reads the member and enforces it before every deploy and `check` of a folder, refusing a line that names another application (PLD-L0-94; PLD-L0-107), so it is no field every check ignores.
The optional members may be absent. The `settings` member is the settings the application's process reads, each a stored secret or a plain value; a manifest that omits it sets no setting (MAN-14). The `upstreams` member is the keyed upstreams the application calls through the gateway; a manifest that omits it leaves its upstreams to `declare_outbound_api` (EGW-L0-02). The `realm` member is the sign-in configuration of the application's end-user realms; a manifest that omits it leaves that configuration to `configure_app_sign_in` (ACS-L0-07).
This paragraph names the fourth optional member, `websockets`, the upgrades the application accepts. A manifest that omits it accepts none (MAN-15).
This paragraph names the fifth optional member, `smoke_paths`, the paths a deploy or a promote requests once its health gate has passed (MAN-18). A manifest that omits it has the deploy request the health path alone.
This paragraph names the sixth optional member, `immutable_client_folder`, the one folder of client files answered with a year's cache header (MAN-19). A version deployed from a manifest that omits it has every client file answered `no-cache`.
This paragraph names the seventh optional member, `redirects`, the redirect rules the router answers by exact path (MAN-20). A version deployed from a manifest that omits it answers no redirect rule.
## The members
MAN-03 (decided): `services` declares the provisioned services the application consumes, by the catalog's own names (SVC-L0-01; SVC-L0-06). It is an array of at most 20 entries, each `{"kind": …}`. The kinds `database`, `object_storage`, `email`, `accounts`, and `push` (SVC-L0-20) stand alone, and `issue_tracking` stands alone or carries a `space`, a `level`, and `components`, as its own paragraphs below state. `custom_domain` carries its `domain`, one lowercase hostname of at least three labels, the attach SVC-L0-25 states, and a second `custom_domain` entry naming another hostname is refused `manifest_invalid` at its path once the first entry's own checks admit it. `schedule` carries its `schedules`, and `job` carries its `jobs`.
`schedules` is a list of one to twenty-five declarations at the shape's cap, the plan's `schedule-count-limit` refused at submit by name. Each declaration is a `name`, a `cron`, and a `path`. The name is a lowercase letter followed by lowercase letters, digits, or underscores, with no hyphen, at most 64 characters long, and is unique within the application. The cron is five fields in UTC, minute, hour, day of month, month, and day of week, each `*`, an integer, a range, a list, or a step. The schema refuses any other shape at its path, and the admitting act refuses a field out of range or an expression with no due time inside a year. The path is the absolute HTTP path of a handler in the application, in MAN-05's form, under neither reserved path prefix, `/__account/` (ACS-L0-04) nor `/__router/`. The schedule service PRD's declaration statement owns the plan's bounds.
`schedule` is the recurring time-driven invocation service (SVC-L0-15), renamed from `scheduled_jobs` while no admitted manifest existed to carry the old kind. A `schedule` entry carrying no `schedules` is refused, a kind carrying no schedule declaring nothing. A resubmission converges the application's schedules to the entry. An unchanged declaration keeps its standing, a changed timing or path takes effect from the environment's next deploy (the schedule service PRD's environments statement), and a removed name ends its schedule with its run history kept. No submission fires a run (ADM-L0-07).
`job` is the run-to-completion service (SVC-L0-27), a kind apart from `schedule`. A schedule is a recurring request to a handler, and a job is a script the platform runs to its exit in a container of its own. `jobs` is a list of one to five declarations. Each is a `name`, a `script`, a `size` and a `timeout_seconds`, and nothing else. The job service PRD's declaration statement owns their forms and bounds (JOB-L0-01). A `job` entry carrying no `jobs` is refused, and a second `job` entry is refused `manifest_invalid` at its path. A serverless application's submission declaring the kind is refused `serverless_no_job` (FNS-L0-01). While the plane setting `job_kind` reads `off`, every submission declaring the kind is refused: `jobs_not_available`, unless an earlier check refuses it first (JOB-L0-02). No submission starts a run.
`accounts` is the application's end-user realms on the accounts service (SVC-L0-10), one per environment (PLD-L0-40), each created with its environment and deleted with it (PLD-L0-66).
`issue_tracking` is the application's space at the issue-tracking service (SVC-L0-19), one for both environments (PLD-L0-40), created at the first submission naming the kind with no `space`. The entry may name `space`, one `account`-kind space the account holds or `{ development, production }` naming one per environment, and `level`, `report` or `contribute`, `report` where none is named, with `space` alone. `level` with no `space` is refused `invalid_request` naming `space`, a level outside the two `level_invalid`, a space the account cannot bind, an application's own among them, `space_not_owned`, and a standing pair's manifest naming `space` `invalid_request` naming the pair, each before any write. On a plane serving no issue service, an entry naming a chosen space is answered `not_yet_provisioned` instead, the manifest recorded (ITS-L0-01). The issue service PRD's provisioning row states the act, the binding, the standing pairs, the egress gateway's route, and the space's deletion.
With `space`, the submission binds the application, or each environment, to the named space and creates nothing. An application bound to a chosen space moves to another space its later manifest names, the space it leaves standing. A later manifest naming no `space` keeps the chosen binding as it stands. An application holding its own space whose manifest names `space` is refused `invalid_request` before any write, its own space serving both environments until the application is deleted.
This paragraph qualifies the two paragraphs above on the space an entry names. With `components`, one to two hundred of the space's declared component names, each once and at most 64 characters, the binding is served under a `report` token the platform mints for it with that list. The application then reads and files within those components alone (ITS-L0-01). `components` rides `space` at `report` alone: with no `space` it is refused `invalid_request` naming `space`, and beside another `level` `level_invalid`. The platform's own space is bound by its owning account this way alone, at `report` with a list, a missing list refused `invalid_request` naming `components`. The schema holds each member's shape, and the submission judges the words by name.
The kind vocabulary is closed at this revision and duplicates are refused. `services` means per-application provisioned services, so an application consuming account-grain surfaces alone declares the empty array, which is a statement, not an omission, its account-grain consumption visible in the account's own declarations. Hosting is not an entry: every admitted application is hosted, and a declaration that cannot be declined is not a declaration.
This paragraph qualifies the first paragraph's clause that `push` stands alone: a `push` entry may also name its providers, `apns` and `fcm`, whose configuration each submission records (PSH-L0-01). A second `push` entry is refused `manifest_invalid` at its path.
This paragraph qualifies the first paragraph's clause that `object_storage` stands alone: an `object_storage` entry may also carry `areas`, the storage areas each submission declares (OST-L0-01). `areas` is a list of one to fifty declarations, each a `name` and `account_keyed`, a boolean, and nothing else. The name is in OST-L0-01's character class, and a name the list repeats is refused `manifest_invalid` at its path. A declaration names no `version_keeping` and no `application`: the area keeps no versions, and it binds to the application the admitting action names (API-L0-01). A second `object_storage` entry is refused `manifest_invalid` at its path.
A `custom_domain` entry may also carry `proxied_by`, the one value `cloudflare`, and `proxy_secret`, the name of a secret stored at the application's production scope, the two together or neither. With both, the router reads a visitor's address from Cloudflare's header on that domain only where the request comes from Cloudflare's published ranges and carries the header `X-Turnzero-Proxy-Secret` with the stored value. Otherwise the socket address stands (PLD-L0-67). The router removes that header from every request before the application sees it.
The proxy secret serves the visitor address reading alone. A `proxy_secret` naming a secret a setting binds, an upstream's key, or a realm's or a push provider's credential is refused `manifest_invalid` at its path. The violation names the sibling rule: `name_bound_to_setting`, `name_bound_to_upstream`, `name_bound_to_realm`, or `name_bound_to_push`. A platform-minted name is refused `platform_minted_name`. In turn, `declare_outbound_api`, `configure_app_sign_in`, and `configure_push` refuse the declared name `name_bound_to_proxy`. A binding of it is refused `name_bound_to_proxy` at a deploy and a promote (MAN-14).
A stored proxy secret shorter than 32 characters is read as not stored. Otherwise the platform keeps the stored value's SHA-256 digest on the custom domain's row. It takes the digest when `store_secret` writes a value the owner supplies, and reads the value once from custody when a submission names the secret anew (SCRT-L0-09; SCRT-L0-11). A value the platform creates gives no digest and is never read for one, since its owner never holds it (SEC-L0-20). A `proxy_secret` naming a value the custody index still marks as created, which every value is until an owner's `store_secret` write of it lands, is refused `manifest_invalid` at its path, `proxy_secret_not_supplied`, with the cure of storing a value again. It clears the digest when the value is deleted or a write's outcome is unknown. No answer an owner reads carries the digest.
MAN-04: *Retired 2026-09-12 UTC.* The ai_purposes member leaves the manifest at Anthony's direction: no service read it, and the AI gateway whose purposes it carried was retired into the egress gateway. Keyed upstream declarations have their own manifest member, `upstreams` (EGW-L0-02), rather than growing this one.
MAN-05 (decided): `health` declares the application's health endpoint as an absolute HTTP path: `/` followed by non-whitespace (PLD-L0-59; SVC-L0-08). It is a path rather than a URL; its host is the application's managed address, since another host would check something Turn Zero does not run.
The schema admits `health` without requiring it. A zip naming its own start, through root `package.json`'s `scripts.start` or root `server.js`, requires it at deploy. A deploy, promote or redeploy needing the health gate refuses `health_path_undeclared` (400) at the act's start if the recorded manifest declares none, before any version row or compute act. The remedy is to add `health`, call `submit_manifest`, and repeat the act. `submit_manifest` admits a manifest without `health` only while neither environment has a placement row naming compute or a server application's deploy, promote or redeploy row in flight; it then answers without that member.
After schema validation and the region refusal, `submit_manifest` and `check_manifest` refuse 400 `health_path_undeclared` if the manifest declares no `health` and either environment has a placement row naming compute or a server application's deploy, promote or redeploy row in flight. A halted environment counts. The refusal precedes every other check and every write, and records nothing.
MAN-18 (decided): `smoke_paths`, optional, lists one to five distinct absolute HTTP paths, each `/` followed by non-whitespace, that a deploy or a promote requests with GET in the step `smoke_check`, once the health gate has passed (PLD-L0-63). A path, not a URL, as MAN-05 reads `health`, and outside the platform's prefixes (ADM-L0-01); a manifest without the member has the deploy request the health path alone. List the routes whose crash should stop a deploy or a promote before it switches: a route answering 404, a status of 500 or above, or nothing fails, and every other status passes. List routes that change nothing on GET and answer within ten seconds, since on a promote they run against production's data and secrets. A serverless application's deploy runs no health gate and requests none of these paths (PLD-L0-63).
MAN-19: `immutable_client_folder`, optional, names one folder below the artifact's `client/` folder, as `assets`, whose files the router answers with a year's cache header under a public audience (SVC-L0-26). The value is the folder's path with no leading or closing slash: at least one segment, each admitted as a segment of a client file's name is, and the first none of the reserved top-level folders (SVC-L0-26). The path leaves room for a file directly under it within the bounds on a client file's whole name, so it holds at most 31 segments and 510 characters. Any other value is refused 400 `manifest_invalid` at the member's path (MAN-12). So is the member in a manifest whose audience is not `public`: under an invited or workforce audience every reuse of a client file passes the audience gate again, which a year's cache would end.
The deploy that publishes a version's client files records the folder with them, so a change of the member takes effect at the next deploy, a promote carries it, and a version published without it answers `no-cache`. A file named `index.html` keeps `no-cache`, and so does an answer that sets a session cookie (SVC-L0-26). Declare it only for files whose name changes whenever their content changes. The platform does not check that, and a browser that holds such a file does not ask for it again for a year, also after the application's audience is gated. On a custom domain declared as proxied, the owner's proxy may keep such a file as well (SVC-L0-26).
MAN-20: `redirects`, optional, lists at most 200 redirect rules, each of which the router answers itself for one exact path (SVC-L0-26). A rule holds exactly `from`, `to` and `status`. `from` is the path the rule answers, `to` is the path on the same hostname the visitor is sent to, and `status` is 301 or 302. No two rules share a `from`, and no rule's `to` is a rule's `from`, its own among them, so no rule leads to another rule.
Each path opens with `/` and holds at most 512 characters. It holds ASCII letters, digits, the marks `-._~!$&'()*+,;=:@`, `/`, and `%` followed by two hexadecimal digits, and nothing else, so neither `?` nor `#` and no backslash. It holds no `.` or `..` segment and no escaped dot, `%2e` in either letter case.
A `to` never opens with `//`, which a browser reads as another host, and it may name a path under the platform's prefixes, the sign-in page among them. A `from` under `/__account/` or `/__router/`, read as the router reads a path's prefix (ADM-L0-01), is refused, since the router refuses such a path before it reads a rule. A member that breaks this form is refused 400 `manifest_invalid` at the rule's own path, or at the member's own path where the list is no list or holds more than 200 rules (MAN-12).
The deploy that publishes a version records the rules in the version's index, so a change of the member takes effect at the next deploy and a promote carries the version's rules. A version deployed from a manifest that omits it answers no redirect rule. The rules are kept and pruned with the version's client files, and those of a version that published no client file are kept until its image is pruned (SVC-L0-26).
For a GET or a HEAD whose path, as sent, is a rule's `from`, the router answers the rule's status with `Location` set to `to` and `Cache-Control: no-cache`, the request's query kept. It compares the path character for character, with no case folding and no decoding, so `/old` and `/old/` are two paths. It answers after the halt, the three well-known documents (SVC-L0-07), the audience gate and `not_deployed`, and ahead of the shell, every client file, a function and the application's routes (SVC-L0-26; FNS-L0-04). So a server application's HEAD of a rule's path does not reach the application. Any other method, and an upgrade, pass the rules by.
A rule's answer counts in no window of SVC-L0-18 and as no backend action, and it adds no data transfer; while a traffic measure stands over, it is refused as a client file is. No rule is checked against the artifact: a rule at the path of a client file, a function or a route answers its redirect. A rule at the health path or at a smoke path leaves the deploy's checks requesting a route that visitors are redirected from (MAN-05; MAN-18). The turnzero command's local run applies no rule (PLD-L0-102; FNS-L0-04).
MAN-06 (decided): The manifest declares no environments. An application has one environment or two, its environment count the application's own, which `create_environment` and `delete_environment` change (PLD-L0-96). One manifest text serves every environment the application has; what an environment is, and what promotion between them means, is the platform and deployment PRD's. A manifest carrying an `environments` member is refused at submission with the slug `environment_unsupported` and the reason — an application's actions set its environments, never its manifest, and the member is removed from the manifest — before anything is provisioned (ADM-L0-08). The refusal is named rather than left to MAN-02's unknown-member failure so that the author of a manifest written against an earlier revision of this contract, which admitted the member, is told what to change.
MAN-07 (decided): `region` declares exactly one of the day-one values — `usa`, `europe`, `uk`, `global` (the list and what a region choice means are PLD-L0-22's). The enum is closed at this revision: a new region is a schema revision, never a free string, because an unavailable region must refuse before anything is provisioned (ADM-L0-08) and a string the format waves through defers that refusal to the worst possible moment.
MAN-08: *Retired 2026-08-17 UTC.* The update_channel member left the manifest with ADM-L0-01's amendment: no update service exists at launch and clients are the coding tool's work; a channel vocabulary returns only with a future distribution service, the backlog's territory.
MAN-09 (decided): `egress` declares the network allowlist: an array of at most 200 entries, no duplicates, each an exact lowercase DNS hostname (`api.stripe.com`) or a host family written with one leading wildcard label (`*.googleapis.com`). An empty list declares no tunneled external destinations. In enforce mode those connections are refused; observe mode follows EGW-L0-17. The platform endpoints described in ADM-L0-03 are separate from this list.
A family admits every hostname below its labels at any depth — `*.example.com` admits `api.example.com` and `a.b.example.com` — and never the apex `example.com`, which is its own exact entry where it is reached. The wildcard stands only as the whole first label, followed by at least two labels, so `*.com`, `*.*.example.com`, `a*.example.com`, and a wildcard anywhere but first are refused. The grammar carries no schemes, ports, or address literals: tunneled connections are restricted to port 443 during our introductory period without inspecting their TLS or HTTP protocol (EGW-L0-12), and a destination's addresses are checked at establishment rather than declared (EGW-L0-13).
The member is the tunnel mode's declaration carrier (EGW-L0-11; CQ-172), read live and never injected at deploy. The control plane answers it to the tunnel seat at the seat's resolve of the application, and the seat's records classify an undeclared host against it. Where a keyed upstream is declared, in the manifest's `upstreams` member or through `declare_outbound_api`, is EGW-L0-02's rule.
MAN-10 (decided): `audience` declares exactly one boundary: `{"kind": "public"}`, `{"kind": "invited"}`, or `{"kind": "workforce", "tenant": …}`. Beside those members, a shape admits only `session_free_paths` and `requests_per_minute_without_session`, each where its own rule allows it. `{"kind": "invited"}` is the invited audience of ADM-L0-05: gated by the serving router on the realm's session, it binds the application's end-user realms to invitation-only creation from the declaration, its invitations issued by the author (ACS-L0-08). `{"kind": "workforce", "tenant": …}` is one company's workforce, the `tenant` member a non-empty identity-provider tenant identifier whose interpretation is the provider's (ACS-L0-09). It is Microsoft Entra ID's tenant id for the `entra` route. A value that opens with `https://` is a company issuer's address for the `oidc` route, compared exactly with that route's pinned issuer (ADM-L0-05).
The `workforce` kind was renamed from `tenant` so that the bare word keeps Turn Zero Cloud's own multi-tenancy sense (ADM-L0-10) and the directory sense stands qualified. The rename is on MAN-03's terms, with no alias: a manifest carrying the old value is refused at its next submission as the fourth shape it now is, and a recorded one is read as the workforce value and never as public (ADM-L0-05). One member, three shapes, no fourth: an audience the schema does not name is refused, not defaulted, because a defaulted audience is an exposure nobody declared.
The invited and workforce kinds may carry `session_free_paths`, the path prefixes the serving router lets through with no session, so a provider's callback reaches the application, which checks the caller's signature itself (ADM-L0-05). The list holds at most ten prefixes. Each starts with `/`, is not `/` alone, holds no whitespace and no `..`, and stands outside `/__account/` and `/__router/` in any letter case, the platform's own prefixes. A prefix covers the path equal to it and every path below it. The public kind carries no list, because it admits every request already. Submission refuses a list that breaks a rule by the rule's name, at the entry's own JSON path (MAN-12).
Each of the three kinds may carry `requests_per_minute_without_session`, a whole number from 10 to 3,000: the anonymous bound of SVC-L0-18, the requests one source may make to the application in a UTC minute with no valid session, on each serving router replica. Absent, the bound is 300. It takes effect at the next resolution after the manifest is submitted, and it moves neither signed-in bound of SVC-L0-18. Submission refuses a value that is not a whole number within those bounds, at the member's own JSON path (MAN-12).
MAN-14: `settings` binds a stored secret, or gives a plain value, to a setting the application's process reads. It is optional, one of the optional members MAN-02 admits absent, and an object from a setting name to `{"secret": "<stored name>"}` or `{"value": "<text>"}` (the nineteenth paragraph), at most 200 entries. EGW-L0-02 owns the second, `upstreams`. ACS-L0-07 owns the third, `realm`. The setting name is an upper-case letter, then upper-case letters, digits, or underscores, ending in a letter or a digit, at most sixty-four characters. The secret is a custody name (SCRT-L0-01) stored at the application's scope, which the platform reads at each environment's own scope (SCRT-L0-08).
A setting name the platform reserves is refused `manifest_invalid` at the setting's own path (MAN-12). The platform reserves every name under `TURNZERO_`, `HOSTING_`, `EGRESS_`, `ROUTER_`, `NODE_`, or `NPM_`, and twelve exact names: `PORT`, `PATH`, `HOME`, `HTTPS_PROXY`, `HTTP_PROXY`, `NO_PROXY`, `APP_DATABASE_URL`, `APP_DATABASE_DIRECT_URL`, `APP_DATABASE_CONNECTION_LIMIT`, `APP_PUBLIC_HOST`, `APP_ENVIRONMENT`, and `APP_VERSION`. One rule holds the reserved names, applied at submission, in the deploy's and the promote's refusal orders, and when a redeploy or a rollback re-applies a binding (PLD-L0-63; PLD-L0-84). The member is optional where MAN-02's other members are required, because every manifest submitted before it would otherwise fail validation, and an absent member binds nothing. The `packages` member stays required, because its omission would read as a fact not yet known (MAN-13).
Six kinds of secret are never bound, each refused at submission before anything is recorded. A platform-minted name of any application of the account is refused `platform_minted_name` (SEC-L0-07), so no platform credential, database credential, or issue-tracking token reaches a process through a binding. A name an upstream declaration of the application names is refused `setting_is_upstream_key`, and `declare_outbound_api` refuses the reverse, a key a binding feeds, `upstream_key_is_bound`. So the gateway never gives an upstream's key to the application (EGW-L0-03).
A route credential of the application, at either environment scope, is refused as `declare_outbound_api` refuses it. A realm's work-account client secret or Apple signing key, or a name resting in the cell's realm vault, is refused `name_bound_to_realm` (ACS-L0-09). A push configuration's provider credential is refused `name_bound_to_push`. The name a production custom domain's `proxy_secret` gives is refused at submission as MAN-03 states, at that entry's path, and `name_bound_to_proxy` at a deploy and a promote. A name at the account scope or at another application's scope is refused `setting_scope_refused`, because a value stored at the account scope is applied only to a declared upstream's calls and a name never moves between scopes (SCRT-L0-08). The detail names the remedy, a new name stored at this application's scope.
The answer of `submit_manifest` carries one row per binding and environment the application has, naming the secret and whether it is `stored` at that environment's application scope. One name may stand at both environment scopes of one application, each with its own value (SCRT-L0-08), so development can bind a test value and production a live one. A name stored nowhere yet is admitted, and the rows say so. A brief answer gives `setting_count` in place of `settings`, with the number of those rows in each environment and zero where it has none (PLD-L0-105).
A deploy or a promote reads each bound value at its environment's application scope solely to compose that environment's injected settings (SCRT-L0-09), and injects it as a secure setting of the binding's name. It holds each binding again to every rule above but the scope rule, and refuses `setting_secret_missing` where the name stands at no entry of that scope (PLD-L0-63). A value whose entry stands and whose store does not answer never reads as missing. It ends the act's row `failed` 502 `bound_setting_unreadable` before the compute apply, a deploy's, a promote's, a redeploy's, and a rollback's alike.
A redeploy re-applies the bindings its source row recorded, and a rollback those the latest production row of its version recorded (PLD-L0-84; PLD-L0-43). Neither reads the current manifest, and neither refuses for a binding a rule refuses or whose entry is gone, which it leaves out. A rotated value takes effect at the environment's next deploy or promote, and at a `restart_application` where the running copy already carries the binding (SCRT-L0-05). The answers of `store_secret` with `replace: true` and `list_secrets` name the settings a stored name feeds.
A binding and a plain value live in the manifest because a setting the code reads is a declaration Turn Zero enforces, reviewed with the code and versioned with it as `egress` is (MAN-09). A member on `store_secret` would make the binding a custody fact that no review of the code reads, and a new action would offer nothing the manifest does not.
A bound name is refused both ways. `configure_app_sign_in` and `configure_push` refuse a name a binding feeds 409 `name_bound_to_setting` (ACS-L0-09; PSH-L0-01), and `declare_outbound_api` refuses it `upstream_key_is_bound` (EGW-L0-01). A binding feeds a name where the recorded manifest binds it, and where either environment's serving row or row in flight recorded it. Each refusal's detail names the setting and where it is bound: the recorded manifest, a running copy, or an act in flight. Each such action reads the bindings again after recording its route, and takes the route back and refuses where one now feeds the name. An act reads the routes again once its row records the bindings, refusing or leaving out a binding a route now names as the two paragraphs above state. So no interleaving makes a value a process reads or will read a route's credential or an upstream's key.
This paragraph qualifies the seventh paragraph's last sentence for `store_secret` with `replace: true`. Its answer names, as `restart_environment`, the one environment whose application scope the rotation wrote where that environment's serving row binds the name, and says a `restart_application` of it applies the new value. A row in flight is never named, since a restart is refused while it runs (PLD-L0-84) and which value it applies depends on when it read its bindings. For a name at an application scope, the answer points to `read_status`'s `rotated_since_read`, which answers such a row once it ends; where only such a row binds the name, the answer names no environment and still points there. An account-scope name names none and carries no pointer, since `rotated_since_read` reads a serving row's bindings and binding such a name is refused `setting_scope_refused`. So a rotation says which running copy still needs a restart.
This paragraph extends the paragraph above to `next` (MAPI-24). Where a `store_secret` with `replace: true` write's answer names `restart_environment` and starts no restart, it also carries `next`, a `restart_application` call naming the application and that environment. `store_secret` with `replace: true`'s preparing form, a call naming no value (SEC-L0-19), carries the same `next` where the serving row of the environment whose application scope the call names binds the name, to make once the answered line ends 0. The preparing call makes the read the rotation's own answer makes, so `next` names the environment that answer names as `restart_environment`. Where only a row in flight binds the name, at the account scope, and on a `store_secret` call that stores nothing or stores a name for the first time, the answer carries no `next`.
This paragraph extends the two above with the replacing form's optional `restart` member, a boolean. A call naming `restart` true that writes a value under a bearer credential on the HTTP action route then starts the platform redeploy of the environment its answer names as `restart_environment` (PLD-L0-84). The rotation stands whatever the outcome, and the answer's `restart` names that environment or none, whether the restart started, its version or the refusal's name, and, where that environment did not restart, the `restart_application` call to make. Neither a preparing call, whose grant records nothing of it, nor a browser-session write, a client `restart_application` does not admit (MAPI-03), starts a restart, and each answer's `restart` names that call or none (SEC-L0-19). `restart` is refused `invalid_request` before any write where it is not a boolean or the call re-mints a platform-minted name over the wire (SEC-L0-07), and `secret_grant_not_admitted` first under a secret grant (SEC-L0-19).
`submit_manifest` and `create_environment` follow each realm's and push configuration's record with the bindings half of `configure_app_sign_in`'s and `configure_push`'s second read. Each credential a binding is read to feed is taken back where the record changed it, and the act is refused 409 `name_bound_to_setting` at the first one's path. Where a later credential's read or withdrawal fails, the refusal is answered, the failure recorded for the operator, and that credential stays as recorded until a repeat. The custody half is not run, since a manifest may name a credential not yet stored. A refused submission leaves its manifest recorded, its detail naming the realms or push configurations done and not. A submission whose store fails in this phase is answered `store_unavailable` with the same detail, nothing taken back. A route recorded after a submission's check is not read again: each later deploy and promote refuses a binding of its credential.
This paragraph extends the seventh paragraph's last sentence for `list_secrets`. Each name it lists at one environment's scope of an application also carries `applied_settings` and `restart_needed`. `applied_settings` names each setting that environment's serving row recorded as read from the name (PLD-L0-63). `restart_needed` is true where `applied_settings` names a setting and the name's entry was stored or rotated after that row started. It is `read_status`'s reading for that environment's `rotated_since_read`. A `restart_application` of that environment that PLD-L0-84 admits applies the stored value and clears `restart_needed` and that listing; it is refused while a row of the environment is in flight or a halt stands. A setting in `settings` and absent from `applied_settings` reaches the running copy at the next deploy or promote. Where nothing serves, and at the account scope, `applied_settings` is empty and `restart_needed` false. No row in flight is read.
This paragraph extends the paragraph above to `store_secret`. Its answer to a call that stored a value at an application scope carries `restart_needed`, the paragraph above's reading for the name at that scope, read from the environment's serving row after the write. At the account scope, where nothing serves, and where no setting of the running copy reads the name, it is false. Where the serving row cannot be read after the write, the value stands, the answer carries no `restart_needed`, and the failure is recorded for the operator. Where the member is true, the answer's `detail` says the value reaches the running copy only after a deploy, promote, or restart.
This paragraph extends the paragraph above. Where the value replaced one and `restart_needed` is true, the answer also carries `next`: the `restart_application` call naming the application and that environment, read as a rotation reads the bindings. Its detail says the restart is its own call. Where `restart_needed` is left out, so is `next`.
This paragraph extends the twelfth paragraph with `store_secret` with `replace: true`'s optional `wait_seconds` member, an integer from 1 to 45 that rides `restart` true alone. Where that restart starts, the answer is held until the restart's version-history row ends or the bound passes, as MAPI-04 holds `restart_application`'s answer. The answer's `restart` then adds `settled` and `waited_ms`, the row's end state and outcome where it settled, and as its `next` the `read_status` call where it did not. A restart that is refused or not started holds nothing, and the rotation stands whatever the restart answers. The member is refused `invalid_request` before any write where `restart` is not true or the value is outside its range, and `secret_grant_not_admitted` first under a secret grant (SEC-L0-19).
This paragraph extends the fourteenth paragraph for `list_secrets`. Each name it lists at one environment's scope of an application also carries `fingerprint` and `applied_fingerprint`, as the custody statement on the keyed fingerprint states them (SEC-L0-22). `fingerprint` is custody's keyed mark of the value stored now, and `applied_fingerprint` the mark that environment's serving row recorded as read from the name. Equal under one key id, the running copy has the stored value; different, the `restart_application` that paragraph names applies it; a null on either side, or two key ids, compares nothing.
This paragraph extends the first paragraph with the plain value. An entry is `{"secret": "<stored name>"}` or `{"value": "<text>"}`, exactly one. An entry with both, with neither, or a bare string is refused `manifest_invalid` at its own path, the violation naming both forms and never the value (MAN-12). A value is at most 4,096 characters, empty allowed, with no character from U+0000 to U+001F or U+007F, so it fits one line of a process environment. The reserved-name rule, the upstream-name rule, and the 200-entry cap hold both forms. The other rules above read a stored name and hold `secret` entries alone. A plain value is the same in every environment, and a value that differs stays a stored name at each environment's scope.
This paragraph extends the sixth and seventh paragraphs to the plain value. A deploy and a promote inject each plain value of the recorded manifest as a plain setting, with no custody read, and the row's `applied_settings` records `{setting, value}`. A redeploy and a rollback re-apply the plain values their row recorded as they re-apply bindings, leaving out one a name rule now refuses, with the warn event a binding gets. `submit_manifest`'s rows, `list_secrets`, `rotated_since_read`, and `not_stored` never name a plain setting, which has no stored name. `read_status`'s `bound_not_applied` lists a plain setting whose recorded value the serving row did not apply, a changed value among them, as `{setting}`, never with the value. A secret never goes in `value` (SCRT-L0-02): one put there stays on each version row that applied it, so it is stored, bound, and rotated instead (SCRT-L0-06).
This paragraph extends the fourteenth paragraph for `list_secrets`. Each name it lists at one environment's scope of an application also carries `consumers`, each entry with its kind, its environment, and the credential in words. An entry is the environment's sign-in route where the name is its work-account client secret or Apple signing key, its push configuration where the name is a provider credential, or an upstream bound to the application that declares the name as its credential. Settings a binding feeds stand in `settings` and `applied_settings`, never in `consumers`.
This paragraph extends the reserved-name rule. The six reserved names under `APP_` are the settings the platform sets there (PLD-L0-92), and each is reserved whether or not an act sets it for the environment. Every other name under `APP_` is the application's to declare, because an application moved from another host often reads such a name already.
The plain values of one manifest hold at most 204,800 characters in all, each value counted as the plain value's own bound counts it, and a bound secret counts nothing toward the total. A manifest past it is refused `manifest_invalid` at `/settings`, the violation naming both forms and no value (MAN-12). The total equals fifty values of 4,096 characters, so the 200-entry cap adds no size to a manifest, to a version row that records its plain values, or to the settings a compute apply writes.
The bound values a deploy, a promote, a redeploy, or a rollback reads hold at most 786,432 UTF-8 bytes in all, 768 KiB, each value counted with its setting name. An act past that total ends its row `failed` 422 `settings_too_large` before the compute apply, under every such act alike, and leaves no binding out for it, since leaving one out would choose which setting the application loses. The detail gives the total, the limit, the application, and the environment, and never a setting or a value. The total is three quarters of the 1 MiB a cluster holds one Secret object to, because a function reads every secure setting of its version from one such object and the platform's own settings share it. A plain value counts nothing toward it.
MAN-16: The answer of `submit_manifest` carries `next` where a name a setting, an upstream, a sign-in method, or a push provider uses is stored at no scope its environment reads. It is an array in MAPI-24's form, one entry per name and environment the detail's line of names not stored yet counts, in that line's order of names, a name missing at both environments giving development's entry first. Each entry is the `store_secret` call naming the name, the application, and the environment. A key an upstream names may be stored at the account scope instead (EGW-L0-08).
An answer owing no such call carries no `next`. The whole answer keeps the detail's line with the names where the line applies. The `next` member rides the MCP and wire surfaces alike. A resubmission naming `local_run` is never an entry (MAPI-24). Nor is an upstream key's development step on an application holding no development environment, which serves local runs alone (MAPI-24). Unlike the other steps MAPI-24 has the detail name, the line leaves this one out, and the `upstreams` member's development row carries it for a local run (EGW-L0-02). `provisioning.next` off the wire where SEC-L0-07 answers it, and the detail's last line where it stands, say when it applies (SEC-L0-07; PLD-L0-39).
A brief answer leaves out `next`. Where the whole answer carries it, a brief answer gives `secrets_not_stored`, the number of distinct secret names in those calls. Its not-stored detail line gives a count and directs the reader to `list_secrets` or to the whole submission answer for the `store_secret` calls (PLD-L0-105).
`read_status` answers the same names for each environment the application has as `not_stored`: the names the recorded manifest's settings, upstreams, sign-in methods, and push providers use that no scope the environment reads holds. They stand in the line's order of names, each once, in an empty array where every one is stored, and the member is null where custody does not answer, the answer standing. A caller that has made its `store_secret` calls reads that member alone to learn they are done, with no resubmission. The brief answer keeps it (PLD-L0-105), and the operator's read of another account's application leaves it out (PLD-L0-84). The deploy's refusal of a bound setting whose secret is missing stands as MAN-14 states it.
MAN-17: The answer of `submit_manifest` carries `deploy_reads` on every recorded submission: one sentence saying that a deploy runs under the manifest this submission recorded, and reads the zip's `manifest.json` only to compare it, answering `manifest_notice` where the two differ (PLD-L0-63). The member rides the MCP and wire surfaces alike, and a resubmission carries it as a first submission does.
The request's `manifest` member is described as the manifest itself, carried whole by the call, since the platform reads no file on the caller's computer.
MAN-15: `websockets` declares that the application accepts WebSocket upgrades, and from which browser origins beside the hostname an upgrade arrives on. It is optional, one of the optional members MAN-02 admits absent, and an object holding at most `origins`, a list of at most ten browser origins. A manifest that omits it accepts no upgrade (SVC-L0-22).
Each origin is exact: the `https` scheme, a lowercase host, and an optional port other than the default 443, with no path, no wildcard, and no duplicate. A host label holds at most 63 characters, and the host at most 253. The empty object admits a page on the application's own hostname and a client outside a browser. Submission refuses a list that breaks a rule by the rule's name, at the entry's own JSON path (MAN-12).
Both environments read the one declaration. The serving router reads it from the resolution (SVC-L0-07), and the plan's figure bounds its connections (SVC-L0-23).
After the kind's availability check, `submit_manifest` and `check_manifest` refuse a serverless application's `websockets` member, in either admitted form, with 400 `serverless_no_websocket` (FNS-L0-06). The recorded manifest stays unchanged. A malformed member is refused `manifest_invalid` first (MAN-12). This refusal precedes `serverless_unsupported`; a server application's manifest is unaffected.
## The check's format half
MAN-11 (decided): One schema admits both provenances. A generated manifest and a hand-written one validate against the same schema, and the format carries no member marking which it was — the check is the same check because the format gives it nothing to branch on. Provenance is ADM-L0-06's tier, held by Turn Zero Cloud about the application; a self-declared provenance field would be an honesty the format cannot verify.
MAN-12 (decided): A format refusal names what failed: validation reports the JSON path of every violation, within the bounds below, so a malformed allowlist refuses as `/egress/3` and a misspelled member as itself, rather than only a generic error. This is ADM-L0-08's named-refusal promise at the format layer; the runtime checks name their refusals on the same terms when they arrive. A schema violation's detail also names the read_context read of each top-level schema member the violations fall in, manifest_schema:<member>, once each and at most three, so the expected shape is one read away (CTX-07).
**What a refusal lists is bounded.** A `manifest_invalid` refusal lists at most 100 violations, the first found, and where more were found its detail says how many were found and how many more stand. A violation's JSON path longer than 256 characters is cut there and marked. Neither bound limits what a manifest may hold: a valid manifest is admitted as before whatever its size, and one within every bound of this statement is checked and refused as before.
**A manifest read by its first violation.** If the manifest holds more than 10,000 values or the validator collects more than 1,000 schema errors, the check lists only the first schema violation. The refusal lists that violation's lines: one for each form the validator tried and one for the member, where the member takes alternative forms. Its detail says so and names the member's read, as any schema violation's does. The caller corrects it and checks again to read the next. A value is the manifest itself, each member's value and each list item, at every depth.
MAN-13: The `packages` member lists one entry per library entry the application holds, each as its name and the version held (SPM-L0-50's rows; SPM-L0-49; Q-235). It is **derived from the project's own record rather than kept beside it**: the folder manifest `system/manifest.json` holds one row per vendored entry, written by the act that writes the files. The act that writes the files writes the member too: the turnzero command's `scaffold` composes the member from the folder's rows, and its `library take` rewrites it from them, making the application manifest in the application's folder where none stands (PLD-L0-100; PLD-L0-103). For a manifest those acts did not write, the author copies each row's name and version from the folder manifest at each submission. What the rule forbids is a list kept by hand beside it, never that copy, because a second home for one fact goes stale further from the bytes.
API-L0-16 requires admission to use this member to refuse a deploy declaring a version whose compatibility window has closed, once the first-customer-release date activates that policy. That use is the reason the member is declared at all: the operated backend behind a package contract is Turn Zero Cloud's to run, and Turn Zero Cloud cannot keep every version of every backend alive forever. An application holding no library entry declares an empty list rather than omitting the member: MAN-02 requires it, and an omission would read as a fact not yet known where the truth is that there are none. The declaration and its format checks are implemented. Compatibility-window enforcement is not active during our introductory period while the first-customer-release date remains unset (API-L0-16).
Where no project or library folder exists and `deploy_files` will fill the runtime library copies, derive each required entry's name and current version from the served library catalog at submission. Those catalog entries are the source for this route; do not invent versions or maintain another list. A submission from a project with a library folder continues to derive its list from that folder's manifest.
The list holds at most 100 entries.