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)
OpenMyBot의 기존 메모리 구조(
MEMORY.md+memory/<topic>.md+ 자동 topic 인덱스 + 자동 recall)를 유지하면서, 반복 트러블슈팅을 증상 기준으로 빠르게 찾고 구조화된 교훈을 남길 수 있도록 세 가지를 추가했습니다.server/memory-topics.ts,server/recall.ts)memory/<topic>.mdfrontmatter에 선택 필드symptom:(제어문자·개행 제거, 최대 160자)을 추가했습니다.symptomWords()를topicWords()와 분리해 서로 다른 핵심어 2개 이상 일치할 때만 증상 매칭으로 자동 recall합니다(일반 단어 1개 겹침으로 fix 노트가 recall 4슬롯을 점령하는 오탐 차단).memoryPromptTopicIndex()(renderTopicIndex(..., { reserveSymptoms: true }))를 분리해 기존 2,000자 예산 안에서symptom이 있는 fix 노트에 최대 8슬롯을 우선 예약합니다(40개 초과 토픽 환경에서도 밀리지 않음). 야간 upkeep(capture/organize/dream)이 쓰는memoryTopicIndex()는 그대로 유지합니다.server/workspace.ts)fileTools !== false && !writesRefused)에만FIX_NOTE_GUIDANCE를 추가합니다.memory/fix-<slug>.md에Symptom / Cause / What worked / What did not work and why형식으로 기록하고, 외부 에러 원문·URL·명령어를 그대로 복사하지 말고 중립 요약 한 줄로 기록하도록 명시했습니다.evals/memory/)cases.json(합성·개인정보 없음, 10문항),score.ts(순수 채점 +--compare채택 게이트: 통과 수 ≥ base, pass→fail 회귀 0건, 평균 프롬프트 증가 ≤ 800B),run-memory-eval.ts(임시OPENMAUSBOT_DATA_DIR격리 실행),score.test.ts를 추가했습니다.범위 분할 결정
CONTRIBUTING.md의 "One concern per PR" 원칙과 요청 안내에 따라 범위를 두 PR로 분리했습니다.feat/symptom-fix-notes): 메모리 구조(증상 인덱스) + OFFLOAD/LOAD 지침 + 10문항 평가 하네스·채택 게이트feat/memory-review-proposals): 로컬 전용 메타 루프 제안서 생성기(messages.db의tool.ok = 0반복 실패 + 과대/장기 미갱신 토픽 노트 분석 →memory-review/YYYY-MM-DD.md제안서만 생성)제약 준수 방식
evals/memory/평가 하네스는 100% 로컬 결정적 실행이며 모델 호출이나 외부 전송이 없습니다.symptom:이 없는 기존 노트는 이전과 동일하게 동작하며,mergeTopicText도 기존symptom:frontmatter를 보존합니다.평가 방법 및 Before / After 증적
평가 방법 및 한계
origin/main(f5940ede2) 임시 워크트리에evals/memory/를 복사해 기준선(base.json)을 생성하고, 이 브랜치에서--compare채택 게이트로 비교했습니다.Before (
origin/mainf5940ede2)After (
feat/symptom-fix-notes) + 채택 게이트테스트 방법 및 결과
pnpm typecheck && pnpm exec tsc -p evals/tsconfig.json: 통과pnpm exec vitest run server/memory-entries.test.ts server/recall.test.ts server/workspace.test.ts server/memory-upkeep.test.ts scripts/testing/file-size-ratchet.test.ts: 5개 파일 138/138 통과pnpm exec vitest run --config evals/vitest.config.ts evals/memory/score.test.ts: 3/3 통과node --experimental-strip-types evals/memory/run-memory-eval.ts --compare /tmp/omb-memory-base.json:ADOPT(7/10 → 10/10, 회귀 0건, 평균 프롬프트 +440B)