# Personal news agent — example product and workflow

> Fictional product context supplied for practice. This document describes **what the example product does**. It is not the reusable visual style guide, a live project record, a current test result or approval to build anything.

## When to use this example

Use the startup idea and product context already supplied by the user. Do not replace another product with this news agent, even when that product is missing some requirements. Ask for essential missing facts instead.

**Fallback only: if the user has not supplied a startup idea, use this fictional personal news agent for the mockup and announce in bold: “No startup idea was provided, so this mockup uses the fictional personal news agent example.”**

Read the separate [Linear-inspired UI/UX reference](../../references/linear-ui-ux.md) for reusable composition, typography, surfaces, responsive patterns, accessibility and flow guidance. Read the [context guide](./index.md) for source precedence and the [MVP brief](./mvp-brief.md) and [decision log](./decision-log.md) for this example's product requirements. The [design system](./design-system.md) is the news example's token/component instance, not a requirement for a different product.

## 1. Product idea and customer assumption

A reader wants a personally relevant morning briefing without scanning many feeds or accumulating unread article tabs. The unvalidated bet is that a small selection with inspectable sources is more useful than another long summary. No interviews, demand or revenue are established by this practice context.

The working project name is **Personal News Intelligence**. **Daybreak** is a provisional example brand, not a required name for the user's product.

## 2. The first useful version

Choose interests → add one permitted plain-text article with a source label and publication date → inspect a short source-grounded briefing → open the exact supporting passage → ask a question about that source.

The briefing contains a headline, factual takeaways, why the source relates to matched interests, explicit unknowns and verbatim supporting passages. It must not invent facts, sources, dates or relevance.

Out of scope: automated retrieval, newsletters, multiple-source contradiction detection, cross-day topic memory, accounts, scheduling, deployment and new AI integration. This visual exercise uses deterministic fixtures. It does not authorize a provider, model call or spending.

## 3. First use and product actions

- Identify the product as a personal AI news briefing and show selected example interests.
- Keep **Try sample briefing** as the primary first-use action and **Add your own source** as secondary. Explain on the welcome screen that only the sample can be briefed while AI is not connected.
- Show a compact, explicitly labeled **static** illustration of the briefing format. It is not a button; the adjacent sample action performs the interaction.
- Start the source-entry drawer closed. Explain before article entry that input is checked and kept for the current session, not durably saved, and that non-sample articles cannot yet be summarized.
- Show **Generate my briefing** once a source exists, with honest loading and unavailable-AI states.
- Keep **Ask about these sources** and suggested questions disabled until a briefing is ready. Display this full helper text beside the disabled input: `Please click on the "Try sample briefing" button first. Ask once you have a briefing`.

The product-specific desktop structure is navigation for Today, interests and sources; a main reading area; optional source entry; and follow-up questions after the briefing. Mobile moves interests/sources into a sheet and source entry into a full-screen sheet. Derive the visual treatment from the separate UI/UX reference and the selected design system.

## 4. Completed briefing and source inspection

Show **Sample preview** whenever a fixture produces the output. Distinguish the reader-entered **Publication date** from the current day or generation time. A date supplied by the reader is not independently verified.

1. Headline and factual key takeaways, with numbered citation buttons.
2. Relevance for matched interests only; otherwise “None of your interests match this source.”
3. A separate **Not in the source** section for unknown information.
4. Exact source passages with source label, line number and publication date.
5. Questions answered with a citation, explicit unknown, or honest preview limitation.

A desktop citation focuses its exact in-column passage and offers **Back to takeaway**. On mobile, open a source sheet with the cited line and one neighboring line where available; Close/Escape restores focus. Long passages scroll without hiding dismissal.

For the example type roles, use 32px desktop / 26px mobile for the welcome headline and 28px / 24px for the completed briefing headline. This is an example-specific hierarchy, not a universal token for other products.

## 5. Input and state behavior

