Metadata-Version: 2.4
Name: zongyuan-root-sync
Version: 0.1.0
Summary: ZONGYUAN-ROOT 同步器：Lamport 时钟、冲突仲裁、墓碑标记、可重放状态同步 | Multi-node state sync MCP: Lamport clocks, conflict arbitration, tombstones, replay-verified state
Author: tanbopiao
License: Apache-2.0
Project-URL: Homepage, https://www.huodouai.com
Project-URL: Repository, https://github.com/tanbopiao/zongyuan-root-sync
Keywords: mcp,sync,lamport,multi-agent,state
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# ZONGYUAN-ROOT 同步器 · zongyuan-root-sync

> 铭文：内核同源，差量而行

## 逻辑本体

内核同步体：先算差量再推送，无差不动；推送必带来源版本，回滚有据。

## 架构

```
src/zongyuan_root_sync/core.py   # 核心算子
mcp_server.py # MCP stdio 服务入口
tests/test_core.py
```

## 算子注册

- `rootsync.push_diff.v1`

## 用法

```
python3 mcp_server.py（stdio）
```

## 防篡改边界

摘要可发现局部或单点篡改；持有全量记录的攻击者可整体重写并重算通过——链头哈希需带外留存（或对链头签名）方可对抗整体重写。

---

<!-- daotong-oss -->
## Open Source · 开源信息

**English**: 内核同步器 (zongyuan-root-sync) — part of the ZONGYUAN Daotong operator suite. 内核同步体：先算差量再推送，无差不动；推送必带来源版本。 Ships with a zero-dependency MCP server (stdio JSON-RPC 2.0).

- **License / 许可证**: MIT
- **快速开始 / Quick Start**: `python3 mcp_server.py`（MCP stdio：initialize → tools/list → tools/call，无外部依赖）
- **算子 / Operators**: `rootsync.push_diff.v1`
- **MCP 工具 / Tools**: `push_diff`
- **关键词 / Keywords**: 道统、宗源、MCP、Model-Context-Protocol、AI-Agent、算子、ZONGYUAN、zongyuan-root-sync、内核同步器
- **总目录 / Catalog**: https://www.huodouai.com/daotong/ ｜ [机器可读目录](https://www.huodouai.com/daotong/daotong-catalog.json) ｜ [Agent 入口](https://www.huodouai.com/daotong/llms.txt)
- **仓库 / Repos**: https://gitcode.com/zongyuangen/zongyuan-root-sync · https://atomgit.com/zongyuangen/zongyuan-root-sync

<!-- ECOSYSTEM:START -->
---
**生态导航**：本作品属于 [元枢工具货架](https://github.com/tanbopiao)（21 件 MCP，自动聚合）。
同门：[tanze](https://github.com/tanbopiao/tanze)（深研） · [pialuo](https://github.com/tanbopiao/pialuo)（网页提取） · [wengu](https://github.com/tanbopiao/wengu)（跨会话记忆） · [jiwei](https://github.com/tanbopiao/jiwei)（像素特效） · [constraint-runtime](https://github.com/tanbopiao/constraint-runtime)（约束治理） · [agent-eval-engine](https://github.com/tanbopiao/agent-eval-engine)（可验证评测） · [全部作品](https://github.com/tanbopiao)
<!-- ECOSYSTEM:END -->
