Repository navigation
Conversation
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.
변경 요약 (Summary)
로컬 SQLite(
messages.db)와 봇 워크스페이스 메모리 파일만 읽어 제안서만 생성하는 결정적 메타 루프 분석기를 추가했습니다(PR #39의 후속 독립 PR).server/memory-review.ts:findRepeatedToolFailures):messages.db에 이미 인덱싱된 실패 활동(attentionRows,tool.ok = 0)에서 에러 시그니처의 가변 숫자/해시를 정규화하고 시크릿을 마스킹(redactSecretsInText)한 뒤, 2개 이상 스레드 또는 3회 이상 반복된 실패 패턴(상위 15건)을 추출해memory/fix-<slug>.md작성 후보로 제안합니다.findMemoryHygieneIssues):MEMORY.md용량 경고(80% 이상 또는 truncated), 과대 토픽 노트(12KB 이상), 장기 미갱신 토픽 노트(60일 이상)를 찾아 분리·정리 제안을 생성합니다.writeMemoryReviewProposal):memory/바깥 경로인<workspace>/memory-review/YYYY-MM-DD.md(0o600, atomic write)에만 기록해 자동 recall이나 시스템 프롬프트에 섞이지 않도록 했습니다.scripts/memory-review.ts:node --experimental-strip-types scripts/memory-review.ts --bot <botId> [--days 14] [--write]CLI 진입점(기본적으로 해당 봇의 스레드만 스코프).server/memory-review.test.ts: 반복 실패 그룹화, 단발 실패 무시, 시크릿 마스킹, 용량/과대/장기 미갱신 탐지, 기존 메모리 무변경 및 recall 비노출 검증.범위 분할 결정
feat/symptom-fix-notes): 증상 인덱스 + OFFLOAD/LOAD 지침 + 10문항 평가 하네스·채택 게이트feat/memory-review-proposals): 로컬 전용 메타 루프 제안서 생성기(main기반 독립 PR,CONTRIBUTING.md의 One concern per PR 준수)messages.db의 검증 가능한 실패 신호(tool.ok = 0)와 메모리 위생 신호에 집중했습니다.제약 준수 방식
MEMORY.md,memory/*.md, 스킬, 지침을 일절 수정하지 않습니다. 제안서 파일(memory-review/YYYY-MM-DD.md) 생성까지만 수행합니다.redactSecretsInText로 시크릿을 마스킹합니다.Before / After 증적
origin/main): 로컬에서 스레드 실패 패턴이나 메모리 용량·장기 미갱신 노트를 점검해 제안서로 뽑아주는 도구가 없어, 야간dream(모델 호출·외부 전송 필요) 외에는 로컬 전용 검토 경로가 없었습니다.feat/memory-review-proposals):server/memory-review.test.ts):thread-a,thread-b)에서 발생한EADDRINUSE port 8799/8800실패를EADDRINUSE port <n>1건으로 묶고, 에러에 섞인sk-ant-api03-...토큰은 제안서에서 완전 제거됨을 검증.thread-c)는 노이즈로 제외됨을 검증.MEMORY.md, 13KBmemory/huge.md, 90일 미갱신memory/old.md를 각각memory-capacity,oversized-topic,stale-topic으로 제안하되 원본MEMORY.md는 1바이트도 변경되지 않고memory-review/2026-11-19.md가buildRecall()에 노출되지 않음을 검증.HOMECLI 스모크(HOME=$TMP_HOME node --experimental-strip-types scripts/memory-review.ts --bot smoke-bot): 정상 종료 및 제안서 마크다운 출력 확인.테스트 방법 및 결과
pnpm typecheck: 통과pnpm exec vitest run server/memory-review.test.ts scripts/testing/file-size-ratchet.test.ts: 2개 파일 4/4 통과pre-push린트 훅: 3개 파일 통과