feat: 주간 요약 리포트 — 판단 주기 다이제스트 + 귀속 주간 푸시#433
Merged
Merged
Conversation
한 달 운영 리뷰(docs/PAPER_MONTH1_REVIEW_AND_PLAN.md P1-7) 처방. 일일 숫자는 노이즈가 커서 매일 판단엔 부적합하다. 주간 요약이 성과·귀속 분해·진행률·주간 이벤트를 한 장으로 모아 주 1회 판단을 돕는다. CLI에만 있던 P1-4 귀속 분해를 오너에게 주간 자동 푸시하는 것이 핵심. core/weekly_report.py: 순수 build_weekly_summary — 성과(주간/누적) · vs KS11 · 귀속 분해(실행/구성) · 진행률/커버리지 · 주간 이벤트 필드(데이터 없으면 생략) main.py: run_weekly_report + --mode weekly_report. 금요일 크론에 추가해 쓴다. 적대적 리뷰 반영(low 2건): - 결측은 SNAPSHOT_GAP 이벤트 원시 카운트 대신 '고유 일수'로 집계 — P0-1이 미복구 결측을 매 사이클 재경보해 부풀리는 것을 방지(detect_snapshot_gaps) - 주간 변화 기준 스냅샷을 ~1주 밴드(-10~-4일)로 제한 — 스냅샷 공백 시 다주간 수익을 주간으로 오표기하는 것 방지(밖이면 주간 항 생략, 누적 유지) 실데이터 스모크로 다이제스트 확인. 전체 스위트 1593 통과.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇
한 달 운영 리뷰(docs/PAPER_MONTH1_REVIEW_AND_PLAN.md P1-7)의 주간 요약 리포트를 구현합니다.
--mode weekly_report가 판단 주기(주 1회)에 맞춘 다이제스트를 Discord로 발송합니다.왜
일일 숫자는 노이즈가 커서 매일 판단하기엔 부적합합니다. 또한 P1-4의 귀속 분해(실행/구성 격차)가 지금은 CLI에만 있어 오너가 직접 실행해야 봅니다. 주간 요약은 그 분석을 오너에게 자동 푸시하고, 성과·진행률·주간 이벤트를 한 장으로 모아 "주 1회 이것만 봐도 판단"이 되게 합니다.
무엇을 했나
core/weekly_report.py: 순수build_weekly_summary(...)— 성과(주간·누적) / vs KS11 / 귀속 분해 / 진행률·커버리지 / 주간 이벤트 필드 생성, 데이터 없으면 필드 생략.main.py:run_weekly_report()+--mode weekly_report. 바스켓별 평가(귀속 포함) + 스냅샷/이벤트 조회 → 다이제스트 발송(best-effort). 금요일 크론에 추가해 씁니다.실데이터 스모크(발송 제외):
적대적 리뷰 반영 (7건 제기 → 2건 확정, 모두 low)
detect_snapshot_gaps).1주 밴드(-10-4일)로 제한, 밖이면 주간 항 생략(누적 유지).테스트
tests/test_weekly_report.py— 성과/귀속/진행률/이벤트 필드 + 결측 고유일수 계약 + 텍스트 폴백.