2026-03-14 시스템 업그레이드 — Varun Mathur 비교분석 후 실행
배경
Varun Mathur 트윗("24 AI agents, 11 MCPs, 5 data sources, zero code, 150시간 절약") 분석 후,
해리 시스템 개선점 도출 → 6개월 로드맵을 2.5주 내 완료 목표로 병렬 실행.
구현 완료 항목
1. MCP 서버 5개 (전체 Connected 검증 완료)
| 서버 |
경로 |
기능 |
| ron-pipeline |
~/.openclaw/mcp-servers/ron-pipeline/index.js |
시스템 상태, 지표, 가설, 발견, 파이프라인 실행 |
| telegram |
~/.openclaw/mcp-servers/telegram/index.js |
DM/그룹 전송, 메시지 수신 |
| kis-api |
~/.openclaw/mcp-servers/kis-api/index.js |
국내주가, 선물, 시장개요 (KIS OpenAPI) |
| dart |
~/.openclaw/mcp-servers/dart/index.js |
공시 검색, 기업정보, 최근공시 |
| obsidian |
~/.claude/mcp-servers/obsidian-tools/dist/index.js |
볼트 직접 읽기/쓰기 |
등록 방법: claude mcp add --scope user (전역 등록, ~/.claude.json)
2. 이벤트 기반 파이프라인 오케스트레이션
- pipeline_wake.py:
signal_done() / consume_wake() — 파일 기반 wake 시그널
- pipeline_orchestrator.py: 1초 폴링,
~/.openclaw/run/wake-* 감시
- LaunchAgent:
com.ron.pipeline-orchestrator — KeepAlive, 상시 가동
- 체인:
idea_collector → discovery_filter → discovery_digest → knowledge_connector → hypothesis_engine
- ✅ end-to-end 검증: signal_done → wake 파일 생성 → orchestrator 소비 확인
3. 의도 레이어 (L1/L2 자동 포커스)
- L1: 최근 7일 편집 노트 태그 빈도 분석 → 자동 포커스 태그 추출
- L2: Claude 세션 jsonl 키워드 빈도 분석 → 세션 관심사 추출
- 출력:
~/.claude/vault-context.md — ## 자동 감지 포커스 + ## 세션 키워드 포커스
- 활용:
discovery_filter.py가 포커스 태그에 +1점 가중치 적용
- ✅ 검증: vault-context.md에 bridge(127건), 파이프라인(181회) 등 정상 출력 확인
4. 가설 계보 시스템
- hypothesis_lineage_builder.py: 가설 간 계보 추적 (parent/generation/mutation)
- 출력:
~/knowledge/300 지식망/359 MOC/가설-계보.md (90KB)
- hypothesis_postmortem.py: 3개월+ 경과 가설 검증 스텁 (TODO: 실제 검증 로직)
5. 크론 통합 (jobs.json)
- intelligence_cluster: 매일 01:00, idea_collector→filter→digest→connector 통합 실행
- collect_cluster: 매일 06:00, semiconductor_collect + petrochemical_collect 통합
- 기존 개별 크론 5개 disabled (삭제 아닌 보존)
- ⏳ 첫 실행: 내일(2026-03-15) 01:00
6. 파이프라인 정리
- 아카이브: 27개 파이프라인 →
scripts/pipeline/_archive/
- 활성 파이프라인: 99개 → 72개
- 주의: normalize_200_notes.py는 tests에서 import됨 → 복구 완료
7. 메모리 아키텍처 문서화
~/knowledge/800 운영/820 플레이북/메모리-아키텍처.md — 4계층 구조
검증 결과 (2026-03-14)
| 항목 |
결과 |
비고 |
| MCP 5개 Connected |
✅ |
claude mcp list로 확인 |
| wake 시그널 체인 |
✅ |
idea_collector→discovery_filter 파일 생성/소비 |
| orchestrator 감지 |
✅ |
2초 내 wake 파일 소비 확인 |
| 의도 레이어 L1/L2 |
✅ |
vault-context.md 포커스 섹션 정상 생성 |
| 가설 계보 MOC |
✅ |
90KB 파일 존재 |
| KIS API 실제 조회 |
✅ |
삼성전자 183,500원 (-2.34%) 조회 성공 |
| intelligence_cluster |
⏳ |
2026-03-15 01:00 첫 실행 예정 |
버그 수정 (백테스트에서 발견)
- normalize_200_notes.py — _archive에서 복구 (tests/test_normalize_200.py import 의존)
- test_circuit_breaker.py —
_tg_send_dm → _tg_send_sector 3곳 수정
- pytest 61개 통과 확인
남은 작업
- [ ] intelligence_cluster 01:00 실행 결과 확인 (2026-03-15)
- [ ] MCP 실제 세션에서
mcp__ron_pipeline__get_system_health 호출 테스트
- [ ] hypothesis_postmortem.py 실제 검증 로직 구현
- [ ] KIS API MCP get_futures_price 선물 데이터 테스트
관련 파일
- MCP 서버:
~/.openclaw/mcp-servers/
- wake 시스템:
scripts/pipeline/pipeline_wake.py, pipeline_orchestrator.py
- LaunchAgent:
~/Library/LaunchAgents/com.ron.pipeline-orchestrator.plist
- 크론:
~/.openclaw/cron/jobs.json
추가 검증 (2026-03-14 심층)
추가 버그 수정
idea_collector.py — timezone import 누락 수정
discovery_digest.py — 필드명 불일치 수정 (_title→title_ko, _url→url, _preview→summary_ko)
orchestrator plist — PYTHONUNBUFFERED=1 추가 → 로그 정상 출력
vault-search-index.json — 18MB 손상 파일 재생성 (1,610개 노트)
ron-pipeline MCP — get_hypotheses status enum에 proposed 추가
체인 실제 실행 결과 (2026-03-14 19:00)
- idea_collector: 45건 수집 (GitHub 20 + arXiv 30)
- discovery_filter: 1,620건 후보 → 9건 통과 (≥6점)
- discovery_digest: DM 전송 성공
- knowledge_connector: 14,808 연결, 542건 승격 가능, 261 고아
- hypothesis_engine: 5개 가설 생성 (self_improvement/S30/S10×2/S80)
추가 검증 항목
| 항목 |
결과 |
| collect_cluster 스크립트 존재 |
✅ semiconductor + petrochemical |
| semiconductor_cycle_tracker --status |
✅ EARLY_RECOVERY 43.8/100 |
| run_pipeline MCP 실행 |
✅ vault_flow_health detached 실행 |
| get_discoveries MCP 데이터 |
✅ 9건, 최고점 앱에이전트 7점 |
| hypothesis_lineage_builder |
✅ 353개 가설, 계보 26개 |
| git commit + push |
✅ feat/agent-evolution 브랜치 |