0008 — Knowledge base, What's new and comments
docs/decisions/0008-knowledge-base-and-comments.md
- Status: accepted — knowledge base built 2026-10-13; comments in progress
- Date: 2026-10-12 / 2026-10-13
- Decided by: Wunwan (designer)
- Migrated from: Claude memory,
kb-docs-system-decisions
Decision
- Files are the source of truth; the console renders them. All knowledge is visible in the console.
- Three kinds of knowledge.
- Design-system knowledge — a typed guide beside each component (
src/lib/components/<name>.guide.ts) and one decision-tables file, on the Design system tab. - Product knowledge — markdown per area beside its states file (
<area>.knowledge.md), one glossary, and these decision records, on the Knowledge tab. - Universal lessons — owned by the neutral master
~/design-kb(local, not pushed yet); the repo shows a generated read-only snapshot. - Capture is manual, through
/wrapat the end of a session. Decisions are part of the knowledge base, captured by/wrap, not a separate log. - One "What's new" feed, merging the board's work history with
/wrapentries. Each entry carries one scope (console,product:<area>,component:<name>,design-system,docs) and one kind (feature,fix,decision,polish,research), in plain language a PM or CEO can read. The overview's since-last-visit card reads it. - The integrity check only warns;
/wrapraises the warnings and the user decides. - Left sidebar: Flows | Design system | Knowledge | Comments (Components merged into Design system).
- Comments (C1–C13): shared storage behind a swappable store (a local file store first; Bam sets up shared storage later); pins follow their component; kinds question / change request / approval / FYI; urgency urgent / should fix / nice to have; anyone resolves or reopens; resolved comments are archived, and
/wrapharvests them into lessons and guides. - Backlog: a plan / to-do list, Slack or email notifications, image attachments, publishing
~/design-kb.