k d1ecadb552 docs: add CLAUDE.md — AI-agent project entry doc
Convention file every new Claude session reads first when opening this
repo. Encodes the invariants that aren't visible from any single file:

  - Five trading-layer non-negotiable rules (sys2 manage-only, released_at,
    eff_* freezing, HL effective leverage, per-wallet locks).
  - Module map with the input/output function of every service file.
  - System 1 vs System 2 comparison table — the single most important
    distinction in this codebase.
  - /adopt flow walkthrough, including the race-protection points fixed in
    7599d49.
  - 8-point code-review checklist to run against any trading change.
  - ADR for why sys2 became manage-only (v2.0).
  - "Looks like a bug but isn't" + "Known issues not yet fixed" sections to
    save the next AI agent from chasing ghosts or shipping regressions.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 11:04:14 +08:00
2026-04-20 23:05:59 +08:00
2026-04-20 23:05:59 +08:00
2026-04-21 19:33:24 +08:00
2026-04-21 19:33:24 +08:00

  1. 填 backend .env(生产值):

POSTGRES_PASSWORD=强密码 FRONTEND_URL=https://你的前端域名 ENCRYPTION_KEY=之前生成的那个 AI_API_KEY=sk-... ENVIRONMENT=production 2. 改前端 .env.local

NEXT_PUBLIC_API_URL=https://api.你的域名.com NEXT_PUBLIC_WS_URL=wss://api.你的域名.com 启动:

cd backend docker compose up -d

S
Description
No description provided
Readme 718 KiB
Languages
Python 99.6%
Shell 0.3%
Dockerfile 0.1%