Skip to content

Commit 3103c0d

Browse files
SonAIengineclaude
andcommitted
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

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
# Changelog
22

3+
## v0.5.0 (2026-03-21)
4+
5+
### Added
6+
- **Ontology Engine** — 동적 타입 계층, 속성 상속, 관계 제약 검증 (`OntologyRegistry`, `TypeDef`, `PropertyDef`, `RelationConstraint`)
7+
- **Agent Activity Tracking** — 세션/tool call/decision/outcome 캡처 (`ActivityTracker`)
8+
- **Intent-based Agent Search** — 6가지 검색 전략: similar_decisions, past_failures, related_rules, reasoning_chain, context_explore, general (`AgentSearch`, `SearchIntent`)
9+
- **Intent 자동 추론** — 쿼리 키워드에서 intent 자동 판별 (`suggest_intent()`, `intent="auto"` 기본값)
10+
- **Neo4j Backend** — native Cypher 그래프 순회, dual label, typed relationship, fulltext index
11+
- **GraphTraversal Protocol**`shortest_path()`, `pattern_match()`, `find_by_type_hierarchy()`
12+
- **5축 Resonance Scoring** — context axis 추가 (세션 태그 Jaccard 유사도)
13+
- **Node.properties** — 온톨로지 확장 속성 (dict[str, str]), 전 백엔드 지원
14+
- **Ontology 영속화**`save_ontology()` / `load_ontology()`로 그래프에 저장/복원
15+
- **L3 강등 메커니즘** — 성공률 60% 미만 시 L3 → L2 강등
16+
- **Consolidation 페이지네이션** — limit=1000 제한 제거, 전체 노드 배치 처리
17+
- **link() 온톨로지 검증** — 관계 제약 위반 시 ValueError 발생
18+
- **Hebbian adaptive learning rate**`delta / (1 + 0.02 × maturity)`로 초기 빠른 학습, 이후 안정화
19+
- **HybridSearch node_kinds 필터** — 검색 시 노드 타입 필터링
20+
- **기본 에이전트 온톨로지**`build_agent_ontology()`로 knowledge/agent_activity 타입 트리 제공
21+
- **MCP 9개 tool 추가** (총 16개): agent_start_session, agent_log_action, agent_record_decision, agent_record_outcome, agent_find_similar, agent_get_reasoning_chain, agent_explore_context, ontology_define_type, ontology_query_schema
22+
- **NodeKind 6개 추가**: tool_call, observation, reasoning, outcome, session, type_def
23+
- **EdgeKind 5개 추가**: is_a, invoked, resulted_in, part_of, followed_by
24+
- `docker-compose.yml` — Neo4j 개발 환경
25+
- `docs/COMPARISON.md` — 기존 Agent Memory 시스템 비교 분석
26+
- 185+ unit tests, 22 Neo4j integration tests
27+
28+
### Changed
29+
- `graph.agent_search()` 기본 intent가 `"auto"` (키워드 기반 자동 추론)
30+
- `ResonanceWeights``context` 필드 추가 (기본값 0.0, 하위호환)
31+
- SQLite/PostgreSQL backend에 `properties_json` 컬럼 자동 마이그레이션 (v0.4 → v0.5)
32+
- pyproject.toml: `neo4j`, `scale` extras 추가, version 0.5.0
33+
34+
## v0.4.0 (2026-03-21)
35+
36+
### Added
37+
- **MCP Server** — 7개 tool (knowledge_search/add/link/reinforce/stats/export/consolidate)
38+
- **SQLite Backend** — FTS5, recursive CTE, WAL mode
39+
- **QA Test Suite** — Wikipedia 169건 + GitHub 368건 실제 데이터 검증
40+
- `synaptic-mcp` CLI entry point
41+
42+
## v0.3.0 (2026-03-21)
43+
44+
### Added
45+
- **Protocol 구현체** — LLM QueryRewriter, RegexTagExtractor, EmbeddingProvider
46+
- **LRU Cache** — NodeCache with hit rate tracking
47+
- **JSON Exporter** — 구조화된 JSON export
48+
- **Node Merge** — 중복 노드 병합 + 엣지 재연결
49+
- **Find Duplicates** — 제목 유사도 기반 중복 탐지
50+
351
## v0.2.0 (2026-03-21)
452

553
### Added

0 commit comments

Comments
 (0)