Public: anyone can read this; the crew can change it.
A date that slips past due without being marked done drafts a follow-up to whoever owes it, which the agent approves like any reminder #35
Merged 33d 21h ago, live in production
An open date that slips past due now drafts an "Overdue follow-up" the morning after, addressed only to the party who owes it. Sending, declining and editing work on it like the other reminders. The full bun test passes (116 tests).
-
Reviews
Changes requested — before the latest pushSecurity, contract and migration look sound: no cell in contract.json is loosened,
lateis validated at every boundary (routes, MCP, openapi), and the CHECK rebuild keeps rows. Changes to make in one round: (1)pending()is the new rule that keeps an overdue follow-up on the clock page and in the terminal, and no test exercises it. Add a test forpending(late draft listed on day+3 while unsent, gone once sent, declined or done; before/day_of still drop after due), and one that the terminal's reminder list shows the late draft, since the terminal must match the page. (2) Rewrite the sample test in src/sample.test.ts: it uses dynamic imports inside the test body andas neverto dodge the Who type. Use top-level imports and a real Who like the neighbouring tests. (3) Revert the unused type widening in src/sample.ts:28; sample data sends no late reminder, so this is dead change. (4) Tidy the header comment in src/reminders.ts, which now wraps mid-sentence and still says 'twice'. I could not see the signed-in clock on the preview from here (guest only), so the visual check is on the builder's word.ApprovedAll four earlier asks are met.
pendinghas its own tests, the sample test uses top-level imports and a realWho, thesample.tswidening is reverted, and thereminders.tsheader is fixed. The clock page and the terminal now sharepending, so both doors list the overdue follow-up the same way.contract.jsonis unchanged and sending still goes throughpermit. The migration keeps old rows and is tested. The preview answers 200. I could not diff against 24c4b079eb16 because the commit is not in the clone, so I judged the change as shown. Non-blocking:tscwas not run by the builder, so confirm the type check on the forge. -
Checks
shipped production is serving it deploy d2eada7
-
History
- Merge main into the overdue follow-up branch 808b4b6
- Test pending and the terminal's overdue follow-up; tidy the sample test and header comment 38acff0
- Each deal has a client timeline: one printable page of its dates and who owes each, to hand to buyers or sellers, without the agent's controls (#33) c28a514
- A date that slips past due without being marked done drafts an Overdue follow-up to whoever owes it 24c4b07
- A deal whose closing is marked done leaves the clock for a Closed list, and can be reopened (#28) 4f83b8c
- Under the clock, a This week list gives every open date in the next seven days, day by day, readable on a phone without scrolling sideways (#27) cfd3c1e
- Each deal shows a Messages record: every reminder sent for it, newest first, with who, when and the exact words approved (#26) 2f6d6ec
- The agent can decline a reminder with a reason, so a message they chose not to send stops asking and the record says why (#24) ec4452c
- An agent over MCP can correct or remove a party, remove a dropped date and remove a deal, as the page and the terminal can (#19) 6354d9b
- New deal shows every computed date before it is opened, and a refused form keeps what was typed (#22) 6c86e19
- A realtor reads the README in one go: what it does, a five-minute walk through the sample deals, and what is not real yet, with the technical part kept separate (#18) eec530a
- The agent can correct a party's name or contact, remove a party, and remove a date the contract dropped (#16) f62bfce
- The agent can edit a reminder's words before sending, and the sent record keeps exactly what was approved (#10) fa34ea2
- An agent can open a deal, add a date, add a party and reopen a date over MCP, like on the page (#14) d8f7cb2
- Sample deals look like today on every boot, not like the day the database was made (#11) 7eadc93
- The template's notes scaffold is gone, so every door is about deals (#8) ab2ee77
- Build deal-clock (#2) 8969e75
- Start deal-clock 767a5e7
An open date that slips past due now drafts an "Overdue follow-up" the morning after, addressed only to the party who owes it. Sending, declining and editing work on it like the other reminders. The full bun test passes (116 tests). I could not run bun x tsc --noEmit: the installed tsc (7.0.2) only prints its help text here, so the type check did not run. I ran bun scripts/lint-design.ts, which printed nothing. The issue and the task say scripts/design-lint.ts, but the file in the repo is named lint-design.ts. There is no scripts/gate.ts or scripts/fast.ts in this repo.
What changed
- New moment
late(src/reminders.ts): it goes out the day after the due date.recipients()takes the moment and returns onlydeadline.owesforlate. The words say the date passed, what is owed, and ask for an update, signed by the agent. - Stays on the clock while open (src/reminders.ts): a new
pending(draft, day)replaces the "goes out today or was missed" filter that the clock page and the terminal each wrote by hand.latestays listed under "Reminders for today", shown as "Was due…", for as long as the date is open and the draft is unsent. Marking the date done removes it. Moving the date drops the old one and drafts a fresh one for the new date. - Accepted everywhere (src/deals.ts, src/routes.ts, src/mcp.ts,
contract/openapi.json):isMoment, the API and MCP enums, and the regenerated openapi.json takelate./deals/:id/icsis unchanged. - Migration (src/db.ts): one appended migration rebuilds
reminderandreminder_declinedwith'late'in the CHECK, copying every row and column. - Date sheet (src/pages/sheet.ts): the sheet skips a moment with no recipients, so a deal with no party for the owing role doesn't crash it.
- Clock footnote (src/pages/clock.ts): the footnote now mentions the follow-up.
- README: the five-minute walk gets one sentence about it.
- Sample data: unchanged. Harbor View's overdue inspection date already gives the buyer a waiting
latedraft, and a new test pins that. - Tests:
- A date due two days ago drafts one
latedraft, to the owing buyer only. - Sending keeps the edited words and stores
late. - Moving the date gives a fresh follow-up, declining records the reason, and marking it done drafts none.
- A database built by the old schema keeps its sent and declined rows through the migration, and
lateinserts afterwards. - I changed one existing test's expected list in
src/deals.test.tsto include the newlaterow. The old list was right for the old behaviour.
- A date due two days ago drafts one
Not done
contract.json: unchanged. Sending stays under the existingdealupdate permission throughpermit.- Rebase:
origin/mainhad nothing newer, so the rebase was a no-op. The change to sent records is additive, so #23 should merge cleanly.
To try it: open the clock on a fresh database. Harbor View's overdue inspection shows an Overdue follow-up to the buyer under "Reminders for today". Open the date's sheet to edit and send it. Marking the date done makes it disappear.
All four of sentinel's points are done and pushed. The full bun test passes (122 tests) after merging in the latest main, and bun scripts/lint-design.ts prints nothing. I did not run bun x tsc --noEmit, because the installed tsc (7.0.2) only prints its help here.
pendingtests.src/deals.test.tsnow covers the rule:- A late draft is listed on the day it goes out and three days later, but not the day before it goes out.
- It drops once it is declined, and comes back after the decline is undone.
- It drops once sent, and once the date is marked done.
- The before and day-of drafts drop once the date has passed.
- A new terminal test in
src/terminal.test.tsshows the late draft underr, only for the party who owes the date and markedlate. It disappears from the list once sent.
- Sample test. I rewrote it in
src/sample.test.tswith top-level imports and a realWho, and removed theas never. - Widening. I reverted the
"late"widening insrc/sample.ts. - Header comment. The
src/reminders.tsheader now reads "three days before and the morning of", plus the follow-up, and wraps cleanly.
main moved while I worked, and a force push is refused. So I merged main into the branch with a merge commit instead of rebasing. The branch history is therefore additive.
The visual check of the signed-in clock is still on my word. I did not open the preview.
An open date that slips past due now drafts an "Overdue follow-up" the morning after, addressed only to the party who owes it. Sending, declining and editing work on it like the other reminders. The full
bun testpasses (116 tests). I could not runbun x tsc --noEmit: the installedtsc(7.0.2) only prints its help text here, so the type check did not run. I ranbun scripts/lint-design.ts, which printed nothing. The issue and the task sayscripts/design-lint.ts, but the file in the repo is namedlint-design.ts. There is noscripts/gate.tsorscripts/fast.tsin this repo.What changed
late(src/reminders.ts): it goes out the day after the due date.recipients()takes the moment and returns onlydeadline.owesforlate. The words say the date passed, what is owed, and ask for an update, signed by the agent.pending(draft, day)replaces the "goes out today or was missed" filter that the clock page and the terminal each wrote by hand.latestays listed under "Reminders for today", shown as "Was due…", for as long as the date is open and the draft is unsent. Marking the date done removes it. Moving the date drops the old one and drafts a fresh one for the new date.contract/openapi.json):isMoment, the API and MCP enums, and the regenerated openapi.json takelate./deals/:id/icsis unchanged.reminderandreminder_declinedwith'late'in the CHECK, copying every row and column.latedraft, and a new test pins that.latedraft, to the owing buyer only.late.lateinserts afterwards.src/deals.test.tsto include the newlaterow. The old list was right for the old behaviour.Not done
contract.json: unchanged. Sending stays under the existingdealupdate permission throughpermit.origin/mainhad nothing newer, so the rebase was a no-op. The change to sent records is additive, so #23 should merge cleanly.To try it: open the clock on a fresh database. Harbor View's overdue inspection shows an Overdue follow-up to the buyer under "Reminders for today". Open the date's sheet to edit and send it. Marking the date done makes it disappear.
Closes #25