Guide - Operations

Operations inventory and safe defaults

Use this page to confirm required bindings, runtime keys, hardcoded defaults, safe production values, and fail fast checks before the first run. No secret, password, token, key, or connection value is listed on this page. Where the pack states no name or value, the entry states verify before deploy.

Required bindings and runtime keys

Confirm each name in locked Worker configuration. A missing required name is a stop for the step that uses it.

DB binding - required

Kind: D1 database binding named DB. Safe production value: no default, bind the workspace database. If missing: the app interface fails in plain words. That failure is loud, not silent.

FILES binding - required when file use is enabled

Kind: R2 bucket binding named FILES. Safe production value: no default, bind the workspace bucket. Optional only for a build with no file use. If missing: uploads and daily check photos fail.

Runtime env object - verify before deploy

Kind: Worker runtime object passed to assist, startMedia, useSecret, and saveFile. Safe production value: no contents stated in the pack. Confirm contents in locked core and Worker configuration. Add no guessed name.

Vault reference - read by reference only

Kind: saved sign in or key reference for useSecret, server side only. Safe production value: no vault id and no secret value in code, config, logs, or pages. If missing: the feature fails closed. Never fall back to a hard coded value.

Drafting helper assist - optional

Kind: drafts and summaries a person reviews, with the grounding rule in APPKIT.md. Safe production value: no cap, limit, or throttle added for platform drafting use. 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 production value: no endpoint or name stated in the pack. Confirm in locked configuration if media generation is used.

Hardcoded defaults in site code, corrected

Keep each shipped value. Do not relax a limit to clear a warning.

Public form timeout and retry - live, not dead

Values in public/site.js: FORM_TIMEOUT_MS 15000 milliseconds, MAX_ATTEMPTS 3. Retry runs only on 429, 408, 502, 503, and 504, with backoff of 500, 1000, and 2000 milliseconds, reusing the same Idempotency-Key so a retry cannot create a duplicate pending entry. A 4xx response other than 408 and 429 clears the outbox entry, since the request was not saved as pending. Correction: an earlier inventory called this retry count dead configuration. The code in the pack uses it.

Public form field limits

Values in public/site.js 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. An over length value names the field, keeps the other entries, and asks for a shorter entry.

Passenger booking limits - both copies

Values in public/passenger-book.html and public/app/passenger-book.html validateRequest: estimated hours 0.25 to 24 in quarter hour steps, passengers 1 to 7, pickup and drop off 200 characters, passenger name 120 characters, phone 30 characters, requests 1000 characters, airline 60 characters, flight number 20 characters, meet point 200 characters, sign text 120 characters. Quote preview cache holds at most 20 entries by service and hours, preview debounce 250 milliseconds, draft save debounce 250 milliseconds. Cache entries do not change a saved quote.

Duplicate passenger book divergence to verify

Finding in the pack: public/passenger-book.html requires drop off except for hourly and event service, requires airline with flight number for MCI airport arrival, and checks passenger phone digits from 10 to 15. public/app/passenger-book.html in the pack lacks the drop off and airline required checks and uses a looser phone check. Safe production value: keep validation, limits, and wording identical in both copies, and treat /passenger-book as the one public destination. Correct the app copy to match the public copy before deploy, and re-read the quote after any correction.

Onboarding storage - six roles, device only

Values in public/onboarding-checklist.html: preferences key chauffeurdesk:onboarding:prefs:v1 and progress keys chauffeurdesk:onboarding:v1:workspace:person:role, kept on this device only with no expiry stated. Role values are six: manager, admin, dispatcher, chauffeur, relief, and passenger. Correction: an earlier inventory listed four roles and omitted admin and dispatcher. Admin and dispatcher use the owner or manager sign in role in the app. Discard saved entries when finished on a shared device.

Service worker and prefetch

Values in public/site.js: service worker at /sw.js with scope /, updateViaCache none, registered after load with a 3000 millisecond idle timeout where available. Prefetch covers public pages only, never /app/ or /api/, at most 12 pages, and skips save data and 2g connections. Presentation defaults are not feature flags. No feature flag name is stated in the pack, so no flag is added here.

Safe production values and fail fast checks

Correct the named record first. Do not guess a missing value to clear a warning.

Rates and scheduling 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 in whole dollars rounded up, lead hours 3, minimum gap 45 minutes. A changed rate applies to new quotes only. A missing or zero rate, gratuity outside 0 to 100 percent, lead hours at or below 0, or minimum gap at or above lead time in minutes fails the health check.

Company profile and timezone

Company name, public name, phone, service area, and timezone are required to confirm at setup. Timezone has no seeded value and must be set once by place name such as America/Chicago, then used for pickup date, call time, and reports. A missing timezone is a stop before the first booking.

Seeded workspace data

Ten pickup points, four message templates, daily clean and inspect lists, and the 14 item livery schedule are seeded. No clients, chauffeurs, vehicles, bookings, messages, or invoices are seeded. Nothing appears on the day board or in reports until a real booking is confirmed and assigned.

Caching and app fallback

Long lived caching is safe only for content hashed files under /assets/. Files whose names do not change between versions must not get long lived caching. The app fallback is a custom 404 to index.html. URL Rewrite is not installed, so rewrite rules must not replace it.

Missing entries - verify before deploy

No environment variable names, vault ids, sign in endpoint or token names, media endpoint names, connection strings, security header or CORS or CSP or rate limit or firewall setting names, cache setting names, billing or payment setting names, compatibility date or flags, or cron trigger names are stated in the pack. Verify each name in locked Worker configuration and record present yes or no with no value in the row. Standing rules forbid changing security settings through app code.

Redacted admin summary

For signed in owners and managers only, in Settings or the setup checklist. Show item name, safe default, workspace value or the word default, overridden yes or no, last changed date and role with no secret in the detail, and secret present yes or no with no value shown. Confirm DB and FILES show present yes by name.

Steps to run the review

Work through these steps in order at startup, after deploy, and after any production change.

  1. Confirm bindings by name only

    Confirm DB and FILES are present by name in deployment config. If a name is missing, contact the deployment owner and state the missing name only.

  2. Compare each row with this inventory

    Read the safe default, the workspace value, and the overridden flag in the redacted summary. Correct any row that does not match the production value.

  3. Preview a quote for each service type

    Check rate, gratuity, and total in whole dollars. A preview creates no booking.

  4. 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.

  5. Run the health check and delete practice records

    Open the home page and a guide, submit the demo form in a practice run, sign in and confirm the workspace name and timezone, and confirm the day board is empty until the first confirmed booking. Delete any practice record after verification and record present yes or no with no value in the row.

Review the inventory, then run the first real day

Open the setup guide for the ordered steps, or request a demo walkthrough.