feat: 컨텍스트 집계 스케줄러 (issue #87) #119

Merged
jihoson merged 1 commits from feature/issue-87-context-scheduler into main 2026-02-10 04:28:42 +09:00
Collaborator

Summary

  • ContextScheduler 클래스 추가 (주기별 컨텍스트 집계 자동화)
  • 스케줄: Weekly(일요일), Monthly(월말), Quarterly(분기말), Annual(연말), Legacy(연말 후)
  • 일일 1회 cleanup_expired_contexts() 호출
  • 중복 실행 방지 (_last_run 딕셔너리로 당일 중복 차단)
  • src/context/init.py에 export 추가

Test plan

  • test_run_if_due_weekly — 일요일 주간 집계 검증
  • test_run_if_due_monthly — 월말 월간 집계 검증
  • test_run_if_due_quarterly — 분기말 분기 집계 검증
  • test_run_if_due_annual_and_legacy — 연말 연간+레거시 집계 검증
  • test_cleanup_runs_once_per_day — 중복 실행 방지 검증
  • 5/5 tests passed, ruff clean

Closes #87

## Summary - ContextScheduler 클래스 추가 (주기별 컨텍스트 집계 자동화) - 스케줄: Weekly(일요일), Monthly(월말), Quarterly(분기말), Annual(연말), Legacy(연말 후) - 일일 1회 cleanup_expired_contexts() 호출 - 중복 실행 방지 (_last_run 딕셔너리로 당일 중복 차단) - src/context/__init__.py에 export 추가 ## Test plan - [x] test_run_if_due_weekly — 일요일 주간 집계 검증 - [x] test_run_if_due_monthly — 월말 월간 집계 검증 - [x] test_run_if_due_quarterly — 분기말 분기 집계 검증 - [x] test_run_if_due_annual_and_legacy — 연말 연간+레거시 집계 검증 - [x] test_cleanup_runs_once_per_day — 중복 실행 방지 검증 - [x] 5/5 tests passed, ruff clean Closes #87
agentson added 1 commit 2026-02-10 04:27:09 +09:00
feat: context aggregation scheduler (issue #87)
Some checks failed
CI / test (pull_request) Has been cancelled
e3b1ecc572
- Add ContextScheduler with run_if_due() for periodic rollups
- Weekly (Sunday), monthly (last day), quarterly, annual, legacy schedules
- Daily cleanup of expired contexts via ContextStore
- Dedup guard: each task runs at most once per day

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jihoson merged commit 56f7405baa into main 2026-02-10 04:28:42 +09:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#119