Complete config schema with safe defaults
Use this page as the single redacted schema for every environment binding, Majic app config value, workspace setting, and hardcoded site value used by the signed-in app. Each entry states kind, required or optional status, safe production default, valid range or format, purpose, and the result when missing or wrong. No secret, password, token, key, card number, or connection value is listed, and no value is invented for a name the pack does not state.
How to read this schema
Required means the item must be present or confirmed before the first booking or dispatch step that uses it. Optional means the shipped default can stay until the company chooses a production value. Verify before deploy means no name or value is stated in the public site files in this pack, so the deployment owner confirms the name in locked Worker configuration and no value is copied into code, pages, logs, or a summary. Record present yes or no with no value in the row.
Redacted by design
Every entry documents purpose and valid range only. A summary shows item name, safe default, workspace value or the word default, overridden yes or no, last changed date and role, and secret present yes or no. A secret value is never shown.
Source boundary
Source is APPKIT, the setup guide, the config guides, and the site files in pack app-chauffeur.site.1. Sign-in, sessions, tenancy, vault, browser, and media live in locked core files that are not in this pack. This page adds no sign-in path, no tenancy path, no permission, and no new record type.
Bindings and runtime helpers
Confirm each name in locked Worker configuration. A missing required name is a stop for the step that uses it.
DB - required
Kind: D1 database binding named DB. Safe default: no default, bind the workspace database. Valid range: name only, no value in this schema. Purpose: workspace data for bookings, customers, chauffeurs, vehicles, checks, drafts, issues, and invoices. If missing: the app interface fails in plain words, which is a loud failure. Validation: present by name before deploy, startup check 1.
FILES - required when file use is enabled
Kind: R2 bucket binding named FILES. Safe default: no default, bind the workspace bucket. Optional only for a build with no file use. Purpose: file attach and daily check photos. If missing: uploads and daily check photos fail. Validation: present by name before deploy, startup check 1.
Runtime env object - verify before deploy
Kind: Worker runtime object passed to assist, startMedia, useSecret, and saveFile. Safe default: no contents stated in this pack. Purpose: runtime access for drafting, media, vault, and files. If missing or wrong: the affected feature fails closed. Validation: confirm contents in locked core by name, add no guessed name.
Vault reference - optional per feature, read by reference only
Kind: saved sign-in or key reference for useSecret, server side only. Safe default: no vault id and no secret value in code, config, logs, or pages. Purpose: saved sign-in or key for one feature. If missing: the feature fails closed, never a hard coded fallback. Validation: presence only, never read a vault value to prove presence.
Drafting helper assist - optional
Kind: drafts and summaries a person reviews, with the grounding rule in APPKIT. Safe default: no cap, limit, or throttle added for platform drafting use. Purpose: confirmation, chauffeur details, on location, thank you, lead reply, and itinerary summary drafts. If drafting does not finish: the saved template and hand written fallback cover the same task, and booking, rate, pickup time, and call time stay unchanged.
Media helper startMedia - verify before deploy if used
Kind: pictures made on the Majic fleet. Safe default: no endpoint or name stated in this pack. Purpose: media generation for a record. If missing: media generation fails, other app work continues. Validation: confirm endpoint name in locked configuration only when media use is enabled.
Majic app config in src/app.json, registries, and migrations
Keep the shipped roles and permissions. A module that is unreachable or visible to the wrong role fails the health check.
src/app.json - required
Kind: app settings in the build, name, colors, roles, permissions, and navigation. Safe default: keep shipped roles and permissions. Valid range: permission names used in code must appear in roles, nav items must match screens. Purpose: decides which role sees which screen. If wrong: a module is unreachable or visible to the wrong role. Validation: owner or manager confirms roles in Team at setup.
Registries src/app/routes.ts and public/app/views/index.js - required, generated
Kind: generated module and screen registries. Safe default: generated, do not edit by hand. Purpose: makes a new API module and screen reachable. If missing: code exists but is not reachable. Validation: regenerate on build, never hand edit.
migrations/0002_app.sql - required
Kind: app tables, every table with tenant_id. Safe default: ship the migration only. Valid range: every SQL statement filters by tenant_id and binds the signed-in workspace. Purpose: table shape for every app record. If missing: tables are missing. Validation: startup check confirms tables present by name, no value in the row.
Locked files - never changed by app code
Kind: src/core, src/index.ts, migrations/0001_core.sql, scripts/gate.mjs, scripts/brand.mjs, public/sw.js, wrangler.jsonc. Safe default: keep as shipped. Purpose: sign-in, sessions, tenancy, vault, browser, media, files, drafting, and routing. If changed: the gate refuses the change. Validation: no entry in this schema may direct a change to a locked file.
Workspace settings - required to confirm at setup
Kind: workspace settings, not environment values. A changed rate applies to new quotes only. Preview a quote for the service of the first booking after any change.
Rates and scheduling settings - required
Safe defaults: hourly rate 125, hourly minimum 3 hours, MCI flat rate 175, point to point minimum 150 dollars, event hourly rate 140, event minimum 4 hours, gratuity 20 percent, lead hours 3, minimum gap 45 minutes. Valid ranges: every rate greater than 0 in whole dollars, gratuity 0 to 100 percent, lead hours greater than 0, minimum gap 0 up to but not including lead time in minutes, estimated hours 0.25 to 24 in quarter hour steps, passengers 1 to 7. Purpose: quote math and call time. If missing or zero: quote cannot be read, startup check fails. Validation: missing or zero rate, gratuity outside 0 to 100, lead hours at or below 0, or minimum gap at or above lead time fails the check.
Company profile and timezone - required at setup step 2
Safe default: company name, public name, phone, service area, timezone saved once by place name such as America/Chicago. Valid range: timezone is an IANA place name, never an abbreviation such as CST, no seeded timezone value is stated in this pack. Purpose: pickup date, call time, daily check date, and reports. If missing: pickup date or call time is wrong with no error. Validation: set before the first booking, no default is guessed.
Pickup points, templates, check lists, service schedule - required as seeded data
Safe defaults: ten pickup points MCI, Downtown, Crown Center, Country Club Plaza, Power and Light District, Convention Center, Overland Park, Leawood, Lee's Summit, Independence, MCI arrivals use baggage claim meet with a name sign, four message templates confirmation, chauffeur details, on location, thank you, daily clean and inspect lists, and the 14 item livery schedule. Purpose: meet point, draft templates, and daily readiness. If missing: the first run uses defaults until lists are confirmed. Validation: confirm present in settings at setup, do not re-enter seeded lists.
Fleet and people records - required only to dispatch
Safe defaults: ten vehicles class 2026 Lincoln Navigator L Reserve 4x4, 7 passengers maximum, fuel at 3/4 tank or more, tire tread threshold 4/32 inch, ten full time chauffeurs and 2 relief chauffeurs in the starter roster. Valid ranges: passengers 1 to 7, odometer integer from 0 upward and never lower than the last recorded odometer, permit, inspection, and certificate expiry as dates on or after the pickup date to assign. Purpose: readiness and assignment checks. If blank: the record can be saved, but assignment is blocked until entered and valid for the pickup date.
Site routes, presentation, and hardcoded values - keep as shipped
Do not relax a limit to clear a warning. Do not add a new limit, cap, or throttle for platform drafting use.
Public routes - required for forms
Safe defaults: marketing forms post to /api/public/request, public booking posts to /api/publicbook/public/request and reads quote, status, live, submit, reschedule, and cancel under that base. Purpose: demo and public quote requests create Quote bookings. If a route is missing: the form shows a plain error and does not submit. Validation: confirm each route by name in locked configuration before deploy.
Hardcoded site values in public/site.js
Safe values: form timeout 15000 milliseconds, retry count 3 on statuses 429, 408, 502, 503, and 504 with backoff 500, 1000, and 2000 milliseconds reusing the same reference, field limits name 120, company 120, email 254, phone 30, fleet size 50, service area 200, message 2000, subject 200, website 200, and 500 for any other field name, service worker at /sw.js with scope slash, theme color #14213D. Purpose: bounded form sends with no duplicate pending entry. If changed without review: a slow connection can leave a person waiting, or a limit change can hide a field error.
Passenger booking hardcoded values
Safe values: estimated hours 0.25 to 24 in quarter hour steps, passengers 1 to 7, pickup and drop off 200 characters, passenger name 120, phone 30, requests 1000, airline 60, flight number 20, meet point 200, sign text 120, quote cache at most 20 entries, preview debounce 250 milliseconds, draft save debounce 250 milliseconds. Purpose: bounded booking requests with the same validation in both booking copies. If divergent: a booking saved from one copy can fail the completeness gate.
Caching and app fallback
Safe defaults: long lived caching only for content hashed files under /assets/ with immutable, unhashed files with max-age 0 must-revalidate, signed-in API responses private no-store, and the app fallback is a custom 404 to index.html with no rewrite rules. Purpose: freshness for changed files and direct loads of app routes. If wrong: stale files stay in visitor browsers, or refresh on an app route returns 404. Validation: confirm by name in locked configuration, add no cache setting name from this page.
Startup validation in order
Run each step in order. A failed step stops the next step until the named item is fixed. Do not guess a missing value to clear a step.
Confirm bindings by name only
Confirm DB and FILES are present by name in deployment config. Record present yes or no with no value in the row. If a name is missing, contact the deployment owner and state the missing name only.
Confirm workspace settings
Confirm company name, public name, phone, service area, and timezone are saved. Confirm Rates and scheduling settings shows the seeded defaults or the production values the company saved. Preview a quote for the service of the first booking.
Confirm readiness for dispatch
Confirm rates saved, at least one vehicle Ready by a passing daily check for the pickup date, at least one chauffeur linked to a sign-in account, and one confirmed booking assigned.
Run health checks in depth order
Run liveness without sign-in, then deploy readiness, then deep health while signed in as owner or manager. Confirm present yes or no by name only, with no dependency detail for a signed out request.
Record and compare
Record the date, the workspace name, and present yes or no for each check, with no secret in the log detail. Keep the record with the setup checklist for that workspace, so the next change can be compared with it.
- DB binding missing. Contact the deployment owner. Do not add a value in code.
- FILES binding missing. Contact the deployment owner. Uploads and daily check photos cannot run until the name is bound.
- Runtime env name not verified. Confirm the name in locked Worker configuration before deploy. Do not invent a name in app code.
- Vault reference missing. The feature fails closed. Add the reference in the vault and read it by reference only.
- Public form route missing. Confirm the route by name in locked configuration. The form shows a plain error and does not submit until the route is present.
- Timezone missing. Set timezone in company profile before the first booking. Pickup date, call time, and reports have no timezone until then.
- Rate missing or zero, gratuity outside 0 to 100 percent, lead hours at or below 0, or minimum gap at or above lead time in minutes. Correct the named setting and preview the quote again.
Health checks - liveness, readiness, deep health
Verify route names in locked Worker configuration before deploy. Expose only the depth stated below. No payload, log, or record on this page states a secret value.
Liveness - process only, no dependencies
Access: without sign-in. Check: the Worker process responds, with no database query, no FILES check, no sign-in check, and no vault check. Payload: ok true and status live only. Code: 200 when live, any other code means not live. A missing binding does not change liveness.
Readiness - signed in, bindings by name
Access: signed in with a MAJIC account, workspace confirmed, owner or manager only. Signed out returns 401 and a role that cannot open the check returns 403, each with no dependency detail. Check: DB and FILES present by name, no booking, customer, or file data is read. Payload: ok, status ready or unavailable, and one row per binding with name and present yes or no only. Codes: 200 when ready and 503 when a required binding is missing.
Deep health - signed in, presence only
Access: owner or manager only. Check: readiness checks plus sign-in and session presence for the signed-in workspace, and vault reference present by presence only, never reading a vault value. Payload: present yes or no by name for DB, FILES, sign-in, and vault only. Codes: 200 when all pass and 503 when any check fails. Deep health never gates a deploy on its own and is never public.
What never appears
No secret, password, token, key, card number, or connection string. No database or bucket identifier, no vault id, no sign-in endpoint or token name, no session detail, and no workspace id. No customer or booking data, no driver error text, and no stack trace. Cache-Control private no-store for all three checks, with no ETag.
Missing entries to verify before deploy
No value is invented for any entry below. Confirm each name in locked Worker configuration and record present yes or no with no value in the row.
No environment variable names are stated
Sign in, sessions, tenancy, vault, browser, and media live in locked core files that are not in this pack. Verify in locked Worker configuration before deploy.
No vault, sign-in endpoint, token, or media endpoint names are stated
Do not hard code them. Read by reference only.
No connection strings or app settings files are in the pack
They must not be changed through app code.
No security header, CORS, CSP, rate limit, or firewall setting names are stated
Standing rules forbid changing them through app code. Do not add them.
No cache setting name, billing setting name, compatibility date, compatibility flags, or cron trigger names are stated
Verify each name in locked Worker configuration and confirm no cron trigger is present where this pack describes none.
Validate by name, then run the first real day
Open the setup guide for the ordered steps, or request a demo walkthrough.