docs: add pre-release policy to agent instructions
This commit is contained in:
12
CLAUDE.md
12
CLAUDE.md
@@ -5,6 +5,12 @@
|
||||
- **Purpose**: Build and maintain a self-hosted travel companion web app (fork of AdventureLog).
|
||||
- **Stack**: SvelteKit 2 (TypeScript) frontend · Django REST Framework (Python) backend · PostgreSQL + PostGIS · Memcached · Docker · Bun (frontend package manager)
|
||||
|
||||
## Pre-Release Policy
|
||||
Voyage is **pre-release** — not yet in production use. During pre-release:
|
||||
- Architecture-level changes are allowed, including replacing core libraries (e.g. LiteLLM).
|
||||
- Prioritize correctness, simplicity, and maintainability over backward compatibility.
|
||||
- Before launch, this policy must be revisited and tightened for production stability.
|
||||
|
||||
## Architecture Overview
|
||||
- Use the API proxy pattern: never call Django directly from frontend components.
|
||||
- Route all frontend API calls through `frontend/src/routes/api/[...path]/+server.ts`.
|
||||
@@ -68,7 +74,8 @@ Run in this exact order:
|
||||
- Styling: prefer DaisyUI semantic classes (`bg-primary`, `text-base-content`)
|
||||
- CSRF handling: use `/auth/csrf/` + `X-CSRFToken`
|
||||
- Chat providers: dynamic catalog from `GET /api/chat/providers/`; configured in `CHAT_PROVIDER_CONFIG`
|
||||
- Chat model override: composer text input for per-provider model selection; persisted in `localStorage` key `voyage_chat_model_prefs`; backend accepts optional `model` param in `send_message`
|
||||
- Chat model override: dropdown selector fed by `GET /api/chat/providers/{provider}/models/`; persisted in `localStorage` key `voyage_chat_model_prefs`; backend accepts optional `model` param in `send_message`
|
||||
- Chat context: collection chats inject multi-stop itinerary context; system prompt guides `get_trip_details`-first reasoning
|
||||
- Chat error surfacing: `_safe_error_payload()` maps LiteLLM exceptions to sanitized user-safe categories (never forwards raw `exc.message`)
|
||||
|
||||
## Conventions
|
||||
@@ -77,7 +84,8 @@ Run in this exact order:
|
||||
- Commit and merge completed feature branches promptly once validation passes (avoid leaving finished work unmerged).
|
||||
|
||||
## .memory Files
|
||||
- At the start of any task, read `.memory/knowledge.md` and `.memory/decisions.md` for project context.
|
||||
- At the start of any task, read `.memory/manifest.yaml` to discover available files, then read `system.md` and relevant `knowledge/` files for project context.
|
||||
- Read `.memory/decisions.md` for architectural decisions and review verdicts.
|
||||
- Check relevant files in `.memory/plans/` and `.memory/research/` for prior work on related topics.
|
||||
- These files capture architectural decisions, code review verdicts, security findings, and implementation plans from prior sessions.
|
||||
- Do **not** duplicate information from `.memory/` into code comments — keep `.memory/` as the single source of truth for project history.
|
||||
|
||||
Reference in New Issue
Block a user