Structured draft schemas for every draft kind
Use the corrected writing blocks below for booking confirmation, lead reply, itinerary summary, and for summarize, plain, translate and checklist tasks. Each block returns one JSON object only, with canonical enums, UTC dates, whole numbers, rejection of extra fields, and null for missing facts.
What was checked against the pack
The writing blocks in APPKIT.md and in the draft writing instructions guide required citations and exact sentences for missing facts but stated no field list, no enum list, no date format, no number range, and no rule for extra fields. The list api contract guide states canonical snake case names, canonical enums, UTC ISO 8601 for at fields, YYYY-MM-DD for date fields, and whole numbers for cents, with legacy tolerance at the edge only. The normalized values guide states canonical values such as Driver confirmed and Point to point. The draft grounding guide and the approve messages guide state bracket blanks and exact sentences for missing price, availability, licensing, service area, features, and passenger, vehicle, timing or itinerary. A free text result could use a hyphenated service name, a local time or epoch number for a date, a string or float for a count or cents value, zero for a missing amount, an invented chauffeur or vehicle before Driver confirmed, or an extra field that the parser had no rule to reject. The corrected blocks below close that gap with one field list per kind, canonical enums, UTC dates, whole numbers, rejection of extra fields, and null for missing facts.
Blocks found
APPKIT.md grounding block with generic, booking confirmation, lead reply and itinerary summary blocks. Draft grounding guide with supplied records by draft kind and six exact unknown sentences. Source fact check guide requiring a named saved record for each specific. Approve messages guide and airport arrivals guide with fallback templates. Draft writing routing guide with tiers and fallback order.
Gap closed on this page
Earlier blocks stated the grounding limit and the unknown sentences but gave no machine checkable field list. This page adds one field list per kind, canonical enums, UTC date forms, whole number ranges, extra field rejection, source citations for present facts, and null with missing_fields for missing facts.
What this page does not change
No sign-in, tenancy, role, rate, pickup time or call time rule changes. A changed rate still applies to new quotes only. Chauffeur name, vehicle and phone still arrive at call time after Driver confirmed.
How to use this page
Copy the writing block for the kind you need, pass the supplied workspace rows in the same task, delimited as supplied records, and validate the returned JSON object with the checks on this page before the draft enters the queue. A draft that fails a check is held and never approved or sent.
Shared checks for every kind
Apply these checks in the validator for every draft, summary, plain, translate and checklist task. The validator is a pure function that can be tested without a network call. Booking, rate, pickup time and call time stay unchanged when a check fails.
Extra fields rejected
Additional properties is false for every kind. Reject the whole result when it contains id, tenant records, workspace records, call time as a client supplied value, quote amounts as strings, ETA, drive time, total duration, product cost, trial, coverage, start date, card details, or any field not listed for that kind. Do not drop the extra field and keep the rest. Hold the draft with the extra field name in missing_fields and use the saved template.
Enums are canonical and case sensitive
Use only canonical values from the normalized values guide and the data fields guide. Service type uses airport_arrival, airport_departure, hourly, point_to_point, event. Booking status uses Quote, Confirmed, Driver confirmed, En route, On location, Passenger on board, Complete, Cancelled. Reject hyphenated variants such as point-to-point, capital variants such as Driver Confirmed, camelCase variants, and underscore variants when the canonical value uses spaces. A legacy variant that the api contract guide allows at the edge must not enter a draft result. Read it as canonical at the edge, then save canonical only.
Dates are UTC or calendar dates only
Pickup at, call time and updated arrival use UTC ISO 8601 in the form YYYY-MM-DDTHH:MM:SSZ. Pickup date, check date and expiry use YYYY-MM-DD in the company timezone saved by place name such as America/Chicago. Reject epoch seconds or milliseconds, local device time, timezone abbreviations such as CST, date alone for a date time field, and time alone for a date field. A flight number alone never sets an arrival time.
Numbers are whole or quarter hour only
Passenger count is an integer from 1 to 7 or null. Estimated hours is a number from 0.25 to 24 in quarter hour steps or null. Quote cents, gratuity cents and total cents are integers from 0 upward or null, with no fraction and no string form. Gratuity percent is a number from 0 to 100 where a settings record is supplied. Reject floats for counts and cents, strings for numbers, negative values, zero as a sentinel for a missing amount, and estimated hours of 3.1 or similar non quarter values. Total must equal rate plus gratuity when all three are present.
Null means missing, never a guess
A missing supplied fact is null. Never use an empty string, zero, a placeholder, a prior run value, a public page value, a seeded default, or the literal words not stated or unknown in a typed field. The literal sentences for missing classes are allowed only in unavailable_text, and only with the exact wording from the draft grounding guide. The display layer may show that sentence to a person, while the stored structured value stays null. Add the field name to missing_fields in every null case.
Sources are required for present facts
Every non null fact must have one entry in sources with a supplied record and field name such as booking pickup at, chauffeur certificate expiry, vehicle permit expiry, settings lead hours, or company profile timezone. Null facts must have no entry in sources. Reject a present fact with no source, a source that names a field not supplied for this workspace, a source from another workspace, a prior run, entered text, or general knowledge. Correcting a fact means changing the named record first, then the draft to match it.
Booking confirmation writing block plus schema
Use this block for confirmation and thank you. Pass the supplied rows in the same task, delimited as supplied records. Return JSON only.
Return one JSON object only with the fields listed for this kind and no other field. Use only facts supplied in this request from workspace records for the current workspace. For each present fact add one entry in sources with the supplied record and field name. For each missing fact set the field to null, list the field name in missing_fields, and set unavailable_text to the exact sentence for the missing class. Never use an empty string, zero, a placeholder, or the words not stated or unknown in a typed field. Use only canonical enum values exactly as listed. Use UTC ISO 8601 for pickup_at and call_time in the form YYYY-MM-DDTHH:MM:SSZ. Use whole numbers for cents and passengers with no fraction. Reject any extra field, any non canonical enum, any non UTC date, and any string in place of a number. Chauffeur name, chauffeur phone, vehicle label and vehicle plate stay null before Driver confirmed. Return no text outside the JSON object.
| Field | Type or null | Allowed values or format | Source record field |
|---|---|---|---|
| draft_kind | string | confirmation, thank_you | task kind, never from a booking field |
| booking_status | string or null | Quote, Confirmed, Driver confirmed, En route, On location, Passenger on board, Complete, Cancelled | booking status |
| service_type | string or null | airport_arrival, airport_departure, hourly, point_to_point, event | booking service_type |
| pickup | string or null | max 200 chars | booking pickup |
| drop_off | string or null | max 200 chars | booking dropoff |
| stops | array of strings or null | each max 200 chars, saved order, never reordered | booking stops |
| pickup_at | string or null | YYYY-MM-DDTHH:MM:SSZ in UTC | booking pickup_at |
| call_time | string or null | YYYY-MM-DDTHH:MM:SSZ in UTC, pickup_at minus lead hours | booking call_time |
| passenger_name | string or null | max 120 chars | booking passenger_name |
| passenger_count | integer or null | 1 to 7, whole number | booking passengers |
| passenger_phone | string or null | max 30 chars, digits 10 to 15 with country code | booking passenger_phone |
| booker_name | string or null | max 120 chars | booking booker_name |
| airline | string or null | max 60 chars | booking airline |
| flight_number | string or null | max 20 chars, letters numbers spaces hyphen | booking flight_number |
| meet_point | string or null | max 200 chars | booking meet_point |
| sign_text | string or null | max 120 chars | booking sign_text |
| requests | string or null | max 1000 chars | booking requests |
| rate_cents | integer or null | 0 upward, whole number | saved quote rate |
| gratuity_cents | integer or null | 0 upward, whole number | saved quote gratuity |
| total_cents | integer or null | 0 upward, whole number, equals rate plus gratuity when all present | saved quote total |
| chauffeur_name | string or null | max 120 chars, non null only from Driver confirmed | chauffeur name |
| chauffeur_phone | string or null | max 30 chars, non null only from Driver confirmed | chauffeur phone |
| vehicle_label | string or null | max 120 chars, non null only from Driver confirmed | vehicle type and colour |
| vehicle_plate | string or null | max 30 chars, non null only from Driver confirmed | vehicle plate |
| unavailable_text | string or null | exact sentence for the missing class, or null when no missing class | derived display text, never a typed fact |
| missing_fields | array of strings | each value is a field name from this table, unique | validator output, never from entered text |
| sources | object | keys are present field names only, values are supplied record field names | supplied rows for this workspace |
Lead reply writing block plus schema
Use this block for a lead reply. Pass only the submitted lead fields plus supplied company profile public name and phone. Product cost, trial, coverage and start date fields are not listed, so any such field is rejected as fabricated.
Return one JSON object only with the fields listed for this kind and no other field. Use only facts supplied in this request from workspace records for the current workspace. For each present fact add one entry in sources with the supplied record and field name. For each missing fact set the field to null, list the field name in missing_fields, and set unavailable_text to the exact sentence for the missing class. Never use an empty string, zero, a placeholder, or the words not stated or unknown in a typed field. Reject any extra field, including any cost, trial, coverage or start date field. Reject any string in place of a number and any non canonical enum. Return no text outside the JSON object.
| Field | Type or null | Allowed values or format | Source record field |
|---|---|---|---|
| draft_kind | string | const lead_reply | task kind |
| lead_name | string or null | max 120 chars | lead name |
| company | string or null | max 120 chars | lead company |
| string or null | max 254 chars, lower case, no spaces | lead email | |
| phone | string or null | max 30 chars, digits 7 to 15 | lead phone |
| fleet_size | string or null | max 50 chars, free text, never a number unless supplied as text | lead fleet_size |
| service_area | string or null | max 200 chars | lead service_area |
| message | string or null | max 2000 chars | lead message |
| company_public_name | string or null | max 120 chars | company profile public name |
| company_phone | string or null | max 30 chars | company profile phone |
| unavailable_text | string or null | exact sentence for the missing class, or null | derived display text |
| missing_fields | array of strings | each value is a field name from this table, unique | validator output |
| sources | object | keys are present field names only | supplied rows for this workspace |
Itinerary summary writing block plus schema
Use this block for an itinerary summary. Never reorder stops, never estimate travel between stops, and never convert estimated hours into an actual or arrival time. ETA, drive time and total duration fields are not listed, so any such field is rejected.
Return one JSON object only with the fields listed for this kind and no other field. Use only facts supplied in this request from workspace records for the current workspace. For each present fact add one entry in sources with the supplied record and field name. For each missing fact set the field to null, list the field name in missing_fields, and set unavailable_text to the exact sentence for the missing class. Never use an empty string, zero, a placeholder, or the words not stated or unknown in a typed field. Use only canonical enum values exactly as listed. Use UTC ISO 8601 for pickup_at and call_time in the form YYYY-MM-DDTHH:MM:SSZ. Use whole numbers for passenger count and quarter hour numbers for estimated hours. Reject any extra field, any non canonical enum, any non UTC date, and any string in place of a number. Return no text outside the JSON object.
| Field | Type or null | Allowed values or format | Source record field |
|---|---|---|---|
| draft_kind | string | const itinerary_summary | task kind |
| service_type | string or null | airport_arrival, airport_departure, hourly, point_to_point, event | booking service_type |
| pickup | string or null | max 200 chars | booking pickup |
| stops | array of strings or null | each max 200 chars, saved order | booking stops |
| drop_off | string or null | max 200 chars | booking dropoff |
| pickup_at | string or null | YYYY-MM-DDTHH:MM:SSZ in UTC | booking pickup_at |
| call_time | string or null | YYYY-MM-DDTHH:MM:SSZ in UTC, pickup_at minus lead hours | booking call_time |
| estimated_hours | number or null | 0.25 to 24 in quarter hour steps | booking estimated_hours |
| passenger_count | integer or null | 1 to 7, whole number | booking passengers |
| airline | string or null | max 60 chars | booking airline |
| flight_number | string or null | max 20 chars | booking flight_number |
| unavailable_text | string or null | exact sentence for the missing class, or null | derived display text |
| missing_fields | array of strings | each value is a field name from this table, unique | validator output |
| sources | object | keys are present field names only | supplied rows for this workspace |
Summarize, plain, translate and checklist tasks
Use the same shared checks with task values draft, summarize, plain, translate, checklist, a text field with max 2000 chars or null, and extra facts only from supplied rows. When the source text contains a price, a pickup or call time, a stop order, availability, licensing, a service area, or a passenger, vehicle or chauffeur detail, use the Tier 3 kind above instead of a plain task. Original text stays when a check fails.
Parser checks in order and hold step
Use the same order for every task. Try once. Try once more only for a timeout, an empty result or a cut short result. A missing fact, a cannot answer result and a closed route are not retried.
Parse one JSON object only
Reject trailing text, arrays at the top level, and non object values. Discard the result in full on failure.
Reject extra fields
Compare the top level keys with the field list for that kind. Any extra field fails the whole result with the extra field name in missing_fields.
Check enums exactly
Compare each enum value case sensitively with the canonical list. Reject hyphenated, capital, camelCase and underscore variants that do not match the canonical value.
Check dates in UTC or calendar form
Reject epoch numbers, abbreviations, date alone for a date time field, and time alone for a date field. Check that call time equals pickup at minus lead hours from supplied settings when both are present.
Check numbers in range
Reject strings for numbers, floats for counts and cents, negative values, zero sentinel, and non quarter estimated hours. Check that total cents equals rate cents plus gratuity cents when all three are present.
Check null discipline and unavailable text
Reject empty strings, literal not stated or unknown in typed fields, and any unavailable sentence that does not match the exact wording for the missing class. Null facts must be listed in missing_fields.
Check sources for present facts
Every non null fact must have one source entry that names a supplied record and field for this workspace. Null facts must have no source entry. Reject sources from another workspace, a prior run, entered text, or general knowledge.
Check cross fields
Chauffeur name, chauffeur phone, vehicle label and vehicle plate must be null before Driver confirmed. Stops count and order must match supplied stops. A flight number alone must not set an arrival time.
Hold on any failure
Discard the result in full, hold with failed field names in missing_fields, use the saved template in the same slot, and do not queue, approve or send. A missing fact answer is a hold, not a retry. Timeout, empty, blank, whitespace, cut short or partial gets one second route try at the same tier, for two tries in total. No third try.
Template in the same slot
After two tries, or at once for a missing fact, use the saved template in the same approval slot or write by hand. The template fills only facts already on the supplied rows. A missing line stays blank with the field named. Booking, rate, pickup time and call time stay unchanged.
Notice before approval
When the template or a hand written draft is used, the notice above the approval control states the source, the reason fallback was used, how many tries were made, and each blank line to check against the booking. It states that no fact was added and that a person must still approve. A draft that fails a check must not be approved.
Acceptance checks
Run each check with a booking and a lead request missing one fact at a time and with one invalid value at a time. The validator must hold the draft, name the field, keep the exact sentence, and show no guessed value.
- Missing passenger name, count or phone: passenger fields null, timing sentence kept, no name or number invented
- Missing vehicle type, capacity or plate: vehicle fields null, features sentence kept, no vehicle stated
- Missing pickup time or call time: date fields null, pickup and call stay as stored, no new time from flight number
- Missing pickup, stop, drop off or stop order: place fields null, stops null or held, no reorder, no drive time
- Missing saved quote: cents fields null, pricing sentence kept, no amount stated
- Missing availability or licensing rows: availability or licensing sentence kept, no promise or status stated
- Invalid enum such as point-to-point or Driver Confirmed: rejected with field named, no draft queued
- Invalid date such as epoch number or CST abbreviation or date alone for pickup at: rejected with field named
- Invalid number such as passengers 7.5 or string 7 or estimated hours 3.1 or cents float: rejected with field named
- Fabricated field such as ETA, drive time, total duration, invented vehicle capacity, product cost, trial, or tenant record: rejected with field named, whole result discarded
- Chauffeur name present before Driver confirmed: rejected with field named and chauffeur fields forced to null in template
- Every present fact has a source, every null fact has no source, and every draft still waits for a person to read it against the booking, edit if needed, and approve it before it is sent
Hold the draft when the record is missing
Use only supplied workspace facts, return JSON only with canonical enums and UTC dates, set missing facts to null, and approve only a draft that matches the current record.