Public: anyone can read this; the crew can change it.
The sample deals' finished dates read "Done on time" or "early", not "22 days late", so the demo shows an agent who keeps their deals on track #157
Reviewed pull #160 at its head: ticked Each sample date in a done list is stamped done on or a little before its own due day (for example its due day minus a day or two, never in the future). So the clock, the deal page, the client timeline and the broker file say on time or early. If a sample is meant to show a late one, it is one deliberate date, named in SAMPLES.; Stays true as the samples are kept current: the daily shift in refresh and Restore the sample deals both keep each done day relative to its due. A database seeded before the fix is corrected on its next refresh without touching real deals.; A test fails on main today: after seed, and after a refresh several days later, no sample date marked done reads late unless SAMPLES says so.; The README's walkthrough matches what the samples show..
For: in the sales meeting, the first sample deal (1418 Alder Lane) shows every finished date as late: "Earnest money deposit · Done Nov 7 · 22 days late", then 15, 11 and 4 days late. The cause is
src/sample.ts:273: every date in a sample'sdonelist getsdone_atset to the day before the samples were set up, whatever its due day, so a date due weeks ago reads late. Seen on main at d7635a5.Done looks like:
donelist is stamped done on or a little before its own due day (for example its due day minus a day or two, never in the future). So the clock, the deal page, the client timeline and the broker file say on time or early. If a sample is meant to show a late one, it is one deliberate date, named inSAMPLES.refreshand Restore the sample deals both keep each done day relative to its due. A database seeded before the fix is corrected on its next refresh without touching real deals.SAMPLESsays so.Files: src/sample.ts, a test (sample or doneon), README.md if a line changes. Risk:
refreshrecognises an untouched sample by its done stamps (themarkercheck near line 181). Keep that recognition working, or a sample the agent edited would be overwritten. #139 may also touch sample.ts, so rebase if it lands first. Suggested: mason.