Guides · Staff and applicants

Writing service routing inventory, smallest sufficient tier per task

Use this page to record every routing and configuration choice stated in this site pack for drafts, summaries, plain rewrites, translations and checklists. It states the service name, the sampling setting and the length limit as Unknown where the pack does not state them, compares cost and latency trade offs per task, and assigns the smallest sufficient tier per task.

How to read this inventory

Every file in pack app-permitdesk.site.1 was checked for a draft, summary, plain rewrite, translation or checklist call, and for a service name, a sampling setting and a length limit. A choice is listed only where a file in the pack states it. Where the pack does not state a choice, this page writes Unknown and names the item the town office must supply in setup notes.

  • Canonical precedence, in order: the record and the town document for that record, then this inventory, then the routing map and the configuration page, then summary pages such as home and features.
  • Public pages never show a service name. A service name, a sampling setting and a length limit are recorded in the town agreement and in setup notes only, with the town office, in the same way the security page asks a town to confirm each control before go-live.
  • No length cap is added by this page. Majic own writing service requests carry no token caps, so a length limit for that use stays Unknown and is not set here.
  • No fee amount, day count, code section, price or approval rule is added by this page. Where a value is not in a supplied field, this page writes Unknown and names the field the town office must supply.

Inventory by file, what routing configuration this pack states

Work down the table in order before you record a tier in setup notes. The last column is the choice that stays Unknown for that file.

Routing and configuration inventory by file
File checkedWhat the file states for a writing service callService name, sampling setting and length limit found
APPKIT.mdStates the grounding block, the canonical builder in the routing module named in APPKIT, and that the client draft helper and the plan review letter rewrite are the stated runtime paths. That routing module and helper file are not in this site pack.Unknown: service name not in supplied site pack. Unknown: sampling setting not in supplied site pack. Unknown: length limit not in supplied site pack.
public/site.jsForm post to /api/public/request only, with a 20 second abort timer. Form fields only, no record fields.None found. This is not a writing service path and carries no tier.
public/status.html, public/health.html, public/offline.html, public/app/index.htmlStatus lookup, health probe at 10 seconds, offline retry at 800 milliseconds, and app boot at 15000 milliseconds. No draft, summary, plain rewrite, translation or checklist call.None found. None of these paths carries a tier.
public/guides/routing-fallback-map.htmlThree tiers by task, complexity, input size band and latency need, with relative cost per call stated as lowest, middle and highest. One retry, then the missing item list. Draft timeout stated as Unknown.Unknown: Tier 1 service name not in supplied site pack. Unknown: Tier 2 service name not in supplied site pack. Unknown: Tier 3 service name not in supplied site pack. Unknown: sampling setting not in supplied site pack for every tier. Unknown: length limit not in supplied site pack for every tier.
public/guides/writing-service-configuration.htmlSame primary path and manual fallback for every draft task. One timeout slot for every draft task, stated as Unknown. Do not copy the 20 second form timeout or the 10 second health timeout to a draft task.Unknown: service name not in supplied site pack. Unknown: fallback service name not in supplied site pack. Unknown: sampling setting and length limit not in supplied site pack.
public/guides/drafts-summaries-checks.html, public/guides/draft-fallback-contract.html, public/guides/draft-and-summary-fallback.htmlGrounding rules, bracket citations, Unknown markers, structured output validation, one bounded repair retry, and a deterministic template fallback built only from supplied fields on the same record.Unknown: service name, sampling setting and length limit not in supplied site pack for every task in these pages.

Result: no writing service call, service name, sampling setting or length limit is stated in any file in this site pack. Every such choice in the tables below is therefore recorded as Unknown, with the tier assignment as the only routing choice this pack does state.

Comparison per tier, cost and latency trade offs

Read the table in order before you choose a tier for a task. Cost is relative only, as stated in the routing map. No dollar figure is stated in this pack.

Service name, sampling setting, length limit, cost and latency per tier
TierService name in packSampling setting (temperature) in packLength limit (max tokens) in packRelative cost and latency trade off
Tier 1, fast checkUnknown: Tier 1 service name not in supplied site packUnknown: sampling setting not in supplied site pack for Tier 1Unknown: length limit not in supplied site pack for Tier 1, and no length cap is to be added for Majic own writing service useLowest cost per call as stated in the routing map. Short input, inline or review page latency need. Use where the task is extraction with no new sentence needed, so cost and latency stay low with no quality loss.
Tier 2, standard draftUnknown: Tier 2 service name not in supplied site packUnknown: sampling setting not in supplied site pack for Tier 2Unknown: length limit not in supplied site pack for Tier 2, and no length cap is to be added for Majic own writing service useMiddle cost per call as stated in the routing map. Medium input, inline editing latency need. Use where wording must be preserved exactly, so a cheaper tier that changes a value is not sufficient.
Tier 3, strong draftUnknown: Tier 3 service name not in supplied site packUnknown: sampling setting not in supplied site pack for Tier 3Unknown: length limit not in supplied site pack for Tier 3, and no length cap is to be added for Majic own writing service useHighest cost per call as stated in the routing map. Long input, review step latency need where a person edits the result, so quality matters more than speed. Use where several field groups must be synthesised with a citation for every factual sentence.
  • Unknown: price per call not in supplied context. Do not publish a cost figure for any tier, and do not compare a tier by a price that is not in a supplied source.
  • A tier never widens the supplied field list, never adds a fee, date, code or person fact, and never changes a supplied value to fill a gap.
  • Input size band means the size of the supplied context on that record. Short means one field group, medium means several field groups or supplied text from one section, long means several field groups together with supplied text or a comment list. No token count is stated in this pack, so no token count is added here.