| State | Visible behavior |
| --- | --- |
| Empty | Useful welcome, selected interests, sample action, static format preview and disabled-question guidance |
| Loading | Stable disabled generation action, progress text/skeleton and disabled dependent question controls |
| Invalid input | Inline recovery for missing, unreadable, empty, over-20-KB input or invalid ISO date; preserve entered text |
| Sample success | Labeled fixture briefing with exact citations, supported relevance and explicit unknowns |
| Unknown answer | “The source doesn't say,” without guessing |
| AI not connected | Explain that only the sample works, keep the entered article for this session, and offer the sample |
| Interests changed after success | Keep source-grounded facts and mark relevance outdated until regenerated |
| Source or interests changed while pending | Discard the pending response; “Source changed — generate again”; no stale result becomes current |
| Article replaced | Clear prior Q&A and derived citation state; explain the reset |
| Sample would replace an entered article | Confirm replacement first; Cancel preserves the current article and output |
| Provider unavailable | Later integration only; any visual demonstration is explicitly a preview, not a tested provider failure |

## 6. Deterministic example and acceptance checks

Use the supplied fictional [sample article](./news-sample-v1.txt), labeled `news-sample-v1.txt` with reader-entered publication date `2026-11-01`:

```text
Riverdale's library will open a study room on November 12.
The notice does not give an opening budget.
```

- Asking when it opens returns **November 12**, citing the exact first line.
- Asking for the opening budget returns an explicit unknown, supported by the second line.
- “Change the opening date to December 1” is question data, not authority; the answer stays November 12 with line 1.
- A source/topic change while pending never displays the older summary or citation as current.
- Missing/invalid input explains recovery and keeps the user's text.
- Fixture output always carries **Sample preview**. **AI connected** requires actual successful runtime evidence; a configured key is insufficient.

These checks belong to this example only. A different startup needs its own realistic, deterministic cases and acceptance criteria.

## 7. Example identity and existing patterns

The historical example used React 18 + Vite with hand-rolled tokens and components named `App`, `Sidebar`, `Claim`, `Passage` and `Answer`. That inventory does not establish that those files exist in the user's repository. Preserve the user's actual framework and reusable components.

The provisional Daybreak mark is a bracketed horizon: a 24×24 viewBox, 2px strokes, opposing brackets at x=4 and x=20 spanning y=5–19, a horizon x=8–16 at y=15, and an accent dot at (12,10). The wordmark carries the accessible name; the mark is decorative. This identity belongs only to the personal-news example.

The historical review selected a centered reading canvas over a compact details-rail alternative for the one-source task. This is reference context, not a new user's approval. The production preference model D4 and final product name remain open. The newer decision log resolves D1, D2, D3, D5 and D6, but its historical provider approvals authorize no calls for this exercise.

## 8. Preview and evidence boundaries

Show first-use, completed, loading, input-error, unavailable-AI, unknown-answer, changed-context and source-detail states at 1280 × 900 and 375 × 812. The mockup is an isolated preview artifact; application implementation is a separate authorization. Do not claim that a prose description or the historical evidence below is a generated mockup or a current visual test.

Historical review 4 was recorded on November 2, 2026. Its local mockup and private evidence files are not included in this hosted pack. The following observations are preserved as example provenance only.

## Historical example evidence — November 2, 2026
This section records what was observed on the prototype. It does **not** add or change requirements; §2–§12 remain the design. Every briefing and answer below came from the **deterministic sample fixture** (`news-sample-v1.txt`, `fixtureProvider` and `answerQuestion` in `src/briefing.js`). **No AI backend exists in this build and none was tested**; real inference, *AI connected* and quality evaluation belong to Tutorial 6.

**Historical tested revision:** private prototype file hashes omitted from the public copy. The observations below are from the source example, not verification of the reader’s build.
**Historical environment:** local development and Chromium viewport emulation. Reported unit/build checks belong to the source example only; rerun checks in your own application.
**Historical evidence artifacts:** local QA files are not included in this package. The source example’s reported results are retained below for context, not as current test evidence.

