Commit 3103c0d
feat: v0.5.0 — 온톨로지 + 에이전트 활동 추적 + Intent 검색 + Neo4j
뇌 기반 에이전트 메모리 시스템 대규모 확장:
[온톨로지 엔진]
- OntologyRegistry: 동적 타입 계층 + 속성 상속 + 관계 제약 검증
- build_agent_ontology(): knowledge/agent_activity 기본 타입 트리
- graph.link()에서 ontology 제약 자동 검증 (위반 시 ValueError)
- save_ontology()/load_ontology()로 그래프에 영속화
[에이전트 활동 추적]
- ActivityTracker: 세션/tool call/decision/outcome 자동 캡처
- PART_OF + FOLLOWED_BY 엣지로 세션 타임라인 구성
- record_outcome() 시 Hebbian learning 자동 발동
- get_session_timeline(), get_decision_chain() 추적
[Intent 기반 검색]
- AgentSearch: 6가지 전략 (similar_decisions, past_failures, reasoning_chain 등)
- suggest_intent(): 쿼리 키워드에서 intent 자동 추론
- intent="auto" 기본값으로 에이전트 부담 최소화
- 5축 Resonance: relevance × importance × recency × vitality × context
[Neo4j Backend]
- StorageBackend 20개 메서드 완전 구현 (dual label, typed relationship)
- GraphTraversal 확장: shortest_path, pattern_match, find_by_type_hierarchy
- docker-compose.yml로 개발 환경 제공
[자기 진단 수정]
- L3 강등: 성공률 60% 미만 시 L2로 강등 (영원한 L3 문제 해결)
- consolidation 페이지네이션: limit=1000 제한 제거
- Hebbian adaptive rate: delta / (1 + 0.02 × maturity) 안정화
- HybridSearch node_kinds 필터 추가
[MCP 16개 tool]
- 기존 7개 + agent workflow 4개 + semantic search 3개 + ontology 2개
테스트: 185 unit + 22 Neo4j integration, pyright 0 errors, ruff clean
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6a9b73c commit 3103c0d
29 files changed
Lines changed: 4377 additions & 110 deletions
File tree
- docs
- src/synaptic
- backends
- mcp
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
3 | 51 | | |
4 | 52 | | |
5 | 53 | | |
| |||
0 commit comments