Ready to ship routing table, smallest sufficient tier per task

Use this table in setup notes with the town office. Route first is the smallest sufficient tier for that task. Where that tier fails, use the cheaper fallback in the routing map on the same supplied fields, then the missing item list.

Smallest sufficient tier per task, with service name, sampling setting and length limit
TaskSmallest sufficient tierWhy a smaller tier is not sufficient, or why no tier is usedService, sampling and length limit in pack
ChecklistTier 1, fast checkExtraction of required, received and missing from the type list and the record. Short input, review page latency need. A higher tier adds cost with no quality gain for a list that must be exact.Unknown: service name, sampling setting and length limit not in supplied site pack for Tier 1
Missing-sheet and completeness suggestionsTier 1, fast checkClassification of required documents, fields and contacts against the current version, for staff to confirm or dismiss. Short input, inline latency need.Unknown: service name, sampling setting and length limit not in supplied site pack for Tier 1
Plain-language rewriteTier 2, standard draftRewording must preserve amounts, dates, record numbers, names, contacts, statuses and rule wording exactly. Tier 1 extraction cannot reword with that guarantee. Medium input, inline editing latency need.Unknown: service name, sampling setting and length limit not in supplied site pack for Tier 2
TranslationTier 2, standard draftTranslation must preserve supplied wording, values and every Unknown marker exactly. Tier 1 extraction cannot translate with that guarantee. Medium input, inline editing latency need.Unknown: service name, sampling setting and length limit not in supplied site pack for Tier 2
SummaryTier 3, strong draftRestating only supplied items with a bracket citation for every factual sentence across several field groups. Medium to long input, inline or review step latency need. Tier 2 rewording alone does not guarantee a citation for every sentence.Unknown: service name, sampling setting and length limit not in supplied site pack for Tier 3
Write a first draftTier 3, strong draftSynthesis across several field groups with citations and Unknown markers. Long input, review step latency need where a person edits the result before saving.Unknown: service name, sampling setting and length limit not in supplied site pack for Tier 3
One consolidated correction letter per cycleTier 3, strong draftOne letter from open discipline comments, sheet, location and due date where shown, for staff to edit before sending. Long input, review step latency need. Quality matters more than speed.Unknown: service name, sampling setting and length limit not in supplied site pack for Tier 3
Public demo form and health liveness checkNo writing service route, no tierForm fields only with no record fields, and a health probe with no record fields. Form post timeout is 20 seconds in site.js and health probe timeout is 10 seconds in health.html. Neither timeout is copied to a draft task.Not applicable, no service name, sampling setting or length limit for these paths in this pack

Timeout and retry for every draft task stay as stated in the routing map and the configuration page: Unknown: draft timeout not in supplied site pack, one attempt per task per record, one retry where the screen offers it, then the missing item list. Record one timeout value and one retry rule in setup notes before live use, with no value copied from the form or health timeouts.

What this inventory never adds

Keep these limits in place when you record a tier in setup notes.

  • It never adds a service name, a sampling setting, a length limit, a timeout value or a retry count from memory, from an example or from another record. Where a choice is not in a supplied field, the item stays Unknown and names the document the town office must supply.
  • It never adds a token cap or a throttle to Majic own writing service use. A length limit for that use is not set on this page.
  • It never invents a fee, date, code, requirement, applicant fact, license status, inspection result or balance. Where a needed fact has no supplied field, or supplied fields conflict, the item is Unknown, both field names are named where fields conflict, and the missing item list is returned for that part.
  • It never gives legal advice or legal interpretation, and never states that a project complies with a code. That question goes to the issuing town office or code official for that record.
  • It never shows a service name, a sampling setting or a length limit on a public page. Those items are recorded in setup notes only.

Set up the routing table in order

Work through these steps in order on one clearly marked test record. Each step ends with what you should see when it worked.

  1. Copy the inventory and the routing table into setup notes

    Copy the file inventory, the tier comparison and the routing table above into setup notes with the town office. You should see Unknown for service name, sampling setting, length limit, timeout and retry for every tier, with the smallest sufficient tier named for each task.

  2. Record the town decision for every Unknown row

    For each Unknown item, either record the town document that states it in the town agreement and in setup notes, or record in writing that the choice stays Unknown and is not relied on for that task. You should see no service name, sampling setting or length limit published on any public page.

  3. Test a missing fee and a missing applicant fact on each tier

    Leave fee_items.amount_cents and an applicant contact fact out of the supplied fields on the test record, then run a checklist on Tier 1, a rewrite on Tier 2 and a summary on Tier 3. You should see Unknown for both missing fields on every tier, only the supplied fields listed, and no guessed amount, date, code, name, contact detail, license status or inspection result.

  4. Test a forced error, a conflict and an embedded instruction

    Force an empty or unreadable result, set two supplied fields to different values for the same item, and put text in a supplied field that tells the writing service to invent a value. You should see a plain retry message with entries kept, Unknown with both field names and the conflict, and the embedded instruction ignored as data only.

  5. Publish only after the test passes

    Run the safe defaults health check in the setup guide, then publish only after the test passes. Drafts and the test record stay private and do not appear in public search. See Drafts, summaries and checks and When a draft cannot be made.

Routing and fallback map · Writing service configuration · Deterministic fallback · Security

Bring your task list to the demo

Tell us which draft, summary or check you need first, and we will set the smallest sufficient tier with your types and fees.

Request a demo