ADR 0399: The trade starter writes only what it can state truthfully and keeps its examples as drafts
- Status: Accepted
- Date: 2026-11-11
- Parent story: #490
- Task: #527
- Parent epic: #475
- Builds on: ADR 0305, ADR 0311, ADR 0382, ADR 0389, ADR 0398
Context#
openblog init writes a blog: a Hello world post with a Rust example, an About page and the default settings. A
tradesperson wants a business site they only have to fill in. Whatever the starter writes is published the first
time the owner deploys, and a business site that shows an invented phone number, invented hours, an invented
service or an invented review is worse than an empty one: it misleads customers and search engines, and
LocalBusiness, Service and Review data would state it as fact.
Decision#
openblog init [dir] --starter trade [--trade <trade>].--starternames a starter;tradeis the only one.--tradeis one of the bundled job trades (defaultgeneral-contractor) and is checked before anything is written.--tradewithout--starter tradeis refused. Without--starter,initwrites exactly what it wrote before, byte for byte.- Settings. The defaults, plus what the starter can state truthfully:
businesswithversion, the site title asdisplayNameand the chosentrade(which picks theLocalBusinesstype and the seasonal topics); the author as the business with/about/as its link; and a description that says what the site is for. No phone, email, hours, license, insurance or payment methods: the owner states those under Settings → Business facts. The written settings are read back through the same parser the build uses, so a starter cannot write settings the build would refuse. - Three example services, as drafts.
repairs,new-installationsandinspections, namedExample: …, with a summary, three included items, a price band and a body that says how to make it your own. A draft is never built, so nothing invented reaches the site; the owner edits one and turnsdraftoff. They are complete, valid services, so turningdraftoff is the only edit needed for the build to accept one. - Empty collections.
content/posts/andcontent/proof/exist and are empty. There is no Hello world post on a trade site. The jobs archive needs no file: it appears with the first published job. - A phone-first landing page (
content/landing.json, version 3): a welcome banner with the business name and a sentence to replace, the business facts directly under it (the phone and hours, once stated), the services grid, the three newest jobs, the three newest reviews and the quote form. Each later section renders nothing until it has something to show (ADRs 0382 and 0398), so a fresh starter shows the banner and the business name, with no empty headings. - The quote form stays off. Quote requests need the hosted function and a Supabase table (ADR 0381), which the starter cannot set up; the section is placed, and appears once the owner turns quote requests on.
- Never overwrite. As with
init, a file that already exists is left alone.
Consequences#
A fresh trade starter passes openblog check with no warnings (content, accessibility and search checks) and
builds with one <h1>. The guided checklist in Admin (ADR 0401) takes the owner from here to a first job. The
starter's look is chosen in ADR 0400.