# Build brief: Follow-up Desk

## Person and job

A solo consultant needs to continue promising client conversations. The person wants to open a small app, see today's and overdue next actions, and change the action/date without duplicating the contact. Use fictional data during development.

## Essential behavior

1. Add a contact: name, organization, conversation note, next action and due date. Name, next action and a real calendar date are required.
2. Today's view contains incomplete actions due today or earlier, ordered by due date. Future contacts remain visible in All contacts. Completed actions have a separate view.
3. Edit an existing contact's note, action or date using a stable ID. Do not duplicate a contact because an action changed.
4. Mark an action complete and reopen it. This changes stored state, not a message sent or a client result.
5. Save in the current browser's localStorage. Reloading/reopening at the same origin should retain information. Report a storage error honestly; never show success if saving failed.
6. Search names, organizations, notes and actions. Download a local JSON backup.

## Boundaries

Plain HTML/CSS/JavaScript; no frameworks, external libraries, API keys, remote services, account system, email integration or automatic messages. No analytics, fonts or scripts loaded from a remote site. Serve locally on127.0.0.1. Browser storage is single-browser/single-origin, not a company database or sync. Do not deploy. Additions outside this scope need review of their purpose before implementation.

## Interface

One clear work queue and contact editor. Readable labels, keyboard-operable controls, error/status messages and useful empty views. Responsive small-screen layout. Input values are text, never inserted as HTML.

## Sample work

Fictional Maya: workshop-date question due today. Fictional Leo: sample preparation overdue. Fictional Priya: a future check-in. Dates can be relative to the actual local date. Keep fictional labels visible.

## Acceptance criteria

Use ACCEPTANCE-TESTS.md. Tests should prove behavior, not just echo implementation. Test current/overdue/future dates, completion/reopening, edit without duplication, invalid date/action, read/write errors, reload/reopen and a useful mobile/keyboard flow. Distinguish deterministic code tests from actual browser tests. Keep raw failures and changes. Never claim a test ran when it was only proposed.
