From 1401c5703d2f1eedbeb2ade2aedc053e80661c49 Mon Sep 17 00:00:00 2001 From: gahusb Date: Fri, 22 May 2026 03:27:41 +0900 Subject: [PATCH] =?UTF-8?q?docs(CLAUDE):=20lotto-lab=20weight=5Fevolver=20?= =?UTF-8?q?API/=EC=8A=A4=EC=BC=80=EC=A4=84=EB=9F=AC/=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index b5081ee..b552cad 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -164,10 +164,16 @@ docker compose up -d | `lotto_briefings` | AI 큐레이터 주간 브리핑 (5세트 + 내러티브 + 토큰·비용 집계) | | `todos` | 투두리스트 (UUID PK) — personal 서비스로 이전됨, 레거시 테이블 유지 | | `blog_posts` | 블로그 글 (tags: JSON 배열) — personal 서비스로 이전됨, 레거시 테이블 유지 | +| `weight_trials` | 주별 6일치 후보 가중치 (4 perturb + 2 dirichlet) | +| `auto_picks` | 매일 N=5 시도 번호 + 채점 결과 | +| `weight_base_history` | base 갱신 이력 (winner_4plus / ema_blend / unchanged / cold_start) | **스케줄러 job** - 09:10 / 21:10 매일 — 당첨번호 동기화 + 채점 (`sync_latest` → `check_results_for_draw`) - 00:05, 04:05, 08:05, 12:05, 16:05, 20:05 — 몬테카를로 시뮬레이션 (20,000후보 → 상위100 → best_picks 20개 교체) +- 월요일 09:00 — weight_evolver_weekly (6개 후보 생성 + 그날 N=5 추출) +- 매일 09:00 — weight_evolver_daily (월요일 제외, 오늘 W로 N=5 추출) +- 토요일 22:00 — weight_evolver_eval (회고 + 다음주 base 갱신) **lotto-lab API 목록** @@ -204,6 +210,11 @@ docker compose up -d | GET | `/api/lotto/briefing/latest` | 최신 브리핑 | | GET | `/api/lotto/briefing/{draw_no}` | 특정 회차 브리핑 | | GET | `/api/lotto/briefing` | 브리핑 이력 | +| GET | `/api/lotto/evolver/status` | weight_evolver 이번주 trials + current_base + 진행 상황 | +| GET | `/api/lotto/evolver/history?weeks=12` | base 변경 이력 | +| GET | `/api/lotto/evolver/trials/{week_start}` | 특정 주 6 trials + 채점 결과 | +| POST | `/api/lotto/evolver/generate-now` | 수동 트리거 — 이번주 후보 생성 | +| POST | `/api/lotto/evolver/evaluate-now` | 수동 회고 + 다음주 base 갱신 | ### stock (stock/) - Windows AI 서버 연동: `WINDOWS_AI_SERVER_URL=http://192.168.45.59:8000` @@ -586,6 +597,7 @@ docker compose up -d - 매 4시간 :15 — 로또 sim_check (00/04/08/12/16/20시) - 일/수 21:15 — 로또 deep_check (큐레이션 후 confidence 포함 평가) - 09:25 매일 — 로또 daily_digest (지난 24h 발화 텔레그램 1통) +- 토요일 22:15 — 로또 weight_evolver 주간 텔레그램 리포트 **RealestateAgent (`agents/realestate.py`)** - 진입점: `on_new_matches(matches: list[dict]) -> {sent, sent_ids, message_id}`