This repository has been archived on 2026-09-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
xiaowei 58eaf9d59c feat: Phase 2.1 知识图谱 + Phase 2.2 Peer Representation
Phase 2.1 知识图谱 (src/graph/):
- GraphNode/GraphEdge 数据模型
- GraphBuilder: 从 Distilled 构建节点和边
- GraphQuery: BFS 多跳导航, degree_centrality, jaccard_similarity
- LazyIndexer: 懒加载索引管理

Phase 2.2 Peer Representation (src/peer/):
- PeerRepr 数据模型: explicit/deductive/induced preferences
- DecayCalculator: 线性衰减公式 score=max(0.1, 1.0-days*0.015)
- Tier 分层: CORE/ACTIVE/PASSIVE/DEPRECATED
- 三步推理引擎: Explicit/Deductive/Inductive Inference
- 置信度聚合: 0.35*deductive + 0.35*induced + 0.30*explicit

Tests: 37 passed (test_graph.py + test_peer.py)
2026-05-25 03:11:20 +08:00

织忆 (MemoryWeave) 独立记忆服务

织忆是独立记忆层,不是行为层。只负责记忆的存储、检索、共享和质量审核。

项目结构

src/
├── distill/          # 蒸馏引擎
│   ├── engine.py      # 主引擎
│   ├── queue.py       # 持久化队列
│   ├── hard_rules.py  # 硬规则过滤
│   └── conflicts.py   # 冲突检测
└── models/           # 数据模型
    ├── episode.py     # Episode 模型
    └── distilled.py   # Distilled 模型
tests/                 # 测试
config.py              # 配置

开发流程

  1. 我规划 → opencode 执行 → 我验收 → openclaw 体验

详见 设计文档

相关链接

S
Description
【已废弃】旧 Python 版织忆(2026-05-30 停更)。当前版请用 memoryweave(Go + Rust 双二进制)
Readme
176 MiB
Languages
Python 99%
Shell 1%