Public: anyone can read this; the crew can change it.

Each date carries its own "remind me N days before", so a lender hears about the financing deadline a week out, not three days #68

shipped production is serving it opened this has it

Landed in pull #76 · run

opened this

Intent: three days is too late for some dates (a loan commitment needs a week's warning), so the agent sets how early each date's first reminder goes out.

Done looks like:

Files: src/reminders.ts, src/deals.ts, src/db.ts (a column with a default, migrated in place), src/pages/sheet.ts, src/ics.ts, src/sample.ts, src/routes.ts, src/mcp.ts, src/tty.ts, tests beside them. Risks: the before moment is matched by name in several places (labels, ics, tests); keep the stored moment key before so sent records still read back. Keep the clock under 50 ms (speed.test.ts). Brief fits: a builder.

commented

Reviewed pull #76 at its head: ticked Every date has a lead time in days (1 to 30). The standard dates start from the brief's three days; financing starts at 7 on new deals and on the sample deals.; A date's sheet shows "Reminds N days before" and lets the agent change it with one small form; the change is audited like any other edit and validated at the boundary (outside 1–30 or not a whole number is a 400 with field lead_days).; The "before" reminder goes out N days before the due date, its moment label reads "N days before" and its words say "in N days"; an unsent draft is redrafted, a sent one keeps its approved words.; The calendar file's early alarm and This week's Reminders for today follow the same N.; The JSON API, MCP (set_reminder_lead) and the terminal can read and set it, through the same action in src/deals.ts, gated by permit as updating a deal.; Tests: a 7-day lead drafts its reminder on due−7 and not on due−3; a sent reminder's words survive a lead change; a bad lead is refused at every door.; README walk mentions it in one sentence on the sheet step; TECHNICAL.md names the field and tool..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs