docs: clear docs-truth drift (#230)

- Archive point-in-time records into docs/archive (AUDIT_REPORT,
  README-heidi-implementation, DATA_ROOM_GUIDE — the Lex data room was never
  built and its siblings were already archived); add docs/archive/README.md.
- Delete .claude/.ralph-loop.local.md, a committed agent-loop state file
  whose referenced plans no longer exist.
- Fix stale locations: lib/api (no lib/services), app/globals.css @theme
  (no tailwind.config.js on Tailwind 4), migration filename placeholder.


Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
CatoandClaude authored and GitHub committed 2026-10-19 13:58:16 +02:00
1 parent 39c7fab5af
commit 53cf95dc0b
8 files changed
+15 -97

No files matched your search

-86
View File
@@ -1,86 +0,0 @@
# Ralph Loop State
**Status**: ACTIVE
**Iteration**: 12
**Started**: 2024-01-13T22:20:00+01:00
**Max Iterations**: 50
**Completion Promise**: EXPERTISE_REFRESH_DONE
## Mission
Build Botsmann as a three-tier private AI node ecosystem: individuals, professionals, and their connections.
## Current Task
P12 - RAG Demo Complete - Ready for Next Phase
## Completed
- P9: Initial audit plan created
- P10: **FULL SITE AUDIT** - See `.claude/FULL_SITE_AUDIT.md`
- P11: **STRATEGIC DOCUMENTS CREATED**:
- `.claude/FULL_SITE_AUDIT.md` - What's broken
- `.claude/BILLION_DOLLAR_STRATEGY.md` - Technical architecture
- `.claude/HONEST_REBUILD_PLAN.md` - Consulting-first bootstrap
- `.claude/THREE_TIER_ECOSYSTEM.md` - Complete business model
- P12: **RAG DEMO BUILT**:
- `/lib/rag/search.ts` - Keyword-based search with TF-IDF-like scoring
- `/lib/rag/index.ts` - Module exports
- `/data/demo/swiss-german-knowledge.json` - 15 knowledge chunks
- `/app/api/demo/chat/route.ts` - Chat API with Zod validation
- `/app/demo/page.tsx` - Beautiful chat UI with suggestions
- Homepage "Try the Demo" button added
## The Vision
Three-tier private AI node ecosystem:
1. **Individuals**: Personal nodes at home (doctor, lawyer, advisor AI)
2. **Professionals**: Business nodes for firms (shared knowledge base)
3. **Connections**: Clients temporarily share data with professionals
## Progress Made (This Session)
### Fixed (Previous)
1. Homepage stats - Changed from fake "6+ AI Bots" to honest values
2. ConsultationForm - Now calls real `/api/contact` endpoint
3. Created `/api/contact` route - Stores submissions to JSON file
4. Fixed bot try links - Only bots with actual GPT links marked as "live"
5. Homepage featured bots - Only Heidi marked live, others marked "soon"
6. BotPageTemplate - Now provides `hasExternalLink` boolean
7. Homepage hero - "Your Data. Your AI. Your Control."
8. Featured section - "Private AI Assistants" with honest descriptions
9. How It Works - Updated to consulting flow
10. CTAs - Changed to "Book a Consultation" and "See How It Works"
### Built (This Session)
1. RAG Search Module (`/lib/rag/`)
- Keyword-based search with TF-IDF-like scoring
- Question matching boost
- Template-based response generation
2. Swiss German Knowledge Base (15 chunks)
- Greetings, numbers, food, directions
- Culture, quiet hours, dialects
- Work, transport, shopping, expressions, weather
3. Demo Chat API (`/app/api/demo/chat/route.ts`)
- Zod validation
- Returns sources with relevance scores
4. Demo Page (`/app/demo/page.tsx`)
- Beautiful chat interface
- Suggested questions
- Source citations
- Technical details section
5. Homepage "Try the Demo" button
### Still Pending
1. Set up Supabase for production data persistence (requires user account setup)
2. Extend RAG demo with Ollama integration (for real LLM responses)
### Short-term Goals
1. First consulting client
2. Technical blog posts
3. Individual node MVP
+8 -8
View File
@@ -77,14 +77,14 @@ import { BOTS } from '@/data/bots';
**In Practice:**
| Layer | Responsibility | Location |
| ---------- | ---------------- | --------------- |
| Pages | Routing, layout | `app/` |
| Components | UI rendering | `components/` |
| Hooks | State logic | `lib/hooks/` |
| Services | API calls | `lib/services/` |
| Utilities | Pure functions | `lib/` |
| Types | Type definitions | `types/` |
| Layer | Responsibility | Location |
| ---------- | ---------------- | ------------- |
| Pages | Routing, layout | `app/` |
| Components | UI rendering | `components/` |
| Hooks | State logic | `lib/hooks/` |
| API | Route helpers | `lib/api/` |
| Utilities | Pure functions | `lib/` |
| Types | Type definitions | `types/` |
**Bad:**
+1 -1
View File
@@ -208,7 +208,7 @@ User → components/*Form.tsx
| `data/bots.ts` | Bot configurations | Adding/editing bots |
| `app/layout.tsx` | Root layout | Global UI changes |
| `lib/config/navigation.ts` | Nav config (SSOT) | Adding nav items |
| `tailwind.config.js` | Theme config | Styling changes |
| `app/globals.css` | Theme (`@theme`) | Styling changes |
| `types/*.ts` | Type definitions | Data structure changes |
---
+3 -2
View File
@@ -57,8 +57,9 @@ Current state: 11 migrations applied, 13 tables in the schema.
### Adding one
1. Add `supabase/migrations/0NN_what_it_does.sql`. Keep it forward-only and
non-destructive, or the deploy will refuse it.
1. Add `supabase/migrations/<NNN>_what_it_does.sql` (the next number
after the highest one there). Keep it forward-only and non-destructive, or
the deploy will refuse it.
2. Open a PR. Merging deploys it and applies it.
A genuinely destructive change is applied by hand, then recorded so the
File renamed without changes.
File renamed without changes.
+3
View File
@@ -0,0 +1,3 @@
# Archive
Historical records. They describe the day they were written, not the code today; do not act on them.