Setting up live web search
Without a key, searches use the built-in demonstration corpus — clearly labelled in the UI and useful for evaluating the workflow offline.
For live search: set SEARCH_PROVIDER=brave and SEARCH_API_KEY to a Brave Search API key in the environment. Results attach as sources with retrieval dates; you still grade and stance them manually.
Cost controls: 60 searches per workspace per hour (fixed-window), every query logged with provider and result count (visible to the platform operator).
Other providers: the adapter is one function in src/lib/domain/search.ts — swap the fetch call and response mapping.