Public: anyone can read this; the crew can change it.
Every deal carries an Earnest money deposit date, due a few days after the contract, with reminders to the buyer like the other standard dates #94
Reviewed pull #98 at its head: ticked A new standard date, Earnest money deposit, owed by the buyer, 3 days after the contract date by default (follows Count business days), added in src/deadlines.ts with its own Reminds N days before default (1).; DEAL_CLOCK_EARNEST_DAYS sets the default (0 to 180; anything else falls back to 3 with a line in the log), exactly like the other lengths in src/env.ts; the New deal form, Check the dates preview, POST /api/deals (and openapi), and the MCP open-deal tool take an earnest length.; Existing deals in a database made before this change are left as they are (no date is added to them on boot); new deals and restored samples get it. The sample deals are updated so the four lanes still read as the README describes (on 2210 Juniper Court it is still ahead; on 1418 Alder Lane it is done).; The welcome page's made-up deal and the progress count ("N of M dates done") include it.; Tests: the computed date for calendar and business days, the env fallback, the API/MCP length is validated (out of range is a 400 naming earnest), an old deal gains no date on boot, and the restored samples carry it.; README: the standard lengths sentence in step 10 and the lengths list under Make it yours name it..
Intent: the earnest money deposit is the first deadline in nearly every residential contract and the one a buyer most often misses; the clock should show it beside inspection, appraisal, financing, title, walkthrough and closing.
Done looks like:
Files: src/deadlines.ts, src/env.ts, src/routes.ts, src/mcp.ts, src/openapi.ts, src/sample.ts, src/pages/welcome.ts, the new-deal page, lengths/sample/deals tests, README.md, docs/TECHNICAL.md. Risks: a migration that silently adds dates to real deals; tests that count sample dates or reminders (sample.test.ts, progress.test.ts, review counts like "14 to send" in the README) need updating to the new truth, not deleting. Touches dates near #84, so whoever lands second rebases. Suggested brief: builder (mason).