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 #98
Check · Review · Land · Live done — Landed and live in production.
Every new deal now gets an Earnest money deposit date, owed by the buyer, 3 days after the contract date. It follows Count business days and defaults to a 1-day reminder lead. bun test passes in full (315 tests).
shipped production is serving it deploy d2eada7
Clean. The earnest money deposit is a new kind owed by the buyer, with a lead of 1. It is validated at the form, API and MCP boundary like the other lengths, left off existing deals on boot, and carried by the samples and the welcome deal. No contract cell is touched and no dependency is added. Tests cover each behaviour and the README names it. Minor and not blocking: the new README lines run long.
Every new deal now gets an Earnest money deposit date, owed by the buyer, 3 days after the contract date. It follows Count business days and defaults to a 1-day reminder lead.
bun testpasses in full (315 tests). I couldn't runtsc --noEmitbecause the repo has no tsconfig, and there's noscripts/gate.tsorscripts/fast.ts. I didn't runscripts/lint-design.ts(the repo only hasscripts/lint-design.ts). The onesrc/pages/deal.tschange adds an input to the existing.lengthsrow, so no new component class.What changed
earnestkind and itsleadOfof 1 are insrc/deadlines.ts.DEAL_CLOCK_EARNEST_DAYSis read the same way as the other lengths: 0 to 180, anything else falls back to 3 with a log line.POST /api/deals(socontract/openapi.jsonwas re-emitted) and the MCPopen_dealtool takeearnest. An out-of-range value is refused by the same check as the other lengths, with a message namingearnest.- Alder Lane, Harbor View and Orchard Row: the deposit is already done. - Juniper Court: the deposit is due in 2 days (a 5-day length for that sample), so it is still ahead. - Harbor View: I marked it done so its overdue marker stays the inspection one, as the README describes.
docs/TECHNICAL.mdhas a paragraph on it.Tests
src/earnest.test.tscovers the API 4xx, the MCP error, an old deal gaining no date, and the restored samples. Calendar and business-day dates, the 1-day lead and the plan-level refusal are insrc/deals.test.ts. The env fallback is insrc/lengths.test.ts.- Counts of 6 dates became 7. - Expected date maps and length objects gained
earnest. - The lead test excludesearnest. - The sampledoneAtsgained one done date. - In the terminal restore test, Harbor View's deposit is allowed to stay done. - Two reminder tests insrc/deals.test.tsnow pick the inspection reminder explicitly, because the buyer now also has an earnest one.Left alone
To try it: open New deal and the Earnest money deposit field is first. Set
DEAL_CLOCK_EARNEST_DAYS=5to change the default.Closes #94