# Local knowledge and database — 0.5.1

The installation stores its SQLite database at `private-data/hearth.sqlite`. The Knowledge screen displays the actual path. This database runs locally; no cloud database account is required. Keep private-data out of public ZIPs, Git repositories and website uploads.

## What learning means

Saved chats can be indexed automatically. Research snippets and fetched page text are stored with HTTPS source URLs when learning is enabled. Relevant entries are retrieved using SQLite FTS5 and provided as context on later tasks. Task experience records approaches and execution outcomes. This does not retrain model weights, certify facts, or create new tools. Old model answers and web pages may be wrong; the assistant treats them as untrusted source material.

Knowledge and task records are separated by profile. Profiles are labels, not a security boundary; use separate Windows accounts for private family data. Inspect/read/delete entries from Knowledge. Clear operational experience separately. Delete saved conversations to remove their indexed copy. Deletion does not remove independent exports or backups. Turning learning off stops new automatic knowledge/experience entries; existing knowledge remains searchable. Turning history off stops new durable task and conversation records, but does not erase old records.

## Tables

- memory: manually saved profile preferences.
- chats and drafts: saved conversations and current draft.
- state and agents: profile settings and custom assistant instructions.
- knowledge: title, content, source URL, kind and timestamps.
- knowledge_search: FTS5 searchable index.
- experience: approach, completion/failure counts, latest execution evidence.
- task_records: durable task status, bounded event log, result, error and retry inputs. Attachment bytes are not duplicated; reattach them before retrying.

## Research and recovery

Offline mode blocks panel web research and downloads. Disable it and enable automatic research in Settings, or explicitly enable Web for a conversation. An explicit per-chat Web-off choice overrides automatic research. Search queries go to Bing and page requests go to selected public HTTPS websites. The panel reads a bounded number of sources; it cannot examine the entire internet or guarantee correctness.

Set retries (0–3), pages per search (1–3), model passes and task time budget. Fallback models must already be installed and explicitly listed in Settings. No model is silently downloaded. After a file or command approval, automatic continuation can verify the outcome and propose the next action. Every additional file write or command still requires review. Task History shows interruptions/errors and supports retry for eligible chat tasks. Pending approvals are held in memory and expire; review/retry the original task after restarting.

## Backup and restore

Quit the panel fully before copying the entire private-data folder to a private backup location. Restore only while the panel is closed. Do not replace a live database. Keep artifacts and file-change backups with the database if you need generated images and undo records. The installer preserves private-data on normal upgrades/uninstall; it never bundles your history for another tester.
