Metadata-Version: 2.4
Name: cognicontract
Version: 0.1.0
Summary: Cognitive Contract Protocol — make AI consensus verifiable and transferable across sessions
Keywords: ai,knowledge-management,consensus,protocol,llm,token,verification,common-knowledge
Author: 磐达初心 (Panda Chuxin)
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
License-File: LICENSE
Requires-Dist: flask>=2.0
Project-URL: Homepage, https://github.com/7n9d85td64-wq/cognitive-contract-protocol
Project-URL: Issues, https://github.com/7n9d85td64-wq/cognitive-contract-protocol/issues
Project-URL: Repository, https://github.com/7n9d85td64-wq/cognitive-contract-protocol

# Cognitive Contract Protocol (认知契约协议)

> **换AI不掉共识 · 跨对话不失智 · 可验证不幻觉**  
> *Switching AIs? Your consensus stays. New chat? Knowledge persists. Hallucination? Verifiable.*

## ⚡ 一眼看懂 / At a Glance

| 能力 / Capability | 说明 / Description |
|:---|:---|
| 🔗 **跨AI知识继承** / Cross-AI Knowledge Inheritance | 和DeepSeek定的共识，WorkBuddy秒懂。换模型不掉结论。 |
| ✅ **可验证共识** / Verifiable Consensus | 每条结论附公理+反例+推导链，不是"我信"，是"我能查"。 |
| 🛡️ **降低幻觉** / Hallucination Reduction | 强制反例自检，AI不能蒙混过关。 |
| 📋 **推理可审计** / Auditable Reasoning | 谁、什么时候、基于什么、得出了什么——每一步可追溯。 |
| 🔓 **去中心化** / Decentralized | 令牌存你本地，不绑任何平台。 |
| ⏱️ **三分钟跑通** / 3-Minute Setup | `pip install cognicontract` → `cognicontract serve` → 跑通。 |

## ⚡ 安装 & 使用

```bash
# 安装
pip install cognicontract

# 启动令牌服务器
cognicontract serve
# → http://localhost:8741

# 锚定共识
cognicontract anchor "Python是AI工程落地的最佳语言" \
  -a "生态丰富度优先于单一性能" \
  --counter "Go在网关场景更优" \
  -d "对比主流语言生态" -d "评估部署成本" \
  -c 0.85

# 查看上下文（粘贴给任何AI）
cognicontract context

# 自检
cognicontract test
```

## 📄 更多

- 📄 [完整论文 (中英双语)](https://github.com/7n9d85td64-wq/cognitive-contract-protocol/blob/main/paper_v3_bilingual.md)
- 🧮 [数学形式化定义](https://github.com/7n9d85td64-wq/cognitive-contract-protocol/blob/main/spec_math.md)
- 🧪 [GitHub 仓库](https://github.com/7n9d85td64-wq/cognitive-contract-protocol)

## 💖 支持

Apache 2.0 永久开源——[爱发电](https://ifdian.net/a/cognitive_contract) | [GitHub Sponsors](https://github.com/sponsors/7n9d85td64-wq)

## 📜 许可证

代码：Apache 2.0 | 论文：CC BY 4.0