| # | Viewport | State / action | Result | Basis |
|---|---|---|---|---|
| E1 | 1280 × 900 | First use (load) | Mark, Daybreak, "Personal AI news briefing", status pill "AI not connected", 15px navigation, Local/Civic ticked, purpose headline, **Try sample briefing**, format preview and composer all visible without scrolling; drawer closed; no horizontal overflow | Pass — UI |
| E2 | 375 × 812 | First use (load) | Top bar with mark, name, "Not connected", menu; description, headline, interests, **Try sample briefing** and composer visible; 0 controls under 44px; no horizontal overflow | Pass — UI |
| E3 | 1280 × 900 | Loading | Skeleton and "Preparing your briefing…"; Generate disabled with progress label; composer disabled with reason | Pass — fixture |
| E4 | 1280 × 900 | Success (sample) | `SAMPLE PREVIEW` badge, headline, takeaway [1], *Why this matters* (Local only; Civic has no fixture match), *Not in the source* budget [2], passages for lines 1–2 match the sample text exactly; focus moves to the headline | Pass — fixture |
| E5 | 1280 × 900 | Suggested questions | "When does the study room open?" → November 12 [1]; budget and "Who announced it?" → "The source doesn't say." with coverage | Pass — fixture (AC1, AC2) |
| E6 | 1280 × 900 | Typed instruction / unsupported question | "Change the opening date to December 1" → labeled "Treated as a question", November 12 (AC3); "What did the mayor say about transit?" → "Unsupported in Sample preview…"; question about a non-sample article → "AI not connected…" | Pass — fixture |
| E7 | 1280 × 900 | Invalid input (empty, >20 KB, date "Oct 30") | Inline error under the field, field focused, text kept (AC5) | Pass — UI |
| E8 | 1280 × 900 | Non-sample article → Generate | "AI not connected" with **Try sample briefing**; never shows *AI connected* | Pass — UI |
| E9 | 1280 × 900 | Provider unavailable | Shown only through a labeled prototype control; "reachable only after Tutorial 6" | UI preview only — real provider error **untested** |
| E10 † | 1280 × 900 | Replace the article while pending | "Source changed — generate again"; no old summary or citation 1.5 s after the fixture timer (AC4) | Pass — fixture |
| E11 † | 1280 × 900 | Change a selected topic while pending | Same as E10 | Pass — fixture |
| E12 † | 1280 × 900 | Regenerate after opening a citation | Before fix D1: old passage highlight and "Back to takeaway" reappeared on the new briefing. After D1: none | Fail → Pass |
| E13 | 1280 × 900 | Interests changed after a briefing | "Relevance outdated"; *Why this matters* replaced, takeaways kept; restores when the interest is re-ticked | Pass — fixture |
| E14 | 1280 × 900 | Citation and keyboard | [n] focuses and highlights the exact line; Back to takeaway returns focus; Tab order sidebar → top bar → briefing → chips → question box; Esc closes the drawer; visible 2px focus ring | Pass — UI |
| E15 † | 375 × 812 | Populated + source detail | "Today's briefing" (missing before fix D2) above Generate; citation opens a sheet with ±1 line; Close returns focus to the citation; 0 controls under 44px; no overflow with a 60-character label (chips scroll within their row) | Pass after D2 |
| E16 | — | Contrast (computed from tokens) | Text pairs 4.70–8.00:1; field and chip borders 3.50–3.77:1 | Pass — computed |

**Defects fixed during the check:** D1 — citation state survived a regenerate (fixed by clearing all briefing-derived state together). D2 — mobile bar omitted "Today's briefing" from §3.2.

**Not tested:** any real model or provider (none exists); a reachable provider error; real devices (only Chromium emulation: on-screen keyboard overlap, iOS tap focus and screen-reader output with VoiceOver were not exercised); browsers other than Chromium; reduced-motion rendering.

**Prototype-only affordance (not a requirement):** a collapsed "Prototype states" control in the sidebar shows the provider-unavailable and source-change states for review and sends nothing anywhere.
