Skip to content

feat: memory promotion pipeline (STM→MTM→LTM→XLTM) + health command - #4

Open
icerain-cmd wants to merge 3 commits into
hyungchulc:mainfrom
icerain-cmd:promotion-and-health
Open

feat: memory promotion pipeline (STM→MTM→LTM→XLTM) + health command#4
icerain-cmd wants to merge 3 commits into
hyungchulc:mainfrom
icerain-cmd:promotion-and-health

Conversation

@icerain-cmd

Copy link
Copy Markdown

개요

Memory Forest에 두 가지를 추가합니다.

1. promote 명령 (승격 파이프라인)

4층 위계(XLTM→LTM→MTM→STM)가 설계만 있고 상위로 올리는 도구가 없어 상층부가 비어 있던 문제를 해결합니다.

  • memory-forest promote <root> <src> --to <layer> 서브커맨드 추가
  • 인접 상위 층위로만 승격(stm→mtm→ltm→xltm), 건어너뛰기는 --allow-skip 필요
  • 복사가 아니라 wikilink + 요약 누적 방식 (원본 STM 보존, 덮어쓰기 없음)
  • 경로/SHA-256으로 중복 승격 방지 (already promoted 반환)
  • 대상 파일이 없으면 forest.json layout에서 생성
  • 승격 후 validate/audit/index 자동 갱신
  • 신규 파일: src/memory_forest/promotion.py, tests/test_promotion.py

2. health 명령 (이전 미커밋 작업 복구)

레이어 밸런스, freshness 메타데이터 갭, semantic duplicate 후보 보고.

테스트

  • 테스트 71개 전부 통과 (promotion 6 + health 포함 core 41 + 기존)
  • 리포 계약 준수: 신규 런타임 의존성 0, 로컬/네트워크 프리, 최소 변경

실제 forest(yw-research)에 적용해 22건 STM을 MTM으로 승격 검증 완료.

@icerain-cmd
icerain-cmd requested a review from hyungchulc as a code owner August 5, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant