From e6f6e1c19fcf91415038921cce31efc0893ae69d Mon Sep 17 00:00:00 2001 From: Space-Banane Date: Fri, 26 Jun 2026 23:52:28 +0200 Subject: [PATCH] docs: update CLAUDE.md files for static legal model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove DB-backed legal document system references across all repos. Update root CLAUDE.md: replace "Legal System" section with static document workflow; add step to remind Paul about material-change emails. Update api/: remove LegalDocument model, Legal route table, legal:write from permission matrix, whoami grace-period bullet. Update frontend/: update /terms /privacy page descriptions, remove legal-service.ts, remove legal types, replace banner/grace-period behaviors with static model. Update queue-worker/: remove legal-update.ts worker row and queue ref. Update mcp-server/: remove Legal tool category, tool count 89 → 85. Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 8d505db..a7c4af7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -18,7 +18,6 @@ Auth: `BETTERNEWS_API_KEY` env var, sent as `Authorization: Bearer` on every req | `src/tools/user.ts` | 7 user/profile tools | | `src/tools/moderation.ts` | 11 moderation tools | | `src/tools/tickets.ts` | 5 support ticket tools | -| `src/tools/legal.ts` | 4 legal document tools | | `src/tools/blog.ts` | 7 blog tools | | `src/tools/api-keys.ts` | 4 API key tools | | `src/tools/sessions.ts` | 3 session tools | @@ -118,15 +117,6 @@ Format: `tool_name` → file → `METHOD /api/route` → minimum auth | `reply_to_ticket` | `POST /api/tickets/{id}/reply` | `tickets:write` | | `update_ticket_status` | `PATCH /api/tickets/{id}/status` | `tickets:moderate` Mod/Admin | -### Legal — `tools/legal.ts` - -| Tool | Route | Auth | -| ---- | ----- | ---- | -| `get_terms_of_service` | `GET /api/legal/current/terms_of_service` | public | -| `get_privacy_policy` | `GET /api/legal/current/privacy_policy` | public | -| `list_legal_documents` | `GET /api/legal` | optional; Mod/Admin see drafts | -| `accept_legal_documents` | `POST /api/legal/accept` | User+ | - ### Blog — `tools/blog.ts` | Tool | Route | Auth |