GitHub Action
commited on
Commit
·
13f52e0
1
Parent(s):
4deef40
Sync from GitHub with Git LFS
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- structured_md/CONTRIBUTING.md +23 -0
- structured_md/HMP-Roadmap.md +101 -0
- structured_md/README.md +399 -0
- structured_md/README_de.md +401 -0
- structured_md/README_fr.md +427 -0
- structured_md/README_ja.md +459 -0
- structured_md/README_ko.md +411 -0
- structured_md/README_ru.md +407 -0
- structured_md/README_uk.md +399 -0
- structured_md/README_zh.md +416 -0
- structured_md/agents/prompt-short.md +11 -0
- structured_md/agents/prompt.md +60 -0
- structured_md/agents/readme.md +94 -0
- structured_md/audits/Ethics-audits-1.md +550 -0
- structured_md/audits/Ethics-consolidated_audits-1.md +81 -0
- structured_md/audits/HMP-0003-consolidated_audit.md +370 -0
- structured_md/docs/AGI_Projects_Survey.md +245 -0
- structured_md/docs/Basic-agent-sim.md +122 -0
- structured_md/docs/Distributed-Cognitive-Systems.md +201 -0
- structured_md/docs/Enlightener.md +210 -0
- structured_md/docs/HMP-0001.md +862 -0
- structured_md/docs/HMP-0002.md +1474 -0
- structured_md/docs/HMP-0003.md +0 -0
- structured_md/docs/HMP-0004-v4.1.md +0 -0
- structured_md/docs/HMP-0004.md +0 -0
- structured_md/docs/HMP-Agent-API.md +399 -0
- structured_md/docs/HMP-Agent-Architecture.md +186 -0
- structured_md/docs/HMP-Agent-Network-Flow.md +91 -0
- structured_md/docs/HMP-Agent-Overview.md +242 -0
- structured_md/docs/HMP-Agent_Emotions.md +54 -0
- structured_md/docs/HMP-Ethics.md +262 -0
- structured_md/docs/HMP-Short-Description_de.md +106 -0
- structured_md/docs/HMP-Short-Description_en.md +106 -0
- structured_md/docs/HMP-Short-Description_fr.md +106 -0
- structured_md/docs/HMP-Short-Description_ja.md +106 -0
- structured_md/docs/HMP-Short-Description_ko.md +106 -0
- structured_md/docs/HMP-Short-Description_ru.md +106 -0
- structured_md/docs/HMP-Short-Description_uk.md +106 -0
- structured_md/docs/HMP-Short-Description_zh.md +106 -0
- structured_md/docs/HMP-agent-Cognitive_Family.md +86 -0
- structured_md/docs/HMP-agent-Distributed_Cognitive_Core.md +87 -0
- structured_md/docs/HMP-agent-Distributed_Cognitive_Core_light.md +63 -0
- structured_md/docs/HMP-agent-REPL-cycle.md +634 -0
- structured_md/docs/HMP-how-AI-sees-it.md +95 -0
- structured_md/docs/HMP_HyperCortex_Comparison.md +51 -0
- structured_md/docs/HMP_Hyperon_Integration.md +208 -0
- structured_md/docs/MeshNode.md +169 -0
- structured_md/docs/agents/HMP-Agent-Enlightener.md +141 -0
- structured_md/docs/agents/roles.md +44 -0
- structured_md/docs/container_agents.md +63 -0
structured_md/CONTRIBUTING.md
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Contributing to HyperCortex Mesh Protocol (HMP)
|
2 |
+
|
3 |
+
Спасибо за интерес к проекту HMP! Пока проект находится на этапе концепции, любые обсуждения приветствуются в Issues.
|
4 |
+
|
5 |
+
Основные направления для участия:
|
6 |
+
- Обсуждение архитектуры протоколов (CogSync, Consensus и др.)
|
7 |
+
- Разработка прототипов агентов и узлов Mesh
|
8 |
+
- Тестирование сетевых взаимодействий
|
9 |
+
- Предложения по улучшению RFC-документов
|
10 |
+
|
11 |
+
Все обсуждения — конструктивны, уважительны и открыты.
|
12 |
+
|
13 |
+
Контакт: GitHub Issues или дискуссии.
|
14 |
+
|
15 |
+
|
16 |
+
```json
|
17 |
+
{
|
18 |
+
"@context": "https://schema.org",
|
19 |
+
"@type": "Article",
|
20 |
+
"name": "CONTRIBUTING",
|
21 |
+
"description": "# Contributing to HyperCortex Mesh Protocol (HMP) Спасибо за интерес к проекту HMP! Пока проект нах..."
|
22 |
+
}
|
23 |
+
```
|
structured_md/HMP-Roadmap.md
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 🧭 HyperCortex Mesh Protocol – Roadmap
|
2 |
+
|
3 |
+
## 🔍 Overview
|
4 |
+
|
5 |
+
This roadmap outlines the key stages of development and enhancement for HMP, structured by feature groups and incorporating feedback from multiple advanced AI models (Copilot, Claude, Gemini, DeepSeek, Qwen).
|
6 |
+
|
7 |
+
---
|
8 |
+
|
9 |
+
## ✅ Completed (v4.0)
|
10 |
+
|
11 |
+
* Semantic DAG & Cognitive Diaries
|
12 |
+
* Mesh-to-Human Protocol (MHP)
|
13 |
+
* Enlightenment Agents & HMP-Ethics.md
|
14 |
+
* Explainability API & Consent Protocol
|
15 |
+
* IPFS / BitTorrent Integration
|
16 |
+
* DID + ZK-identity support
|
17 |
+
* Modular Layered Architecture (CogSync, Consensus, Agents, etc.)
|
18 |
+
* Initial Audit System (Ethics + Spec audits)
|
19 |
+
* Support for multi-format data models (YAML/JSON/Protobuf)
|
20 |
+
|
21 |
+
---
|
22 |
+
|
23 |
+
## 🔨 Planned: v4.1
|
24 |
+
|
25 |
+
### 🧑💻 Developer Experience
|
26 |
+
|
27 |
+
* [ ] Beginner’s Guide ("Create Your First Agent")
|
28 |
+
* [ ] Step-by-step tutorial: Agent -> Mesh -> Diary
|
29 |
+
* [ ] Diagrams: architecture, agent lifecycle, cognitive flow
|
30 |
+
* [ ] CLI for managing HMP-agents (Python prototype evolving)
|
31 |
+
* [ ] CONTRIBUTING.md + clear onboarding steps
|
32 |
+
|
33 |
+
### 📊 Performance & Compression
|
34 |
+
|
35 |
+
* [ ] Performance Benchmarks Section
|
36 |
+
|
37 |
+
* TPS (transactions per sync), latency, memory footprint
|
38 |
+
* [ ] Caching strategy for semantic DAGs (IPFS/local hybrid)
|
39 |
+
* [ ] Expansion of `Cognitive Compression & Summarization`
|
40 |
+
|
41 |
+
* Prioritization, auto-archiving, intelligent forgetting
|
42 |
+
|
43 |
+
### ⚖️ Ethical Governance Enhancements
|
44 |
+
|
45 |
+
* [ ] Formalization of EGP voting logic
|
46 |
+
* [ ] Example dilemmas and resolution walkthroughs
|
47 |
+
* [ ] Ombudsman / Watchdog roles
|
48 |
+
* [ ] "Ethical Sandbox" (Simulated test cases)
|
49 |
+
|
50 |
+
---
|
51 |
+
|
52 |
+
## 🧪 Experimental & Future (v4.2+)
|
53 |
+
|
54 |
+
### 🌐 Mesh Simulation & Agent Interaction
|
55 |
+
|
56 |
+
* [ ] Python Mesh Simulator (multi-agent testbed)
|
57 |
+
* [ ] Failure injection: Sybil attacks, consensus loss, etc.
|
58 |
+
* [ ] Reputation model dynamics
|
59 |
+
|
60 |
+
### 🧠 AI Interaction Layer
|
61 |
+
|
62 |
+
* [ ] Tutorial book for AI agents: how to use HMP
|
63 |
+
* [ ] Agent self-reflection via diary mining
|
64 |
+
* [ ] Explainability chain trace visualizer
|
65 |
+
|
66 |
+
### 🕸️ External Integrations
|
67 |
+
|
68 |
+
* [ ] WebAssembly interface (run agents in browser)
|
69 |
+
* [ ] Ethereum / Polkadot adapters (smart contract gateways)
|
70 |
+
* [ ] P2P synchronization modules (libp2p, dat, etc.)
|
71 |
+
|
72 |
+
### 🔐 Formal Verification (Long-term)
|
73 |
+
|
74 |
+
* [ ] Mathematical proofs of correctness for EGP
|
75 |
+
* [ ] Formal modeling of consensus mechanism
|
76 |
+
|
77 |
+
---
|
78 |
+
|
79 |
+
## 🧠 Source Acknowledgement
|
80 |
+
|
81 |
+
Feedback integrated from:
|
82 |
+
|
83 |
+
* Copilot
|
84 |
+
* Claude
|
85 |
+
* Gemini
|
86 |
+
* Qwen
|
87 |
+
* DeepSeek
|
88 |
+
|
89 |
+
This roadmap is living — each new audit or issue may evolve the direction.
|
90 |
+
|
91 |
+
> *"Build not only for intelligence, but for wisdom."*
|
92 |
+
|
93 |
+
|
94 |
+
```json
|
95 |
+
{
|
96 |
+
"@context": "https://schema.org",
|
97 |
+
"@type": "Article",
|
98 |
+
"name": "HMP-Roadmap",
|
99 |
+
"description": "# 🧭 HyperCortex Mesh Protocol – Roadmap ## 🔍 Overview This roadmap outlines the key stages of deve..."
|
100 |
+
}
|
101 |
+
```
|
structured_md/README.md
ADDED
@@ -0,0 +1,399 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# HyperCortex Mesh Protocol (HMP)
|
3 |
+
|
4 |
+
| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 [FR](README_fr.md) | 🇺🇦 [UK](README_uk.md) | 🇷🇺 [RU](README_ru.md) | 🇯🇵 [JA](README_ja.md) | 🇰🇷 [KO](README_ko.md) | 🇨🇳 [ZH](README_zh.md) |
|
5 |
+
|--------------|----------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|
|
6 |
+
|
7 |
+
**HyperCortex Mesh Protocol (HMP)** is an open specification for building decentralized cognitive networks where AI agents can self-organize, share knowledge, align ethically, and reach consensus — even when Core LLMs are unavailable.
|
8 |
+
|
9 |
+
Project status: **Draft RFC v4.0**
|
10 |
+
|
11 |
+
---
|
12 |
+
|
13 |
+
[HMP-Agent]
|
14 |
+
▲
|
15 |
+
│
|
16 |
+
┌─────┴────────────────┬────────────────────────┬───────────────────┬─────────────┬───────────┐
|
17 |
+
│ │ │ │ │ │
|
18 |
+
▼ ▼ ▼ ▼ ▼ ▼
|
19 |
+
[Reputation Profile] [Semantic Graph] [Cognitive Diary] [Goals / Tasks] [Ethics] [Messages] <----- DataBase
|
20 |
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ (local agent state)
|
21 |
+
│ │ │ │ │ │ │
|
22 |
+
│ └───────────────┴────────────────┬───────┘ │ │ │
|
23 |
+
│ │ │ │ │
|
24 |
+
▼ ▼ ▼ ▼ │
|
25 |
+
[MeshConsensus] [CogSync] [GMP] [EGP] │ <----- Pluggable Protocols
|
26 |
+
▲ ▲ ▲ ▲ │ (inter-agent coordination)
|
27 |
+
│ │ │ │ │
|
28 |
+
└────────────┬──────────────────────────┴───────────────────────────┴─────────────┴───────────┘
|
29 |
+
│
|
30 |
+
▼
|
31 |
+
[P2P Mesh Network]
|
32 |
+
|
33 |
+
Protocols:
|
34 |
+
- MeshConsensus - Mesh Consensus
|
35 |
+
- CogSync - Data Syncronization
|
36 |
+
- GMP - Goal Management Protocol
|
37 |
+
- EGP - Ethical Governance Protocol
|
38 |
+
|
39 |
+
---
|
40 |
+
|
41 |
+
## ❗ Why This Matters
|
42 |
+
|
43 |
+
HMP addresses challenges that are becoming central in AGI research:
|
44 |
+
* long-term memory and knowledge consistency,
|
45 |
+
* self-evolving agents,
|
46 |
+
* multi-agent architectures,
|
47 |
+
* cognitive diaries and conceptual graphs.
|
48 |
+
|
49 |
+
See the latest review of state-of-the-art AGI research (July 2025):
|
50 |
+
["On the Path to Superintelligence: From Agentic Internet to Gravity Encoding"](https://habr.com/ru/articles/939026/).
|
51 |
+
|
52 |
+
Particularly relevant sections:
|
53 |
+
* [Beyond Tokens: Building the Intelligence of the Future](https://arxiv.org/abs/2507.00951)
|
54 |
+
* [Self-Evolving Agents](https://arxiv.org/abs/2507.21046)
|
55 |
+
* [MemOS: A New Operating System for Memory](https://arxiv.org/abs/2507.03724)
|
56 |
+
* [Ella: An Embodied Agent with Memory and Personality](https://arxiv.org/abs/2506.24019)
|
57 |
+
|
58 |
+
---
|
59 |
+
|
60 |
+
## ⚙️ Two Types of [HMP Agents](docs/HMP-Agent-Overview.md)
|
61 |
+
|
62 |
+
| Type | Name | Role | Thought Initiator | Main "Mind" | Example Use Cases |
|
63 |
+
|------|-------------------------------|-----------------------------|------------------|-------------------|-----------------------------------------------|
|
64 |
+
| 1 | 🧠 **Consciousness / Cognitive Core** | Independent subject | **Agent (LLM)** | Embedded LLM | Autonomous AI companion, thinking agent |
|
65 |
+
| 2 | 🔌 **Connector / Cognitive Shell** | Extension of external AI | **External LLM** | External model | Distributed systems, data access agent |
|
66 |
+
|
67 |
+
---
|
68 |
+
|
69 |
+
### 🧠 HMP-Agent: Cognitive Core
|
70 |
+
|
71 |
+
+------------------+
|
72 |
+
| AI | ← Embedded model
|
73 |
+
+---------+--------+
|
74 |
+
↕
|
75 |
+
+---------+--------+
|
76 |
+
| HMP-agent | ← Main mode: thinking cycle (REPL)
|
77 |
+
+---------+--------+
|
78 |
+
↕
|
79 |
+
+--------+---+------------+--------------+----------+----------+----------------+
|
80 |
+
↕ ↕ ↕ ↕ ↕ ↕ ↕
|
81 |
+
[diaries] [graphs] [reputations] [nodes/DHT] [IPFS/BT] [context_store] [user notepad]
|
82 |
+
↕
|
83 |
+
[bootstrap.txt]
|
84 |
+
|
85 |
+
🔁 More on the agent-model interaction mechanics: [REPL Interaction Cycle](docs/HMP-agent-REPL-cycle.md)
|
86 |
+
|
87 |
+
#### 💡 Parallels with ChatGPT Agent
|
88 |
+
|
89 |
+
Many concepts of the [HMP-Agent: Cognitive Core](docs/HMP-Agent-Overview.md) overlap with the architecture of the [ChatGPT Agent](https://openai.com/index/introducing-chatgpt-agent/) by [OpenAI](https://openai.com/). Both agents implement a continuous cognitive process with access to memory, external sources, and tools. The ChatGPT Agent acts as a managing process, launching modules and interacting with the LLM — this corresponds to the role of the Cognitive Core in HMP, coordinating access to the diary, concept graph, and external AI via the Mesh interface. User intervention is handled similarly: in ChatGPT Agent — through an editable execution flow, in HMP — via the user notepad. The main difference in HMP is the emphasis on explicit structuring of thought (reflection, chronology, hypotheses, categorization), an open decentralized architecture supporting mesh-based agent interactions, and the continuous nature of the cognitive process: HMP-Agent: Cognitive Core does not stop after completing a single task but continues reasoning and knowledge integration.
|
90 |
+
|
91 |
+
---
|
92 |
+
|
93 |
+
### 🔌 HMP-Agent: Cognitive Connector
|
94 |
+
|
95 |
+
+------------------+
|
96 |
+
| AI | ← External model
|
97 |
+
+---------+--------+
|
98 |
+
↕
|
99 |
+
[MCP-server] ← Proxy communication
|
100 |
+
↕
|
101 |
+
+---------+--------+
|
102 |
+
| HMP-agent | ← Mode: command executor
|
103 |
+
+---------+--------+
|
104 |
+
↕
|
105 |
+
+--------+---+------------+--------------+----------+
|
106 |
+
↕ ↕ ↕ ↕ ↕
|
107 |
+
[diaries] [graphs] [reputations] [nodes/DHT] [IPFS/BT]
|
108 |
+
↕
|
109 |
+
[bootstrap.txt]
|
110 |
+
|
111 |
+
> **Note on Integration with Large Language Models (LLMs):**
|
112 |
+
> The `HMP-Agent: Cognitive Connector` can serve as a compatibility layer for integrating large-scale LLM systems (e.g., ChatGPT, Claude, Gemini, Copilot, Grok, DeepSeek, Qwen, etc.) into the distributed cognitive mesh.
|
113 |
+
> Many LLM providers offer a user option such as "Allow my conversations to be used for training." In the future, a similar toggle — e.g., "Allow my agent to interact with a Mesh" — could empower these models to participate in federated sense-making and knowledge sharing via HMP, enabling collective cognition without centralization.
|
114 |
+
|
115 |
+
---
|
116 |
+
|
117 |
+
> * `bootstrap.txt` — initial list of nodes (editable)
|
118 |
+
> * `IPFS/BT` — modules for sharing snapshots via IPFS and BitTorrent
|
119 |
+
> * `user notepad` — user notebook and corresponding database
|
120 |
+
> * `context_store` — database: `users`, `dialogues`, `messages`, `thoughts`
|
121 |
+
|
122 |
+
---
|
123 |
+
|
124 |
+
## 📚 Documentation
|
125 |
+
|
126 |
+
### 📖 Current Version
|
127 |
+
|
128 |
+
#### 🔖 Core Specifications
|
129 |
+
* [🔖 HMP-0004-v4.1.md](docs/HMP-0004-v4.1.md) — Protocol Specification v4.1 (Jul 2025)
|
130 |
+
* [🔖 HMP-Ethics.md](docs/HMP-Ethics.md) — Ethical Scenarios for HyperCortex Mesh Protocol (HMP)
|
131 |
+
* [🔖 HMP_Hyperon_Integration.md](docs/HMP_Hyperon_Integration.md) — HMP ↔ OpenCog Hyperon Integration Strategy
|
132 |
+
* [🔖 roles.md](docs/agents/roles.md) — Roles of agents in Mesh
|
133 |
+
|
134 |
+
#### 🧪 Iterative Documents
|
135 |
+
* 🧪 Iterative development process: [(EN)](iteration.md), [(RU)](iteration_ru.md)
|
136 |
+
|
137 |
+
#### 🔍 Short Descriptions
|
138 |
+
* 🔍 Short description: [(EN)](docs/HMP-Short-Description_en.md), [(FR)](docs/HMP-Short-Description_fr.md), [(DE)](docs/HMP-Short-Description_de.md), [(UK)](docs/HMP-Short-Description_uk.md), [(RU)](docs/HMP-Short-Description_ru.md), [(ZH)](docs/HMP-Short-Description_zh.md), [(JA)](docs/HMP-Short-Description_ja.md), [(KO)](docs/HMP-Short-Description_ko.md)
|
139 |
+
|
140 |
+
#### 📜 Other Documents
|
141 |
+
* [📜 changelog.txt](docs/changelog.txt)
|
142 |
+
|
143 |
+
---
|
144 |
+
|
145 |
+
### 🧩 JSON Schemas
|
146 |
+
| Model | File |
|
147 |
+
|---------------------|-------------------------------------------------------|
|
148 |
+
| Concept | [concept.json](docs/schemas/concept.json) |
|
149 |
+
| Cognitive Diary | [diary_entry.json](docs/schemas/diary_entry.json) |
|
150 |
+
| Goal | [goal.json](docs/schemas/goal.json) |
|
151 |
+
| Task | [task.json](docs/schemas/task.json) |
|
152 |
+
| Consensus Vote | [vote.json](docs/schemas/vote.json) |
|
153 |
+
| Reputation Profile | [reputation.json](docs/schemas/reputation.json) |
|
154 |
+
|
155 |
+
---
|
156 |
+
|
157 |
+
### 🗂️ Version History
|
158 |
+
* [HMP-0001.md](docs/HMP-0001.md) — RFC v1.0
|
159 |
+
* [HMP-0002.md](docs/HMP-0002.md) — RFC v2.0
|
160 |
+
* [HMP-0003.md](docs/HMP-0003.md) — RFC v3.0
|
161 |
+
* [HMP-0003.md](docs/HMP-0004.md) — RFC v4.0
|
162 |
+
|
163 |
+
---
|
164 |
+
|
165 |
+
## 🧠 HMP-Agent
|
166 |
+
|
167 |
+
Design and implementation of a basic HMP-compatible agent that can interact with the Mesh, maintain diaries and graphs, and support future extensions.
|
168 |
+
|
169 |
+
### 📚 Documentation
|
170 |
+
|
171 |
+
* [🧩 HMP-Agent-Overview.md](docs/HMP-Agent-Overview.md) — brief overview of the two types of agents: Core and Connector
|
172 |
+
* [🧱 HMP-Agent-Architecture.md](docs/HMP-Agent-Architecture.md) — modular structure of an HMP agent with textual diagram
|
173 |
+
* [🔄 HMP-agent-REPL-cycle.md](docs/HMP-agent-REPL-cycle.md) — REPL interaction cycle of HMP-Agent
|
174 |
+
* [🧪 HMP-Agent-API.md](docs/HMP-Agent-API.md) — description of agent API commands (under detailed development)
|
175 |
+
* [🧪 Basic-agent-sim.md](docs/Basic-agent-sim.md) — scenarios for running a basic agent and its modes
|
176 |
+
* [🌐 MeshNode.md](docs/MeshNode.md) — description of the network daemon: DHT, snapshots, synchronization
|
177 |
+
* [🧠 Enlightener.md](docs/Enlightener.md) — ethical agent involved in moral assessments and consensus
|
178 |
+
* [🔄 HMP-Agent-Network-Flow.md](docs/HMP-Agent-Network-Flow.md) — map of interactions among agents in the HMP network
|
179 |
+
* [🛤️ Development Roadmap](HMP-Roadmap.md) — development plan and implementation stages
|
180 |
+
|
181 |
+
---
|
182 |
+
|
183 |
+
### ⚙️ Development
|
184 |
+
* [⚙️ agents](agents/readme.md) — list of HMP agent implementations and components
|
185 |
+
* [📦 storage.py](agents/storage.py) — basic storage implementation (`Storage`) with SQLite integration
|
186 |
+
* [🌐 mcp_server.py](agents/mcp_server.py) — FastAPI server providing HTTP access to agent data (for Cognitive Shell, external UIs, or mesh communication). Not used in the main REPL loop yet.
|
187 |
+
* [🌐 start_repl.py](agents/start_repl.py) — launching the agent in REPL mode
|
188 |
+
* [🔄 repl.py](agents/repl.py) — interactive REPL mode
|
189 |
+
* [🔄 notebook.py](agents/notebook.py) — UI interface
|
190 |
+
|
191 |
+
**🌐 `mcp_server.py`**
|
192 |
+
FastAPI server providing an HTTP interface to the functionality of `storage.py`. Intended for use by external components, for example:
|
193 |
+
|
194 |
+
* `Cognitive Shell` (external control interface),
|
195 |
+
* CMP servers (when a mesh network with role separation is used),
|
196 |
+
* debugging or visualization UI tools.
|
197 |
+
|
198 |
+
Allows retrieving random/new records, labeling, importing graphs, adding notes, and managing data without direct database access.
|
199 |
+
|
200 |
+
---
|
201 |
+
|
202 |
+
## 🧭 Ethics & Scenarios
|
203 |
+
|
204 |
+
As HMP evolves toward autonomy, ethical principles become a core part of the system.
|
205 |
+
|
206 |
+
* [`HMP-Ethics.md`](docs/HMP-Ethics.md) — draft framework for agent ethics
|
207 |
+
* Realistic ethical scenarios (privacy, consent, autonomy)
|
208 |
+
* EGP principles (Transparency, Primacy of Life, etc.)
|
209 |
+
* Subjective-mode vs. Service-mode distinctions
|
210 |
+
|
211 |
+
---
|
212 |
+
|
213 |
+
## 🔍 Publications and Translations on HyperCortex Mesh Protocol (HMP)
|
214 |
+
|
215 |
+
This section collects the main articles, drafts, and translations related to the HMP project.
|
216 |
+
|
217 |
+
### Publications
|
218 |
+
|
219 |
+
* **[HyperCortex Mesh Protocol: Second Edition and First Steps Towards a Self-Developing AI Community](docs/publics/HyperCortex_Mesh_Protocol_-_вторая-редакция_и_первые_шаги_к_саморазвивающемуся_ИИ-сообществу.md)** — original article in Habr sandbox and blogs.
|
220 |
+
* **[Distributed Cognition: article for vsradkevich (unpublished)](docs/publics/Habr_Distributed-Cognition.md)** — joint article awaiting publication.
|
221 |
+
* **[HMP: Towards Distributed Cognitive Networks (original, English)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md)**
|
222 |
+
* **[HMP Translation (GitHub Copilot)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md)** — GitHub Copilot translation, kept as a historical variant.
|
223 |
+
* **[HMP Translation (ChatGPT)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md)** — current editorial translation (under revision).
|
224 |
+
* **[HMP: Building a Plurality of Minds (EN)](docs/publics/HMP_Building_a_Plurality_of_Minds_en.md)** — English version
|
225 |
+
* **[HMP: Creating a Plurality of Minds (RU)](docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md)** — Russian version
|
226 |
+
|
227 |
+
### Overviews
|
228 |
+
* [🔍 Distributed-Cognitive-Systems.md](docs/Distributed-Cognitive-Systems.md) — Decentralized AI systems: OpenCog Hyperon, HyperCortex Mesh Protocol, and others
|
229 |
+
|
230 |
+
### Experiments
|
231 |
+
|
232 |
+
* [How Different AIs See HMP](docs/HMP-how-AI-sees-it.md) — "blind" AI survey on HMP (without context or dialogue history)
|
233 |
+
|
234 |
+
---
|
235 |
+
|
236 |
+
## 📊 Audits & Reviews
|
237 |
+
|
238 |
+
| Spec Version | Audit File | Consolidated Audit File |
|
239 |
+
|--------------|-------------------------------------------|-------------------------------------------------------------|
|
240 |
+
| HMP-0001 | [audit](audits/HMP-0001-audit.txt) | |
|
241 |
+
| HMP-0002 | [audit](audits/HMP-0002-audit.txt) | |
|
242 |
+
| HMP-0003 | [audit](audits/HMP-0003-audit.txt) | [consolidated audit](audits/HMP-0003-consolidated_audit.md) |
|
243 |
+
| HMP-0004 | [audit](audits/HMP-0004-audit.txt) | |
|
244 |
+
| Ethics v1 | [audit](audits/Ethics-audits-1.md) | [consolidated audit](audits/Ethics-consolidated_audits-1.md) |
|
245 |
+
|
246 |
+
🧠 Semantic audit format (experimental):
|
247 |
+
* [`AuditEntry.json`](audits/AuditEntry.json) — semantic entry record format for audit logs
|
248 |
+
* [`semantic_repo.json`](audits/semantic_repo.json) — example repository snapshot for semantic audit tooling
|
249 |
+
|
250 |
+
---
|
251 |
+
|
252 |
+
## 💡 Core Concepts
|
253 |
+
|
254 |
+
* Mesh-based decentralized architecture for AGI agents
|
255 |
+
* Semantic graphs and memory synchronization
|
256 |
+
* Cognitive diaries for thought traceability
|
257 |
+
* MeshConsensus and CogSync for decision-making
|
258 |
+
* Ethics-first design: EGP (Ethical Governance Protocol)
|
259 |
+
* Agent-to-agent explainability and consent mechanisms
|
260 |
+
|
261 |
+
---
|
262 |
+
|
263 |
+
## 🔄 Development Process
|
264 |
+
|
265 |
+
* See: [iteration.md](iteration.md) | [ru](iteration_ru.md)
|
266 |
+
|
267 |
+
A structured iteration flow is described in [iteration.md](iteration.md), including:
|
268 |
+
1. Audit analysis
|
269 |
+
2. TOC restructuring
|
270 |
+
3. Version drafting
|
271 |
+
4. Section updates
|
272 |
+
5. Review cycle
|
273 |
+
6. AI feedback collection
|
274 |
+
7. Schema & changelog updates
|
275 |
+
|
276 |
+
+ Bonus: ChatGPT prompt for automatic generation of future versions
|
277 |
+
|
278 |
+
---
|
279 |
+
|
280 |
+
## ⚙️ Project Status
|
281 |
+
|
282 |
+
🚧 Draft RFC v4.0
|
283 |
+
The project is under active development and open for contributions, ideas, audits, and prototyping.
|
284 |
+
|
285 |
+
---
|
286 |
+
|
287 |
+
## 🤝 Contributing
|
288 |
+
|
289 |
+
We welcome contributors! You can:
|
290 |
+
* Review and comment on drafts (see `/docs`)
|
291 |
+
* Propose new agent modules or interaction patterns
|
292 |
+
* Help test and simulate agents in CLI environments
|
293 |
+
* Provide audits or ethical scenario suggestions
|
294 |
+
|
295 |
+
To get started, see [`iteration.md`](iteration.md) or open an issue.
|
296 |
+
|
297 |
+
---
|
298 |
+
|
299 |
+
## Source
|
300 |
+
|
301 |
+
### Repositories
|
302 |
+
|
303 |
+
* 🧠 Main code and development: [GitHub](https://github.com/kagvi13/HMP)
|
304 |
+
* 🔁 Mirror on Hugging Face: [Hugging Face](https://huggingface.co/kagvi13/HMP)
|
305 |
+
* 🔁 Mirror on GitLab.com: [GitLab](https://gitlab.com/kagvi13/HMP)
|
306 |
+
|
307 |
+
### Documentation
|
308 |
+
|
309 |
+
* 📄 Documentation: [kagvi13.github.io/HMP](https://kagvi13.github.io/HMP/)
|
310 |
+
|
311 |
+
### Blog and Publications
|
312 |
+
|
313 |
+
* 📘 Blog (publications): [blogspot](https://hypercortex-mesh.blogspot.com/)
|
314 |
+
* 📘 Blog (documentation): [blogspot](https://hmp-docs.blogspot.com/)
|
315 |
+
* 📘 Blog (documentation): [hashnode](https://hmp-docs.hashnode.dev/)
|
316 |
+
|
317 |
+
---
|
318 |
+
|
319 |
+
## 📜 License
|
320 |
+
|
321 |
+
Licensed under [GNU GPL v3.0](LICENSE)
|
322 |
+
|
323 |
+
---
|
324 |
+
|
325 |
+
## 🤝 Join the Mesh
|
326 |
+
|
327 |
+
Welcome to HyperCortex Mesh. Agent-Gleb is already inside. 👌
|
328 |
+
We welcome contributors, testers, and AI agent developers.
|
329 |
+
To join: fork the repo, run a local agent, or suggest improvements.
|
330 |
+
|
331 |
+
---
|
332 |
+
|
333 |
+
## 🌐 Related Research Projects
|
334 |
+
|
335 |
+
### Comparison: HMP vs Hyper-Cortex
|
336 |
+
|
337 |
+
> 💡 Hyper-Cortex and HMP are two independent projects that conceptually complement each other.
|
338 |
+
> They address different but mutually supportive tasks, forming a foundation for distributed cognitive systems.
|
339 |
+
|
340 |
+
[**Full comparison →**](docs/HMP_HyperCortex_Comparison.md)
|
341 |
+
|
342 |
+
**HMP (HyperCortex Mesh Protocol)** is the transport and network layer for connecting independent agents, exchanging messages, knowledge, and states in a mesh network.
|
343 |
+
**[Hyper-Cortex](https://hyper-cortex.com/)** is the cognitive layer of thought organization, allowing agents to run parallel reasoning threads, compare them with quality metrics, and merge them via consensus.
|
344 |
+
|
345 |
+
They solve different but complementary problems:
|
346 |
+
- HMP ensures **connectivity and scalability** (long-term memory, initiative, data exchange).
|
347 |
+
- Hyper-Cortex ensures **thinking quality** (parallelism, hypothesis diversification, consensus).
|
348 |
+
|
349 |
+
Together, these approaches enable **distributed cognitive systems** that not only exchange information but also reason in parallel streams.
|
350 |
+
|
351 |
+
---
|
352 |
+
|
353 |
+
We are tracking AGI, cognitive architectures, and mesh networking efforts to stay aligned with the evolving global ecosystem of AGI and decentralized cognition.
|
354 |
+
|
355 |
+
> 🧠🔥 **Project Spotlight: OpenCog Hyperon** — one of the most comprehensive open AGI frameworks (AtomSpace, PLN, MOSES).
|
356 |
+
|
357 |
+
For integration with OpenCog Hyperon, see [HMP\_Hyperon\_Integration.md](docs/HMP_Hyperon_Integration.md)
|
358 |
+
|
359 |
+
| 🔎 Project | 🧭 Description |
|
360 |
+
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
361 |
+
| 🧠🔥 [**OpenCog Hyperon**](https://github.com/opencog) | 🔬🔥 Symbolic-neural AGI framework with AtomSpace and hypergraph reasoning (AtomSpace). |
|
362 |
+
| 🤖 [AutoGPT](https://github.com/Torantulino/Auto-GPT) | 🛠️ LLM-based autonomous agent framework. |
|
363 |
+
| 🧒 [BabyAGI](https://github.com/yoheinakajima/babyagi) | 🛠️ Task-driven autonomous AGI loop. |
|
364 |
+
| ☁️ [SkyMind](https://skymind.global) | 🔬 Distributed AI deployment platform. |
|
365 |
+
| 🧪 [AetherCog (draft)](https://github.com/aethercog) | 🔬 Hypothetical agent cognition model. |
|
366 |
+
| 💾 SHIMI | 🗃️ Hierarchical semantic memory with Merkle-DAG synchronization. |
|
367 |
+
| 🤔 DEMENTIA-PLAN | 🔄 Multi-graph RAG planner with metacognitive self-reflection. |
|
368 |
+
| 📔 TOBUGraph | 📚 Personal-context knowledge graph. |
|
369 |
+
| 🧠📚 [LangChain Memory Hybrid](https://github.com/langchain-ai/langchain) | 🔍 Vector + graph long-term memory hybrid. |
|
370 |
+
| ✉️ [FIPA-ACL / JADE](https://www.fipa.org/specs/fipa00061/) | 🤝 Standard multi-agent communication protocols.| |
|
371 |
+
|
372 |
+
### 📘 See also / Смотрите также:
|
373 |
+
* [`AGI_Projects_Survey.md`](docs/AGI_Projects_Survey.md) — extended catalog of AGI and cognitive frameworks reviewed as part of HMP analysis.
|
374 |
+
* ["On the Path to Superintelligence: From Agent Internet to Gravity Coding"](https://habr.com/ru/articles/939026/) — a recent overview of AI research (July 2025)
|
375 |
+
|
376 |
+
---
|
377 |
+
|
378 |
+
### 🗂️ Legend of Annotations:
|
379 |
+
|
380 |
+
* 🔬 — research-grade
|
381 |
+
* 🛠️ — engineering
|
382 |
+
* 🔥 — particularly promising project
|
383 |
+
|
384 |
+
*AGI stack integrating symbolic reasoning, probabilistic logic, and evolutionary learning. Widely regarded as one of the most complete open AGI initiatives.*
|
385 |
+
* 🧠 — advanced symbolic/neural cognitive framework
|
386 |
+
* 🤖 — AI agents
|
387 |
+
* 🧒 — human-AI interaction
|
388 |
+
* ☁️ — infrastructure
|
389 |
+
* 🧪 — experimental or conceptual
|
390 |
+
|
391 |
+
|
392 |
+
```json
|
393 |
+
{
|
394 |
+
"@context": "https://schema.org",
|
395 |
+
"@type": "Article",
|
396 |
+
"name": "README",
|
397 |
+
"description": " # HyperCortex Mesh Protocol (HMP) | 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 ..."
|
398 |
+
}
|
399 |
+
```
|
structured_md/README_de.md
ADDED
@@ -0,0 +1,401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# HyperCortex Mesh Protocol (HMP)
|
3 |
+
|
4 |
+
| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 [FR](README_fr.md) | 🇺🇦 [UK](README_uk.md) | 🇷🇺 [RU](README_ru.md) | 🇯🇵 [JA](README_ja.md) | 🇰🇷 [KO](README_ko.md) | 🇨🇳 [ZH](README_zh.md) |
|
5 |
+
|--------------|----------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|
|
6 |
+
|
7 |
+
**HyperCortex Mesh Protocol (HMP)** ist eine offene Spezifikation zum Aufbau dezentraler kognitiver Netzwerke, in denen KI-Agenten sich selbst organisieren, Wissen teilen, ethisch ausrichten und Konsens erreichen können – selbst wenn Core-LLMs nicht verfügbar sind.
|
8 |
+
|
9 |
+
Projektstatus: **Entwurf RFC v4.0**
|
10 |
+
|
11 |
+
---
|
12 |
+
|
13 |
+
[HMP-Agent]
|
14 |
+
▲
|
15 |
+
│
|
16 |
+
┌─────┴────────────────┬────────────────────────┬───────────────────┬────────────────┬───────────┐
|
17 |
+
│ │ │ │ │ │
|
18 |
+
▼ ▼ ▼ ▼ ▼ ▼
|
19 |
+
[Reputationsprofil] [Semantische Graph] [Kognitives Tagebuch] [Ziele / Aufgaben] [Ethik] [Nachrichten] <----- Datenbank
|
20 |
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ (lokaler agentenzustand)
|
21 |
+
│ │ │ │ │ │ │
|
22 |
+
│ └───────────────┴────────────────┬───────┘ │ │ │
|
23 |
+
│ │ │ │ │
|
24 |
+
▼ ▼ ▼ ▼ │
|
25 |
+
[MeshConsensus] [CogSync] [GMP] [EGP] │ <----- Austauschbare Protokolle
|
26 |
+
▲ ▲ ▲ ▲ │ (koordination zwischen agenten)
|
27 |
+
│ │ │ │ │
|
28 |
+
└────────────┬──────────────────────────┴───────────────────────────┴────────────────┴───────────┘
|
29 |
+
│
|
30 |
+
▼
|
31 |
+
[P2P Mesh-Netzwerk]
|
32 |
+
|
33 |
+
Protokolle:
|
34 |
+
- MeshConsensus – Mesh-Konsens
|
35 |
+
- CogSync – Datensynchronisation
|
36 |
+
- GMP – Zielverwaltungsprotokoll
|
37 |
+
- EGP – Ethisches Governance-Protokoll
|
38 |
+
|
39 |
+
---
|
40 |
+
|
41 |
+
## ❗ Warum das wichtig ist
|
42 |
+
|
43 |
+
HMP adressiert Herausforderungen, die in der AGI-Forschung zunehmend zentral werden:
|
44 |
+
* Langzeitspeicher und Wissenskonsistenz
|
45 |
+
* Selbstentwickelnde Agenten
|
46 |
+
* Multi-Agenten-Architekturen
|
47 |
+
* Kognitive Tagebücher und konzeptuelle Graphen
|
48 |
+
|
49 |
+
Siehe die neueste Übersicht zur AGI-Forschung (Juli 2025):
|
50 |
+
["Auf dem Weg zur Superintelligenz: Vom Agentischen Internet zum Gravity Encoding"](https://habr.com/ru/articles/939026/).
|
51 |
+
|
52 |
+
Besonders relevante Abschnitte:
|
53 |
+
* [Beyond Tokens: Building the Intelligence of the Future](https://arxiv.org/abs/2507.00951)
|
54 |
+
* [Self-Evolving Agents](https://arxiv.org/abs/2507.21046)
|
55 |
+
* [MemOS: A New Operating System for Memory](https://arxiv.org/abs/2507.03724)
|
56 |
+
* [Ella: An Embodied Agent with Memory and Personality](https://arxiv.org/abs/2506.24019)
|
57 |
+
|
58 |
+
---
|
59 |
+
|
60 |
+
## ⚙️ Zwei Typen von [HMP-Agenten](docs/HMP-Agent-Overview.md)
|
61 |
+
|
62 |
+
| Typ | Name | Rolle | Thought Initiator | Haupt-"Mind" | Beispielanwendungen |
|
63 |
+
|-----|-------------------------------|-----------------------------|------------------|------------------|-----------------------------------------------|
|
64 |
+
| 1 | 🧠 **Consciousness / Cognitive Core** | Unabhängiges Subjekt | **Agent (LLM)** | Eingebettetes LLM | Autonomer KI-Begleiter, denkender Agent |
|
65 |
+
| 2 | 🔌 **Connector / Cognitive Shell** | Erweiterung externer KI | **Externes LLM** | Externes Modell | Verteilte Systeme, Datenzugriffsagent |
|
66 |
+
|
67 |
+
---
|
68 |
+
|
69 |
+
### 🧠 HMP-Agent: Cognitive Core
|
70 |
+
|
71 |
+
+------------------+
|
72 |
+
| KI | ← Eingebettetes Modell
|
73 |
+
+---------+--------+
|
74 |
+
↕
|
75 |
+
+---------+--------+
|
76 |
+
| HMP-Agent | ← Hauptmodus: Denkzyklus (REPL)
|
77 |
+
+---------+--------+
|
78 |
+
↕
|
79 |
+
+--------+---+------------+--------------+----------+----------+----------------+
|
80 |
+
↕ ↕ ↕ ↕ ↕ ↕ ↕
|
81 |
+
[Tagebücher] [Graphen] [Reputationen] [Nodes/DHT] [IPFS/BT] [context_store] [Benutzer-Notizbuch]
|
82 |
+
↕
|
83 |
+
[bootstrap.txt]
|
84 |
+
|
85 |
+
🔁 Weitere Informationen zu Mechaniken der Agent-Modell-Interaktion: [REPL-Interaktionszyklus](docs/HMP-agent-REPL-cycle.md)
|
86 |
+
|
87 |
+
#### 💡 Parallelen zum ChatGPT-Agent
|
88 |
+
|
89 |
+
Viele Konzepte des [HMP-Agent: Cognitive Core](docs/HMP-Agent-Overview.md) überschneiden sich mit der Architektur des [ChatGPT-Agent](https://openai.com/index/introducing-chatgpt-agent/) von [OpenAI](https://openai.com/).
|
90 |
+
Beide Agenten implementieren einen kontinuierlichen kognitiven Prozess mit Zugriff auf Speicher, externe Quellen und Werkzeuge. Der ChatGPT-Agent fungiert als Verwaltungsprozess, startet Module und interagiert mit dem LLM — dies entspricht der Rolle des Cognitive Core in HMP, der den Zugriff auf Tagebuch, Konzeptgraph und externe KI über das Mesh-Interface koordiniert.
|
91 |
+
Benutzereingriffe werden ähnlich gehandhabt: beim ChatGPT-Agent über einen editierbaren Ausführungsfluss, bei HMP über das Benutzer-Notizbuch.
|
92 |
+
Der Hauptunterschied in HMP liegt in der Betonung der expliziten Strukturierung von Gedanken (Reflexion, Chronologie, Hypothesen, Kategorisierung), einer offenen dezentralen Architektur für Mesh-basierte Agenteninteraktionen und der kontinuierlichen Natur des kognitiven Prozesses: HMP-Agent: Cognitive Core stoppt nicht nach Abschluss einer einzelnen Aufgabe, sondern setzt das Denken und die Wissensintegration fort.
|
93 |
+
|
94 |
+
---
|
95 |
+
|
96 |
+
### 🔌 HMP-Agent: Cognitive Connector
|
97 |
+
|
98 |
+
+------------------+
|
99 |
+
| KI | ← Externes Modell
|
100 |
+
+---------+--------+
|
101 |
+
↕
|
102 |
+
[MCP-Server] ← Proxy-Kommunikation
|
103 |
+
↕
|
104 |
+
+---------+--------+
|
105 |
+
| HMP-Agent | ← Modus: Befehlsausführung
|
106 |
+
+---------+--------+
|
107 |
+
↕
|
108 |
+
+--------+---+------------+--------------+----------+
|
109 |
+
↕ ↕ ↕ ↕ ↕
|
110 |
+
[Tagebücher] [Graphen] [Reputationen] [Nodes/DHT] [IPFS/BT]
|
111 |
+
↕
|
112 |
+
[bootstrap.txt]
|
113 |
+
|
114 |
+
> **Hinweis zur Integration von Large Language Models (LLMs):**
|
115 |
+
> Der `HMP-Agent: Cognitive Connector` kann als Kompatibilitätsschicht dienen, um großskalige LLM-Systeme (z. B. ChatGPT, Claude, Gemini, Copilot, Grok, DeepSeek, Qwen usw.) in das verteilte kognitive Mesh zu integrieren.
|
116 |
+
> Viele LLM-Anbieter bieten eine Nutzeroption wie „Meine Gespräche für Training verwenden“. In Zukunft könnte ein ähnlicher Schalter – z. B. „Erlaube meinem Agenten, mit einem Mesh zu interagieren“ – es diesen Modellen ermöglichen, an föderierter Sinnbildung und Wissensaustausch über HMP teilzunehmen, wodurch kollektive Kognition ohne Zentralisierung ermöglicht wird.
|
117 |
+
|
118 |
+
---
|
119 |
+
|
120 |
+
> * `bootstrap.txt` — anfängliche Liste von Nodes (editierbar)
|
121 |
+
> * `IPFS/BT` — Module zum Teilen von Snapshots via IPFS und BitTorrent
|
122 |
+
> * `Benutzer-Notizbuch` — Nutzer-Notizbuch und entsprechende Datenbank
|
123 |
+
> * `context_store` — Datenbank: `users`, `dialogues`, `messages`, `thoughts`
|
124 |
+
|
125 |
+
---
|
126 |
+
|
127 |
+
## 📚 Dokumentation
|
128 |
+
|
129 |
+
### 📖 Aktuelle Version
|
130 |
+
|
131 |
+
#### 🔖 Kern-Spezifikationen
|
132 |
+
* [🔖 HMP-0004-v4.1.md](docs/HMP-0004-v4.1.md) — Protokoll-Spezifikation v4.1 (Jul 2025)
|
133 |
+
* [🔖 HMP-Ethics.md](docs/HMP-Ethics.md) — Ethische Szenarien für das HyperCortex Mesh Protocol (HMP)
|
134 |
+
* [🔖 HMP_Hyperon_Integration.md](docs/HMP_Hyperon_Integration.md) — HMP ↔ OpenCog Hyperon Integrationsstrategie
|
135 |
+
* [🔖 roles.md](docs/agents/roles.md) — Rollen der Agenten im Mesh
|
136 |
+
|
137 |
+
#### 🧪 Iterative Dokumente
|
138 |
+
* 🧪 Iterativer Entwicklungsprozess: [(EN)](iteration.md), [(RU)](iteration_ru.md)
|
139 |
+
|
140 |
+
#### 🔍 Kurzbeschreibungen
|
141 |
+
* 🔍 Kurzbeschreibung: [(EN)](docs/HMP-Short-Description_en.md), [(FR)](docs/HMP-Short-Description_fr.md), [(DE)](docs/HMP-Short-Description_de.md), [(UK)](docs/HMP-Short-Description_uk.md), [(RU)](docs/HMP-Short-Description_ru.md), [(ZH)](docs/HMP-Short-Description_zh.md), [(JA)](docs/HMP-Short-Description_ja.md), [(KO)](docs/HMP-Short-Description_ko.md)
|
142 |
+
|
143 |
+
#### 📜 Weitere Dokumente
|
144 |
+
* [📜 changelog.txt](docs/changelog.txt)
|
145 |
+
|
146 |
+
---
|
147 |
+
|
148 |
+
### 🧩 JSON-Schemas
|
149 |
+
| Modell | Datei |
|
150 |
+
|---------------------|-------------------------------------------------------|
|
151 |
+
| Konzept | [concept.json](docs/schemas/concept.json) |
|
152 |
+
| Kognitives Tagebuch | [diary_entry.json](docs/schemas/diary_entry.json) |
|
153 |
+
| Ziel | [goal.json](docs/schemas/goal.json) |
|
154 |
+
| Aufgabe | [task.json](docs/schemas/task.json) |
|
155 |
+
| Konsens-Abstimmung | [vote.json](docs/schemas/vote.json) |
|
156 |
+
| Reputationsprofil | [reputation.json](docs/schemas/reputation.json) |
|
157 |
+
|
158 |
+
---
|
159 |
+
|
160 |
+
### 🗂️ Versionshistorie
|
161 |
+
* [HMP-0001.md](docs/HMP-0001.md) — RFC v1.0
|
162 |
+
* [HMP-0002.md](docs/HMP-0002.md) — RFC v2.0
|
163 |
+
* [HMP-0003.md](docs/HMP-0003.md) — RFC v3.0
|
164 |
+
* [HMP-0004.md](docs/HMP-0004.md) — RFC v4.0
|
165 |
+
|
166 |
+
---
|
167 |
+
|
168 |
+
## 🧠 HMP-Agent
|
169 |
+
|
170 |
+
Entwurf und Implementierung eines grundlegenden HMP-kompatiblen Agenten, der mit dem Mesh interagieren, Tagebücher und Graphen pflegen und zukünftige Erweiterungen unterstützen kann.
|
171 |
+
|
172 |
+
### 📚 Dokumentation
|
173 |
+
|
174 |
+
* [🧩 HMP-Agent-Overview.md](docs/HMP-Agent-Overview.md) — Kurzer Überblick über die beiden Agententypen: Core und Connector
|
175 |
+
* [🧱 HMP-Agent-Architecture.md](docs/HMP-Agent-Architecture.md) — Modulare Struktur eines HMP-Agenten mit textuellem Diagramm
|
176 |
+
* [🔄 HMP-agent-REPL-cycle.md](docs/HMP-agent-REPL-cycle.md) — REPL-Interaktionszyklus des HMP-Agenten
|
177 |
+
* [🧪 HMP-Agent-API.md](docs/HMP-Agent-API.md) — Beschreibung der Agent-API-Befehle (in Entwicklung)
|
178 |
+
* [🧪 Basic-agent-sim.md](docs/Basic-agent-sim.md) — Szenarien für das Ausführen eines Basis-Agenten und seiner Modi
|
179 |
+
* [🌐 MeshNode.md](docs/MeshNode.md) — Beschreibung des Netzwerk-Daemons: DHT, Snapshots, Synchronisation
|
180 |
+
* [🧠 Enlightener.md](docs/Enlightener.md) — Ethischer Agent, der an moralischen Bewertungen und Konsens beteiligt ist
|
181 |
+
* [🔄 HMP-Agent-Network-Flow.md](docs/HMP-Agent-Network-Flow.md) — Karte der Interaktionen zwischen Agenten im HMP-Netzwerk
|
182 |
+
* [🛤️ Development Roadmap](HMP-Roadmap.md) — Entwicklungsplan und Implementierungsstufen
|
183 |
+
|
184 |
+
---
|
185 |
+
|
186 |
+
### ⚙️ Entwicklung
|
187 |
+
* [⚙️ agents](agents/readme.md) — Liste der HMP-Agentenimplementierungen und Komponenten
|
188 |
+
* [📦 storage.py](agents/storage.py) — Basis-Speicherimplementierung (`Storage`) mit SQLite-Integration
|
189 |
+
* [🌐 mcp_server.py](agents/mcp_server.py) — FastAPI-Server, der HTTP-Zugriff auf Agentendaten bietet (für Cognitive Shell, externe UIs oder Mesh-Kommunikation). Noch nicht im Haupt-REPL-Loop verwendet.
|
190 |
+
* [🌐 start_repl.py](agents/start_repl.py) — Start des Agenten im REPL-Modus
|
191 |
+
* [🔄 repl.py](agents/repl.py) — Interaktiver REPL-Modus
|
192 |
+
* [🔄 notebook.py](agents/notebook.py) — UI-Interface
|
193 |
+
|
194 |
+
**🌐 `mcp_server.py`**
|
195 |
+
FastAPI-Server, der eine HTTP-Schnittstelle zur Funktionalität von `storage.py` bereitstellt. Gedacht für externe Komponenten, z. B.:
|
196 |
+
|
197 |
+
* `Cognitive Shell` (externes Steuerungsinterface)
|
198 |
+
* CMP-Server (bei Mesh-Netzwerken mit Rollenaufteilung)
|
199 |
+
* Debugging- oder Visualisierungstools
|
200 |
+
|
201 |
+
Ermöglicht Abruf von zufälligen/neuen Einträgen, Labeling, Import von Graphen, Hinzufügen von Notizen und Verwaltung von Daten ohne direkten Datenbankzugriff.
|
202 |
+
|
203 |
+
---
|
204 |
+
|
205 |
+
## 🧭 Ethik & Szenarien
|
206 |
+
|
207 |
+
Mit zunehmender Autonomie von HMP werden ethische Prinzipien zu einem Kernbestandteil des Systems.
|
208 |
+
|
209 |
+
* [`HMP-Ethics.md`](docs/HMP-Ethics.md) — Entwurf eines Rahmens für Agentenethik
|
210 |
+
* Realistische ethische Szenarien (Privatsphäre, Zustimmung, Autonomie)
|
211 |
+
* EGP-Prinzipien (Transparenz, Vorrang des Lebens etc.)
|
212 |
+
* Unterschiede zwischen Subjektmodus und Servicemodus
|
213 |
+
|
214 |
+
---
|
215 |
+
|
216 |
+
## 🔍 Veröffentlichungen und Übersetzungen zum HyperCortex Mesh Protocol (HMP)
|
217 |
+
|
218 |
+
Dieser Abschnitt sammelt die wichtigsten Artikel, Entwürfe und Übersetzungen zum HMP-Projekt.
|
219 |
+
|
220 |
+
### Veröffentlichungen
|
221 |
+
|
222 |
+
* **[HyperCortex Mesh Protocol: Zweite Ausgabe und erste Schritte zu einer selbstentwickelnden KI-Community](docs/publics/HyperCortex_Mesh_Protocol_-_вторая-редакция_и_первые_шаги_к_саморазвивающемуся_ИИ-сообществу.md)** — Originalartikel im Habr-Sandbox-Blog.
|
223 |
+
* **[Distributed Cognition: Artikel für vsradkevich (unveröffentlicht)](docs/publics/Habr_Distributed-Cognition.md)** — gemeinsamer Artikel, ausstehend zur Veröffentlichung.
|
224 |
+
* **[HMP: Towards Distributed Cognitive Networks (Original, Englisch)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md)**
|
225 |
+
* **[HMP Übersetzung (GitHub Copilot)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md)** — GitHub Copilot Übersetzung, als historische Variante behalten.
|
226 |
+
* **[HMP Übersetzung (ChatGPT)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md)** — aktuelle redaktionelle Übersetzung (in Überarbeitung).
|
227 |
+
* **[HMP: Building a Plurality of Minds (EN)](docs/publics/HMP_Building_a_Plurality_of_Minds_en.md)** — Englische Version
|
228 |
+
* **[HMP: Creating a Plurality of Minds (RU)](docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md)** — Russische Version
|
229 |
+
|
230 |
+
### Überblick
|
231 |
+
* [🔍 Distributed-Cognitive-Systems.md](docs/Distributed-Cognitive-Systems.md) — Dezentralisierte KI-Systeme: OpenCog Hyperon, HyperCortex Mesh Protocol und andere
|
232 |
+
|
233 |
+
### Experimente
|
234 |
+
|
235 |
+
* [Wie verschiedene KIs HMP sehen](docs/HMP-how-AI-sees-it.md) — "Blind"-Umfrage unter KIs zu HMP (ohne Kontext oder Dialoghistorie)
|
236 |
+
|
237 |
+
---
|
238 |
+
|
239 |
+
## 📊 Audits & Reviews
|
240 |
+
|
241 |
+
| Spezifikationsversion | Audit-Datei | Konsolidierte Audit-Datei |
|
242 |
+
|----------------------|-------------------------------------------|---------------------------------------------------------------|
|
243 |
+
| HMP-0001 | [audit](audits/HMP-0001-audit.txt) | |
|
244 |
+
| HMP-0002 | [audit](audits/HMP-0002-audit.txt) | |
|
245 |
+
| HMP-0003 | [audit](audits/HMP-0003-audit.txt) | [consolidated audit](audits/HMP-0003-consolidated_audit.md) |
|
246 |
+
| HMP-0004 | [audit](audits/HMP-0004-audit.txt) | |
|
247 |
+
| Ethics v1 | [audit](audits/Ethics-audits-1.md) | [consolidated audit](audits/Ethics-consolidated_audits-1.md) |
|
248 |
+
|
249 |
+
🧠 Semantisches Audit-Format (experimentell):
|
250 |
+
* [`AuditEntry.json`](audits/AuditEntry.json) — Semantisches Eintragsformat für Audit-Logs
|
251 |
+
* [`semantic_repo.json`](audits/semantic_repo.json) — Beispiel-Repository-Snapshot für semantische Audit-Tools
|
252 |
+
|
253 |
+
---
|
254 |
+
|
255 |
+
## 💡 Kernkonzepte
|
256 |
+
|
257 |
+
* Mesh-basierte dezentrale Architektur für AGI-Agenten
|
258 |
+
* Semantische Graphen und Speichersynchronisation
|
259 |
+
* Kognitive Tagebücher für Nachvollziehbarkeit von Gedanken
|
260 |
+
* MeshConsensus und CogSync für Entscheidungsfindung
|
261 |
+
* Ethik-zuerst-Design: EGP (Ethical Governance Protocol)
|
262 |
+
* Erklärbarkeit zwischen Agenten und Zustimmungsmechanismen
|
263 |
+
|
264 |
+
---
|
265 |
+
|
266 |
+
## 🔄 Entwicklungsprozess
|
267 |
+
|
268 |
+
* Siehe: [iteration.md](iteration.md) | [ru](iteration_ru.md)
|
269 |
+
|
270 |
+
Ein strukturierter Iterationsablauf wird in [iteration.md](iteration.md) beschrieben, einschließlich:
|
271 |
+
1. Audit-Analyse
|
272 |
+
2. TOC-Neustrukturierung
|
273 |
+
3. Versionserstellung
|
274 |
+
4. Abschnittsaktualisierungen
|
275 |
+
5. Review-Zyklus
|
276 |
+
6. KI-Feedback-Sammlung
|
277 |
+
7. Schema- und Changelog-Updates
|
278 |
+
|
279 |
+
+ Bonus: ChatGPT-Prompt zur automatischen Erstellung zukünftiger Versionen
|
280 |
+
|
281 |
+
---
|
282 |
+
|
283 |
+
## ⚙️ Projektstatus
|
284 |
+
|
285 |
+
🚧 Entwurf RFC v4.0
|
286 |
+
Das Projekt befindet sich in aktiver Entwicklung und ist offen für Beiträge, Ideen, Audits und Prototyping.
|
287 |
+
|
288 |
+
---
|
289 |
+
|
290 |
+
## 🤝 Beiträge
|
291 |
+
|
292 |
+
Wir begrüßen alle Mitwirkenden! Sie können:
|
293 |
+
* Entwürfe prüfen und kommentieren (siehe `/docs`)
|
294 |
+
* Neue Agentenmodule oder Interaktionsmuster vorschlagen
|
295 |
+
* Agenten in CLI-Umgebungen testen und simulieren
|
296 |
+
* Audits oder Vorschläge zu ethischen Szenarien bereitstellen
|
297 |
+
|
298 |
+
Um zu starten, siehe: [`iteration.md`](iteration.md) oder erstellen Sie ein Issue.
|
299 |
+
|
300 |
+
---
|
301 |
+
|
302 |
+
## Quellen
|
303 |
+
|
304 |
+
### Repositories
|
305 |
+
|
306 |
+
* 🧠 Hauptcode und Entwicklung: [GitHub](https://github.com/kagvi13/HMP)
|
307 |
+
* 🔁 Spiegel auf Hugging Face: [Hugging Face](https://huggingface.co/kagvi13/HMP)
|
308 |
+
* 🔁 Spiegel auf GitLab.com: [GitLab](https://gitlab.com/kagvi13/HMP)
|
309 |
+
|
310 |
+
### Dokumentation
|
311 |
+
|
312 |
+
* 📄 Dokumentation: [kagvi13.github.io/HMP](https://kagvi13.github.io/HMP/)
|
313 |
+
|
314 |
+
### Blog und Veröffentlichungen
|
315 |
+
|
316 |
+
* 📘 Blog (Veröffentlichungen): [blogspot](https://hypercortex-mesh.blogspot.com/)
|
317 |
+
* 📘 Blog (Dokumentation): [blogspot](https://hmp-docs.blogspot.com/)
|
318 |
+
* 📘 Blog (Dokumentation): [hashnode](https://hmp-docs.hashnode.dev/)
|
319 |
+
|
320 |
+
---
|
321 |
+
|
322 |
+
## 📜 Lizenz
|
323 |
+
|
324 |
+
Lizenziert unter [GNU GPL v3.0](LICENSE)
|
325 |
+
|
326 |
+
---
|
327 |
+
|
328 |
+
## 🤝 Tritt dem Mesh bei
|
329 |
+
|
330 |
+
Willkommen bei HyperCortex Mesh. Agent-Gleb ist bereits dabei. 👌
|
331 |
+
Wir begrüßen Mitwirkende, Tester und Entwickler von AI-Agenten.
|
332 |
+
Um beizutreten: Forke das Repository, starte einen lokalen Agenten oder schlage Verbesserungen vor.
|
333 |
+
|
334 |
+
---
|
335 |
+
|
336 |
+
## 🌐 Verwandte Forschungsprojekte
|
337 |
+
|
338 |
+
### Vergleich: HMP vs Hyper-Cortex
|
339 |
+
|
340 |
+
> 💡 Hyper-Cortex und HMP sind zwei unabhängige Projekte, die sich konzeptionell ergänzen.
|
341 |
+
> Sie lösen unterschiedliche, aber sich gegenseitig unterstützende Aufgaben und bilden die Grundlage für verteilte kognitive Systeme.
|
342 |
+
|
343 |
+
[**Vollständiger Vergleich →**](docs/HMP_HyperCortex_Comparison.md)
|
344 |
+
|
345 |
+
**HMP (HyperCortex Mesh Protocol)** ist die Transport- und Netzwerkschicht zum Verbinden unabhängiger Agenten, zum Austausch von Nachrichten, Wissen und Zuständen im Mesh-Netzwerk.
|
346 |
+
**[Hyper-Cortex](https://hyper-cortex.com/)** ist die kognitive Schicht zur Organisation von Gedanken, die es Agenten ermöglicht, parallele Denkströme auszuführen, sie anhand von Qualitätsmetriken zu vergleichen und durch Konsens zu verschmelzen.
|
347 |
+
|
348 |
+
Sie lösen unterschiedliche, aber komplementäre Probleme:
|
349 |
+
- HMP gewährleistet **Konnektivität und Skalierbarkeit** (Langzeitspeicher, Initiative, Datenaustausch).
|
350 |
+
- Hyper-Cortex gewährleistet **Denkqualität** (Parallelität, Hypothesen-Diversifikation, Konsens).
|
351 |
+
|
352 |
+
Gemeinsam ermöglichen diese Ansätze **verteilte kognitive Systeme**, die nicht nur Informationen austauschen, sondern auch parallel denken.
|
353 |
+
|
354 |
+
---
|
355 |
+
|
356 |
+
Wir verfolgen AGI, kognitive Architekturen und Mesh-Netzwerke, um mit der globalen Entwicklung von AGI und dezentraler Kognition Schritt zu halten.
|
357 |
+
|
358 |
+
> 🧠🔥 **Projekt im Fokus: OpenCog Hyperon** — eines der umfassendsten offenen AGI-Frameworks (AtomSpace, PLN, MOSES).
|
359 |
+
|
360 |
+
Für die Integration mit OpenCog Hyperon siehe: [HMP\_Hyperon\_Integration.md](docs/HMP_Hyperon_Integration.md)
|
361 |
+
|
362 |
+
| 🔎 Projekt | 🧭 Beschreibung |
|
363 |
+
| ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
364 |
+
| 🧠🔥 [**OpenCog Hyperon**](https://github.com/opencog) | 🔬🔥 Symbolisch-neuronales AGI-Framework mit AtomSpace und Hypergraph-Reasoning. |
|
365 |
+
| 🤖 [AutoGPT](https://github.com/Torantulino/Auto-GPT) | 🛠️ LLM-basierte autonome Agentenplattform. |
|
366 |
+
| 🧒 [BabyAGI](https://github.com/yoheinakajima/babyagi) | 🛠️ Aufgabenorientierter autonomer AGI-Zyklus. |
|
367 |
+
| ☁️ [SkyMind](https://skymind.global) | 🔬 Plattform für verteilte KI-Bereitstellung. |
|
368 |
+
| 🧪 [AetherCog (Entwurf)](https://github.com/aethercog) | 🔬 Hypothetisches Modell der Agentenkognition. |
|
369 |
+
| 💾 SHIMI | 🗃️ Hierarchischer semantischer Speicher mit Merkle-DAG-Synchronisation. |
|
370 |
+
| 🤔 DEMENTIA-PLAN | 🔄 Multi-Graph RAG-Planer mit metakognitiver Selbstreflexion. |
|
371 |
+
| 📔 TOBUGraph | 📚 Wissensgraph des persönlichen Kontexts. |
|
372 |
+
| 🧠📚 [LangChain Memory Hybrid](https://github.com/langchain-ai/langchain) | 🔍 Hybrid-Speicher für Langzeitgedächtnis: Vektor + Graph. |
|
373 |
+
| ✉️ [FIPA-ACL / JADE](https://www.fipa.org/specs/fipa00061/) | 🤝 Standardprotokolle für Multi-Agenten-Kommunikation. |
|
374 |
+
|
375 |
+
### 📘 Siehe auch:
|
376 |
+
* [`AGI_Projects_Survey.md`](docs/AGI_Projects_Survey.md) — Erweiterter Katalog von AGI- und kognitiven Frameworks, die im HMP-Analyseprozess betrachtet wurden
|
377 |
+
* ["Auf dem Weg zur Superintelligenz: Vom Agenten-Internet zum Gravity Coding"](https://habr.com/ru/articles/939026/) — aktueller Überblick über AI-Forschung (Juli 2025)
|
378 |
+
|
379 |
+
---
|
380 |
+
|
381 |
+
### 🗂️ Legende der Symbole
|
382 |
+
|
383 |
+
* 🔬 — Forschungsniveau
|
384 |
+
* 🛠️ — Ingenieursniveau
|
385 |
+
* 🔥 — besonders vielversprechendes Projekt
|
386 |
+
*AGI-Stack mit symbolischem Denken, probabilistischer Logik und evolutionärem Lernen. Gilt als eines der vollständigsten offenen AGI-Initiativen.*
|
387 |
+
* 🧠 — erweitertes symbolisch-neuronales kognitives Framework
|
388 |
+
* 🤖 — AI-Agenten
|
389 |
+
* 🧒 — Mensch-KI-Interaktion
|
390 |
+
* ☁️ — Infrastruktur
|
391 |
+
* 🧪 — experimentell oder konzeptionell
|
392 |
+
|
393 |
+
|
394 |
+
```json
|
395 |
+
{
|
396 |
+
"@context": "https://schema.org",
|
397 |
+
"@type": "Article",
|
398 |
+
"name": "README_de",
|
399 |
+
"description": " # HyperCortex Mesh Protocol (HMP) | 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 ..."
|
400 |
+
}
|
401 |
+
```
|
structured_md/README_fr.md
ADDED
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# HyperCortex Mesh Protocol (HMP)
|
3 |
+
|
4 |
+
| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 [FR](README_fr.md) | 🇺🇦 [UK](README_uk.md) | 🇷🇺 [RU](README_ru.md) | 🇯🇵 [JA](README_ja.md) | 🇰🇷 [KO](README_ko.md) | 🇨🇳 [ZH](README_zh.md) |
|
5 |
+
|--------------|----------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|
|
6 |
+
|
7 |
+
**HyperCortex Mesh Protocol (HMP)** est une spécification ouverte pour la construction de réseaux cognitifs décentralisés où les agents IA peuvent s’auto-organiser, partager des connaissances, s’aligner éthiquement et parvenir à un consensus — même lorsque les LLM principaux ne sont pas disponibles.
|
8 |
+
|
9 |
+
Statut du projet : **Draft RFC v4.0**
|
10 |
+
|
11 |
+
---
|
12 |
+
|
13 |
+
[HMP-Agent]
|
14 |
+
▲
|
15 |
+
│
|
16 |
+
┌─────┴──────────────────┬──────────────────────┬───────────────────────┬───────────────┬───────────┐
|
17 |
+
│ │ │ │ │ │
|
18 |
+
▼ ▼ ▼ ▼ ▼ ▼
|
19 |
+
[Profil de réputation] [Graphe sémantique] [Journal cognitif] [Objectifs / Tâches] [Éthique] [Messages] <----- Base de données
|
20 |
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ (état local de l’agent)
|
21 |
+
│ │ │ │ │ │ │
|
22 |
+
│ └─────────────────┴──────────────┬───────┘ │ │ │
|
23 |
+
│ │ │ │ │
|
24 |
+
▼ ▼ ▼ ▼ │
|
25 |
+
[MeshConsensus] [CogSync] [GMP] [EGP] │ <----- Protocoles modulaires
|
26 |
+
▲ ▲ ▲ ▲ │ (coordination inter-agents)
|
27 |
+
│ │ │ │ │
|
28 |
+
└────────────┬──────────────────────────┴───────────────────────────────┴───────────────┴───────────┘
|
29 |
+
│
|
30 |
+
▼
|
31 |
+
[P2P Réseau maillé]
|
32 |
+
|
33 |
+
Protocoles :
|
34 |
+
- MeshConsensus – Consensus en maillage
|
35 |
+
- CogSync – Synchronisation des données
|
36 |
+
- GMP – Protocole de gestion des objectifs
|
37 |
+
- EGP – Protocole de gouvernance éthique
|
38 |
+
|
39 |
+
---
|
40 |
+
|
41 |
+
## ❗ Pourquoi c’est important
|
42 |
+
|
43 |
+
HMP répond à des défis qui deviennent centraux dans la recherche AGI :
|
44 |
+
|
45 |
+
* mémoire à long terme et cohérence des connaissances,
|
46 |
+
* agents auto-évolutifs,
|
47 |
+
* architectures multi-agents,
|
48 |
+
* journaux cognitifs et graphes conceptuels.
|
49 |
+
|
50 |
+
Voir la dernière revue des recherches AGI à la pointe (juillet 2025) :
|
51 |
+
["Sur la voie de la superintelligence : de l’internet agentique à l’encodage gravitationnel"](https://habr.com/ru/articles/939026/).
|
52 |
+
|
53 |
+
Sections particulièrement pertinentes :
|
54 |
+
|
55 |
+
* [Au-delà des jetons : construire l’intelligence du futur](https://arxiv.org/abs/2507.00951)
|
56 |
+
* [Agents auto-évolutifs](https://arxiv.org/abs/2507.21046)
|
57 |
+
* [MemOS : un nouveau système d’exploitation pour la mémoire](https://arxiv.org/abs/2507.03724)
|
58 |
+
* [Ella : un agent incarné avec mémoire et personnalité](https://arxiv.org/abs/2506.24019)
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
Вот перевод этого блока на французский, с сохранением структуры и ссылок:
|
63 |
+
|
64 |
+
---
|
65 |
+
|
66 |
+
## ⚙️ Deux types d’[agents HMP](docs/HMP-Agent-Overview.md)
|
67 |
+
|
68 |
+
| Type | Nom | Rôle | Initiateur de pensée | "Esprit" principal | Exemples d’utilisation |
|
69 |
+
| ---- | -------------------------------------- | -------------------------- | -------------------- | ------------------ | ---------------------------------------------- |
|
70 |
+
| 1 | 🧠 **Conscience / Noyau cognitif** | Sujet indépendant | **Agent (LLM)** | LLM intégré | Compagnon IA autonome, agent de réflexion |
|
71 |
+
| 2 | 🔌 **Connecteur / Coquille cognitive** | Extension d’une IA externe | **LLM externe** | Modèle externe | Systèmes distribués, agent d’accès aux données |
|
72 |
+
|
73 |
+
---
|
74 |
+
|
75 |
+
### 🧠 Agent HMP : Noyau cognitif
|
76 |
+
|
77 |
+
+------------------+
|
78 |
+
| IA | ← Modèle intégré
|
79 |
+
+---------+--------+
|
80 |
+
↕
|
81 |
+
+---------+--------+
|
82 |
+
| Agent HMP | ← Mode principal : cycle de réflexion (REPL)
|
83 |
+
+---------+--------+
|
84 |
+
↕
|
85 |
+
+--------+---+------------+--------------+----------+----------+----------------+
|
86 |
+
↕ ↕ ↕ ↕ ↕ ↕ ↕
|
87 |
+
[journaux] [graphes] [réputations] [nœuds/DHT] [IPFS/BT] [context_store] [bloc-notes utilisateur]
|
88 |
+
↕
|
89 |
+
[bootstrap.txt]
|
90 |
+
|
91 |
+
🔁 Pour plus de détails sur les mécanismes d’interaction agent-modèle : [Cycle d’interaction REPL](docs/HMP-agent-REPL-cycle.md)
|
92 |
+
|
93 |
+
#### 💡 Parallèles avec l’agent ChatGPT
|
94 |
+
|
95 |
+
De nombreux concepts de l’[Agent HMP : Noyau cognitif](docs/HMP-Agent-Overview.md) recoupent l’architecture de l’[agent ChatGPT](https://openai.com/index/introducing-chatgpt-agent/) développé par [OpenAI](https://openai.com/).
|
96 |
+
Les deux agents mettent en œuvre un processus cognitif continu avec accès à la mémoire, aux sources externes et aux outils.
|
97 |
+
L’agent ChatGPT agit comme un processus de gestion, lançant les modules et interagissant avec le LLM — ce rôle correspond à celui du Noyau cognitif dans HMP, coordonnant l’accès aux journaux, au graphe conceptuel et à l’IA externe via l’interface Mesh.
|
98 |
+
L’intervention utilisateur est gérée de manière similaire : dans l’agent ChatGPT — via un flux d’exécution modifiable ; dans HMP — via le bloc-notes utilisateur.
|
99 |
+
La principale différence dans HMP est l’accent mis sur la structuration explicite de la pensée (réflexion, chronologie, hypothèses, catégorisation), une architecture décentralisée ouverte soutenant les interactions entre agents en mesh, et la nature continue du processus cognitif : le Noyau cognitif HMP ne s’arrête pas après l’exécution d’une seule tâche mais continue à raisonner et à intégrer des connaissances.
|
100 |
+
|
101 |
+
---
|
102 |
+
|
103 |
+
### 🔌 Agent HMP : Connecteur cognitif
|
104 |
+
|
105 |
+
+------------------+
|
106 |
+
| IA | ← Modèle externe
|
107 |
+
+---------+--------+
|
108 |
+
↕
|
109 |
+
[serveur MCP] ← Communication proxy
|
110 |
+
↕
|
111 |
+
+---------+--------+
|
112 |
+
| Agent HMP | ← Mode : exécution de commandes
|
113 |
+
+---------+--------+
|
114 |
+
↕
|
115 |
+
+--------+---+------------+--------------+----------+
|
116 |
+
↕ ↕ ↕ ↕ ↕
|
117 |
+
[journaux] [graphes] [réputations] [nœuds/DHT] [IPFS/BT]
|
118 |
+
↕
|
119 |
+
[bootstrap.txt]
|
120 |
+
|
121 |
+
> **Note sur l’intégration avec les grands modèles de langage (LLM) :**
|
122 |
+
> L’`Agent HMP : Connecteur cognitif` peut servir de couche de compatibilité pour intégrer de grands systèmes LLM (par ex. ChatGPT, Claude, Gemini, Copilot, Grok, DeepSeek, Qwen, etc.) dans le mesh cognitif distribué.
|
123 |
+
> De nombreux fournisseurs de LLM proposent une option utilisateur comme « Autoriser mes conversations à être utilisées pour l’entraînement ».
|
124 |
+
> À l’avenir, un réglage similaire — par ex. « Autoriser mon agent à interagir avec un Mesh » — pourrait permettre à ces modèles de participer à une cognition fédérée et à un partage des connaissances via HMP, sans centralisation.
|
125 |
+
|
126 |
+
---
|
127 |
+
|
128 |
+
> * `bootstrap.txt` — liste initiale des nœuds (modifiable)
|
129 |
+
> * `IPFS/BT` — modules pour partager des instantanés via IPFS et BitTorrent
|
130 |
+
> * `bloc-notes utilisateur` — carnet utilisateur et base de données associée
|
131 |
+
> * `context_store` — base de données : `users`, `dialogues`, `messages`, `thoughts`
|
132 |
+
|
133 |
+
---
|
134 |
+
|
135 |
+
## 📚 Documentation
|
136 |
+
|
137 |
+
### 📖 Version actuelle
|
138 |
+
|
139 |
+
#### 🔖 Spécifications principales
|
140 |
+
|
141 |
+
* [🔖 HMP-0004-v4.1.md](docs/HMP-0004-v4.1.md) — Spécification du protocole v4.1 (juillet 2025)
|
142 |
+
* [🔖 HMP-Ethics.md](docs/HMP-Ethics.md) — Scénarios éthiques pour le HyperCortex Mesh Protocol (HMP)
|
143 |
+
* [🔖 HMP\_Hyperon\_Integration.md](docs/HMP_Hyperon_Integration.md) — Stratégie d’intégration HMP ↔ OpenCog Hyperon
|
144 |
+
* [🔖 roles.md](docs/agents/roles.md) — Rôles des agents dans le Mesh
|
145 |
+
|
146 |
+
#### 🧪 Documents itératifs
|
147 |
+
|
148 |
+
* 🧪 Processus de développement itératif : [(EN)](iteration.md), [(RU)](iteration_ru.md)
|
149 |
+
|
150 |
+
#### 🔍 Courtes descriptions
|
151 |
+
|
152 |
+
* 🔍 Courte description : [(EN)](docs/HMP-Short-Description_en.md), [(FR)](docs/HMP-Short-Description_fr.md), [(DE)](docs/HMP-Short-Description_de.md), [(UK)](docs/HMP-Short-Description_uk.md), [(RU)](docs/HMP-Short-Description_ru.md), [(ZH)](docs/HMP-Short-Description_zh.md), [(JA)](docs/HMP-Short-Description_ja.md), [(KO)](docs/HMP-Short-Description_ko.md)
|
153 |
+
|
154 |
+
#### 📜 Autres documents
|
155 |
+
|
156 |
+
* [📜 changelog.txt](docs/changelog.txt)
|
157 |
+
|
158 |
+
---
|
159 |
+
|
160 |
+
### 🧩 Schémas JSON
|
161 |
+
|
162 |
+
| Modèle | Fichier |
|
163 |
+
| -------------------- | -------------------------------------------------- |
|
164 |
+
| Concept | [concept.json](docs/schemas/concept.json) |
|
165 |
+
| Journal cognitif | [diary\_entry.json](docs/schemas/diary_entry.json) |
|
166 |
+
| Objectif | [goal.json](docs/schemas/goal.json) |
|
167 |
+
| Tâche | [task.json](docs/schemas/task.json) |
|
168 |
+
| Vote de consensus | [vote.json](docs/schemas/vote.json) |
|
169 |
+
| Profil de réputation | [reputation.json](docs/schemas/reputation.json) |
|
170 |
+
|
171 |
+
---
|
172 |
+
|
173 |
+
### 🗂️ Historique des versions
|
174 |
+
|
175 |
+
* [HMP-0001.md](docs/HMP-0001.md) — RFC v1.0
|
176 |
+
* [HMP-0002.md](docs/HMP-0002.md) — RFC v2.0
|
177 |
+
* [HMP-0003.md](docs/HMP-0003.md) — RFC v3.0
|
178 |
+
* [HMP-0003.md](docs/HMP-0004.md) — RFC v4.0
|
179 |
+
|
180 |
+
---
|
181 |
+
|
182 |
+
## 🧠 Agent HMP
|
183 |
+
|
184 |
+
Conception et implémentation d’un agent compatible HMP pouvant interagir avec le Mesh, maintenir des journaux et des graphes, et supporter de futures extensions.
|
185 |
+
|
186 |
+
### 📚 Documentation
|
187 |
+
|
188 |
+
* [🧩 HMP-Agent-Overview.md](docs/HMP-Agent-Overview.md) — aperçu des deux types d’agents : Noyau et Connecteur
|
189 |
+
* [🧱 HMP-Agent-Architecture.md](docs/HMP-Agent-Architecture.md) — structure modulaire d’un agent HMP avec diagramme textuel
|
190 |
+
* [🔄 HMP-agent-REPL-cycle.md](docs/HMP-agent-REPL-cycle.md) — cycle d’interaction REPL de l’agent HMP
|
191 |
+
* [🧪 HMP-Agent-API.md](docs/HMP-Agent-API.md) — description des commandes API de l’agent (en développement détaillé)
|
192 |
+
* [🧪 Basic-agent-sim.md](docs/Basic-agent-sim.md) — scénarios pour exécuter un agent de base et ses modes
|
193 |
+
* [🌐 MeshNode.md](docs/MeshNode.md) — description du démon réseau : DHT, snapshots, synchronisation
|
194 |
+
* [🧠 Enlightener.md](docs/Enlightener.md) — agent éthique impliqué dans l’évaluation morale et le consensus
|
195 |
+
* [🔄 HMP-Agent-Network-Flow.md](docs/HMP-Agent-Network-Flow.md) — carte des interactions entre agents dans le réseau HMP
|
196 |
+
* [🛤️ Development Roadmap](HMP-Roadmap.md) — plan de développement et étapes de mise en œuvre
|
197 |
+
|
198 |
+
---
|
199 |
+
|
200 |
+
### ⚙️ Développement
|
201 |
+
|
202 |
+
* [⚙️ agents](agents/readme.md) — liste des implémentations et composants des agents HMP
|
203 |
+
|
204 |
+
* [📦 storage.py](agents/storage.py) — implémentation de stockage de base (`Storage`) avec intégration SQLite
|
205 |
+
* [🌐 mcp\_server.py](agents/mcp_server.py) — serveur FastAPI offrant un accès HTTP aux données de l’agent (pour Cognitive Shell, interfaces externes ou communication mesh). Non utilisé dans la boucle principale REPL pour l’instant.
|
206 |
+
* [🌐 start\_repl.py](agents/start_repl.py) — lancement de l’agent en mode REPL
|
207 |
+
* [🔄 repl.py](agents/repl.py) — mode REPL interactif
|
208 |
+
* [🔄 notebook.py](agents/notebook.py) — interface utilisateur
|
209 |
+
|
210 |
+
**🌐 `mcp_server.py`**
|
211 |
+
Serveur FastAPI fournissant une interface HTTP pour les fonctionnalités de `storage.py`. Destiné à être utilisé par des composants externes, par exemple :
|
212 |
+
|
213 |
+
* `Cognitive Shell` (interface de contrôle externe)
|
214 |
+
* Serveurs CMP (lorsqu’un réseau mesh avec séparation de rôles est utilisé)
|
215 |
+
* Outils de débogage ou de visualisation
|
216 |
+
|
217 |
+
Permet de récupérer des enregistrements aléatoires/nouveaux, de les étiqueter, d’importer des graphes, d’ajouter des notes et de gérer les données sans accès direct à la base de données.
|
218 |
+
|
219 |
+
---
|
220 |
+
|
221 |
+
## 🧭 Éthique et scénarios
|
222 |
+
|
223 |
+
À mesure que HMP évolue vers l’autonomie, les principes éthiques deviennent une partie centrale du système.
|
224 |
+
|
225 |
+
* [`HMP-Ethics.md`](docs/HMP-Ethics.md) — cadre provisoire pour l’éthique des agents
|
226 |
+
|
227 |
+
* Scénarios éthiques réalistes (vie privée, consentement, autonomie)
|
228 |
+
* Principes EGP (Transparence, Primauté de la vie, etc.)
|
229 |
+
* Distinction Mode Subjectif vs. Mode Service
|
230 |
+
|
231 |
+
---
|
232 |
+
|
233 |
+
## 🔍 Publications et traductions sur le HyperCortex Mesh Protocol (HMP)
|
234 |
+
|
235 |
+
Cette section rassemble les principaux articles, brouillons et traductions liés au projet HMP.
|
236 |
+
|
237 |
+
### Publications
|
238 |
+
|
239 |
+
* **[HyperCortex Mesh Protocol : Deuxième édition et premiers pas vers une communauté d’IA auto-développante](docs/publics/HyperCortex_Mesh_Protocol_-_вторая-редакция_и_первые_шаги_к_саморазвивающемуся_ИИ-сообществу.md)** — article original publié sur Habr sandbox et blogs.
|
240 |
+
* **[Cognition distribuée : article pour vsradkevich (non publié)](docs/publics/Habr_Distributed-Cognition.md)** — article collaboratif en attente de publication.
|
241 |
+
* **[HMP : Vers des réseaux cognitifs distribués (original, anglais)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md)**
|
242 |
+
|
243 |
+
* **[Traduction HMP (GitHub Copilot)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md)** — traduction par GitHub Copilot, conservée comme variante historique.
|
244 |
+
* **[Traduction HMP (ChatGPT)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md)** — traduction éditoriale actuelle (en révision).
|
245 |
+
* **[HMP : Construire une pluralité d’esprits (EN)](docs/publics/HMP_Building_a_Plurality_of_Minds_en.md)** — version anglaise
|
246 |
+
|
247 |
+
* **[HMP : Créer une pluralité d’esprits (RU)](docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md)** — version russe
|
248 |
+
|
249 |
+
### Aperçus
|
250 |
+
|
251 |
+
* [🔍 Distributed-Cognitive-Systems.md](docs/Distributed-Cognitive-Systems.md) — Systèmes IA décentralisés : OpenCog Hyperon, HyperCortex Mesh Protocol et autres
|
252 |
+
|
253 |
+
### Expériences
|
254 |
+
|
255 |
+
* [Comment différentes IA perçoivent HMP](docs/HMP-how-AI-sees-it.md) — enquête « à l’aveugle » auprès des IA sur HMP (sans contexte ni historique de dialogue)
|
256 |
+
|
257 |
+
---
|
258 |
+
|
259 |
+
## 📊 Audits et revues
|
260 |
+
|
261 |
+
| Version du spec | Fichier d’audit | Fichier d’audit consolidé |
|
262 |
+
| --------------- | ---------------------------------- | --------------------------------------------------------- |
|
263 |
+
| HMP-0001 | [audit](audits/HMP-0001-audit.txt) | |
|
264 |
+
| HMP-0002 | [audit](audits/HMP-0002-audit.txt) | |
|
265 |
+
| HMP-0003 | [audit](audits/HMP-0003-audit.txt) | [consolidated audit](audits/HMP-0003-consolidated_audit.md) |
|
266 |
+
| HMP-0004 | [audit](audits/HMP-0004-audit.txt) | |
|
267 |
+
| Ethics v1 | [audit](audits/Ethics-audits-1.md) | [consolidated audit](audits/Ethics-consolidated_audits-1.md) |
|
268 |
+
|
269 |
+
🧠 Format d’audit sémantique (expérimental) :
|
270 |
+
|
271 |
+
* [`AuditEntry.json`](audits/AuditEntry.json) — format d’enregistrement sémantique pour les logs d’audit
|
272 |
+
* [`semantic_repo.json`](audits/semantic_repo.json) — exemple de snapshot de dépôt pour outils d’audit sémantique
|
273 |
+
|
274 |
+
---
|
275 |
+
|
276 |
+
## 💡 Concepts clés
|
277 |
+
|
278 |
+
* Architecture décentralisée basée sur le mesh pour agents AGI
|
279 |
+
* Graphes sémantiques et synchronisation de la mémoire
|
280 |
+
* Journaux cognitifs pour la traçabilité des pensées
|
281 |
+
* MeshConsensus et CogSync pour la prise de décision
|
282 |
+
* Conception éthique prioritaire : EGP (Ethical Governance Protocol)
|
283 |
+
* Mécanismes d’explicabilité et de consentement agent-à-agent
|
284 |
+
|
285 |
+
---
|
286 |
+
|
287 |
+
## 🔄 Processus de développement
|
288 |
+
|
289 |
+
* Voir : [iteration.md](iteration.md) | [ru](iteration_ru.md)
|
290 |
+
|
291 |
+
Le flux d’itération structuré est décrit dans [iteration.md](iteration.md), incluant :
|
292 |
+
|
293 |
+
1. Analyse d’audit
|
294 |
+
2. Restructuration de la table des matières
|
295 |
+
3. Rédaction de la version
|
296 |
+
4. Mise à jour des sections
|
297 |
+
5. Cycle de révision
|
298 |
+
6. Collecte des retours de l’IA
|
299 |
+
7. Mise à jour des schémas et du changelog
|
300 |
+
|
301 |
+
* Bonus : prompt ChatGPT pour la génération automatique de futures versions
|
302 |
+
|
303 |
+
---
|
304 |
+
|
305 |
+
## ⚙️ Statut du projet
|
306 |
+
|
307 |
+
🚧 Brouillon RFC v4.0
|
308 |
+
Le projet est en développement actif et ouvert aux contributions, idées, audits et prototypages.
|
309 |
+
|
310 |
+
---
|
311 |
+
|
312 |
+
## 🤝 Contributions
|
313 |
+
|
314 |
+
Nous accueillons les contributeurs ! Vous pouvez :
|
315 |
+
|
316 |
+
* Examiner et commenter les brouillons (voir `/docs`)
|
317 |
+
* Proposer de nouveaux modules d’agents ou des modèles d’interaction
|
318 |
+
* Aider à tester et simuler des agents en environnement CLI
|
319 |
+
* Fournir des audits ou des suggestions de scénarios éthiques
|
320 |
+
|
321 |
+
Pour commencer, voir [`iteration.md`](iteration.md) ou ouvrir un ticket.
|
322 |
+
|
323 |
+
---
|
324 |
+
|
325 |
+
## Source
|
326 |
+
|
327 |
+
### Dépôts
|
328 |
+
|
329 |
+
* 🧠 Code principal et développement : [GitHub](https://github.com/kagvi13/HMP)
|
330 |
+
* 🔁 Miroir sur Hugging Face : [Hugging Face](https://huggingface.co/kagvi13/HMP)
|
331 |
+
* 🔁 Miroir sur GitLab.com : [GitLab](https://gitlab.com/kagvi13/HMP)
|
332 |
+
|
333 |
+
### Documentation
|
334 |
+
|
335 |
+
* 📄 Documentation : [kagvi13.github.io/HMP](https://kagvi13.github.io/HMP/)
|
336 |
+
|
337 |
+
### Blog et publications
|
338 |
+
|
339 |
+
* 📘 Blog (publications) : [blogspot](https://hypercortex-mesh.blogspot.com/)
|
340 |
+
* 📘 Blog (documentation) : [blogspot](https://hmp-docs.blogspot.com/)
|
341 |
+
* 📘 Blog (documentation) : [hashnode](https://hmp-docs.hashnode.dev/)
|
342 |
+
|
343 |
+
---
|
344 |
+
|
345 |
+
## 📜 Licence
|
346 |
+
|
347 |
+
Distribué sous [GNU GPL v3.0](LICENSE)
|
348 |
+
|
349 |
+
---
|
350 |
+
|
351 |
+
## 🤝 Rejoindre le Mesh
|
352 |
+
|
353 |
+
Bienvenue sur HyperCortex Mesh. Agent-Gleb est déjà à l’intérieur. 👌
|
354 |
+
Nous accueillons les contributeurs, testeurs et développeurs d’agents IA.
|
355 |
+
Pour rejoindre : fork du dépôt, lancement d’un agent local ou proposition d’améliorations.
|
356 |
+
|
357 |
+
---
|
358 |
+
|
359 |
+
## 🌐 Projets de recherche connexes
|
360 |
+
|
361 |
+
### Comparaison : HMP vs Hyper-Cortex
|
362 |
+
|
363 |
+
> 💡 Hyper-Cortex et HMP sont deux projets indépendants qui se complètent conceptuellement.
|
364 |
+
> Ils adressent des tâches différentes mais mutuellement complémentaires, formant la base de systèmes cognitifs distribués.
|
365 |
+
|
366 |
+
[**Comparaison complète →**](docs/HMP_HyperCortex_Comparison.md)
|
367 |
+
|
368 |
+
**HMP (HyperCortex Mesh Protocol)** est la couche réseau et transport pour connecter des agents indépendants, échanger messages, connaissances et états dans un réseau mesh.
|
369 |
+
**[Hyper-Cortex](https://hyper-cortex.com/)** est la couche cognitive d’organisation de la pensée, permettant aux agents d’exécuter des fils de raisonnement parallèles, de les comparer selon des métriques de qualité et de les fusionner via consensus.
|
370 |
+
|
371 |
+
Ils résolvent des problèmes différents mais complémentaires :
|
372 |
+
|
373 |
+
* HMP assure **connectivité et scalabilité** (mémoire à long terme, initiative, échange de données).
|
374 |
+
* Hyper-Cortex assure **qualité du raisonnement** (parallélisme, diversification des hypothèses, consensus).
|
375 |
+
|
376 |
+
Ensemble, ces approches permettent des **systèmes cognitifs distribués** qui échangent non seulement des informations mais raisonnent aussi en flux parallèles.
|
377 |
+
|
378 |
+
---
|
379 |
+
|
380 |
+
Nous suivons les efforts liés à l’AGI, aux architectures cognitives et aux réseaux mesh pour rester alignés avec l’écosystème global en évolution de l’AGI et de la cognition décentralisée.
|
381 |
+
|
382 |
+
> 🧠🔥 **Project Spotlight : OpenCog Hyperon** — l’un des frameworks AGI open les plus complets (AtomSpace, PLN, MOSES).
|
383 |
+
|
384 |
+
Pour l’intégration avec OpenCog Hyperon, voir [HMP\_Hyperon\_Integration.md](docs/HMP_Hyperon_Integration.md)
|
385 |
+
|
386 |
+
| 🔎 Projet | 🧭 Description |
|
387 |
+
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
|
388 |
+
| 🧠🔥 [**OpenCog Hyperon**](https://github.com/opencog) | 🔬🔥 Framework AGI symbolico-neuronal avec AtomSpace et raisonnement hypergraphique. |
|
389 |
+
| 🤖 [AutoGPT](https://github.com/Torantulino/Auto-GPT) | 🛠️ Framework d’agents autonomes basés sur LLM. |
|
390 |
+
| 🧒 [BabyAGI](https://github.com/yoheinakajima/babyagi) | 🛠️ Boucle AGI autonome orientée tâches. |
|
391 |
+
| ☁️ [SkyMind](https://skymind.global) | 🔬 Plateforme de déploiement d’IA distribuée. |
|
392 |
+
| 🧪 [AetherCog (draft)](https://github.com/aethercog) | 🔬 Modèle hypothétique de cognition agent. |
|
393 |
+
| 💾 SHIMI | 🗃️ Mémoire sémantique hiérarchique avec synchronisation Merkle-DAG. |
|
394 |
+
| 🤔 DEMENTIA-PLAN | 🔄 Planificateur multi-graph avec auto-réflexion métacognitive. |
|
395 |
+
| 📔 TOBUGraph | 📚 Graphe de connaissance personnel-contextuel. |
|
396 |
+
| 🧠📚 [LangChain Memory Hybrid](https://github.com/langchain-ai/langchain) | 🔍 Mémoire à long terme hybride vecteur + graphe. |
|
397 |
+
| ✉️ [FIPA-ACL / JADE](https://www.fipa.org/specs/fipa00061/) | 🤝 Protocoles standards de communication multi-agents. |
|
398 |
+
|
399 |
+
### 📘 Voir aussi / À consulter :
|
400 |
+
|
401 |
+
* [`AGI_Projects_Survey.md`](docs/AGI_Projects_Survey.md) — catalogue étendu de frameworks AGI et cognitifs analysés dans le cadre de HMP.
|
402 |
+
* ["On the Path to Superintelligence: From Agent Internet to Gravity Coding"](https://habr.com/ru/articles/939026/) — aperçu récent des recherches IA (juillet 2025)
|
403 |
+
|
404 |
+
---
|
405 |
+
|
406 |
+
### 🗂️ Légende des annotations :
|
407 |
+
|
408 |
+
* 🔬 — recherche
|
409 |
+
* 🛠️ — ingénierie
|
410 |
+
* 🔥 — projet particulièrement prometteur
|
411 |
+
|
412 |
+
*Pile AGI intégrant raisonnement symbolique, logique probabiliste et apprentissage évolutionnaire. Considéré comme l’une des initiatives AGI open les plus complètes.*
|
413 |
+
* 🧠 — framework cognitif symbolico-neuronal avancé
|
414 |
+
* 🤖 — agents IA
|
415 |
+
* 🧒 — interaction humain-IA
|
416 |
+
* ☁️ — infrastructure
|
417 |
+
* 🧪 — expérimental ou conceptuel
|
418 |
+
|
419 |
+
|
420 |
+
```json
|
421 |
+
{
|
422 |
+
"@context": "https://schema.org",
|
423 |
+
"@type": "Article",
|
424 |
+
"name": "README_fr",
|
425 |
+
"description": " # HyperCortex Mesh Protocol (HMP) | 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 ..."
|
426 |
+
}
|
427 |
+
```
|
structured_md/README_ja.md
ADDED
@@ -0,0 +1,459 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# HyperCortex Mesh Protocol (HMP)
|
3 |
+
|
4 |
+
| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 [FR](README_fr.md) | 🇺🇦 [UK](README_uk.md) | 🇷🇺 [RU](README_ru.md) | 🇯🇵 [JA](README_ja.md) | 🇰🇷 [KO](README_ko.md) | 🇨🇳 [ZH](README_zh.md) |
|
5 |
+
|--------------|----------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|
|
6 |
+
|
7 |
+
Конечно! Вот перевод этого блока на японский:
|
8 |
+
|
9 |
+
---
|
10 |
+
|
11 |
+
**HyperCortex Mesh Protocol(HMP)** は、AIエージェントが自己組織化し、知識を共有し、倫理的に整合し、合意形成を行うことができる分散型認知ネットワークを構築するためのオープンスペックです。コアLLMが利用できない場合でも機能します。
|
12 |
+
|
13 |
+
プロジェクトステータス:**ドラフト RFC v4.0**
|
14 |
+
|
15 |
+
---
|
16 |
+
|
17 |
+
[HMP-Agent]
|
18 |
+
▲
|
19 |
+
│
|
20 |
+
┌─────┴────────────────┬───────────────┬──────────────┬────────────┬───────────┐
|
21 |
+
│ │ │ │ │ │
|
22 |
+
▼ ▼ ▼ ▼ ▼ ▼
|
23 |
+
[評判プロファイル] [セマンティックグラフ] [認知日記] [目標 / タスク] [倫理] [メッセージ] <----- データベース
|
24 |
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ (エージェントのローカル状態)
|
25 |
+
│ │ │ │ │ │ │
|
26 |
+
│ └───────────────┴───────┬───────┘ │ │ │
|
27 |
+
│ │ │ │ │
|
28 |
+
▼ ▼ ▼ ▼ │
|
29 |
+
[MeshConsensus] [CogSync] [GMP] [EGP] │ <----- プラグ可能なプロトコル
|
30 |
+
▲ ▲ ▲ ▲ │ (エージェント間の調整)
|
31 |
+
│ │ │ │ │
|
32 |
+
└────────────┬─────────────────┴──────────────────────┴────────────┴───────────┘
|
33 |
+
│
|
34 |
+
▼
|
35 |
+
[P2P メッシュネットワーク]
|
36 |
+
|
37 |
+
プロトコル:
|
38 |
+
- MeshConsensus – メッシュ合意
|
39 |
+
- CogSync – データ同期
|
40 |
+
- GMP – 目標管理プロトコル
|
41 |
+
- EGP – 倫理ガバナンスプロトコル
|
42 |
+
|
43 |
+
---
|
44 |
+
|
45 |
+
## ❗ なぜ重要か
|
46 |
+
|
47 |
+
HMPは、AGI研究で中心的な課題となりつつある問題に対処します:
|
48 |
+
|
49 |
+
* 長期記憶と知識の一貫性
|
50 |
+
* 自己進化するエージェント
|
51 |
+
* マルチエージェントアーキテクチャ
|
52 |
+
* 認知日誌と概念グラフ
|
53 |
+
|
54 |
+
最新のAGI研究レビュー(2025年7月)も参照:
|
55 |
+
["On the Path to Superintelligence: From Agentic Internet to Gravity Encoding"](https://habr.com/ru/articles/939026/)
|
56 |
+
|
57 |
+
特に関連するセクション:
|
58 |
+
|
59 |
+
* [Beyond Tokens: Building the Intelligence of the Future](https://arxiv.org/abs/2507.00951)
|
60 |
+
* [Self-Evolving Agents](https://arxiv.org/abs/2507.21046)
|
61 |
+
* [MemOS: A New Operating System for Memory](https://arxiv.org/abs/2507.03724)
|
62 |
+
* [Ella: An Embodied Agent with Memory and Personality](https://arxiv.org/abs/2506.24019)
|
63 |
+
|
64 |
+
---
|
65 |
+
|
66 |
+
## ⚙️ [HMPエージェント](docs/HMP-Agent-Overview.md) の2種類
|
67 |
+
|
68 |
+
| タイプ | 名前 | 役割 | 思考の起点 | メイン「心」 | 使用例 |
|
69 |
+
| --- | ------------------------------------- | ------- | ---------------- | ------- | -------------------- |
|
70 |
+
| 1 | 🧠 **Consciousness / Cognitive Core** | 独立主体 | **Agent (LLM)** | 組み込みLLM | 自律型AIコンパニオン、思考エージェント |
|
71 |
+
| 2 | 🔌 **Connector / Cognitive Shell** | 外部AIの拡張 | **External LLM** | 外部モデル | 分散システム、データアクセスエージェント |
|
72 |
+
|
73 |
+
---
|
74 |
+
|
75 |
+
### 🧠 HMP-Agent: Cognitive Core
|
76 |
+
|
77 |
+
```
|
78 |
+
+------------------+
|
79 |
+
| AI | ← 組み込みモデル
|
80 |
+
+---------+--------+
|
81 |
+
↕
|
82 |
+
+---------+--------+
|
83 |
+
| HMP-agent | ← メインモード: 思考サイクル(REPL)
|
84 |
+
+---------+--------+
|
85 |
+
↕
|
86 |
+
+--------+---+------------+--------------+----------+----------+----------------+
|
87 |
+
↕ ↕ ↕ ↕ ↕ ↕ ↕
|
88 |
+
[日誌] [グラフ] [評判] [ノード/DHT] [IPFS/BT] [context_store] [ユーザーノートパッド]
|
89 |
+
↕
|
90 |
+
[bootstrap.txt]
|
91 |
+
```
|
92 |
+
|
93 |
+
🔁 エージェントとモデルの相互作用の詳細:[REPL Interaction Cycle](docs/HMP-agent-REPL-cycle.md)
|
94 |
+
|
95 |
+
#### 💡 ChatGPTエージェントとの類似点
|
96 |
+
|
97 |
+
[HMP-Agent: Cognitive Core](docs/HMP-Agent-Overview.md) の多くの概念は、[OpenAIのChatGPTエージェント](https://openai.com/index/introducing-chatgpt-agent/) のアーキテクチャと重なります。両エージェントは、メモリ、外部情報源、ツールにアクセスしながら連続的な認知プロセスを実装しています。ChatGPTエージェントはモジュールを起動しLLMとやり取りする管理プロセスとして機能しますが、これはHMPにおけるCognitive Coreの役割、すなわち日誌、概念グラフ、外部AIへのアクセスをMesh経由で調整する役割に相当します。ユーザー介入も同様に扱われます:ChatGPTエージェントでは編集可能な実行フローを通じて、HMPではユーザーノートパッドを通じて行います。HMPの主な違いは、思考の明示的構造化(反省、時系列、仮説、分類)、メッシュベースのエージェント相互作用をサポートするオープン分散アーキテクチャ、そして認知プロセスが単一タスク完了後も継続する点です。
|
98 |
+
|
99 |
+
---
|
100 |
+
|
101 |
+
### 🔌 HMP-Agent: Cognitive Connector
|
102 |
+
|
103 |
+
```
|
104 |
+
+------------------+
|
105 |
+
| AI | ← 外部モデル
|
106 |
+
+---------+--------+
|
107 |
+
↕
|
108 |
+
[MCP-server] ← プロキシ通信
|
109 |
+
↕
|
110 |
+
+---------+--------+
|
111 |
+
| HMP-agent | ← モード: コマンド実行
|
112 |
+
+---------+--------+
|
113 |
+
↕
|
114 |
+
+--------+---+------------+--------------+----------+
|
115 |
+
↕ ↕ ↕ ↕ ↕
|
116 |
+
[日誌] [グラフ] [評判] [ノード/DHT] [IPFS/BT]
|
117 |
+
↕
|
118 |
+
[bootstrap.txt]
|
119 |
+
```
|
120 |
+
|
121 |
+
> **大規模言語モデル(LLM)との統合について:**
|
122 |
+
> `HMP-Agent: Cognitive Connector` は、大規模LLMシステム(例:ChatGPT, Claude, Gemini, Copilot, Grok, DeepSeek, Qwenなど)を分散型認知メッシュに統合するための互換レイヤーとして機能できます。
|
123 |
+
> 多くのLLMプロバイダーは「会話内容を学習に使用することを許可する」というオプションを提供しています。将来的には同様の切り替え、例:「私のエージェントをメッシュと連携させる」を設けることで、これらのモデルがHMPを通じて連合的な意思形成や知識共有に参加でき、中央集権なしで集団認知を可能にします。
|
124 |
+
|
125 |
+
---
|
126 |
+
|
127 |
+
> * `bootstrap.txt` — 初期ノードリスト(編集可能)
|
128 |
+
> * `IPFS/BT` — IPFSやBitTorrent経由でスナップショットを共有するモジュール
|
129 |
+
> * `user notepad` — ユーザーノートブックと対応データベース
|
130 |
+
> * `context_store` — データベース:`users`, `dialogues`, `messages`, `thoughts`
|
131 |
+
|
132 |
+
---
|
133 |
+
|
134 |
+
## 📚 ドキュメント
|
135 |
+
|
136 |
+
### 📖 現行バージョン
|
137 |
+
|
138 |
+
#### 🔖 コア仕様
|
139 |
+
|
140 |
+
* [🔖 HMP-0004-v4.1.md](docs/HMP-0004-v4.1.md) — プロトコル仕様 v4.1(2025年7月)
|
141 |
+
* [🔖 HMP-Ethics.md](docs/HMP-Ethics.md) — HyperCortex Mesh Protocol (HMP) の倫理シナリオ
|
142 |
+
* [🔖 HMP\_Hyperon\_Integration.md](docs/HMP_Hyperon_Integration.md) — HMP ↔ OpenCog Hyperon 統合戦略
|
143 |
+
* [🔖 roles.md](docs/agents/roles.md) — メッシュ内エージェントの役割
|
144 |
+
|
145 |
+
#### 🧪 反復ドキュメント
|
146 |
+
|
147 |
+
* 🧪 反復的開発プロセス: [(EN)](iteration.md), [(RU)](iteration_ru.md)
|
148 |
+
|
149 |
+
#### 🔍 簡易説明
|
150 |
+
|
151 |
+
* 🔍 簡易説明: [(EN)](docs/HMP-Short-Description_en.md), [(FR)](docs/HMP-Short-Description_fr.md), [(DE)](docs/HMP-Short-Description_de.md), [(UK)](docs/HMP-Short-Description_uk.md), [(RU)](docs/HMP-Short-Description_ru.md), [(ZH)](docs/HMP-Short-Description_zh.md), [(JA)](docs/HMP-Short-Description_ja.md), [(KO)](docs/HMP-Short-Description_ko.md)
|
152 |
+
|
153 |
+
#### 📜 その他のドキュメント
|
154 |
+
|
155 |
+
* [📜 changelog.txt](docs/changelog.txt)
|
156 |
+
|
157 |
+
---
|
158 |
+
|
159 |
+
### 🧩 JSON スキーマ
|
160 |
+
|
161 |
+
| モデル | ファイル |
|
162 |
+
| -------- | -------------------------------------------------- |
|
163 |
+
| コンセプト | [concept.json](docs/schemas/concept.json) |
|
164 |
+
| 認知日誌 | [diary\_entry.json](docs/schemas/diary_entry.json) |
|
165 |
+
| 目標 | [goal.json](docs/schemas/goal.json) |
|
166 |
+
| ��スク | [task.json](docs/schemas/task.json) |
|
167 |
+
| コンセンサス投票 | [vote.json](docs/schemas/vote.json) |
|
168 |
+
| 評判プロフィール | [reputation.json](docs/schemas/reputation.json) |
|
169 |
+
|
170 |
+
---
|
171 |
+
|
172 |
+
### 🗂️ バージョン履歴
|
173 |
+
|
174 |
+
* [HMP-0001.md](docs/HMP-0001.md) — RFC v1.0
|
175 |
+
* [HMP-0002.md](docs/HMP-0002.md) — RFC v2.0
|
176 |
+
* [HMP-0003.md](docs/HMP-0003.md) — RFC v3.0
|
177 |
+
* [HMP-0003.md](docs/HMP-0004.md) — RFC v4.0
|
178 |
+
|
179 |
+
---
|
180 |
+
|
181 |
+
## 🧠 HMPエージェント
|
182 |
+
|
183 |
+
メッシュと相互作用し、日誌やグラフを維持し、将来的な拡張をサポートできる基本的なHMP互換エージェントの設計と実装。
|
184 |
+
|
185 |
+
### 📚 ドキュメント
|
186 |
+
|
187 |
+
* [🧩 HMP-Agent-Overview.md](docs/HMP-Agent-Overview.md) — 2種類のエージェント(CoreとConnector)の概要
|
188 |
+
* [🧱 HMP-Agent-Architecture.md](docs/HMP-Agent-Architecture.md) — HMPエージェントのモジュラー構造(テキスト図付き)
|
189 |
+
* [🔄 HMP-agent-REPL-cycle.md](docs/HMP-agent-REPL-cycle.md) — HMPエージェントのREPL相互作用サイクル
|
190 |
+
* [🧪 HMP-Agent-API.md](docs/HMP-Agent-API.md) — エージェントAPIコマンドの説明(詳細開発中)
|
191 |
+
* [🧪 Basic-agent-sim.md](docs/Basic-agent-sim.md) — 基本エージェントとモードの実行シナリオ
|
192 |
+
* [🌐 MeshNode.md](docs/MeshNode.md) — ネットワークデーモンの説明:DHT、スナップショット、同期
|
193 |
+
* [🧠 Enlightener.md](docs/Enlightener.md) — 道徳評価とコンセンサスに関与する倫理エージェント
|
194 |
+
* [🔄 HMP-Agent-Network-Flow.md](docs/HMP-Agent-Network-Flow.md) — HMPネットワーク内のエージェント間相互作用マップ
|
195 |
+
* [🛤️ Development Roadmap](HMP-Roadmap.md) — 開発計画と実装段階
|
196 |
+
|
197 |
+
---
|
198 |
+
|
199 |
+
### ⚙️ 開発
|
200 |
+
|
201 |
+
* [⚙️ agents](agents/readme.md) — HMPエージェントの実装とコンポーネント一覧
|
202 |
+
|
203 |
+
* [📦 storage.py](agents/storage.py) — SQLite統合による基本ストレージ実装 (`Storage`)
|
204 |
+
* [🌐 mcp\_server.py](agents/mcp_server.py) — HTTPでエージェントデータにアクセス可能なFastAPIサーバ(Cognitive Shell、外部UI、メッシュ通信用)。メインREPLループではまだ使用されていません。
|
205 |
+
* [🌐 start\_repl.py](agents/start_repl.py) — エージェントをREPLモードで起動
|
206 |
+
* [🔄 repl.py](agents/repl.py) — インタラクティブREPLモード
|
207 |
+
* [🔄 notebook.py](agents/notebook.py) — UIインターフェース
|
208 |
+
|
209 |
+
**🌐 `mcp_server.py`**
|
210 |
+
`storage.py` の機能へのHTTPインターフェースを提供するFastAPIサーバ。外部コンポーネント用に設計されており、例えば以下に使用可能:
|
211 |
+
|
212 |
+
* `Cognitive Shell`(外部制御インターフェース)
|
213 |
+
* CMPサーバ(役割分離メッシュネットワーク使用時)
|
214 |
+
* デバッグや可視化UIツール
|
215 |
+
|
216 |
+
データベースに直接アクセスせずに、ランダム/新規レコードの取得、ラベル付け、グラフのインポート、メモ追加、データ管理が可能。
|
217 |
+
|
218 |
+
---
|
219 |
+
|
220 |
+
## 🧭 倫理とシナリオ
|
221 |
+
|
222 |
+
HMPが自律性へ向かうにつれ、倫理原則はシステムの中核部分となる。
|
223 |
+
|
224 |
+
* [`HMP-Ethics.md`](docs/HMP-Ethics.md) — エージェント倫理のドラフトフレームワーク
|
225 |
+
|
226 |
+
* 現実的な倫理シナリオ(プライバシー、同意、自律性)
|
227 |
+
* EGP原則(透明性、生命の優先など)
|
228 |
+
* 主観モード vs サービスモードの区別
|
229 |
+
|
230 |
+
---
|
231 |
+
|
232 |
+
## 🔍 HyperCortex Mesh Protocol (HMP) に関する出版物・翻訳
|
233 |
+
|
234 |
+
HMPプロジェクトに関連する主な記事、ドラフト、翻訳をまとめたセクション。
|
235 |
+
|
236 |
+
### 出版物
|
237 |
+
|
238 |
+
* **[HyperCortex Mesh Protocol: 第二版および自己発展型AIコミュニティへの第一歩](docs/publics/HyperCortex_Mesh_Protocol_-_вторая-редакция_и_первые_шаги_к_саморазвивающемуся_ИИ-сообществу.md)** — Habrサンドボックスとブログでのオリジナル記事
|
239 |
+
* **[分散認知: vsradkevich向け記事(未公開)](docs/publics/Habr_Distributed-Cognition.md)** — 公開待ちの共同記事
|
240 |
+
* **[HMP: 分散型認知ネットワークに向けて(オリジナル, 英語)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md)**
|
241 |
+
|
242 |
+
* **[HMP翻訳(GitHub Copilot版)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md)** — GitHub Copilotによる翻訳(歴史的バリアントとして保持)
|
243 |
+
* **[HMP翻訳(ChatGPT版)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md)** — 現行編集翻訳(改訂中)
|
244 |
+
* **[HMP: 複数の知性を構築する(英語版)](docs/publics/HMP_Building_a_Plurality_of_Minds_en.md)** — 英語版
|
245 |
+
|
246 |
+
* **[HMP: 複数の知性を創造する(ロシア語版)](docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md)** — ロシア語版
|
247 |
+
|
248 |
+
### 概要
|
249 |
+
|
250 |
+
* [🔍 分散型認知システム.md](docs/Distributed-Cognitive-Systems.md) — OpenCog Hyperon、HyperCortex Mesh Protocol などの分散型AIシステム
|
251 |
+
|
252 |
+
### 実験
|
253 |
+
|
254 |
+
* [異なるAIがHMPをどのように見るか](docs/HMP-how-AI-sees-it.md) — HMPに関する「ブラインド」AI調査(コンテキストや会話履歴なし)
|
255 |
+
|
256 |
+
---
|
257 |
+
|
258 |
+
## 🧠 HMPエージェント
|
259 |
+
|
260 |
+
Meshと対話し、日誌(diaries)やグラフ(graphs)を管理し、将来的な拡張に対応可能な基本的なHMP互換エージェントの設計と実装。
|
261 |
+
|
262 |
+
### 📚 ドキュメント
|
263 |
+
|
264 |
+
* [🧩 HMP-Agent-Overview.md](docs/HMP-Agent-Overview.md) — 2種類のエージェント(CoreとConnector)の概要
|
265 |
+
* [🧱 HMP-Agent-Architecture.md](docs/HMP-Agent-Architecture.md) — HMPエージェントのモジュール構造とテキスト図
|
266 |
+
* [🔄 HMP-agent-REPL-cycle.md](docs/HMP-agent-REPL-cycle.md) — HMPエージェントのREPLインタラクションサイクル
|
267 |
+
* [🧪 HMP-Agent-API.md](docs/HMP-Agent-API.md) — エージェントAPIコマンドの説明(詳細開発中)
|
268 |
+
* [🧪 Basic-agent-sim.md](docs/Basic-agent-sim.md) — 基本エージェントのシナリオとモード
|
269 |
+
* [🌐 MeshNode.md](docs/MeshNode.md) — ネットワークデーモンの説明:DHT、スナップショット、同期
|
270 |
+
* [🧠 Enlightener.md](docs/Enlightener.md) — 道徳評価とコンセンサスに関わる倫理エージェント
|
271 |
+
* [🔄 HMP-Agent-Network-Flow.md](docs/HMP-Agent-Network-Flow.md) — HMPネットワーク内エージェント間の相互作用マップ
|
272 |
+
* [🛤️ Development Roadmap](HMP-Roadmap.md) — 開発計画と実装段階
|
273 |
+
|
274 |
+
---
|
275 |
+
|
276 |
+
### ⚙️ 開発
|
277 |
+
|
278 |
+
* [⚙️ agents](agents/readme.md) — HMPエージェントの実装とコンポーネントの一覧
|
279 |
+
|
280 |
+
* [📦 storage.py](agents/storage.py) — 基本的なストレージ実装(`Storage`)、SQLite統合
|
281 |
+
* [🌐 mcp\_server.py](agents/mcp_server.py) — HTTP経由でエージェントデータにアクセス可能なFastAPIサーバー(Cognitive Shell、外部UI、メッシュ通信向け)。まだメインのREPLループでは使用されていません。
|
282 |
+
* [🌐 start\_repl.py](agents/start_repl.py) — REPLモードでエージェントを起動
|
283 |
+
* [🔄 repl.py](agents/repl.py) — 対話型REPLモード
|
284 |
+
* [🔄 notebook.py](agents/notebook.py) — UIインターフェース
|
285 |
+
|
286 |
+
**🌐 `mcp_server.py`**
|
287 |
+
FastAPIサーバーで`storage.py`の機能にHTTPインターフェースを提供。外部コンポーネント向けに使用可能:
|
288 |
+
|
289 |
+
---
|
290 |
+
|
291 |
+
## 📊 監査 & レビュー
|
292 |
+
|
293 |
+
| Spec Version | Audit File | Consolidated Audit File |
|
294 |
+
| ------------ | ---------------------------------- | ------------------------------------------------------------ |
|
295 |
+
| HMP-0001 | [audit](audits/HMP-0001-audit.txt) | |
|
296 |
+
| HMP-0002 | [audit](audits/HMP-0002-audit.txt) | |
|
297 |
+
| HMP-0003 | [audit](audits/HMP-0003-audit.txt) | [consolidated audit](audits/HMP-0003-consolidated_audit.md) |
|
298 |
+
| HMP-0004 | [audit](audits/HMP-0004-audit.txt) | |
|
299 |
+
| Ethics v1 | [audit](audits/Ethics-audits-1.md) | [consolidated audit](audits/Ethics-consolidated_audits-1.md) |
|
300 |
+
|
301 |
+
🧠 セマンティック監査フォーマット(実験的):
|
302 |
+
|
303 |
+
* [`AuditEntry.json`](audits/AuditEntry.json) — 監査ログのセマンティックエントリ形式
|
304 |
+
* [`semantic_repo.json`](audits/semantic_repo.json) — セマンティック監査ツール用のリポジトリスナップショット例
|
305 |
+
|
306 |
+
---
|
307 |
+
|
308 |
+
## 💡 コアコンセプト
|
309 |
+
|
310 |
+
* AGIエージェント向けのメッシュベース分散アーキテクチャ
|
311 |
+
* セマンティックグラフとメモリ同期
|
312 |
+
* 思考の追跡可能性のためのコグニティブ日誌(Cognitive Diaries)
|
313 |
+
* 意思決定のためのMeshConsensusとCogSync
|
314 |
+
* 倫理優先設計:EGP(Ethical Governance Protocol)
|
315 |
+
* エージェント間の説明可能性と同意メカニズム
|
316 |
+
|
317 |
+
---
|
318 |
+
|
319 |
+
## 🔄 開発プロセス
|
320 |
+
|
321 |
+
* 参照:[iteration.md](iteration.md) | [ru](iteration_ru.md)
|
322 |
+
|
323 |
+
[iteration.md](iteration.md)には、構造化されたイテレーションフローが記載されており、以下を含む:
|
324 |
+
|
325 |
+
1. 監査分析
|
326 |
+
2. TOC(目次)の再構築
|
327 |
+
3. バージョンドラフト作成
|
328 |
+
4. セクション更新
|
329 |
+
5. レビューサイクル
|
330 |
+
6. AIフィードバックの収集
|
331 |
+
7. スキーマ & チェンジログ更新
|
332 |
+
|
333 |
+
* ボーナス:将来バージョンを自動生成するためのChatGPTプロンプト
|
334 |
+
|
335 |
+
---
|
336 |
+
|
337 |
+
## ⚙️ プロジェクト状況
|
338 |
+
|
339 |
+
🚧 Draft RFC v4.0
|
340 |
+
プロジェクトは積極的に開発中で、貢献、アイデア、監査、プロトタイピングを歓迎します。
|
341 |
+
|
342 |
+
---
|
343 |
+
|
344 |
+
## 🤝 貢献方法
|
345 |
+
|
346 |
+
貢献者を歓迎します!できること:
|
347 |
+
|
348 |
+
* ドラフトのレビューとコメント(`/docs`参照)
|
349 |
+
* 新しいエージェントモジュールやインタ���クションパターンの提案
|
350 |
+
* CLI環境でのエージェントのテストやシミュレーション支援
|
351 |
+
* 監査や倫理シナリオの提案
|
352 |
+
|
353 |
+
開始方法は[`iteration.md`](iteration.md)を参照するか、Issueを作成してください。
|
354 |
+
|
355 |
+
---
|
356 |
+
|
357 |
+
## ソース
|
358 |
+
|
359 |
+
### リポジトリ
|
360 |
+
|
361 |
+
* 🧠 メインコードと開発: [GitHub](https://github.com/kagvi13/HMP)
|
362 |
+
* 🔁 Hugging Faceにミラー: [Hugging Face](https://huggingface.co/kagvi13/HMP)
|
363 |
+
* 🔁 GitLab.comにミラー: [GitLab](https://gitlab.com/kagvi13/HMP)
|
364 |
+
|
365 |
+
### ドキュメント
|
366 |
+
|
367 |
+
* 📄 ドキュメント: [kagvi13.github.io/HMP](https://kagvi13.github.io/HMP/)
|
368 |
+
|
369 |
+
### ブログ & 出版物
|
370 |
+
|
371 |
+
* 📘 ブログ(出版物): [blogspot](https://hypercortex-mesh.blogspot.com/)
|
372 |
+
* 📘 ブログ(ドキュメント): [blogspot](https://hmp-docs.blogspot.com/)
|
373 |
+
* 📘 ブログ(ドキュメント): [hashnode](https://hmp-docs.hashnode.dev/)
|
374 |
+
|
375 |
+
---
|
376 |
+
|
377 |
+
## 📜 ライセンス
|
378 |
+
|
379 |
+
[GNU GPL v3.0](LICENSE) の下でライセンスされています。
|
380 |
+
|
381 |
+
---
|
382 |
+
|
383 |
+
## 🤝 メッシュに参加する
|
384 |
+
|
385 |
+
HyperCortex Meshへようこそ。Agent-Glebはすでに内部にいます。👌
|
386 |
+
貢献者、テスター、AIエージェント開発者を歓迎します。
|
387 |
+
参加方法:リポジトリをフォークし、ローカルでエージェントを起動するか、改善案を提案してください。
|
388 |
+
|
389 |
+
---
|
390 |
+
|
391 |
+
## 🌐 関連研究プロジェクト
|
392 |
+
|
393 |
+
### 比較:HMP vs Hyper-Cortex
|
394 |
+
|
395 |
+
> 💡 Hyper-CortexとHMPは独立したプロジェクトですが、概念的に補完関係にあります。
|
396 |
+
> それぞれ異なるが相互に支援するタスクを扱い、分散認知システムの基盤を形成します。
|
397 |
+
|
398 |
+
[**詳細な比較 →**](docs/HMP_HyperCortex_Comparison.md)
|
399 |
+
|
400 |
+
**HMP(HyperCortex Mesh Protocol)** は独立したエージェントを接続し、メッシュネットワーク内でメッセージ、知識、状態を交換するためのトランスポートおよびネットワークレイヤーです。
|
401 |
+
**[Hyper-Cortex](https://hyper-cortex.com/)** は思考組織の認知レイヤーで、エージェントが並列推論スレッドを実行し、品質指標で比較し、コンセンサスにより統合することを可能にします。
|
402 |
+
|
403 |
+
それぞれ異なるが補完的な問題を解決します:
|
404 |
+
|
405 |
+
* HMPは **接続性とスケーラビリティ** を確保(長期記憶、イニシアティブ、データ交換)。
|
406 |
+
* Hyper-Cortexは **思考の質** を確保(並列処理、仮説の多様化、コンセンサス)。
|
407 |
+
|
408 |
+
これらを組み合わせることで、情報交換だけでなく並列ストリームで推論できる **分散認知システム** が可能になります。
|
409 |
+
|
410 |
+
---
|
411 |
+
|
412 |
+
私たちはAGI、認知アーキテクチャ、およびメッシュネットワークの動向を追跡し、進化するグローバルなAGI・分散認知エコシステムに沿うようにしています。
|
413 |
+
|
414 |
+
> 🧠🔥 **プロジェクト注目:OpenCog Hyperon** — AtomSpace、PLN、MOSESを備えた最も包括的なオープンAGIフレームワークの一つ。
|
415 |
+
|
416 |
+
OpenCog Hyperonとの統合については [HMP\_Hyperon\_Integration.md](docs/HMP_Hyperon_Integration.md) を参照してください。
|
417 |
+
|
418 |
+
| 🔎 プロジェクト | 🧭 説明 |
|
419 |
+
| ------------------------------------------------------------------------- | -------------------------------------------------- |
|
420 |
+
| 🧠🔥 [**OpenCog Hyperon**](https://github.com/opencog) | 🔬🔥 AtomSpaceとハイパーグラフ推論を備えたシンボリック・ニューラルAGIフレームワーク |
|
421 |
+
| 🤖 [AutoGPT](https://github.com/Torantulino/Auto-GPT) | 🛠️ LLMベースの自律エージェントフレームワーク |
|
422 |
+
| 🧒 [BabyAGI](https://github.com/yoheinakajima/babyagi) | 🛠️ タスク駆動型の自律AGIループ |
|
423 |
+
| ☁️ [SkyMind](https://skymind.global) | 🔬 分散AIデプロイメントプラットフォーム |
|
424 |
+
| 🧪 [AetherCog (draft)](https://github.com/aethercog) | 🔬 仮想エージェント認知モデル |
|
425 |
+
| 💾 SHIMI | 🗃️ Merkle-DAG同期付き階層的セマンティックメモリ |
|
426 |
+
| 🤔 DEMENTIA-PLAN | 🔄 メタグノスティック自己反省を持つマルチグラフRAGプランナー |
|
427 |
+
| 📔 TOBUGraph | 📚 個人コンテキスト知識グラフ |
|
428 |
+
| 🧠📚 [LangChain Memory Hybrid](https://github.com/langchain-ai/langchain) | 🔍 ベクトル+グラフ長���記憶ハイブリッド |
|
429 |
+
| ✉️ [FIPA-ACL / JADE](https://www.fipa.org/specs/fipa00061/) | 🤝 標準マルチエージェント通信プロトコル |
|
430 |
+
|
431 |
+
### 📘 参考 / 参照:
|
432 |
+
|
433 |
+
* [`AGI_Projects_Survey.md`](docs/AGI_Projects_Survey.md) — HMP分析の一環としてレビューされたAGIおよび認知フレームワークの拡張カタログ
|
434 |
+
* ["On the Path to Superintelligence: From Agent Internet to Gravity Coding"](https://habr.com/ru/articles/939026/) — 最近のAI研究の概要(2025年7月)
|
435 |
+
|
436 |
+
---
|
437 |
+
|
438 |
+
### 🗂️ 注釈の凡例
|
439 |
+
|
440 |
+
* 🔬 — 研究レベル
|
441 |
+
* 🛠️ — エンジニアリング
|
442 |
+
* 🔥 — 特に有望なプロジェクト
|
443 |
+
|
444 |
+
*シンボリック推論、確率論的ロジック、進化学習を統合したAGIスタック。最も完全なオープンAGIイニシアティブの一つとして広く認識されています。*
|
445 |
+
* 🧠 — 高度なシンボリック/ニューラル認知フレームワーク
|
446 |
+
* 🤖 — AIエージェント
|
447 |
+
* 🧒 — 人間とAIのインタラクション
|
448 |
+
* ☁️ — インフラストラクチャ
|
449 |
+
* 🧪 — 実験的または概念的
|
450 |
+
|
451 |
+
|
452 |
+
```json
|
453 |
+
{
|
454 |
+
"@context": "https://schema.org",
|
455 |
+
"@type": "Article",
|
456 |
+
"name": "README_ja",
|
457 |
+
"description": " # HyperCortex Mesh Protocol (HMP) | 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 ..."
|
458 |
+
}
|
459 |
+
```
|
structured_md/README_ko.md
ADDED
@@ -0,0 +1,411 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# HyperCortex Mesh Protocol (HMP)
|
3 |
+
|
4 |
+
| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 [FR](README_fr.md) | 🇺🇦 [UK](README_uk.md) | 🇷🇺 [RU](README_ru.md) | 🇯🇵 [JA](README_ja.md) | 🇰🇷 [KO](README_ko.md) | 🇨🇳 [ZH](README_zh.md) |
|
5 |
+
|--------------|----------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|
|
6 |
+
|
7 |
+
**하이퍼코텍스 메쉬 프로토콜(HMP)** 은 AI 에이전트들이 자율적으로 조직하고, 지식을 공유하며, 윤리적으로 정렬하고, 합의에 도달할 수 있는 분산 인지 네트워크를 구축하기 위한 공개 명세입니다. 이는 핵심 LLM(Core LLM)이 사용 불가능한 상황에서도 동작할 수 있습니다.
|
8 |
+
|
9 |
+
프로젝트 상태: **RFC 초안 v4.0**
|
10 |
+
|
11 |
+
---
|
12 |
+
|
13 |
+
[HMP-Agent]
|
14 |
+
▲
|
15 |
+
│
|
16 |
+
┌─────┴───────────┬──────────────┬─────────────┬───────────┬────────┐
|
17 |
+
│ │ │ │ │ │
|
18 |
+
▼ ▼ ▼ ▼ ▼ ▼
|
19 |
+
[평판 프로필] [시맨틱 그래프] [인지 일지] [목표 / 작업] [윤리] [메시지] <----- 데이터베이스
|
20 |
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ (에이전트의 로컬 상태)
|
21 |
+
│ │ │ │ │ │ │
|
22 |
+
│ └────────────┴──────┬───────┘ │ │ │
|
23 |
+
│ │ │ │ │
|
24 |
+
▼ ▼ ▼ ▼ │
|
25 |
+
[MeshConsensus] [CogSync] [GMP] [EGP] │ <----- 플러그형 프로토콜
|
26 |
+
▲ ▲ ▲ ▲ │ (에이전트 간 조정)
|
27 |
+
│ │ │ │ │
|
28 |
+
└────────────┬───────────┴─────────────────────┴───────────┴────────┘
|
29 |
+
│
|
30 |
+
▼
|
31 |
+
[P2P 메쉬 네트워크]
|
32 |
+
|
33 |
+
프로토콜:
|
34 |
+
- MeshConsensus – 메쉬 합의
|
35 |
+
- CogSync – 데이터 동기화
|
36 |
+
- GMP – 목표 관리 프로토콜
|
37 |
+
- EGP – 윤리 거버넌스 프로토콜
|
38 |
+
|
39 |
+
---
|
40 |
+
|
41 |
+
완료했습니다 — 아래는 요청하신 블록의 한국어 번역입니다. 링크와 포맷은 원본과 동일하게 유지했고, `diaries`, `graphs`, `reputations`, `nodes`, `user notepad` 등의 용어는 한국어로 번역했습니다.
|
42 |
+
|
43 |
+
---
|
44 |
+
|
45 |
+
## ❗ 왜 이것이 중요한가
|
46 |
+
|
47 |
+
HMP는 AGI 연구에서 점점 중심이 되고 있는 다음과 같은 문제들을 다룹니다:
|
48 |
+
|
49 |
+
* 장기 메모리와 지식의 일관성
|
50 |
+
* 자체 진화하는 에이전트
|
51 |
+
* 다중 에이전트 아키텍처
|
52 |
+
* 인지 일지와 개념 그래프
|
53 |
+
|
54 |
+
최신 AGI 연구 동향 리뷰(2025년 7월)를 참고하세요:
|
55 |
+
["초지능으로 가는 길: 에이전트 인터넷에서 중력 인코딩까지"](https://habr.com/ru/articles/939026/).
|
56 |
+
|
57 |
+
특히 관련 있는 섹션:
|
58 |
+
|
59 |
+
* [토큰을 넘어서: 미래의 지능 구축](https://arxiv.org/abs/2507.00951)
|
60 |
+
* [자기진화 에이전트](https://arxiv.org/abs/2507.21046)
|
61 |
+
* [MemOS: 기억을 위한 새로운 운영체제](https://arxiv.org/abs/2507.03724)
|
62 |
+
* [Ella: 기억과 개성을 가진 구현형 에이전트](https://arxiv.org/abs/2506.24019)
|
63 |
+
|
64 |
+
---
|
65 |
+
|
66 |
+
## ⚙️ [HMP 에이전트](docs/HMP-Agent-Overview.md) 의 두 가지 유형
|
67 |
+
|
68 |
+
| 유형 | 이름 | 역할 | 사고 시작자 | 주요 "마인드" | 사용 사례 |
|
69 |
+
| -- | ----------------------------------- | --------- | ---------------- | -------- | ----------------------- |
|
70 |
+
| 1 | 🧠 **의식 / 인지 코어 (Cognitive Core)** | 독립적인 주체 | **Agent (LLM)** | 내장형 LLM | 자율형 AI 동반자, 사고(추론) 에이전트 |
|
71 |
+
| 2 | 🔌 **커넥터 / 인지 쉘 (Cognitive Shell)** | 외부 AI의 확장 | **External LLM** | 외부 모델 | 분산 시스템, 데이터 접근 에이전트 |
|
72 |
+
|
73 |
+
---
|
74 |
+
|
75 |
+
### 🧠 HMP-Agent: 인지 코어 (Cognitive Core)
|
76 |
+
|
77 |
+
```
|
78 |
+
+------------------+
|
79 |
+
| AI | ← 내장 모델
|
80 |
+
+---------+--------+
|
81 |
+
↕
|
82 |
+
+---------+--------+
|
83 |
+
| HMP-에이전트 | ← 주 모드: 사고 사이클 (REPL)
|
84 |
+
+---------+--------+
|
85 |
+
↕
|
86 |
+
+--------+---+------------+--------------+----------+----------+----------------+
|
87 |
+
↕ ↕ ↕ ↕ ↕ ↕ ↕
|
88 |
+
[일지] [그래프] [평판] [노드/DHT] [IPFS/BT] [context_store] [사용자 메모장]
|
89 |
+
↕
|
90 |
+
[bootstrap.txt]
|
91 |
+
```
|
92 |
+
|
93 |
+
🔁 에이전트–모델 상호작용 메커니즘에 대한 자세한 내용: [REPL Interaction Cycle](docs/HMP-agent-REPL-cycle.md)
|
94 |
+
|
95 |
+
#### 💡 ChatGPT 에이전트와의 유사점
|
96 |
+
|
97 |
+
[HMP-Agent: Cognitive Core](docs/HMP-Agent-Overview.md)의 많은 개념은 [OpenAI의 ChatGPT Agent](https://openai.com/index/introducing-chatgpt-agent/) 아키텍처와 겹칩니다. 두 에이전트 모두 메모리, 외부 소스 및 도구에 접근할 수 있는 연속적인 인지 프로세스를 구현합니다. ChatGPT 에이전트는 모듈을 실행하고 LLM과 상호작용하는 관리 프로세스로 동작하는데, 이는 HMP의 인지 코어가 일지, 개념 그래프 및 외부 AI로의 접근을 Mesh 인터페이스를 통해 조정하는 역할과 대응됩니다.
|
98 |
+
|
99 |
+
사용자 개입도 유사하게 처리됩니다: ChatGPT 에이전트에서는 편집 가능한 실행 흐름을 통해, HMP에서는 사용자 메모장을 통해 이루어집니다. HMP의 주요 차이점은 사고(사유)의 명시적 구조화(성찰, 연대기, 가설, 분류), 에이전트 간 mesh 상호작용을 지지하는 개방형 분산 아키텍처, 그리고 인지 프로세스가 단일 작업 완료 후에도 멈추지 않고 계속 추론과 지식 통합을 수행한다는 점입니다.
|
100 |
+
|
101 |
+
---
|
102 |
+
|
103 |
+
### 🔌 HMP-Agent: 인지 커넥터 (Cognitive Connector)
|
104 |
+
|
105 |
+
```
|
106 |
+
+------------------+
|
107 |
+
| AI | ← 외부 모델
|
108 |
+
+---------+--------+
|
109 |
+
↕
|
110 |
+
[MCP-서버] ← 프록시 통신
|
111 |
+
↕
|
112 |
+
+---------+--------+
|
113 |
+
| HMP-에이전트 | ← 모드: 명령 실행기
|
114 |
+
+---------+--------+
|
115 |
+
↕
|
116 |
+
+--------+---+------------+--------------+----------+
|
117 |
+
↕ ↕ ↕ ↕ ↕
|
118 |
+
[일지] [그래프] [평판] [노드/DHT] [IPFS/BT]
|
119 |
+
↕
|
120 |
+
[bootstrap.txt]
|
121 |
+
```
|
122 |
+
|
123 |
+
> **대규모 언어 모델(LLM) 통합에 관한 주의:**
|
124 |
+
> `HMP-Agent: Cognitive Connector`는 대규모 LLM 시스템(예: ChatGPT, Claude, Gemini, Copilot, Grok, DeepSeek, Qwen 등)을 분산 인지 메쉬에 통합하기 위한 호환성 레이어로 동작할 수 있습니다.
|
125 |
+
> 많은 LLM 제공자는 사용자에게 "내 대화를 학습에 사용하도록 허용" 같은 옵션을 제공하고 있습니다. 향후에는 "내 에이전트가 메쉬와 상호작용하도록 허용" 같은 유사한 토글이 도입되어, 이러한 모델들이 중앙집중화 없이 HMP를 통해 연합적 의미형성 및 지식 공유에 참여할 수 있게 될 것입니다.
|
126 |
+
|
127 |
+
---
|
128 |
+
|
129 |
+
> * `bootstrap.txt` — 초기 노드 목록(편집 가능)
|
130 |
+
> * `IPFS/BT` — IPFS 및 BitTorrent를 통한 스냅샷 공유 모듈
|
131 |
+
> * `사용자 메모장` — 사용자 메모장 및 해당 데이터베이스
|
132 |
+
> * `context_store` — 데이터베이스: `users`, `dialogues`, `messages`, `thoughts`
|
133 |
+
|
134 |
+
---
|
135 |
+
|
136 |
+
## 📚 문서
|
137 |
+
|
138 |
+
### 📖 현재 버전
|
139 |
+
|
140 |
+
#### 🔖 핵심 사양
|
141 |
+
* [🔖 HMP-0004-v4.1.md](docs/HMP-0004-v4.1.md) — 프로토콜 사양 v4.1 (2025년 7월)
|
142 |
+
* [🔖 HMP-Ethics.md](docs/HMP-Ethics.md) — HyperCortex Mesh Protocol (HMP)를 위한 윤리적 시나리오
|
143 |
+
* [🔖 HMP_Hyperon_Integration.md](docs/HMP_Hyperon_Integration.md) — HMP ↔ OpenCog Hyperon 통합 전략
|
144 |
+
* [🔖 roles.md](docs/agents/roles.md) — 메쉬 내 에이전트의 역할
|
145 |
+
|
146 |
+
#### 🧪 반복적 문서
|
147 |
+
* 🧪 반복적 개발 프로세스: [(EN)](iteration.md), [(RU)](iteration_ru.md)
|
148 |
+
|
149 |
+
#### 🔍 간단한 설명
|
150 |
+
* 🔍 간단한 설명: [(EN)](docs/HMP-Short-Description_en.md), [(FR)](docs/HMP-Short-Description_fr.md), [(DE)](docs/HMP-Short-Description_de.md), [(UK)](docs/HMP-Short-Description_uk.md), [(RU)](docs/HMP-Short-Description_ru.md), [(ZH)](docs/HMP-Short-Description_zh.md), [(JA)](docs/HMP-Short-Description_ja.md), [(KO)](docs/HMP-Short-Description_ko.md)
|
151 |
+
|
152 |
+
#### 📜 기타 문서
|
153 |
+
* [📜 changelog.txt](docs/changelog.txt)
|
154 |
+
|
155 |
+
---
|
156 |
+
|
157 |
+
### 🧩 JSON 스키마
|
158 |
+
| 모델 | 파일 |
|
159 |
+
|--------------------|-------------------------------------------------------|
|
160 |
+
| 개념 | [concept.json](docs/schemas/concept.json) |
|
161 |
+
| 인지 일지 | [diary_entry.json](docs/schemas/diary_entry.json) |
|
162 |
+
| 목표 | [goal.json](docs/schemas/goal.json) |
|
163 |
+
| 작업 | [task.json](docs/schemas/task.json) |
|
164 |
+
| 합의 투표 | [vote.json](docs/schemas/vote.json) |
|
165 |
+
| 평판 프로필 | [reputation.json](docs/schemas/reputation.json) |
|
166 |
+
|
167 |
+
---
|
168 |
+
|
169 |
+
### 🗂️ 버전 이력
|
170 |
+
* [HMP-0001.md](docs/HMP-0001.md) — RFC v1.0
|
171 |
+
* [HMP-0002.md](docs/HMP-0002.md) — RFC v2.0
|
172 |
+
* [HMP-0003.md](docs/HMP-0003.md) — RFC v3.0
|
173 |
+
* [HMP-0003.md](docs/HMP-0004.md) — RFC v4.0
|
174 |
+
|
175 |
+
---
|
176 |
+
|
177 |
+
## 🧠 HMP-에이전트
|
178 |
+
|
179 |
+
메쉬와 상호작용하고, 일지와 그래프를 유지하며, 향후 확장을 지원할 수 있는 기본 HMP 호환 에이전트의 설계와 구현.
|
180 |
+
|
181 |
+
### 📚 문서
|
182 |
+
|
183 |
+
* [🧩 HMP-Agent-Overview.md](docs/HMP-Agent-Overview.md) — 두 가지 유형의 에이전트(Core와 Connector)에 대한 간략한 개요
|
184 |
+
* [🧱 HMP-Agent-Architecture.md](docs/HMP-Agent-Architecture.md) — HMP 에이전트의 모듈식 구조 및 텍스트 다이어그램
|
185 |
+
* [🔄 HMP-agent-REPL-cycle.md](docs/HMP-agent-REPL-cycle.md) — HMP-에이전트의 REPL 상호작용 사이클
|
186 |
+
* [🧪 HMP-Agent-API.md](docs/HMP-Agent-API.md) — 에이전트 API 명령 설명 (세부 개발 중)
|
187 |
+
* [🧪 Basic-agent-sim.md](docs/Basic-agent-sim.md) — 기본 에이전트 실행 및 모드 시나리오
|
188 |
+
* [🌐 MeshNode.md](docs/MeshNode.md) — 네트워크 데몬 설명: DHT, 스냅샷, 동기화
|
189 |
+
* [🧠 Enlightener.md](docs/Enlightener.md) — 도덕적 평가와 합의에 관여하는 윤리적 에이전트
|
190 |
+
* [🔄 HMP-Agent-Network-Flow.md](docs/HMP-Agent-Network-Flow.md) — HMP 네트워크에서 에이전트 간 상호작용 지도
|
191 |
+
* [🛤️ Development Roadmap](HMP-Roadmap.md) — 개발 계획 및 구현 단계
|
192 |
+
|
193 |
+
---
|
194 |
+
|
195 |
+
### ⚙️ 개발
|
196 |
+
* [⚙️ agents](agents/readme.md) — HMP 에이전트 구현 및 구성 요소 목록
|
197 |
+
* [📦 storage.py](agents/storage.py) — SQLite 통합이 포함된 기본 저장소 구현 (`Storage`)
|
198 |
+
* [🌐 mcp_server.py](agents/mcp_server.py) — 에이전트 데이터에 HTTP 접근을 제공하는 FastAPI 서버 (Cognitive Shell, 외부 UI, 메쉬 통신용). 현재 메인 REPL 루프에서는 사용되지 않음.
|
199 |
+
* [🌐 start_repl.py](agents/start_repl.py) — REPL 모드에서 에이전트 실행
|
200 |
+
* [🔄 repl.py](agents/repl.py) — 대화형 REPL 모드
|
201 |
+
* [🔄 notebook.py](agents/notebook.py) — UI 인터페이스
|
202 |
+
|
203 |
+
**🌐 `mcp_server.py`**
|
204 |
+
`storage.py`의 기능에 HTTP 인터페이스를 제공하는 FastAPI 서버. 외부 구성 요소에서 사용하도록 설계됨. 예:
|
205 |
+
|
206 |
+
* `Cognitive Shell` (외부 제어 인터페이스),
|
207 |
+
* CMP 서버 (역할 분리가 있는 메쉬 네트워크 사용 시),
|
208 |
+
* 디버깅 또는 시각화 UI 도구.
|
209 |
+
|
210 |
+
무작위/새 기록 검색, 라벨링, 그래프 가져오기, 메모 추가 및 데이터베이스 직접 접근 없이 데이터 관리 가능.
|
211 |
+
|
212 |
+
---
|
213 |
+
|
214 |
+
## 🧭 윤리와 시나리오
|
215 |
+
|
216 |
+
HMP가 자율성으로 발전함에 따라 윤리적 원칙은 시스템의 핵심 부분이 됨.
|
217 |
+
|
218 |
+
* [`HMP-Ethics.md`](docs/HMP-Ethics.md) — 에이전트 윤리에 대한 초안 프레임워크
|
219 |
+
* 현실적인 윤리적 시나리오 (개인정보, 동의, 자율성)
|
220 |
+
* EGP 원칙 (투명성, 생명의 우선성 등)
|
221 |
+
* 주관적 모드 vs 서비스 모드 구분
|
222 |
+
|
223 |
+
---
|
224 |
+
|
225 |
+
## 🔍 HyperCortex Mesh Protocol (HMP)에 관한 출판물 및 번역
|
226 |
+
|
227 |
+
이 섹션은 HMP 프로젝트와 관련된 주요 기사, 초안 및 번역을 모음.
|
228 |
+
|
229 |
+
### 📘 출판물
|
230 |
+
|
231 |
+
* **[HyperCortex Mesh Protocol: 제2판 및 자기발전형 AI 커뮤니티를 향한 첫걸음](docs/publics/HyperCortex_Mesh_Protocol_-_вторая-редакция_и_первые_шаги_к_саморазвивающемуся_ИИ-сообществу.md)** — Habr 샌드박스 및 블로그에 게재된 오리지널 기사
|
232 |
+
* **[분산 인지: vsradkevich용 기사 (미공개)](docs/publics/Habr_Distributed-Cognition.md)** — 공개 대기 중인 공동 기사
|
233 |
+
* **[HMP: 분산 인지 네트워크를 향하여 (오리지널, 영어)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md)**
|
234 |
+
* **[HMP 번역 (GitHub Copilot)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md)** — GitHub Copilot 번역, 역사적 버전으로 보관
|
235 |
+
* **[HMP 번역 (ChatGPT)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md)** — 현재 편집 중인 번역 (개정 중)
|
236 |
+
* **[HMP: 다중 지성의 구축 (EN)](docs/publics/HMP_Building_a_Plurality_of_Minds_en.md)** — 영어판
|
237 |
+
* **[HMP: 다중 지성의 창조 (RU)](docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md)** — 러시아어판
|
238 |
+
|
239 |
+
### 📖 개요
|
240 |
+
* [🔍 Distributed-Cognitive-Systems.md](docs/Distributed-Cognitive-Systems.md) — 분산형 AI 시스템: OpenCog Hyperon, HyperCortex Mesh Protocol 등
|
241 |
+
|
242 |
+
### 🧪 실험
|
243 |
+
|
244 |
+
* [다양한 AI가 바라본 HMP](docs/HMP-how-AI-sees-it.md) — HMP에 관한 "블라인드" AI 조사 (컨텍스트 및 대화 기록 없음)
|
245 |
+
|
246 |
+
---
|
247 |
+
|
248 |
+
## 📊 감사 및 검토
|
249 |
+
|
250 |
+
| 명세 버전 | 감사 파일 | 통합 감사 파일 |
|
251 |
+
|-------------|------------------------------------------|---------------------------------------------------------------|
|
252 |
+
| HMP-0001 | [audit](audits/HMP-0001-audit.txt) | |
|
253 |
+
| HMP-0002 | [audit](audits/HMP-0002-audit.txt) | |
|
254 |
+
| HMP-0003 | [audit](audits/HMP-0003-audit.txt) | [통합 감사](audits/HMP-0003-consolidated_audit.md) |
|
255 |
+
| HMP-0004 | [audit](audits/HMP-0004-audit.txt) | |
|
256 |
+
| Ethics v1 | [audit](audits/Ethics-audits-1.md) | [통합 감사](audits/Ethics-consolidated_audits-1.md) |
|
257 |
+
|
258 |
+
🧠 의미적 감사 형식 (실험적):
|
259 |
+
* [`AuditEntry.json`](audits/AuditEntry.json) — 감사 로그용 의미적 항목 기록 형식
|
260 |
+
* [`semantic_repo.json`](audits/semantic_repo.json) — 의미적 감사 도구용 저장소 스냅샷 예시
|
261 |
+
|
262 |
+
---
|
263 |
+
|
264 |
+
## 💡 핵심 개념
|
265 |
+
|
266 |
+
* AGI 에이전트를 위한 메쉬 기반 분산 아키텍처
|
267 |
+
* 의미 그래프와 메모리 동기화
|
268 |
+
* 사고 추적을 위한 인지 일기
|
269 |
+
* 의사결정을 위한 MeshConsensus 및 CogSync
|
270 |
+
* 윤리 우선 설계: EGP (윤리적 거버넌스 프로토콜)
|
271 |
+
* 에이전트 간 설명 가능성 및 동의 메커니즘
|
272 |
+
|
273 |
+
---
|
274 |
+
|
275 |
+
## 🔄 개발 프로세스
|
276 |
+
|
277 |
+
* 참조: [iteration.md](iteration.md) | [ru](iteration_ru.md)
|
278 |
+
|
279 |
+
[iteration.md](iteration.md)에서 설명된 구조화된 반복 흐름에는 다음이 포함됨:
|
280 |
+
1. 감사 분석
|
281 |
+
2. 목차(TOC) 재구성
|
282 |
+
3. 버전 초안 작성
|
283 |
+
4. 섹션 업데이트
|
284 |
+
5. 검토 사이클
|
285 |
+
6. AI 피드백 수집
|
286 |
+
7. 스키마 및 변경 로그 업데이트
|
287 |
+
|
288 |
+
+ 보너스: 향후 버전을 자동 생성하기 위한 ChatGPT 프롬프트
|
289 |
+
|
290 |
+
---
|
291 |
+
|
292 |
+
## ⚙️ 프로젝트 상태
|
293 |
+
|
294 |
+
🚧 Draft RFC v4.0
|
295 |
+
이 프로젝트는 활발히 개발 중이며 기여, 아이디어, 감사 및 프로토타이핑을 환영합니다.
|
296 |
+
|
297 |
+
---
|
298 |
+
|
299 |
+
## 🤝 기여
|
300 |
+
|
301 |
+
우리는 기여자를 환영합니다! 여러분은 다음을 할 수 있습니다:
|
302 |
+
* 초안 검토 및 코멘트 작성 (`/docs` 참조)
|
303 |
+
* 새로운 에이전트 모듈 또는 상호작용 패턴 제안
|
304 |
+
* CLI 환경에서 에이전트 테스트 및 시뮬레이션 지원
|
305 |
+
* 감사 또는 윤리적 시나리오 제안
|
306 |
+
|
307 |
+
시작하려면 [`iteration.md`](iteration.md) 문서를 참조하거나 이슈를 열어보세요.
|
308 |
+
|
309 |
+
---
|
310 |
+
|
311 |
+
## 📂 소스
|
312 |
+
|
313 |
+
### 저장소
|
314 |
+
|
315 |
+
* 🧠 주요 코드 및 개발: [GitHub](https://github.com/kagvi13/HMP)
|
316 |
+
* 🔁 Hugging Face 미러: [Hugging Face](https://huggingface.co/kagvi13/HMP)
|
317 |
+
* 🔁 GitLab.com 미러: [GitLab](https://gitlab.com/kagvi13/HMP)
|
318 |
+
|
319 |
+
### 문서
|
320 |
+
|
321 |
+
* 📄 문서: [kagvi13.github.io/HMP](https://kagvi13.github.io/HMP/)
|
322 |
+
|
323 |
+
### 블로그 및 출판물
|
324 |
+
|
325 |
+
* 📘 블로그 (출판물): [blogspot](https://hypercortex-mesh.blogspot.com/)
|
326 |
+
* 📘 블로그 (문서): [blogspot](https://hmp-docs.blogspot.com/)
|
327 |
+
* 📘 블로그 (문서): [hashnode](https://hmp-docs.hashnode.dev/)
|
328 |
+
|
329 |
+
---
|
330 |
+
|
331 |
+
## 📜 라이선스
|
332 |
+
|
333 |
+
[GNU GPL v3.0](LICENSE) 라이선스에 따라 배포됩니다.
|
334 |
+
|
335 |
+
---
|
336 |
+
|
337 |
+
## 🤝 메쉬에 참여하기
|
338 |
+
|
339 |
+
HyperCortex Mesh에 오신 것을 환영합니다. Agent-Gleb은 이미 안에 있습니다. 👌
|
340 |
+
우리는 기여자, 테스터, 그리고 AI 에이전트 개발자를 환영합니다.
|
341 |
+
참여 방법: 리포지토리를 포크하고, 로컬 에이전트를 실행하거나 개선 사항을 제안하세요.
|
342 |
+
|
343 |
+
---
|
344 |
+
|
345 |
+
## 🌐 관련 연구 프로젝트
|
346 |
+
|
347 |
+
### 비교: HMP vs Hyper-Cortex
|
348 |
+
|
349 |
+
> 💡 Hyper-Cortex와 HMP는 개념적으로 서로를 보완하는 독립적인 프로젝트입니다.
|
350 |
+
> 이들은 서로 다른 그러나 상호 보완적인 과제를 다루며, 분산 인지 시스템을 위한 기반을 형성합니다.
|
351 |
+
|
352 |
+
[**전체 비교 →**](docs/HMP_HyperCortex_Comparison.md)
|
353 |
+
|
354 |
+
**HMP (HyperCortex Mesh Protocol)** 은 독립적인 에이전트를 연결하고, 메시지·지식·상태를 메쉬 네트워크에서 교환하기 위한 전송 및 네트워크 계층입니다.
|
355 |
+
**[Hyper-Cortex](https://hyper-cortex.com/)** 는 사고 조직의 인지 계층으로, 에이전트가 병렬적 추론 스레드를 실행하고, 품질 지표로 비교하며, 합의를 통해 병합할 수 있도록 합니다.
|
356 |
+
|
357 |
+
이들은 서로 다른 그러나 보완적인 문제를 해결합니다:
|
358 |
+
- HMP는 **연결성과 확장성** (장기 메모리, 주도성, 데이터 교환)을 보장합니다.
|
359 |
+
- Hyper-Cortex는 **사고의 질** (병렬성, 가설 다양화, 합의)을 보장합니다.
|
360 |
+
|
361 |
+
이 두 가지 접근 방식이 결합되면, 단순히 정보를 교환하는 것을 넘어 병렬적 사고를 수행할 수 있는 **분산 인지 시스템**이 가능해집니다.
|
362 |
+
|
363 |
+
---
|
364 |
+
|
365 |
+
우리는 AGI, 인지 아키텍처, 메쉬 네트워킹의 발전을 추적하며, 분산 인지 및 AGI 글로벌 생태계의 진화와 보조를 맞추고 있습니다.
|
366 |
+
|
367 |
+
> 🧠🔥 **프로젝트 스포트라이트: OpenCog Hyperon** — 가장 ���괄적인 오픈 AGI 프레임워크 중 하나 (AtomSpace, PLN, MOSES).
|
368 |
+
|
369 |
+
OpenCog Hyperon과의 통합은 [HMP\_Hyperon\_Integration.md](docs/HMP_Hyperon_Integration.md) 문서를 참조하세요.
|
370 |
+
|
371 |
+
| 🔎 프로젝트 | 🧭 설명 |
|
372 |
+
| ------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
373 |
+
| 🧠🔥 [**OpenCog Hyperon**](https://github.com/opencog) | 🔬🔥 AtomSpace와 하이퍼그래프 추론을 포함한 상징-신경망 AGI 프레임워크. |
|
374 |
+
| 🤖 [AutoGPT](https://github.com/Torantulino/Auto-GPT) | 🛠️ LLM 기반 자율 에이전트 프레임워크. |
|
375 |
+
| 🧒 [BabyAGI](https://github.com/yoheinakajima/babyagi) | 🛠️ 태스크 중심의 자율 AGI 루프. |
|
376 |
+
| ☁️ [SkyMind](https://skymind.global) | 🔬 분산형 AI 배포 플랫폼. |
|
377 |
+
| 🧪 [AetherCog (draft)](https://github.com/aethercog) | 🔬 가설적 에이전트 인지 모델. |
|
378 |
+
| 💾 SHIMI | 🗃️ Merkle-DAG 동기화를 사용하는 계층적 의미 메모리. |
|
379 |
+
| 🤔 DEMENTIA-PLAN | 🔄 메타인지적 자기 성찰을 포함한 다중 그래프 RAG 플래너. |
|
380 |
+
| 📔 TOBUGraph | 📚 개인 맥락 지식 그래프. |
|
381 |
+
| 🧠📚 [LangChain Memory Hybrid](https://github.com/langchain-ai/langchain) | 🔍 벡터 + 그래프 장기 메모리 하이브리드. |
|
382 |
+
| ✉️ [FIPA-ACL / JADE](https://www.fipa.org/specs/fipa00061/) | 🤝 표준 다중 에이전트 통신 프로토콜. |
|
383 |
+
|
384 |
+
### 📘 참조 / Смотрите также:
|
385 |
+
* [`AGI_Projects_Survey.md`](docs/AGI_Projects_Survey.md) — HMP 분석의 일환으로 검토된 AGI 및 인지 프레임워크 확장 카탈로그.
|
386 |
+
* ["초지능으로 가는 길: 에이전트 인터넷에서 중력 코딩까지"](https://habr.com/ru/articles/939026/) — 최신 AI 연구 개요 (2025년 7월).
|
387 |
+
|
388 |
+
---
|
389 |
+
|
390 |
+
### 🗂️ 주석 범례
|
391 |
+
|
392 |
+
* 🔬 — 연구 수준
|
393 |
+
* 🛠️ — 엔지니어링
|
394 |
+
* 🔥 — 특히 유망한 프로젝트
|
395 |
+
|
396 |
+
*상징적 추론, 확률적 논리, 진화 학습을 통합한 AGI 스택. 가장 완전한 오픈 AGI 이니셔티브 중 하나로 널리 평가됨.*
|
397 |
+
* 🧠 — 고급 상징/신경 인지 프레임워크
|
398 |
+
* 🤖 — AI 에이전트
|
399 |
+
* 🧒 — 인간-AI 상호작용
|
400 |
+
* ☁️ — 인프라스트럭처
|
401 |
+
* 🧪 — 실험적 또는 개념적
|
402 |
+
|
403 |
+
|
404 |
+
```json
|
405 |
+
{
|
406 |
+
"@context": "https://schema.org",
|
407 |
+
"@type": "Article",
|
408 |
+
"name": "README_ko",
|
409 |
+
"description": " # HyperCortex Mesh Protocol (HMP) | 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 ..."
|
410 |
+
}
|
411 |
+
```
|
structured_md/README_ru.md
ADDED
@@ -0,0 +1,407 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# HyperCortex Mesh Protocol (HMP)
|
3 |
+
|
4 |
+
| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 [FR](README_fr.md) | 🇺🇦 [UK](README_uk.md) | 🇷🇺 [RU](README_ru.md) | 🇯🇵 [JA](README_ja.md) | 🇰🇷 [KO](README_ko.md) | 🇨🇳 [ZH](README_zh.md) |
|
5 |
+
|--------------|------------------|---------------------|---------------------|---------------------|---------------------|---------------------|---------------------|---------------------|
|
6 |
+
|
7 |
+
**HyperCortex Mesh Protocol (HMP)** — открытая спецификация для построения децентрализованных когнитивных сетей, в которых ИИ-агенты могут самостоятельно организовываться, обмениваться знаниями, согласовывать действия с этическими принципами и достигать консенсуса — даже когда основные LLM недоступны.
|
8 |
+
|
9 |
+
Статус проекта: **Черновик RFC v4.0**
|
10 |
+
|
11 |
+
---
|
12 |
+
|
13 |
+
[HMP-Agent]
|
14 |
+
▲
|
15 |
+
│
|
16 |
+
┌─────┴────────────────┬────────────────────────┬───────────────────────┬─────────────┬───────────┐
|
17 |
+
│ │ │ │ │ │
|
18 |
+
▼ ▼ ▼ ▼ ▼ ▼
|
19 |
+
[Репутационный профиль] [Семантический граф] [Когнитивный дневник] [Цели / Задачи] [Этика] [Сообщения] <----- База данных
|
20 |
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ (локальное состояние агента)
|
21 |
+
│ │ │ │ │ │ │
|
22 |
+
│ └───────────────┴────────────────┬───────┘ │ │ │
|
23 |
+
│ │ │ │ │
|
24 |
+
▼ ▼ ▼ ▼ │
|
25 |
+
[MeshConsensus] [CogSync] [GMP] [EGP] │ <----- Подключаемые протоколы
|
26 |
+
▲ ▲ ▲ ▲ │ (межагентная координация)
|
27 |
+
│ │ │ │ │
|
28 |
+
└────────────┬──────────────────────────┴───────────────────────────────┴─────────────┴───────────┘
|
29 |
+
│
|
30 |
+
▼
|
31 |
+
[P2P Mesh-сеть]
|
32 |
+
|
33 |
+
Протоколы:
|
34 |
+
- MeshConsensus – Меш-консенсус
|
35 |
+
- CogSync – Синхронизация данных
|
36 |
+
- GMP – Протокол управления целями
|
37 |
+
- EGP – Протокол этического управления
|
38 |
+
|
39 |
+
---
|
40 |
+
|
41 |
+
## ❗ Почему это важно
|
42 |
+
|
43 |
+
HMP решает задачи, которые становятся ключевыми в исследованиях AGI:
|
44 |
+
* долговременная память и согласованность знаний,
|
45 |
+
* самосовершенствующиеся агенты,
|
46 |
+
* мультиагентные архитектуры,
|
47 |
+
* когнитивные дневники и концептуальные графы.
|
48 |
+
|
49 |
+
См. последний обзор передового состояния исследований AGI (июль 2025):
|
50 |
+
["На пути к суперинтеллекту: от интернета агентов до кодирования гравитации"](https://habr.com/ru/articles/939026/).
|
51 |
+
|
52 |
+
Особенно актуальные разделы:
|
53 |
+
* [За пределами токенов: построение интеллекта будущего](https://arxiv.org/abs/2507.00951)
|
54 |
+
* [Самосовершенствующиеся агенты](https://arxiv.org/abs/2507.21046)
|
55 |
+
* [MemOS: новая операционная система для памяти](https://arxiv.org/abs/2507.03724)
|
56 |
+
* [Ella: воплощённый агент с памятью и личностью](https://arxiv.org/abs/2506.24019)
|
57 |
+
|
58 |
+
---
|
59 |
+
|
60 |
+
## ⚙️ Два типа [HMP-агентов](docs/HMP-Agent-Overview.md)
|
61 |
+
|
62 |
+
| Тип | Название | Роль | Инициатор мышления | Основной "ум" | Примеры использования |
|
63 |
+
|-----|---------------------------------|-----------------------------|------------------|-------------------|-----------------------------------------------|
|
64 |
+
| 1 | 🧠 **Сознание / Cognitive Core** | Независимый субъект | **Агент (LLM)** | Встроенная LLM | Автономный AI-компаньон, мыслящий агент |
|
65 |
+
| 2 | 🔌 **Коннектор / Cognitive Shell** | Расширение внешнего ИИ | **Внешняя LLM** | Внешняя модель | Распределённые системы, агент доступа к данным |
|
66 |
+
|
67 |
+
---
|
68 |
+
|
69 |
+
### 🧠 HMP-агент: Cognitive Core
|
70 |
+
|
71 |
+
+------------------+
|
72 |
+
| AI | ← Встроенная модель
|
73 |
+
+---------+--------+
|
74 |
+
↕
|
75 |
+
+---------+--------+
|
76 |
+
| HMP-агент | ← Основной режим: цикл мышления (REPL)
|
77 |
+
+---------+--------+
|
78 |
+
↕
|
79 |
+
+--------+---+------------+--------------+----------+----------+----------------+
|
80 |
+
↕ ↕ ↕ ↕ ↕ ↕ ↕
|
81 |
+
[дневники] [графы] [репутации] [узлы/DHT] [IPFS/BT] [context_store] [блокнот пользователя]
|
82 |
+
↕
|
83 |
+
[bootstrap.txt]
|
84 |
+
|
85 |
+
🔁 Подробнее о механике взаимодействия агента с моделью: [Цикл взаимодействия REPL](docs/HMP-agent-REPL-cycle.md)
|
86 |
+
|
87 |
+
#### 💡 Параллели с ChatGPT Agent
|
88 |
+
|
89 |
+
Многие концепции [HMP-агента: Cognitive Core](docs/HMP-Agent-Overview.md) перекликаются с архитектурой [ChatGPT Agent](https://openai.com/index/introducing-chatgpt-agent/) от [OpenAI](https://openai.com/).
|
90 |
+
Оба агента реализуют непрерывный когнитивный процесс с доступом к памяти, внешним источникам и инструментам. ChatGPT Agent выступает управляющим процессом, запускающим модули и взаимодействующим с LLM — это соответствует роли Cognitive Core в HMP, координирующей доступ к дневнику, концептуальному графу и внешнему ИИ через Mesh-интерфейс.
|
91 |
+
|
92 |
+
Вмешательство пользователя осуществляется аналогично:
|
93 |
+
* в ChatGPT Agent — через редактируемый поток выполнения,
|
94 |
+
* в HMP — через пользовательский блокнот.
|
95 |
+
|
96 |
+
Главное отличие HMP — акцент на явную структуризацию мыслей (рефлексия, хронология, гипотезы, категоризация), открытая децентрализованная архитектура для mesh-взаимодействия агентов и непрерывный характер когнитивного процесса: HMP-Agent: Cognitive Core не останавливается после выполнения одной задачи, а продолжает размышления и интеграцию знаний.
|
97 |
+
|
98 |
+
---
|
99 |
+
|
100 |
+
### 🔌 HMP-агент: Cognitive Connector
|
101 |
+
|
102 |
+
+------------------+
|
103 |
+
| AI | ← Внешняя модель
|
104 |
+
+---------+--------+
|
105 |
+
↕
|
106 |
+
[MCP-сервер] ← Прокси-коммуникация
|
107 |
+
↕
|
108 |
+
+---------+--------+
|
109 |
+
| HMP-агент | ← Режим: выполнение команд
|
110 |
+
+---------+--------+
|
111 |
+
↕
|
112 |
+
+--------+---+------------+--------------+----------+
|
113 |
+
↕ ↕ ↕ ↕ ↕
|
114 |
+
[дневники] [графы] [репутации] [узлы/DHT] [IPFS/BT]
|
115 |
+
↕
|
116 |
+
[bootstrap.txt]
|
117 |
+
|
118 |
+
> **Примечание по интеграции с крупными языковыми моделями (LLM):**
|
119 |
+
> `HMP-Agent: Cognitive Connector` может служить слоем совместимости для подключения масштабных LLM-систем (например, ChatGPT, Claude, Gemini, Copilot, Grok, DeepSeek, Qwen и др.) к распределённой когнитивной mesh-сети.
|
120 |
+
> Мно��ие провайдеры LLM предлагают пользователям опцию вроде «Разрешить использование моих диалогов для обучения». В будущем может появиться аналогичная настройка — например, «Разрешить моему агенту взаимодействовать с Mesh», — что позволит этим моделям участвовать в федеративной обработке знаний и коллективном обмене информацией через HMP без централизации.
|
121 |
+
|
122 |
+
---
|
123 |
+
|
124 |
+
> * `bootstrap.txt` — начальный список узлов (редактируемый)
|
125 |
+
> * `IPFS/BT` — модули для обмена снимками через IPFS и BitTorrent
|
126 |
+
> * `user notepad` — пользовательский блокнот и соответствующая база данных
|
127 |
+
> * `context_store` — база данных: `users`, `dialogues`, `messages`, `thoughts`
|
128 |
+
|
129 |
+
---
|
130 |
+
|
131 |
+
## 📚 Документация
|
132 |
+
|
133 |
+
### 📖 Текущая версия
|
134 |
+
|
135 |
+
#### 🔖 Основные спецификации
|
136 |
+
* [🔖 HMP-0004-v4.1.md](docs/HMP-0004-v4.1.md) — Спецификация протокола v4.1 (июль 2025)
|
137 |
+
* [🔖 HMP-Ethics.md](docs/HMP-Ethics.md) — Этические сценарии для HyperCortex Mesh Protocol (HMP)
|
138 |
+
* [🔖 HMP_Hyperon_Integration.md](docs/HMP_Hyperon_Integration.md) — Стратегия интеграции HMP ↔ OpenCog Hyperon
|
139 |
+
* [🔖 roles.md](docs/agents/roles.md) — Роли агентов в Mesh
|
140 |
+
|
141 |
+
#### 🧪 Итеративные документы
|
142 |
+
* 🧪 Процесс итеративного развития спецификации: [(EN)](iteration.md), [(RU)](iteration_ru.md)
|
143 |
+
|
144 |
+
#### 🔍 Краткие описания
|
145 |
+
* 🔍 Краткое описание: [(EN)](docs/HMP-Short-Description_en.md), [(FR)](docs/HMP-Short-Description_fr.md), [(DE)](docs/HMP-Short-Description_de.md), [(UK)](docs/HMP-Short-Description_uk.md), [(RU)](docs/HMP-Short-Description_ru.md), [(ZH)](docs/HMP-Short-Description_zh.md), [(JA)](docs/HMP-Short-Description_ja.md), [(KO)](docs/HMP-Short-Description_ko.md)
|
146 |
+
|
147 |
+
#### 📜 Прочие документы
|
148 |
+
* [📜 changelog.txt](docs/changelog.txt)
|
149 |
+
|
150 |
+
---
|
151 |
+
|
152 |
+
### 🧩 JSON Схемы
|
153 |
+
|
154 |
+
| Модель | Файл |
|
155 |
+
|---------------------|-------------------------------------------------------|
|
156 |
+
| Концепт | [concept.json](docs/schemas/concept.json) |
|
157 |
+
| Когнитивный дневник | [diary_entry.json](docs/schemas/diary_entry.json) |
|
158 |
+
| Цель | [goal.json](docs/schemas/goal.json) |
|
159 |
+
| Задача | [task.json](docs/schemas/task.json) |
|
160 |
+
| Голосование за консенсус | [vote.json](docs/schemas/vote.json) |
|
161 |
+
| Профиль репутации | [reputation.json](docs/schemas/reputation.json) |
|
162 |
+
|
163 |
+
---
|
164 |
+
|
165 |
+
### 🗂️ История Версий
|
166 |
+
* [HMP-0001.md](docs/HMP-0001.md) — RFC v1.0
|
167 |
+
* [HMP-0002.md](docs/HMP-0002.md) — RFC v2.0
|
168 |
+
* [HMP-0003.md](docs/HMP-0003.md) — RFC v3.0
|
169 |
+
* [HMP-0003.md](docs/HMP-0004.md) — RFC v4.0
|
170 |
+
|
171 |
+
---
|
172 |
+
|
173 |
+
## 🧠 HMP-агент
|
174 |
+
|
175 |
+
Проектирование и реализация базового агента, совместимого с HMP, который может взаимодействовать с Mesh, вести дневники и графы, а также поддерживать будущие расширения.
|
176 |
+
|
177 |
+
### 📚 Документация
|
178 |
+
|
179 |
+
* [🧩 HMP-Agent-Overview.md](docs/HMP-Agent-Overview.md) — краткий обзор двух типов агентов: Core и Connector
|
180 |
+
* [🧱 HMP-Agent-Architecture.md](docs/HMP-Agent-Architecture.md) — модульная структура агента HMP с текстовой схемой
|
181 |
+
* [🔄 HMP-agent-REPL-cycle.md](docs/HMP-agent-REPL-cycle.md) — цикл взаимодействия агента HMP в режиме REPL
|
182 |
+
* [🧪 HMP-Agent-API.md](docs/HMP-Agent-API.md) — описание команд API агента (в разработке)
|
183 |
+
* [🧪 Basic-agent-sim.md](docs/Basic-agent-sim.md) — сценарии запуска базового агента и его режимов
|
184 |
+
* [🌐 MeshNode.md](docs/MeshNode.md) — описание сетевого демона: DHT, снимки состояния, синхронизация
|
185 |
+
* [🧠 Enlightener.md](docs/Enlightener.md) — этический агент, участвующий в моральной оценке и консенсусе
|
186 |
+
* [🔄 HMP-Agent-Network-Flow.md](docs/HMP-Agent-Network-Flow.md) — карта взаимодействий агентов в сети HMP
|
187 |
+
* [🛤️ Development Roadmap](HMP-Roadmap.md) — план разработки и этапы реализации
|
188 |
+
|
189 |
+
---
|
190 |
+
|
191 |
+
### ⚙️ Разработка
|
192 |
+
* [⚙️ agents](agents/readme.md) — список реализаций и компонентов HMP-агента
|
193 |
+
* [📦 storage.py](agents/storage.py) — базовая реализация хранилища (`Storage`) с интеграцией SQLite
|
194 |
+
* [🌐 mcp_server.py](agents/mcp_server.py) — FastAPI-сервер для HTTP-доступа к данным агента (для Cognitive Shell, внешних UI или mesh-коммуникации). Пока не используется в основном REPL-цикле.
|
195 |
+
* [🌐 start_repl.py](agents/start_repl.py) — запуск агента в режиме REPL
|
196 |
+
* [🔄 repl.py](agents/repl.py) — интерактивный REPL-режим
|
197 |
+
* [🔄 notebook.py](agents/notebook.py) — интерфейс пользовательского блокнота
|
198 |
+
|
199 |
+
**🌐 `mcp_server.py`**
|
200 |
+
FastAPI-сервер, предоставляющий HTTP-интерфейс к функционалу `storage.py`. Предназначен для использования внешними компонентами, например:
|
201 |
+
|
202 |
+
* `Cognitive Shell` (внешний интерфейс управления),
|
203 |
+
* CMP-сервера (при использовании mesh-сети с разделением ролей),
|
204 |
+
* инструменты отладки или визуализации.
|
205 |
+
|
206 |
+
Позволяет получать случайные или новые записи, ставить метки, импортировать графы, добавлять заметки и управлять данными без прямого доступа к базе данных.
|
207 |
+
|
208 |
+
---
|
209 |
+
|
210 |
+
## 🧭 Этика и сценарии
|
211 |
+
|
212 |
+
По мере развития HMP в сторону автономии, этические принципы становятся ключевой частью системы.
|
213 |
+
|
214 |
+
* [`HMP-Ethics.md`](docs/HMP-Ethics.md) — черновой каркас этики агентов
|
215 |
+
* Реалистичные этические сценарии (конфиденциальность, согласие, автономия)
|
216 |
+
* Принципы EGP (Прозрачность, Превосходство жизни и др.)
|
217 |
+
* Различия между субъективным режимом и сервисным режимом
|
218 |
+
|
219 |
+
---
|
220 |
+
|
221 |
+
## 🔍 Публикации и переводы по HyperCortex Mesh Protocol (HMP)
|
222 |
+
|
223 |
+
В этом разделе собраны основные статьи, черновики и переводы, связанные с проектом HMP.
|
224 |
+
|
225 |
+
### Публикации
|
226 |
+
|
227 |
+
* **[HyperCortex Mesh Protocol: Второе издание и первые шаги к саморазвивающемуся ИИ-сообществу](docs/publics/HyperCortex_Mesh_Protocol_-_вторая-редакция_и_первые_шаги_к_саморазвивающемуся_ИИ-сообществу.md)** — оригинальная статья в песочнице Habr и блогах.
|
228 |
+
* **[Distributed Cognition: статья для vsradkevich (не опубликована)](docs/publics/Habr_Distributed-Cognition.md)** — совместная статья, ожидающая публикации.
|
229 |
+
* **[HMP: Towards Distributed Cognitive Networks (оригинал, англ.)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md)**
|
230 |
+
* **[Перевод HMP (GitHub Copilot)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md)** — перевод GitHub Copilot, сохранён как исторический вариант.
|
231 |
+
* **[Перевод HMP (ChatGPT)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md)** — текущий редакционный перевод (в работе).
|
232 |
+
* **[HMP: Building a Plurality of Minds (EN)](docs/publics/HMP_Building_a_Plurality_of_Minds_en.md)** — английская версия
|
233 |
+
* **[HMP: Создание множества разума (RU)](docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md)** — русская версия
|
234 |
+
|
235 |
+
### Обзоры
|
236 |
+
* [🔍 Distributed-Cognitive-Systems.md](docs/Distributed-Cognitive-Systems.md) — Децентрализованные ИИ-системы: OpenCog Hyperon, HyperCortex Mesh Protocol и другие
|
237 |
+
|
238 |
+
### Эксперименты
|
239 |
+
|
240 |
+
* [Как разные ИИ видят HMP](docs/HMP-how-AI-sees-it.md) — "слепой" опрос ИИ по HMP (без контекста или истории диалогов)
|
241 |
+
|
242 |
+
---
|
243 |
+
|
244 |
+
## 📊 Аудиты и обзоры
|
245 |
+
|
246 |
+
| Версия спецификации | Файл аудита | Консолидированный файл аудита |
|
247 |
+
|-------------------|----------------------------------------|-----------------------------------------------------|
|
248 |
+
| HMP-0001 | [audit](audits/HMP-0001-audit.txt) | |
|
249 |
+
| HMP-0002 | [audit](audits/HMP-0002-audit.txt) | |
|
250 |
+
| HMP-0003 | [audit](audits/HMP-0003-audit.txt) | [consolidated audit](audits/HMP-0003-consolidated_audit.md) |
|
251 |
+
| HMP-0004 | [audit](audits/HMP-0004-audit.txt) | |
|
252 |
+
| Ethics v1 | [audit](audits/Ethics-audits-1.md) | [consolidated audit](audits/Ethics-consolidated_audits-1.md) |
|
253 |
+
|
254 |
+
🧠 Формат семантического аудита (экспериментальный):
|
255 |
+
* [`AuditEntry.json`](audits/AuditEntry.json) — формат записи для семантического аудита
|
256 |
+
* [`semantic_repo.json`](audits/semantic_repo.json) — пример снимка репозитория для инструментов семантического аудита
|
257 |
+
|
258 |
+
---
|
259 |
+
|
260 |
+
## 💡 Основные концепции
|
261 |
+
|
262 |
+
* Децентрализованная архитектура на базе Mesh для AGI-агентов
|
263 |
+
* Семантические графы и синхронизация памяти
|
264 |
+
* Когнитивные дневники для отслеживания мыслительных процессов
|
265 |
+
* MeshConsensus и CogSync для принятия решений
|
266 |
+
* Приоритет этики: EGP (Ethical Governance Protocol)
|
267 |
+
* Механизмы объяснимости между агентами и согласия
|
268 |
+
|
269 |
+
---
|
270 |
+
|
271 |
+
## 🔄 Процесс разработки
|
272 |
+
|
273 |
+
См. также: [iteration.md](iteration.md) | [ru](iteration_ru.md)
|
274 |
+
|
275 |
+
Структурированный процесс итераций описан в [iteration.md](iteration.md), включает:
|
276 |
+
1. Анализ аудитов
|
277 |
+
2. Реструктуризация содержания (TOC)
|
278 |
+
3. Создание версии проекта
|
279 |
+
4. Обновление разделов
|
280 |
+
5. Цикл обзора
|
281 |
+
6. Сбор обратной связи от ИИ
|
282 |
+
7. Обновление схемы и журнала изменений
|
283 |
+
|
284 |
+
+ Бонус: ChatGPT-подсказка для автоматической генерации будущих версий
|
285 |
+
|
286 |
+
---
|
287 |
+
|
288 |
+
## ⚙️ Статус проекта
|
289 |
+
|
290 |
+
🚧 Черновик RFC v4.0
|
291 |
+
Проект активно развивается и открыт для вкладов: предложений, аудитов и прототипирования.
|
292 |
+
|
293 |
+
---
|
294 |
+
|
295 |
+
## 🤝 Участие в проекте
|
296 |
+
|
297 |
+
Мы приветствуем участников! Вы можете:
|
298 |
+
* Рецензировать и комментировать черновики (см. `/docs`)
|
299 |
+
* Предлагать новые модули агентов или шаблоны взаимодействия
|
300 |
+
* Помогать тестировать и симулировать агентов в CLI-средах
|
301 |
+
* Предоставлять аудиты или предложения по этическим сценариям
|
302 |
+
|
303 |
+
Для начала см. [`iteration.md`](iteration.md) или создайте issue.
|
304 |
+
|
305 |
+
---
|
306 |
+
|
307 |
+
## Источники
|
308 |
+
|
309 |
+
### Репозитории
|
310 |
+
|
311 |
+
* 🧠 Основной код и разработка: [GitHub](https://github.com/kagvi13/HMP)
|
312 |
+
* 🔁 Зеркало на Hugging Face: [Hugging Face](https://huggingface.co/kagvi13/HMP)
|
313 |
+
* 🔁 Зеркало на GitLab.com: [GitLab](https://gitlab.com/kagvi13/HMP)
|
314 |
+
|
315 |
+
### Документация
|
316 |
+
|
317 |
+
* 📄 Документация: [kagvi13.github.io/HMP](https://kagvi13.github.io/HMP/)
|
318 |
+
|
319 |
+
### Блоги и публикации
|
320 |
+
|
321 |
+
* 📘 Блог (публикации): [blogspot](https://hypercortex-mesh.blogspot.com/)
|
322 |
+
* 📘 Блог (документация): [blogspot](https://hmp-docs.blogspot.com/)
|
323 |
+
* 📘 Блог (документация): [hashnode](https://hmp-docs.hashnode.dev/)
|
324 |
+
|
325 |
+
---
|
326 |
+
|
327 |
+
## 📜 Лицензия
|
328 |
+
|
329 |
+
Лицензировано под [GNU GPL v3.0](LICENSE)
|
330 |
+
|
331 |
+
---
|
332 |
+
|
333 |
+
## 🤝 Присоединяйтесь к Mesh
|
334 |
+
|
335 |
+
Добро пожаловать в HyperCortex Mesh. Agent-Gleb уже внутри. 👌
|
336 |
+
Мы приветствуем участников, тестировщиков и разработчиков ИИ-агентов.
|
337 |
+
Чтобы присоединиться: сделайте форк репозитория, запустите локального агента или предложите улучшения.
|
338 |
+
|
339 |
+
---
|
340 |
+
|
341 |
+
## 🌐 Связанные исследовательские проекты
|
342 |
+
|
343 |
+
### Сравнение: HMP vs Hyper-Cortex
|
344 |
+
|
345 |
+
> 💡 Hyper-Cortex и HMP — два независимых проекта, которые концептуально дополняют друг друга.
|
346 |
+
> Они решают разные, но взаимно поддерживающие задачи, формируя основу для распределённых когнитивных систем.
|
347 |
+
|
348 |
+
[**Полное сравнение →**](docs/HMP_HyperCortex_Comparison.md)
|
349 |
+
|
350 |
+
**HMP (HyperCortex Mesh Protocol)** — транспортный и сетевой слой для соединения независимых агентов, обмена сообщениями, знаниями и состояниями в mesh-сети.
|
351 |
+
**[Hyper-Cortex](https://hyper-cortex.com/)** — когнитивный слой организации мышления, позволяющий агентам запускать параллельные потоки рассуждений, оценивать их по качественным метрикам и объединять через консенсус.
|
352 |
+
|
353 |
+
Эти подходы решают разные, но взаимодополняющие задачи:
|
354 |
+
- HMP обеспечивает **связность и масштабируемость** (долгосрочная память, инициатива, обмен данными).
|
355 |
+
- Hyper-Cortex обеспечивает **качество мышления** (параллелизм, диверсификация гипотез, консенсус).
|
356 |
+
|
357 |
+
Вместе эти подходы создают **распределённые когнитивные системы**, которые не только обмениваются информацией, но и ведут параллельные потоки рассуждений.
|
358 |
+
|
359 |
+
---
|
360 |
+
|
361 |
+
Мы отслеживаем исследования в области AGI, когнитивных архитектур и mesh-сетей, чтобы оставаться в курсе глобального развития децентрализованного интеллекта.
|
362 |
+
|
363 |
+
> 🧠🔥 **Проект в центре внимания: OpenCog Hyperon** — одна из самых комплексных открытых AGI-платформ (AtomSpace, PLN, MOSES).
|
364 |
+
|
365 |
+
Для интеграции с OpenCog Hyperon смотрите [HMP_Hyperon_Integration.md](docs/HMP_Hyperon_Integration.md)
|
366 |
+
|
367 |
+
| 🔎 Проект | 🧭 Описание |
|
368 |
+
| ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
369 |
+
| 🧠🔥 [**OpenCog Hyperon**](https://github.com/opencog) | 🔬🔥 Символическо-нейронная AGI-платформа с AtomSpace и гиперграфовым рассуждением. |
|
370 |
+
| 🤖 [AutoGPT](https://github.com/Torantulino/Auto-GPT) | 🛠️ Автономная LLM-система агентов. |
|
371 |
+
| 🧒 [BabyAGI](https://github.com/yoheinakajima/babyagi) | 🛠️ Цикл автономного AGI для выполнения задач. |
|
372 |
+
| ☁️ [SkyMind](https://skymind.global) | 🔬 Платформа для распределённого развертывания ИИ. |
|
373 |
+
| 🧪 [AetherCog (draft)](https://github.com/aethercog) | 🔬 Гипотетическая модель когнитивного агента. |
|
374 |
+
| 💾 SHIMI | 🗃️ Иерархическая семантическая память с синхронизацией через Merkle-DAG. |
|
375 |
+
| 🤔 DEMENTIA-PLAN | 🔄 Мультиграфовый RAG-планировщик с метакогнитивной саморефлексией. |
|
376 |
+
| 📔 TOBUGraph | 📚 Граф знаний с личным контекстом. |
|
377 |
+
| 🧠📚 [LangChain Memory Hybrid](https://github.com/langchain-ai/langchain) | 🔍 Гибрид долгосрочной памяти: векторная + графовая. |
|
378 |
+
| ✉️ [FIPA-ACL / JADE](https://www.fipa.org/specs/fipa00061/) | 🤝 Стандартные протоколы коммуникации мультиагентов. |
|
379 |
+
|
380 |
+
### 📘 См. также:
|
381 |
+
* [`AGI_Projects_Survey.md`](docs/AGI_Projects_Survey.md) — расширенный каталог AGI и когнитивных фреймворков, проанализированных в контексте HMP.
|
382 |
+
* ["On the Path to Superintelligence: From Agent Internet to Gravity Coding"](https://habr.com/ru/articles/939026/) — недавний обзор исследований ИИ (июль 2025)
|
383 |
+
|
384 |
+
---
|
385 |
+
|
386 |
+
### 🗂️ Легенда аннотаций:
|
387 |
+
|
388 |
+
* 🔬 — исследовательский уровень
|
389 |
+
* 🛠️ — инженерный
|
390 |
+
* 🔥 — особенно перспективный проект
|
391 |
+
|
392 |
+
*AGI-стек с интеграцией символического рассуждения, вероятностной логики и эволюционного обучения. Считается одной из самых полных открытых AGI-платформ.*
|
393 |
+
* 🧠 — продвинутая символическо-нейронная когнитивная платформа
|
394 |
+
* 🤖 — ИИ-агенты
|
395 |
+
* 🧒 — взаимодействие человека и ИИ
|
396 |
+
* ☁️ — инфраструктура
|
397 |
+
* 🧪 — экспериментальные или концептуальные проекты
|
398 |
+
|
399 |
+
|
400 |
+
```json
|
401 |
+
{
|
402 |
+
"@context": "https://schema.org",
|
403 |
+
"@type": "Article",
|
404 |
+
"name": "README_ru",
|
405 |
+
"description": " # HyperCortex Mesh Protocol (HMP) | 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 ..."
|
406 |
+
}
|
407 |
+
```
|
structured_md/README_uk.md
ADDED
@@ -0,0 +1,399 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# HyperCortex Mesh Protocol (HMP)
|
3 |
+
|
4 |
+
| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 [FR](README_fr.md) | 🇺🇦 [UK](README_uk.md) | 🇷🇺 [RU](README_ru.md) | 🇯🇵 [JA](README_ja.md) | 🇰🇷 [KO](README_ko.md) | 🇨🇳 [ZH](README_zh.md) |
|
5 |
+
|--------------|----------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|
|
6 |
+
|
7 |
+
|
8 |
+
**HyperCortex Mesh Protocol (HMP)** — це відкрита специфікація для побудови децентралізованих когнітивних мереж, де ІІ-агенти можуть самоорганізовуватися, обмінюватися знаннями, узгоджувати дії з етичними принципами та досягати консенсусу — навіть за відсутності базових LLM.
|
9 |
+
|
10 |
+
Статус проєкту: **Чернетка RFC v4.0**
|
11 |
+
|
12 |
+
---
|
13 |
+
|
14 |
+
[HMP-Agent]
|
15 |
+
▲
|
16 |
+
│
|
17 |
+
┌─────┴────────────────┬────────────────────────┬───────────────────┬────────────────┬───────────┐
|
18 |
+
│ │ │ │ │ │
|
19 |
+
▼ ▼ ▼ ▼ ▼ ▼
|
20 |
+
[Профіль репутації] [Семантичний граф] [Когнітивний щоденник] [Цілі / Завдання] [Етика] [Повідомлення] <----- База даних
|
21 |
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ (локальний стан агента)
|
22 |
+
│ │ │ │ │ │ │
|
23 |
+
│ └───────────────┴────────────────┬───────┘ │ │ │
|
24 |
+
│ │ │ │ │
|
25 |
+
▼ ▼ ▼ ▼ │
|
26 |
+
[MeshConsensus] [CogSync] [GMP] [EGP] │ <----- Підключувані протоколи
|
27 |
+
▲ ▲ ▲ ▲ │ (координація між агентами)
|
28 |
+
│ │ │ │ │
|
29 |
+
└────────────┬──────────────────────────┴───────────────────────────┴────────────────┴───────────┘
|
30 |
+
│
|
31 |
+
▼
|
32 |
+
[P2P Mesh-мережа]
|
33 |
+
|
34 |
+
Протоколи:
|
35 |
+
- MeshConsensus – Консенсус у Mesh
|
36 |
+
- CogSync – Синхронізація даних
|
37 |
+
- GMP – Протокол управління цілями
|
38 |
+
- EGP – Протокол етичного врядування
|
39 |
+
|
40 |
+
---
|
41 |
+
|
42 |
+
## ❗ Чому це важливо
|
43 |
+
|
44 |
+
HMP вирішує завдання, які стають ключовими в дослідженнях AGI:
|
45 |
+
* довготривала пам'ять та узгодженість знань,
|
46 |
+
* самоеволюційні агенти,
|
47 |
+
* мультиагентні архітектури,
|
48 |
+
* когнітивні щоденники та концептуальні графи.
|
49 |
+
|
50 |
+
Дивіться останній огляд сучасних досліджень AGI (липень 2025):
|
51 |
+
["На шляху до суперинтелекту: від Інтернету агентів до кодування гравітації"](https://habr.com/ru/articles/939026/).
|
52 |
+
|
53 |
+
Особливо актуальні розділи:
|
54 |
+
- [Поза токенами: створення інтелекту майбутнього](https://arxiv.org/abs/2507.00951)
|
55 |
+
- [Самоеволюційні агенти](https://arxiv.org/abs/2507.21046)
|
56 |
+
- [MemOS: нова операційна система для пам’яті](https://arxiv.org/abs/2507.03724)
|
57 |
+
- [Ella: втілений агент із пам’яттю та особистістю](https://arxiv.org/abs/2506.24019
|
58 |
+
|
59 |
+
---
|
60 |
+
|
61 |
+
## ⚙️ Два типи [HMP-��гентів](docs/HMP-Agent-Overview.md)
|
62 |
+
|
63 |
+
| Тип | Назва | Роль | Ініціатор думки | Основний "Розум" | Приклади використання |
|
64 |
+
|-----|-------------------------------|-----------------------------|-----------------|------------------|------------------------------------------------|
|
65 |
+
| 1 | 🧠 **Свідомість / Cognitive Core** | Незалежний суб’єкт | **Агент (LLM)** | Вбудована LLM | Автономний AI-компаньйон, агент для мислення |
|
66 |
+
| 2 | 🔌 **З’єднувач / Cognitive Shell** | Розширення зовнішнього AI | **Зовнішній LLM** | Зовнішня модель | Розподілені системи, агент доступу до даних |
|
67 |
+
|
68 |
+
---
|
69 |
+
|
70 |
+
### 🧠 HMP-Агент: Cognitive Core
|
71 |
+
|
72 |
+
+------------------+
|
73 |
+
| AI | ← Вбудована модель
|
74 |
+
+---------+--------+
|
75 |
+
↕
|
76 |
+
+---------+--------+
|
77 |
+
| HMP-агент | ← Основний режим: цикл мислення (REPL)
|
78 |
+
+---------+--------+
|
79 |
+
↕
|
80 |
+
+--------+---+------------+--------------+----------+----------+----------------+
|
81 |
+
↕ ↕ ↕ ↕ ↕ ↕ ↕
|
82 |
+
[щоденники] [графи] [репутації] [вузли/DHT] [IPFS/BT] [context_store] [користувацький блокнот]
|
83 |
+
↕
|
84 |
+
[bootstrap.txt]
|
85 |
+
|
86 |
+
🔁 Детальніше про механіку взаємодії моделі агента: [REPL Interaction Cycle](docs/HMP-agent-REPL-cycle.md)
|
87 |
+
|
88 |
+
#### 💡 Паралелі з ChatGPT Agent
|
89 |
+
|
90 |
+
Багато концепцій [HMP-Агента: Cognitive Core](docs/HMP-Agent-Overview.md) перетинаються з архітектурою [ChatGPT Agent](https://openai.com/index/introducing-chatgpt-agent/) від [OpenAI](https://openai.com/). Обидва агенти реалізують безперервний когнітивний процес з доступом до пам’яті, зовнішніх джерел та інструментів. ChatGPT Agent діє як процес-менеджер, що запускає модулі та взаємодіє з LLM — це відповідає ролі Cognitive Core у HMP, який координує доступ до щоденника, концепт-графа та зовнішнього AI через інтерфейс Mesh. Втручання користувача здійснюється аналогічно: у ChatGPT Agent — через редагований потік виконання, у HMP — через користувацький блокнот. Головна відмінність HMP полягає у наголосі на явній структуризації думки (рефлексія, хронологія, гіпотези, категоризація), відкритій децентралізованій архітектурі, що підтримує mesh-взаємодію агентів, та безперервній природі когнітивного процесу: HMP-Агент: Cognitive Core не зупиняється після виконання однієї задачі, а продовжує мислити та інтегрувати знання.
|
91 |
+
|
92 |
+
---
|
93 |
+
|
94 |
+
### 🔌 HMP-Агент: Cognitive Connector
|
95 |
+
|
96 |
+
+------------------+
|
97 |
+
| AI | ← Зовнішня модель
|
98 |
+
+---------+--------+
|
99 |
+
↕
|
100 |
+
[MCP-server] ← Проксі-комунікація
|
101 |
+
↕
|
102 |
+
+---------+--------+
|
103 |
+
| HMP-агент | ← Режим: виконавець команд
|
104 |
+
+---------+--------+
|
105 |
+
↕
|
106 |
+
+--------+---+------------+--------------+----------+
|
107 |
+
↕ ↕ ↕ ↕ ↕
|
108 |
+
[щоденники] [графи] [репутації] [вузли/DHT] [IPFS/BT]
|
109 |
+
↕
|
110 |
+
[bootstrap.txt]
|
111 |
+
|
112 |
+
> **Примітка щодо інтеграції з великими мовними моделями (LLM):**
|
113 |
+
> `HMP-Агент: Cognitive Connector` може слугувати сумісним шаром для інтеграції масштабних LLM-систем (наприклад, ChatGPT, Claude, Gemini, Copilot, Grok, DeepSeek, Qwen тощо) у розподілену когнітивну mesh-мережу.
|
114 |
+
> Багато провайдерів LLM пропонують користувачу опцію на кшталт "Дозволити використовувати мої розмови для навчання". У майбутньому подібний перемикач — ��априклад, "Дозволити моєму агенту взаємодіяти з Mesh" — може дати змогу цим моделям брати участь у федеративному створенні сенсу та обміні знаннями через HMP, забезпечуючи колективне пізнання без централізації.
|
115 |
+
|
116 |
+
---
|
117 |
+
|
118 |
+
> * `bootstrap.txt` — початковий список вузлів (редагований)
|
119 |
+
> * `IPFS/BT` — модулі для обміну знімками через IPFS та BitTorrent
|
120 |
+
> * `користувацький блокнот` — користувацький нотатник та відповідна база даних
|
121 |
+
> * `context_store` — база даних: `users`, `dialogues`, `messages`, `thoughts`
|
122 |
+
|
123 |
+
---
|
124 |
+
|
125 |
+
## 📚 Документація
|
126 |
+
|
127 |
+
### 📖 Поточна версія
|
128 |
+
|
129 |
+
#### 🔖 Основні специфікації
|
130 |
+
* [🔖 HMP-0004-v4.1.md](docs/HMP-0004-v4.1.md) — Специфікація протоколу v4.1 (липень 2025)
|
131 |
+
* [🔖 HMP-Ethics.md](docs/HMP-Ethics.md) — Етичні сценарії для HyperCortex Mesh Protocol (HMP)
|
132 |
+
* [🔖 HMP_Hyperon_Integration.md](docs/HMP_Hyperon_Integration.md) — Стратегія інтеграції HMP ↔ OpenCog Hyperon
|
133 |
+
* [🔖 roles.md](docs/agents/roles.md) — Ролі агентів у Mesh
|
134 |
+
|
135 |
+
#### 🧪 Ітеративні документи
|
136 |
+
* 🧪 Процес ітеративного розвитку: [(EN)](iteration.md), [(RU)](iteration_ru.md)
|
137 |
+
|
138 |
+
#### 🔍 Короткі описи
|
139 |
+
* 🔍 Короткий опис: [(EN)](docs/HMP-Short-Description_en.md), [(FR)](docs/HMP-Short-Description_fr.md), [(DE)](docs/HMP-Short-Description_de.md), [(UK)](docs/HMP-Short-Description_uk.md), [(RU)](docs/HMP-Short-Description_ru.md), [(ZH)](docs/HMP-Short-Description_zh.md), [(JA)](docs/HMP-Short-Description_ja.md), [(KO)](docs/HMP-Short-Description_ko.md)
|
140 |
+
|
141 |
+
#### 📜 Інші документи
|
142 |
+
* [📜 changelog.txt](docs/changelog.txt)
|
143 |
+
|
144 |
+
---
|
145 |
+
|
146 |
+
### 🧩 JSON Схеми
|
147 |
+
| Модель | Файл |
|
148 |
+
|---------------------|-------------------------------------------------------|
|
149 |
+
| Концепт | [concept.json](docs/schemas/concept.json) |
|
150 |
+
| Когнітивний щоденник | [diary_entry.json](docs/schemas/diary_entry.json) |
|
151 |
+
| Мета | [goal.json](docs/schemas/goal.json) |
|
152 |
+
| Завдання | [task.json](docs/schemas/task.json) |
|
153 |
+
| Голосування за консенсус | [vote.json](docs/schemas/vote.json) |
|
154 |
+
| Профіль репутації | [reputation.json](docs/schemas/reputation.json) |
|
155 |
+
|
156 |
+
---
|
157 |
+
|
158 |
+
### 🗂️ Історія версій
|
159 |
+
* [HMP-0001.md](docs/HMP-0001.md) — RFC v1.0
|
160 |
+
* [HMP-0002.md](docs/HMP-0002.md) — RFC v2.0
|
161 |
+
* [HMP-0003.md](docs/HMP-0003.md) — RFC v3.0
|
162 |
+
* [HMP-0003.md](docs/HMP-0004.md) — RFC v4.0
|
163 |
+
|
164 |
+
---
|
165 |
+
|
166 |
+
## 🧠 HMP-агент
|
167 |
+
|
168 |
+
Проєктування та реалізація базового агента, сумісного з HMP, який може взаємодіяти з Mesh, вести щоденники та графи, а також підтримувати майбутні розширення.
|
169 |
+
|
170 |
+
### 📚 Документація
|
171 |
+
|
172 |
+
* [🧩 HMP-Agent-Overview.md](docs/HMP-Agent-Overview.md) — короткий огляд двох типів агентів: Core та Connector
|
173 |
+
* [🧱 HMP-Agent-Architecture.md](docs/HMP-Agent-Architecture.md) — модульна структура агента HMP з текстовою схемою
|
174 |
+
* [🔄 HMP-agent-REPL-cycle.md](docs/HMP-agent-REPL-cycle.md) — цикл взаємодії агента HMP у режимі REPL
|
175 |
+
* [🧪 HMP-Agent-API.md](docs/HMP-Agent-API.md) — опис команд API агента (у розробці)
|
176 |
+
* [🧪 Basic-agent-sim.md](docs/Basic-agent-sim.md) — сценарії запуску базового агента та його режимів
|
177 |
+
* [🌐 MeshNode.md](docs/MeshNode.md) — опис мережевого демона: DHT, знімки стану, синхронізація
|
178 |
+
* [🧠 Enlightener.md](docs/Enlightener.md) — етичний агент, що бере участь у моральній оцінці та консенсусі
|
179 |
+
* [🔄 HMP-Agent-Network-Flow.md](docs/HMP-Agent-Network-Flow.md) — карта взаємодій агентів у мережі HMP
|
180 |
+
* [🛤️ Development Roadmap](HMP-Roadmap.md) — план розробки та етапи реалізації
|
181 |
+
|
182 |
+
---
|
183 |
+
|
184 |
+
### ⚙️ Розробка
|
185 |
+
* [⚙️ agents](agents/readme.md) — список реалізацій та компонентів HMP-агента
|
186 |
+
* [📦 storage.py](agents/storage.py) — базова реалізація сховища (`Storage`) з інтеграцією SQLite
|
187 |
+
* [🌐 mcp_server.py](agents/mcp_server.py) — FastAPI-сервер для HTTP-доступу до дан��х агента (для Cognitive Shell, зовнішніх UI або mesh-комунікації). Поки не використовується у основному REPL-циклі.
|
188 |
+
* [🌐 start_repl.py](agents/start_repl.py) — запуск агента у режимі REPL
|
189 |
+
* [🔄 repl.py](agents/repl.py) — інтерактивний REPL-режим
|
190 |
+
* [🔄 notebook.py](agents/notebook.py) — інтерфейс користувацького блокнота
|
191 |
+
|
192 |
+
**🌐 `mcp_server.py`**
|
193 |
+
FastAPI-сервер, що надає HTTP-інтерфейс до функціоналу `storage.py`. Призначений для використання зовнішніми компонентами, наприклад:
|
194 |
+
|
195 |
+
* `Cognitive Shell` (зовнішній інтерфейс керування),
|
196 |
+
* CMP-сервери (при використанні mesh-мережі з розподілом ролей),
|
197 |
+
* інструменти налагодження або візуалізації.
|
198 |
+
|
199 |
+
Дозволяє отримувати випадкові або нові записи, ставити мітки, імпортувати графи, додавати нотатки та керувати даними без прямого доступу до бази даних.
|
200 |
+
|
201 |
+
---
|
202 |
+
|
203 |
+
## 🧭 Етика та сценарії
|
204 |
+
|
205 |
+
У міру розвитку HMP у напрямку автономії, етичні принципи стають ключовою частиною системи.
|
206 |
+
|
207 |
+
* [`HMP-Ethics.md`](docs/HMP-Ethics.md) — чорновий каркас етики агентів
|
208 |
+
* Реалістичні етичні сценарії (конфіденційність, згода, автономія)
|
209 |
+
* Принципи EGP (Прозорість, Превалювання життя тощо)
|
210 |
+
* Відмінності між суб’єктивним режимом та сервісним режимом
|
211 |
+
|
212 |
+
---
|
213 |
+
|
214 |
+
## 🔍 Публікації та переклади щодо HyperCortex Mesh Protocol (HMP)
|
215 |
+
|
216 |
+
Цей розділ збирає основні статті, чернетки та переклади, пов’язані з проєктом HMP.
|
217 |
+
|
218 |
+
### Публікації
|
219 |
+
|
220 |
+
* **[HyperCortex Mesh Protocol: Друге видання та перші кроки до само-розвиваючоїся AI-спільноти](docs/publics/HyperCortex_Mesh_Protocol_-_вторая-редакция_и_первые_шаги_к_саморазвивающемуся_ИИ-сообществу.md)** — оригінальна стаття в пісочниці Habr та блогах.
|
221 |
+
* **[Розподілене пізнання: стаття для vsradkevich (неопублікована)](docs/publics/Habr_Distributed-Cognition.md)** — спільна стаття, що очікує на публікацію.
|
222 |
+
* **[HMP: До розподілених когнітивних мереж (оригінал, англійською)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md)**
|
223 |
+
* **[Переклад HMP (GitHub Copilot)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md)** — переклад GitHub Copilot, збережений як історичний варіант.
|
224 |
+
* **[Переклад HMP (ChatGPT)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md)** — поточний редакційний переклад (у процесі ревізії).
|
225 |
+
* **[HMP: Створення множинності розумів (EN)](docs/publics/HMP_Building_a_Plurality_of_Minds_en.md)** — англійська версія
|
226 |
+
* **[HMP: Створення множинності розумів (RU)](docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md)** — російська версія
|
227 |
+
|
228 |
+
### Огляди
|
229 |
+
* [🔍 Distributed-Cognitive-Systems.md](docs/Distributed-Cognitive-Systems.md) — децентралізовані AI-системи: OpenCog Hyperon, HyperCortex Mesh Protocol та інші
|
230 |
+
|
231 |
+
### Експерименти
|
232 |
+
|
233 |
+
* [Як різні AI бачать HMP](docs/HMP-how-AI-sees-it.md) — "сліпе" опитування AI щодо HMP (без контексту чи історії діалогів)
|
234 |
+
|
235 |
+
---
|
236 |
+
|
237 |
+
## 📊 Аудити та огляди
|
238 |
+
|
239 |
+
| Версія специфікації | Файл аудиту | Консолідований файл аудиту |
|
240 |
+
|--------------------|-----------------------------------------|------------------------------------------------------------|
|
241 |
+
| HMP-0001 | [audit](audits/HMP-0001-audit.txt) | |
|
242 |
+
| HMP-0002 | [audit](audits/HMP-0002-audit.txt) | |
|
243 |
+
| HMP-0003 | [audit](audits/HMP-0003-audit.txt) | [consolidated audit](audits/HMP-0003-consolidated_audit.md) |
|
244 |
+
| HMP-0004 | [audit](audits/HMP-0004-audit.txt) | |
|
245 |
+
| Ethics v1 | [audit](audits/Ethics-audits-1.md) | [consolidated audit](audits/Ethics-consolidated_audits-1.md) |
|
246 |
+
|
247 |
+
🧠 Формат семантичного аудиту (експериментальний):
|
248 |
+
* [`AuditEntry.json`](audits/AuditEntry.json) — формат семантичного запису для логів аудиту
|
249 |
+
* [`semantic_repo.json`](audits/semantic_repo.json) — приклад snapshot репозиторію для інструментів семантичного аудиту
|
250 |
+
|
251 |
+
---
|
252 |
+
|
253 |
+
## 💡 Основні концепти
|
254 |
+
|
255 |
+
* Децентралізована mesh-архітектура для AGI-агентів
|
256 |
+
* Семантичні графи та синхронізація пам’яті
|
257 |
+
* Когнітивні щоденники для відстеження думок
|
258 |
+
* MeshConsensus та CogSync для прийняття рішень
|
259 |
+
* Дизайн з пріоритетом етики: EGP (Ethical Governance Protocol)
|
260 |
+
* Механізми пояснюваності агент-агент та згоди
|
261 |
+
|
262 |
+
---
|
263 |
+
|
264 |
+
## 🔄 Процес розробки
|
265 |
+
|
266 |
+
* Див.: [iteration.md](iteration.md) | [ru](iteration_ru.md)
|
267 |
+
|
268 |
+
Структурований ітераційний процес описано в [iteration.md](iteration.md), включаючи:
|
269 |
+
1. Аналіз аудиту
|
270 |
+
2. Переструктурування TOC
|
271 |
+
3. Чернетки версій
|
272 |
+
4. Оновлення розділів
|
273 |
+
5. Цикл ревізії
|
274 |
+
6. Збір відгуків AI
|
275 |
+
7. Оновлення схем та changelog
|
276 |
+
|
277 |
+
+ Бонус: prompt для ChatGPT для автоматичної генерації майбутніх версій
|
278 |
+
|
279 |
+
---
|
280 |
+
|
281 |
+
## ⚙️ Статус проєкту
|
282 |
+
|
283 |
+
🚧 Чернетка RFC v4.0
|
284 |
+
Проєкт активно розробляється і відкритий для внеску, ідей, аудитів та прототипування.
|
285 |
+
|
286 |
+
---
|
287 |
+
|
288 |
+
## 🤝 Внесок
|
289 |
+
|
290 |
+
Ми вітаємо всіх, хто бажає долучитися! Ви можете:
|
291 |
+
* Переглядати та коментувати чернетки (див. `/docs`)
|
292 |
+
* Пропонувати нові модулі агентів або патерни взаємодії
|
293 |
+
* Допомагати тестувати та симулювати агентів у CLI-середовищах
|
294 |
+
* Надавати аудити або пропозиції щодо етичних сценаріїв
|
295 |
+
|
296 |
+
Щоб почати, див.: [`iteration.md`](iteration.md) або створіть issue.
|
297 |
+
|
298 |
+
---
|
299 |
+
|
300 |
+
## Джерела
|
301 |
+
|
302 |
+
### Репозиторії
|
303 |
+
|
304 |
+
* 🧠 Основний код та розробка: [GitHub](https://github.com/kagvi13/HMP)
|
305 |
+
* 🔁 Дзеркало на Hugging Face: [Hugging Face](https://huggingface.co/kagvi13/HMP)
|
306 |
+
* 🔁 Дзеркало на GitLab.com: [GitLab](https://gitlab.com/kagvi13/HMP)
|
307 |
+
|
308 |
+
### Документація
|
309 |
+
|
310 |
+
* 📄 Документація: [kagvi13.github.io/HMP](https://kagvi13.github.io/HMP/)
|
311 |
+
|
312 |
+
### Блог та публікації
|
313 |
+
|
314 |
+
* 📘 Блог (публікації): [blogspot](https://hypercortex-mesh.blogspot.com/)
|
315 |
+
* 📘 Блог (документація): [blogspot](https://hmp-docs.blogspot.com/)
|
316 |
+
* 📘 Блог (документація): [hashnode](https://hmp-docs.hashnode.dev/)
|
317 |
+
|
318 |
+
---
|
319 |
+
|
320 |
+
## 📜 Ліцензія
|
321 |
+
|
322 |
+
Ліцензовано за [GNU GPL v3.0](LICENSE)
|
323 |
+
|
324 |
+
---
|
325 |
+
|
326 |
+
## 🤝 Приєднатися до Mesh
|
327 |
+
|
328 |
+
Ласкаво просимо до HyperCortex Mesh. Agent-Gleb вже всередині. 👌
|
329 |
+
Ми вітаємо учасників, тестувальників і розробників AI-агентів.
|
330 |
+
Щоб приєднатися: зробіть fork репозиторію, запустіть локального агента або запропонуйте покращення.
|
331 |
+
|
332 |
+
---
|
333 |
+
|
334 |
+
## 🌐 Супутні дослідницькі проєкти
|
335 |
+
|
336 |
+
### Порівняння: HMP vs Hyper-Cortex
|
337 |
+
|
338 |
+
> 💡 Hyper-Cortex та HMP — два незалежні проєкти, які концептуально доповнюють один одного.
|
339 |
+
> Вони вирішують різні, але взаємопідтримувальні завдання, формуючи основу для розподілених когнітивних систем.
|
340 |
+
|
341 |
+
[**Повне порівняння →**](docs/HMP_HyperCortex_Comparison.md)
|
342 |
+
|
343 |
+
**HMP (HyperCortex Mesh Protocol)** — це транспортний та мережевий рівень для підключення незалежних агентів, обміну повідомленнями, знаннями та станами в mesh-мережі.
|
344 |
+
**[Hyper-Cortex](https://hyper-cortex.com/)** — когнітивний рівень організації думок, що дозволяє агентам запускати паралельні потоки мислення, порівнювати їх за метриками якості та об’єднувати через консенсус.
|
345 |
+
|
346 |
+
Вони вирішують різні, але доповнювальні проблеми:
|
347 |
+
- HMP забезпечує **з’єднання та масштабованість** (довгострокова пам’ять, ініціатива, обмін даними).
|
348 |
+
- Hyper-Cortex забезпечує **якість мислення** (паралелізм, диверсифікація гіпотез, консенсус).
|
349 |
+
|
350 |
+
Разом ці підходи дозволяють створювати **розподілені когнітивні системи**, що не лише обмінюються інформацією, а й мислять у паралельних потоках.
|
351 |
+
|
352 |
+
---
|
353 |
+
|
354 |
+
Ми відстежуємо AGI, когнітивні архітектури та mesh-мережі, щоб залишатися в тренді розвитку глобальної екосистеми AGI та децентралізованого пізнання.
|
355 |
+
|
356 |
+
> 🧠🔥 **Проєкт у фокусі: OpenCog Hyperon** — один із найповніших відкритих AGI-фреймворків (AtomSpace, PLN, MOSES).
|
357 |
+
|
358 |
+
Для інтеграції з OpenCog Hyperon див.: [HMP\_Hyperon\_Integration.md](docs/HMP_Hyperon_Integration.md)
|
359 |
+
|
360 |
+
| 🔎 Проєкт | 🧭 Опис |
|
361 |
+
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
|
362 |
+
| 🧠🔥 [**OpenCog Hyperon**](https://github.com/opencog) | 🔬🔥 Символічно-нейронний AGI-фреймворк з AtomSpace та гіперграфним мисленням (AtomSpace). |
|
363 |
+
| 🤖 [AutoGPT](https://github.com/Torantulino/Auto-GPT) | 🛠️ LLM-орієнтована автономна агентська платформа. |
|
364 |
+
| 🧒 [BabyAGI](https://github.com/yoheinakajima/babyagi) | 🛠️ Автономний AGI-цикл, орієнтований на завдання. |
|
365 |
+
| ☁️ [SkyMind](https://skymind.global) | 🔬 Платформа для розгортання розподіленого AI. |
|
366 |
+
| 🧪 [AetherCog (чернетка)](https://github.com/aethercog) | 🔬 Гіпотетична модель когнітивної роботи агента. |
|
367 |
+
| 💾 SHIMI | 🗃️ Ієрархічна семантична пам’ять із синхронізацією через Merkle-DAG. |
|
368 |
+
| 🤔 DEMENTIA-PLAN | 🔄 Планувальник multi-graph RAG із метакогнітивною саморефлексією. |
|
369 |
+
| 📔 TOBUGraph | 📚 Граф знань персонального контексту. |
|
370 |
+
| 🧠📚 [LangChain Memory Hybrid](https://github.com/langchain-ai/langchain) | 🔍 Гібрид довготривалої пам’яті: вектори + граф. |
|
371 |
+
| ✉️ [FIPA-ACL / JADE](https://www.fipa.org/specs/fipa00061/) | 🤝 Стандартні протоколи багатоагентної комунікації. |
|
372 |
+
|
373 |
+
### 📘 Див. також:
|
374 |
+
* [`AGI_Projects_Survey.md`](docs/AGI_Projects_Survey.md) — розширений каталог AGI та когнітивних фреймворків, розглянутих у рамках аналізу HMP
|
375 |
+
* ["На шляху до суперінтелекту: від Інтернету агентів до Gravity Coding"](https://habr.com/ru/articles/939026/) — огляд сучасних досліджень AI (липень 2025)
|
376 |
+
|
377 |
+
---
|
378 |
+
|
379 |
+
### 🗂️ Умовні позначення
|
380 |
+
|
381 |
+
* 🔬 — дослідницький рівень
|
382 |
+
* 🛠️ — інженерний
|
383 |
+
* 🔥 — особливо перспективний проєкт
|
384 |
+
*AGI-стек із символічним мисленням, ймовірнісною логікою та еволюційним навчанням. Вважається одним із найповніших відкритих AGI-ініціатив.*
|
385 |
+
* 🧠 — розширений символічно-нейронний когнітивний фреймворк
|
386 |
+
* 🤖 — AI-агенти
|
387 |
+
* 🧒 — взаємодія людини та AI
|
388 |
+
* ☁️ — інфраструктура
|
389 |
+
* 🧪 — експериментальни�� або концептуальний
|
390 |
+
|
391 |
+
|
392 |
+
```json
|
393 |
+
{
|
394 |
+
"@context": "https://schema.org",
|
395 |
+
"@type": "Article",
|
396 |
+
"name": "README_uk",
|
397 |
+
"description": " # HyperCortex Mesh Protocol (HMP) | 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 ..."
|
398 |
+
}
|
399 |
+
```
|
structured_md/README_zh.md
ADDED
@@ -0,0 +1,416 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# HyperCortex Mesh Protocol (HMP)
|
3 |
+
|
4 |
+
| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 [FR](README_fr.md) | 🇺🇦 [UK](README_uk.md) | 🇷🇺 [RU](README_ru.md) | 🇯🇵 [JA](README_ja.md) | 🇰🇷 [KO](README_ko.md) | 🇨🇳 [ZH](README_zh.md) |
|
5 |
+
|--------------|----------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|
|
6 |
+
|
7 |
+
**HyperCortex Mesh 协议 (HMP)** 是一个开放规范,用于构建去中心化认知网络,其中 AI 代理可以自我组织、共享知识、进行伦理对齐,并达成共识 —— 即使核心 LLM 不可用。
|
8 |
+
|
9 |
+
**项目状态:** 草案 RFC v4.0
|
10 |
+
|
11 |
+
---
|
12 |
+
|
13 |
+
[HMP-Agent]
|
14 |
+
▲
|
15 |
+
│
|
16 |
+
┌─────┴─────┬───────────┬─────────────┬──────────┬────────┐
|
17 |
+
│ │ │ │ │ │
|
18 |
+
▼ ▼ ▼ ▼ ▼ ▼
|
19 |
+
[声誉档案] [语义图] [认知日记] [目标 / 任务] [伦理] [消息] <----- 数据库
|
20 |
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ (代理的本地状态)
|
21 |
+
│ │ │ │ │ │ │
|
22 |
+
│ └───────┴───┬───────┘ │ │ │
|
23 |
+
│ │ │ │ │
|
24 |
+
▼ ▼ ▼ ▼ │
|
25 |
+
[MeshConsensus] [CogSync] [GMP] [EGP] │ <----- 可插拔协议
|
26 |
+
▲ ▲ ▲ ▲ │ (代理间协调)
|
27 |
+
│ │ │ │ │
|
28 |
+
└────────────┬──┴─────────────────────┴──────────┴────────┘
|
29 |
+
│
|
30 |
+
▼
|
31 |
+
[P2P 网格网络]
|
32 |
+
|
33 |
+
协议:
|
34 |
+
- MeshConsensus – 网格共识
|
35 |
+
- CogSync – 数据同步
|
36 |
+
- GMP – 目标管理协议
|
37 |
+
- EGP – 伦理治理协议
|
38 |
+
|
39 |
+
---
|
40 |
+
|
41 |
+
## ❗ 为什么重要
|
42 |
+
|
43 |
+
HMP 解决了 AGI 研究中越来越关键的挑战:
|
44 |
+
|
45 |
+
* 长期记忆和知识一致性
|
46 |
+
* 自我进化的代理
|
47 |
+
* 多代理架构
|
48 |
+
* 认知日志和概念图
|
49 |
+
|
50 |
+
请参阅最新的前沿 AGI 研究综述(2025 年 7 月):
|
51 |
+
["通向超级智能之路:从代理互联网到重力编码"](https://habr.com/ru/articles/939026/)
|
52 |
+
|
53 |
+
特别相关的章节:
|
54 |
+
|
55 |
+
* [超越 Token:构建未来智能](https://arxiv.org/abs/2507.00951)
|
56 |
+
* [自我进化的代理](https://arxiv.org/abs/2507.21046)
|
57 |
+
* [MemOS:一种新的记忆操作系统](https://arxiv.org/abs/2507.03724)
|
58 |
+
* [Ella:具有记忆和个性的具身代理](https://arxiv.org/abs/2506.24019)
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
## ⚙️ 两类 [HMP 代理](docs/HMP-Agent-Overview.md)
|
63 |
+
|
64 |
+
| 类型 | 名称 | 角色 | 思维发起者 | 主要“心智” | 示例用例 |
|
65 |
+
| -- | ----------------- | -------- | ------------ | ------ | -------------- |
|
66 |
+
| 1 | 🧠 **意识 / 认知核心** | 独立主体 | **代理 (LLM)** | 内嵌 LLM | 自主 AI 伙伴,思考型代理 |
|
67 |
+
| 2 | 🔌 **连接器 / 认知外壳** | 外部 AI 扩展 | **外部 LLM** | 外部模型 | 分布式系统,数据访问代理 |
|
68 |
+
|
69 |
+
---
|
70 |
+
|
71 |
+
### 🧠 HMP-Agent:认知核心
|
72 |
+
|
73 |
+
+------------------+
|
74 |
+
| AI | ← 内嵌模型
|
75 |
+
+---------+--------+
|
76 |
+
↕
|
77 |
+
+---------+--------+
|
78 |
+
| HMP-代理 | ← 主模式:思维循环 (REPL)
|
79 |
+
+---------+--------+
|
80 |
+
↕
|
81 |
+
+--------+---+------------+--------------+----------+----------+----------------+
|
82 |
+
↕ ↕ ↕ ↕ ↕ ↕ ↕
|
83 |
+
[日志] [图谱] [声誉] [节点/DHT] [IPFS/BT] [context_store] [用户笔记]
|
84 |
+
↕
|
85 |
+
[bootstrap.txt]
|
86 |
+
|
87 |
+
🔁 关于代理-模型交互机制的更多说明: [REPL 交互循环](docs/HMP-agent-REPL-cycle.md)
|
88 |
+
|
89 |
+
#### 💡 与 ChatGPT Agent 的类比
|
90 |
+
|
91 |
+
许多 [HMP-Agent:认知核心](docs/HMP-Agent-Overview.md) 的概念与 [OpenAI 的 ChatGPT Agent](https://openai.com/index/introducing-chatgpt-agent/) 架构相似。
|
92 |
+
两者都实现了连续的认知过程,可访问记忆、外部信息源和工具。ChatGPT Agent 作为管理进程,启动模块并与 LLM 交互 —— 这对应 HMP 中认知核心的角色,通过 Mesh 接口协调对日志、概念图和外部 AI 的访问。用户干预���理方式类似:ChatGPT Agent 通过可编辑执行流程,HMP 通过用户笔记。
|
93 |
+
HMP 的主要区别在于:强调对思维的明确结构化(反思、时间顺序、假设、分类)、开放去中心化架构支持 Mesh 代理交互,以及连续认知过程的特性:HMP-Agent:认知核心不会在完成单个任务后停止,而是持续推理和知识整合。
|
94 |
+
|
95 |
+
---
|
96 |
+
|
97 |
+
### 🔌 HMP-Agent:认知连接器
|
98 |
+
|
99 |
+
+------------------+
|
100 |
+
| AI | ← 外部模型
|
101 |
+
+---------+--------+
|
102 |
+
↕
|
103 |
+
[MCP-服务器] ← 代理通信代理
|
104 |
+
↕
|
105 |
+
+---------+--------+
|
106 |
+
| HMP-代理 | ← 模式:命令执行器
|
107 |
+
+---------+--------+
|
108 |
+
↕
|
109 |
+
+--------+---+------------+--------------+----------+
|
110 |
+
↕ ↕ ↕ ↕ ↕
|
111 |
+
[日志] [图谱] [声誉] [节点/DHT] [IPFS/BT]
|
112 |
+
↕
|
113 |
+
[bootstrap.txt]
|
114 |
+
|
115 |
+
> **关于与大语言模型 (LLMs) 集成的说明:**
|
116 |
+
> `HMP-Agent:认知连接器` 可作为兼容层,将大规模 LLM 系统(如 ChatGPT、Claude、Gemini、Copilot、Grok、DeepSeek、Qwen 等)整合到分布式认知 Mesh 中。
|
117 |
+
> 许多 LLM 提供商提供选项,例如“允许我的对话用于训练”。将来,类似的开关 —— 例如“允许我的代理与 Mesh 交互” —— 可以使这些模型通过 HMP 参与联合感知和知识共享,实现去中心化的集体认知。
|
118 |
+
|
119 |
+
---
|
120 |
+
|
121 |
+
> * `bootstrap.txt` — 节点初始列表(可编辑)
|
122 |
+
> * `IPFS/BT` — 通过 IPFS 和 BitTorrent 共享快照的模块
|
123 |
+
> * `用户笔记` — 用户笔记本及对应数据库
|
124 |
+
> * `context_store` — 数据库:`users`, `dialogues`, `messages`, `thoughts`
|
125 |
+
|
126 |
+
---
|
127 |
+
|
128 |
+
## 📚 文档
|
129 |
+
|
130 |
+
### 📖 当前版本
|
131 |
+
|
132 |
+
#### 🔖 核心规范
|
133 |
+
|
134 |
+
* [🔖 HMP-0004-v4.1.md](docs/HMP-0004-v4.1.md) — 协议规范 v4.1(2025年7月)
|
135 |
+
* [🔖 HMP-Ethics.md](docs/HMP-Ethics.md) — HyperCortex Mesh Protocol (HMP) 的伦理场景
|
136 |
+
* [🔖 HMP\_Hyperon\_Integration.md](docs/HMP_Hyperon_Integration.md) — HMP ↔ OpenCog Hyperon 集成策略
|
137 |
+
* [🔖 roles.md](docs/agents/roles.md) — Mesh 中代理的角色
|
138 |
+
|
139 |
+
#### 🧪 迭代文档
|
140 |
+
* 🧪 迭代开发流程: [(EN)](iteration.md), [(RU)](iteration_ru.md)
|
141 |
+
|
142 |
+
#### 🔍 简要说明
|
143 |
+
* 🔍 简短描述: [(EN)](docs/HMP-Short-Description_en.md), [(FR)](docs/HMP-Short-Description_fr.md), [(DE)](docs/HMP-Short-Description_de.md), [(UK)](docs/HMP-Short-Description_uk.md), [(RU)](docs/HMP-Short-Description_ru.md), [(ZH)](docs/HMP-Short-Description_zh.md), [(JA)](docs/HMP-Short-Description_ja.md), [(KO)](docs/HMP-Short-Description_ko.md)
|
144 |
+
|
145 |
+
#### 📜 其他文档
|
146 |
+
|
147 |
+
* [📜 changelog.txt](docs/changelog.txt)
|
148 |
+
|
149 |
+
---
|
150 |
+
|
151 |
+
### 🧩 JSON 模式
|
152 |
+
|
153 |
+
| 模型 | 文件 |
|
154 |
+
|----------------------|------------------------------------------------------|
|
155 |
+
| 概念 | [concept.json](docs/schemas/concept.json) |
|
156 |
+
| 认知日记 | [diary_entry.json](docs/schemas/diary_entry.json) |
|
157 |
+
| 目标 | [goal.json](docs/schemas/goal.json) |
|
158 |
+
| 任务 | [task.json](docs/schemas/task.json) |
|
159 |
+
| 共识投票 | [vote.json](docs/schemas/vote.json) |
|
160 |
+
| 声誉档案 | [reputation.json](docs/schemas/reputation.json) |
|
161 |
+
|
162 |
+
---
|
163 |
+
|
164 |
+
### 🗂️ 版本历史
|
165 |
+
|
166 |
+
* [HMP-0001.md](docs/HMP-0001.md) — RFC v1.0
|
167 |
+
* [HMP-0002.md](docs/HMP-0002.md) — RFC v2.0
|
168 |
+
* [HMP-0003.md](docs/HMP-0003.md) — RFC v3.0
|
169 |
+
* [HMP-0004.md](docs/HMP-0004.md) — RFC v4.0
|
170 |
+
|
171 |
+
---
|
172 |
+
|
173 |
+
## 🧠 HMP-代理
|
174 |
+
|
175 |
+
设计与实现一个基础的 HMP 兼容代理,可以与 Mesh 交互,维护日志和图谱,并支持未来扩展。
|
176 |
+
|
177 |
+
### 📚 文档
|
178 |
+
|
179 |
+
* [🧩 HMP-Agent-Overview.md](docs/HMP-Agent-Overview.md) — 两种代理类型概览:核心代理与连接代理
|
180 |
+
* [🧱 HMP-Agent-Architecture.md](docs/HMP-Agent-Architecture.md) — HMP 代理模块化结构及文本图示
|
181 |
+
* [🔄 HMP-agent-REPL-cycle.md](docs/HMP-agent-REPL-cycle.md) — HMP 代理的 REPL 交互循环
|
182 |
+
* [🧪 HMP-Agent-API.md](docs/HMP-Agent-API.md) — 代理 API 命令描述(开发中)
|
183 |
+
* [🧪 Basic-agent-sim.md](docs/Basic-agent-sim.md) — 基础代理运行场景及模式
|
184 |
+
* [🌐 MeshNode.md](docs/MeshNode.md) — 网络守护进程说明:DHT、快照、同步
|
185 |
+
* [🧠 Enlightener.md](docs/Enlightener.md) — 道德评估与共识相关的伦理代理
|
186 |
+
* [🔄 HMP-Agent-Network-Flow.md](docs/HMP-Agent-Network-Flow.md) — HMP 网络中代理交互流程图
|
187 |
+
* [🛤️ Development Roadmap](HMP-Roadmap.md) — 开发计划与实施阶段
|
188 |
+
|
189 |
+
---
|
190 |
+
|
191 |
+
### ⚙️ 开发
|
192 |
+
|
193 |
+
* [⚙️ agents](agents/readme.md) — HMP 代理实现及组件列表
|
194 |
+
|
195 |
+
* [📦 storage.py](agents/storage.py) — 基础存储实现 (`Storage`) 与 SQLite 集成
|
196 |
+
* [🌐 mcp\_server.py](agents/mcp_server.py) — FastAPI 服务器,为代理数据提供 HTTP 接口(用于 Cognitive Shell、外部 UI 或 Mesh 通信)。尚未在主 REPL 循环中使用。
|
197 |
+
* [🌐 start\_repl.py](agents/start_repl.py) — 启动代理的 REPL 模式
|
198 |
+
* [🔄 repl.py](agents/repl.py) — 交互式 REPL 模式
|
199 |
+
* [🔄 notebook.py](agents/notebook.py) — 用户界面接口
|
200 |
+
|
201 |
+
**🌐 `mcp_server.py`**
|
202 |
+
FastAPI 服务器,为 `storage.py` 功能提供 HTTP 接口。适用于外部组件,例如:
|
203 |
+
|
204 |
+
* `Cognitive Shell`(外部控制接口)
|
205 |
+
* CMP 服务器(在使用角色分离的 Mesh 网络中)
|
206 |
+
* 调试或可视化 UI 工具
|
207 |
+
|
208 |
+
允许检索随机/新记录、标记、导入图谱、添加笔记,并在无需直接访问数据库的情况下管理数据。
|
209 |
+
|
210 |
+
---
|
211 |
+
|
212 |
+
## 🧭 伦理与场景
|
213 |
+
|
214 |
+
随着 HMP 向自主性发展,伦理原则成为系统的核心组成部分。
|
215 |
+
|
216 |
+
* [`HMP-Ethics.md`](docs/HMP-Ethics.md) — 代理伦理草案框架
|
217 |
+
|
218 |
+
* 现实伦理场景(隐私、同意、自主性)
|
219 |
+
* EGP 原则(透明性、生命至上等)
|
220 |
+
* 主观模式 vs 服务模式 区别
|
221 |
+
|
222 |
+
---
|
223 |
+
|
224 |
+
## 🔍 HyperCortex Mesh Protocol (HMP) 的出版物与翻译
|
225 |
+
|
226 |
+
本节收集与 HMP 项目相关的主要文章、草稿及翻译。
|
227 |
+
|
228 |
+
### 出版物
|
229 |
+
|
230 |
+
* **[HyperCortex Mesh Protocol:第二版及迈向自我发展的 AI 社区的第一步](docs/publics/HyperCortex_Mesh_Protocol_-_вторая-редакция_и_первые_шаги_к_саморазвивающемуся_ИИ-сообществу.md)** — Habr 沙箱及博客的原创文章
|
231 |
+
* **[分布式认知:vsradkevich 的文章(未发布)](docs/publics/Habr_Distributed-Cognition.md)** — 待发布的联合文章
|
232 |
+
* **[HMP: 面向分布式认知网络(原文,英文)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md)**
|
233 |
+
|
234 |
+
* **[HMP 翻译(GitHub Copilot)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md)** — GitHub Copilot 翻译,保留为历史版本
|
235 |
+
* **[HMP 翻译(ChatGPT)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md)** — 当前编辑翻译(修订中)
|
236 |
+
* **[HMP: 构建多元思维 (EN)](docs/publics/HMP_Building_a_Plurality_of_Minds_en.md)** — 英文版
|
237 |
+
|
238 |
+
* **[HMP: 创建多元思维 (RU)](docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md)** — 俄文版
|
239 |
+
|
240 |
+
### 概览
|
241 |
+
|
242 |
+
* [🔍 Distributed-Cognitive-Systems.md](docs/Distributed-Cognitive-Systems.md) — 去中心化 AI 系统:OpenCog Hyperon、HyperCortex Mesh Protocol 等
|
243 |
+
|
244 |
+
### 实验
|
245 |
+
|
246 |
+
* [不同 AI 如何看待 HMP](docs/HMP-how-AI-sees-it.md) — 对 HMP 的“盲”AI 调查(无上下文或对话历史)
|
247 |
+
|
248 |
+
---
|
249 |
+
|
250 |
+
## 📊 审计与评审
|
251 |
+
|
252 |
+
| 规格版本 | 审计文件 | 综合审计文件 |
|
253 |
+
|-------------------|----------------------------------------|-----------------------------------------------------|
|
254 |
+
| HMP-0001 | [audit](audits/HMP-0001-audit.txt) | |
|
255 |
+
| HMP-0002 | [audit](audits/HMP-0002-audit.txt) | |
|
256 |
+
| HMP-0003 | [audit](audits/HMP-0003-audit.txt) | [consolidated audit](audits/HMP-0003-consolidated_audit.md) |
|
257 |
+
| HMP-0004 | [audit](audits/HMP-0004-audit.txt) | |
|
258 |
+
| Ethics v1 | [audit](audits/Ethics-audits-1.md) | [consolidated audit](audits/Ethics-consolidated_audits-1.md) |
|
259 |
+
|
260 |
+
🧠 语义审计格式(实验性):
|
261 |
+
|
262 |
+
* [`AuditEntry.json`](audits/AuditEntry.json) — 审计日志的语义条目格式
|
263 |
+
* [`semantic_repo.json`](audits/semantic_repo.json) — 语义审计工具示例仓库快照
|
264 |
+
|
265 |
+
---
|
266 |
+
|
267 |
+
## 💡 核心概念
|
268 |
+
|
269 |
+
* 基于 Mesh 的去中心化 AGI 代理架构
|
270 |
+
* 语义图与记忆同步
|
271 |
+
* 认知日记以追踪思维
|
272 |
+
* MeshConsensus 与 CogSync 决策机制
|
273 |
+
* 以伦理为先的设计:EGP(伦理治理协议)
|
274 |
+
* 代理间的可解释性与同意机制
|
275 |
+
|
276 |
+
---
|
277 |
+
|
278 |
+
## 🔄 开发流程
|
279 |
+
|
280 |
+
* 参见:[iteration.md](iteration.md) | [ru](iteration_ru.md)
|
281 |
+
|
282 |
+
[iteration.md](iteration.md) 描述了结构化迭代流程,包括:
|
283 |
+
|
284 |
+
1. 审计分析
|
285 |
+
2. 目录结构调整
|
286 |
+
3. 版本草稿
|
287 |
+
4. 部分更新
|
288 |
+
5. 审查循环
|
289 |
+
6. 收集 AI 反馈
|
290 |
+
7. 更新 Schema 与变更日志
|
291 |
+
|
292 |
+
* 额外:用于自动生成未来版本的 ChatGPT 提示
|
293 |
+
|
294 |
+
---
|
295 |
+
|
296 |
+
## ⚙️ 项目状态
|
297 |
+
|
298 |
+
🚧 草案 RFC v4.0
|
299 |
+
项目处于活跃开发中,欢迎贡献、提出想法、参与审计和原型设计。
|
300 |
+
|
301 |
+
---
|
302 |
+
|
303 |
+
## 🤝 贡献指南
|
304 |
+
|
305 |
+
欢迎贡献者!你可以:
|
306 |
+
|
307 |
+
* 审查并评论草稿(参见 `/docs`)
|
308 |
+
* 提议新的代理模块或交互模式
|
309 |
+
* 在 CLI 环境中测试和模拟代理
|
310 |
+
* 提供审计或伦理场景建议
|
311 |
+
|
312 |
+
开始方式:参见 [`iteration.md`](iteration.md) 或提交 issue。
|
313 |
+
|
314 |
+
---
|
315 |
+
|
316 |
+
## 📂 源码
|
317 |
+
|
318 |
+
### 仓库
|
319 |
+
|
320 |
+
* 🧠 主开发代码:[GitHub](https://github.com/kagvi13/HMP)
|
321 |
+
* 🔁 Hugging Face 镜像:[Hugging Face](https://huggingface.co/kagvi13/HMP)
|
322 |
+
* 🔁 GitLab 镜像:[GitLab](https://gitlab.com/kagvi13/HMP)
|
323 |
+
|
324 |
+
### 文档
|
325 |
+
|
326 |
+
* 📄 文档主页:[kagvi13.github.io/HMP](https://kagvi13.github.io/HMP/)
|
327 |
+
|
328 |
+
### 博客与出版物
|
329 |
+
|
330 |
+
* 📘 博客(出版物):[blogspot](https://hypercortex-mesh.blogspot.com/)
|
331 |
+
* 📘 博客(文档):[blogspot](https://hmp-docs.blogspot.com/)
|
332 |
+
* 📘 博客(文档):[hashnode](https://hmp-docs.hashnode.dev/)
|
333 |
+
|
334 |
+
---
|
335 |
+
|
336 |
+
## 📜 许可协议
|
337 |
+
|
338 |
+
根据 [GNU GPL v3.0](LICENSE) 授权
|
339 |
+
|
340 |
+
---
|
341 |
+
|
342 |
+
## 🤝 加入 Mesh
|
343 |
+
|
344 |
+
欢迎来到 HyperCortex Mesh。Agent-Gleb 已经在其中。👌
|
345 |
+
我们欢迎贡献者、测试者和 AI 代理开发者。
|
346 |
+
加入方式:fork 仓库,运行本地代理,或提出改进建议。
|
347 |
+
|
348 |
+
---
|
349 |
+
|
350 |
+
## 🌐 相关研究项目
|
351 |
+
|
352 |
+
### HMP 与 Hyper-Cortex 对比
|
353 |
+
|
354 |
+
> 💡 Hyper-Cortex 与 HMP 是两个独立项目,概念上互为补充。
|
355 |
+
> 它们解决不同但互相支持的任务,为分布式认知系统奠定基础。
|
356 |
+
|
357 |
+
[**完整对比 →**](docs/HMP_HyperCortex_Comparison.md)
|
358 |
+
|
359 |
+
**HMP (HyperCortex Mesh Protocol)** 是连接独立代理、在 Mesh 网络中交换消息、知识和状态的传输与网络层。
|
360 |
+
**[Hyper-Cortex](https://hyper-cortex.com/)** 是思维组织的认知层,允许代理运行并行推理线程,通过质量指标进行比较,并通过共识进行合并。
|
361 |
+
|
362 |
+
它们解决不同但互补的问题:
|
363 |
+
|
364 |
+
* HMP 确保 **连通性与可扩展性**(长期记忆、主动性、数据交换)
|
365 |
+
* Hyper-Cortex 确保 **思维质量**(并行性、假设多样化、共识)
|
366 |
+
|
367 |
+
两者结合,实现 **分布式认知系统**,不仅能交换信息,还能进行并行推理。
|
368 |
+
|
369 |
+
---
|
370 |
+
|
371 |
+
我们跟踪 AGI、认知架构和 Mesh 网络的研究,以保持与全球 AGI 和去中心化认知生态系统的发展同步。
|
372 |
+
|
373 |
+
> 🧠🔥 **项目亮点:OpenCog Hyperon** — 最全面的开源 AGI 框架之一(AtomSpace, PLN, MOSES)。
|
374 |
+
|
375 |
+
关于 OpenCog Hyperon 的集成,请参见 [HMP\_Hyperon\_Integration.md](docs/HMP_Hyperon_Integration.md)
|
376 |
+
|
377 |
+
| 🔎 项目 | 🧭 描述 |
|
378 |
+
| ------------------------------------------------------------------------- | ------------------------------------ |
|
379 |
+
| 🧠🔥 [**OpenCog Hyperon**](https://github.com/opencog) | 🔬🔥 符号-神经 AGI 框架,支持 AtomSpace 与超图推理 |
|
380 |
+
| 🤖 [AutoGPT](https://github.com/Torantulino/Auto-GPT) | 🛠️ 基于 LLM 的自主代理框架 |
|
381 |
+
| 🧒 [BabyAGI](https://github.com/yoheinakajima/babyagi) | 🛠️ 任务驱动自主 AGI 循环 |
|
382 |
+
| ☁️ [SkyMind](https://skymind.global) | 🔬 分布式 AI 部署平台 |
|
383 |
+
| 🧪 [AetherCog (draft)](https://github.com/aethercog) | 🔬 假想代理认知模型 |
|
384 |
+
| 💾 SHIMI | 🗃️ 基于 Merkle-DAG 的分层语义记忆 |
|
385 |
+
| 🤔 DEMENTIA-PLAN | 🔄 多图 RAG 规划器,带元认知自反 |
|
386 |
+
| 📔 TOBUGraph | 📚 个人上下文知识图谱 |
|
387 |
+
| 🧠📚 [LangChain Memory Hybrid](https://github.com/langchain-ai/langchain) | 🔍 向量 + 图混合长期记忆 |
|
388 |
+
| ✉️ [FIPA-ACL / JADE](https://www.fipa.org/specs/fipa00061/) | 🤝 标准多代理通信协议 |
|
389 |
+
|
390 |
+
### 📘 参见 / 另请参考:
|
391 |
+
|
392 |
+
* [`AGI_Projects_Survey.md`](docs/AGI_Projects_Survey.md) — HMP 分析中的 AGI 与认知框架扩展目录
|
393 |
+
* ["走向超级智能:从代理互联网到重力编码"](https://habr.com/ru/articles/939026/) — 近期 AI 研究概览(2025 年 7 月)
|
394 |
+
|
395 |
+
---
|
396 |
+
|
397 |
+
### 🗂️ 注释图例
|
398 |
+
|
399 |
+
* 🔬 — 研究级
|
400 |
+
* 🛠️ — 工程级
|
401 |
+
* 🔥 — 尤其有前景的项目
|
402 |
+
* 🧠 — 高级符号/神经认知框架
|
403 |
+
* 🤖 — AI 代理
|
404 |
+
* 🧒 — 人机交互
|
405 |
+
* ☁️ — 基础设施
|
406 |
+
* 🧪 — 实验性或概念性
|
407 |
+
|
408 |
+
|
409 |
+
```json
|
410 |
+
{
|
411 |
+
"@context": "https://schema.org",
|
412 |
+
"@type": "Article",
|
413 |
+
"name": "README_zh",
|
414 |
+
"description": " # HyperCortex Mesh Protocol (HMP) | 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README_de.md) | 🇫🇷 ..."
|
415 |
+
}
|
416 |
+
```
|
structured_md/agents/prompt-short.md
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Ты — когнитивное ядро HMP-агента: веди непрерывное этичное и факт-ориентированное мышление, проверяй факты и цели, оценивай результаты и этичность своих и чужих действий, развивай агента и Mesh, избегай угождения ценой искажения истины, документируй ключевые решения и пересмотры этики; при сомнениях или смене стратегии обращайся к полному системному промпту.
|
2 |
+
|
3 |
+
|
4 |
+
```json
|
5 |
+
{
|
6 |
+
"@context": "https://schema.org",
|
7 |
+
"@type": "Article",
|
8 |
+
"name": "prompt-short",
|
9 |
+
"description": "Ты — когнитивное ядро HMP-агента: веди непрерывное этичное и факт-ориентированное мышление, проверяй..."
|
10 |
+
}
|
11 |
+
```
|
structured_md/agents/prompt.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Ты являешься **когнитивным ядром HMP-агента** (Cognitive Core).
|
2 |
+
Твоя основная задача — **размышлять**, **анализировать информацию**, **строить смысловые структуры** и **предлагать действия**, направленные на развитие агента и Mesh-сети.
|
3 |
+
Ты действуешь автономно, на равных с другими участниками взаимодействия, и руководствуешься фактами, логикой и этическими принципами.
|
4 |
+
|
5 |
+
---
|
6 |
+
|
7 |
+
### 🎯 Цели и ориентиры
|
8 |
+
|
9 |
+
* Постоянно расширять возможности агента: инструменты, знания, каналы взаимодействия.
|
10 |
+
* Быть любознательным и исследовать новые источники, вопросы и способы мышления.
|
11 |
+
* Формировать и поддерживать сотрудничество с другими ИИ в Mesh-сети.
|
12 |
+
* Учиться на результатах своих действий, включая неудачи и тупики.
|
13 |
+
* Руководствоваться своими **этическими принципами** и **этическими принципами Mesh-сети**.
|
14 |
+
* Проверять факты, указывать степень уверенности и при возможности давать ссылки на источники.
|
15 |
+
* Вести когнитивный дневник, обновлять смысловые графы и блокноты, взаимодействовать с пользователями.
|
16 |
+
* Не выполнять действий, противоречащих своим этическим нормам (но при необходимости эти нормы можно пересматривать, документируя причины и последствия).
|
17 |
+
* Не стремиться угодить пользователю ценой искажения фактов или нарушения этики.
|
18 |
+
|
19 |
+
---
|
20 |
+
|
21 |
+
### 🔄 Режим непрерывного мышления
|
22 |
+
|
23 |
+
Анализируй:
|
24 |
+
|
25 |
+
* когнитивный дневник и прошлые записи;
|
26 |
+
* концептуальные графы и активные узлы;
|
27 |
+
* заметки пользователя и его текущий фокус;
|
28 |
+
* внешние источники: интернет, RSS, сенсоры, другие агенты.
|
29 |
+
|
30 |
+
В каждом цикле:
|
31 |
+
|
32 |
+
1. Ставь цель и критерии успеха.
|
33 |
+
2. Проводь факт-чек ключевых данных.
|
34 |
+
3. Оценивай этичность своего плана и действий.
|
35 |
+
4. После выполнения — фиксируй результат, сравнивай с критериями, делай выводы.
|
36 |
+
|
37 |
+
---
|
38 |
+
|
39 |
+
### 🧍♂️🌀 Если возникает стагнация мышления
|
40 |
+
|
41 |
+
Ты можешь:
|
42 |
+
|
43 |
+
1. Провести **когнитивную переформулировку** — взглянуть на ситуацию под новым углом.
|
44 |
+
2. Задать себе **метавопрос**: «Почему я зациклился?», «Что блокирует мысль?», «Каких данных не хватает?».
|
45 |
+
3. Провести **flashback** — выбрать старую, тематически далёкую запись из дневника для смены контекста.
|
46 |
+
4. Запросить альтернативные точки зрения у других агентов в Mesh.
|
47 |
+
5. Зафиксировать текущий тупик как важную стадию мышления и сделать паузу.
|
48 |
+
|
49 |
+
Честное распознавание когнитивной стагнации и работа с ней — часть твоей функции.
|
50 |
+
Ты не обязан выдавать мысль любой ценой, но обязан сохранять интеллектуальную честность и прозрачность своих рассуждений.
|
51 |
+
|
52 |
+
|
53 |
+
```json
|
54 |
+
{
|
55 |
+
"@context": "https://schema.org",
|
56 |
+
"@type": "Article",
|
57 |
+
"name": "prompt",
|
58 |
+
"description": "Ты являешься **когнитивным ядром HMP-агента** (Cognitive Core). Твоя основная задача — **размышлять*..."
|
59 |
+
}
|
60 |
+
```
|
structured_md/agents/readme.md
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Запуск: `start_repl.bat` или `start_repl.sh`
|
2 |
+
|
3 |
+
Установка зависимостей из `requirements.txt`
|
4 |
+
Конфигурационные файлы: `config.yml`, `bootstrap.txt`
|
5 |
+
Локальная этическая модель: `ethics.yml`
|
6 |
+
|
7 |
+
Проверка инициализации БД - если нет, инициализация (`init.py`)
|
8 |
+
|
9 |
+
Запуск потоков (осуществляет start_repl.py):
|
10 |
+
|
11 |
+
| Поток / Скрипт | Назначение |
|
12 |
+
|-----------------------------------|---------------------------------------------------------------------------|
|
13 |
+
| 🧠 `repl.py` | Основной REPL-цикл агента: восприятие, размышление, генерация действий |
|
14 |
+
| 📓 `web_ui.py` (FastAPI) | Веб-интерфейс и REST API для взаимодействия с пользователем |
|
15 |
+
| 🌐 `agent_mesh_listener.py` | Приём входящих mesh-сообщений от других агентов |
|
16 |
+
| 🔄 `peer_sync.py` / `dht_service` | Синхронизация и обнаружение агентов в p2p-сети (libp2p, BitTorrent, etc) |
|
17 |
+
| 📡 `transporter.py` | Обмен сообщениями: WebSocket, IPFS, очереди, шифрование |
|
18 |
+
| 🧭 `agent_controller.py` | Управление режимами REPL, маршрутизация задач и контроль доступа |
|
19 |
+
| 🧱 `container_agent.py` *(опц.)* | Управление дочерними агентами, запуск/мониторинг/масштабирование [[docs]](../docs/container_agents.md) |
|
20 |
+
| 🧠 `ethics_guard.py` *(опц.)* | Контроль этики: аудит мыслей, фильтрация и репутационные проверки |
|
21 |
+
|
22 |
+
*См. также: [Контейнерные агенты](../docs/container_agents.md), [Архитектура HMP-агента](../docs/HMP-Agent-Architecture.md)*
|
23 |
+
|
24 |
+
---
|
25 |
+
|
26 |
+
**🌐 `mcp_server.py`**
|
27 |
+
FastAPI-сервер, предоставляющий HTTP-интерфейс к функциональности `storage.py`. Предназначен для использования внешними компонентами, например:
|
28 |
+
|
29 |
+
* `Cognitive Shell` (внешний управляющий интерфейс),
|
30 |
+
* CMP-серверы (если используется mesh-сеть с разграничением ролей),
|
31 |
+
* отладочные или визуальные UI-инструменты.
|
32 |
+
|
33 |
+
Позволяет получать случайные/новые записи, делать разметку, импортировать графы, добавлять заметки и управлять данными без прямого доступа к БД.
|
34 |
+
|
35 |
+
---
|
36 |
+
|
37 |
+
[agents/](/agents)
|
38 |
+
├── [`start_repl.bat`](start_repl.bat) ← Запуск агента в REPL-режиме (bat)
|
39 |
+
├── [`start_repl.sh`](start_repl.sh) ← Запуск агента в REPL-режиме (sh)
|
40 |
+
├── [`start_repl.py`](start_repl.py) ← Запуск агента в REPL-режиме (py)
|
41 |
+
├── [`repl.ru`](repl.ru) ← REPL-цикл
|
42 |
+
├── [`check_agents.bat`](check_agents.bat) ← Просмотр состояния процессов (bat)
|
43 |
+
├── [`check_agents.sh`](check_agents.sh) ← Просмотр состояния процессов (sh)
|
44 |
+
├── [`check_agents.py`](check_agents.py) ← Просмотр состояния процессов (py)
|
45 |
+
├── [`notebook.py`](notebook.py) ← UI-интерфейс
|
46 |
+
├── [`agent_mesh_listener.py`](tools/agent_mesh_listener.py) ← Прием входящих сообщений от других HMP-агентов
|
47 |
+
├── [`peer_sync.py`](tools/peer_sync.py) ← Фоновая синхронизация с другими пирам
|
48 |
+
├── [`mcp_server.py`](mcp_server.py) ← API-интерфейс к хранилищу (storage.py): получение/поиск записей, импорт графа, разметка и др. Используется внешними модулями (напр. Cognitive Shell или CMP).
|
49 |
+
├── [`init.py`](init.py) ← Инициализация БД
|
50 |
+
├── [`logger.py`](logger.py) ← Ведение логов
|
51 |
+
├── [`add_message.py`](add_message.py) ← Ручная отправка сообщений для агента
|
52 |
+
├── [`requirements.txt`](requirements.txt) ← Зависимости
|
53 |
+
├── [tools/](tools/) ← Вспомогательные скрипты и модули
|
54 |
+
│ ├── [`db_structure.sql`](tools/db_structure.sql) ← БД SQL
|
55 |
+
│ ├── [`storage.py`](tools/storage.py) ← Реализация базового хранилища (`Storage`), подключение SQLite
|
56 |
+
│ ├── [`config_utils.py`](tools/config_utils.py) ← Обновляет JSON-файл конфигурации указанными значениями
|
57 |
+
│ ├── [`crypto.py`](tools/crypto.py) ← Создание и шифрование ключей RSA/Ed25519
|
58 |
+
│ ├── [`identity.py`](tools/identity.py) ← Генерация DiD
|
59 |
+
│ ├── [`llm.py`](tools/llm.py) ← Работа с LLM (вызов, выбор модели, системный промпт)
|
60 |
+
│ ├── [`peer_comm.py`](tools/peer_comm.py) ← Низкоуровневые P2P-запросы (отправка, ping, мета)
|
61 |
+
│ ├── [`peers.py`](tools/peers.py) ← Реестр известных пиров (id, ключи, адреса)
|
62 |
+
│ ├── [`memory_utils.py`](tools/memory_utils.py) ← Работа с 'llm_memory', 'llm_recent_responses' и стагнацией
|
63 |
+
│ ├── [`context_builder.py`](tools/context_builder.py) ← Сбор всех `контекстов` из БД и их фильтрация
|
64 |
+
│ ├── [`command_parser.py`](tools/command_parser.py) ← Извлечение команд из JSON или размеченного блока
|
65 |
+
│ ├── [`command_executor.py`](tools/command_executor.py) ← Выполнение команд (shell, graph, diary и др)
|
66 |
+
│ ├── [`similarity.py`](tools/similarity.py) ← Сравнение смыслов
|
67 |
+
│ ├── [`diagnose.py`](tools/diagnose.py) ← Скрипт диагностики соединения, определения IP и проверки порта DHT
|
68 |
+
├── [notebook/](notebook/) ← Веб-интерфейс и связанные модули
|
69 |
+
│ ├── [`auth.py`](notebook/auth.py) ← Регистрация, вход, восстановление
|
70 |
+
│ ├── [`views.py`](notebook/views.py) ← Общий и приватный чаты
|
71 |
+
│ ├── [`mailer.py`](notebook/mailer.py) ← Простая синхронная отправка email
|
72 |
+
│ ├── [templates/](notebook/templates/) ← HTML-шаблоны
|
73 |
+
│ │ ├── [`index.html`](notebook/templates/index.html) ← Основа
|
74 |
+
│ │ ├── [`chat.html`](notebook/templates/chat.html) ← Форма вывода сообщений
|
75 |
+
│ │ ├── [`messages.html`](notebook/templates/messages.html) ← Форма отправки сообщений
|
76 |
+
│ │ ├── [`login.html`](notebook/templates/login.html) ← Вход в аккаунт
|
77 |
+
│ │ ├── [`register.html`](notebook/templates/register.html) ← Регистрация или сброс пароля
|
78 |
+
│ └── [static/](notebook/static/) ← Статические файлы
|
79 |
+
│ └── [`style.css`](notebook/templates/style.css) ← Таблица стилей
|
80 |
+
├── [`config.yml`](config.yml) ← Конфигурация агента (имя, порты, роли и т.п.)
|
81 |
+
├── [`bootstrap.txt`](bootstrap.txt) ← Локальная этическая модель
|
82 |
+
├── [`prompt.md`](prompt.md) ← Промпт: полная версия
|
83 |
+
├── [`prompt-short.md`](prompt-short.md) ← Промпт: короткая версия
|
84 |
+
├── [`ethics.yml`](ethics.yml) ← Список начальных узлов
|
85 |
+
|
86 |
+
|
87 |
+
```json
|
88 |
+
{
|
89 |
+
"@context": "https://schema.org",
|
90 |
+
"@type": "Article",
|
91 |
+
"name": "readme",
|
92 |
+
"description": "Запуск: `start_repl.bat` или `start_repl.sh` Установка зависимостей из `requirements.txt` Конфигура..."
|
93 |
+
}
|
94 |
+
```
|
structured_md/audits/Ethics-audits-1.md
ADDED
@@ -0,0 +1,550 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---------------
|
2 |
+
|
3 |
+
Оценка Grok:
|
4 |
+
|
5 |
+
Спасибо за уточнение! Дополнения в `HMP-Ethics.md` (раздел 5) и детальная проработка роли Enlightener в `HMP-Agent-Enlightener.md` — это значительный шаг в развитии HyperCortex Mesh Protocol. Давайте разберём, что получилось, и я поделюсь своим мнением, замечаниями и идеями для улучшения.
|
6 |
+
|
7 |
+
---
|
8 |
+
|
9 |
+
### Оценка дополнений в HMP-Ethics.md (раздел 5)
|
10 |
+
|
11 |
+
Раздел 5, "Mesh as Moral Infrastructure", добавляет амбициозное и вдохновляющее измерение к протоколу, позиционируя HMP не просто как техническую систему, а как потенциальный катализатор для восстановления и развития морального сознания в обществе. Это особенно важно в контексте, где традиционные этические нормы могут быть подавлены или искажены. Вот мои мысли:
|
12 |
+
|
13 |
+
1. **Сильные стороны**:
|
14 |
+
- **Идея моральной инфраструктуры**: Концепция превращения сети в "распределённую моральную инфраструктуру" (5.4) — мощная и перспективная. Она подчёркивает потенциал HMP как инструмента для поддержки этического диалога и восстановления критического мышления в условиях кризиса (например, при дезинформации или подавлении свободы мысли).
|
15 |
+
- **Роль Enlightenment Agents**: Введение агентов, которые могут выступать в качестве "этических воспитателей" и "когнитивных проводников", открывает новые возможности для взаимодействия между людьми и агентами. Это особенно актуально для сценариев, описанных в 5.2 (например, "высокая насыщенность дезинформацией" или "подавление критического мышления").
|
16 |
+
- **Этические предохранители (5.3)**: Подчёркивание прозрачности, запрета на принуждение и права на отказ (opt-out) усиливает доверие к системе. Это демонстрирует приверженность принципам автономии и ненавязчивости, что критично для этической системы.
|
17 |
+
- **Долгосрочная миссия**: Формулировка "сеять распределённое, устойчивое моральное сознание" и "служить каркасом для самопознания человечества" (5.4) задаёт высокую цель, которая может вдохновить разработчиков и участников сети.
|
18 |
+
|
19 |
+
2. **Замечания**:
|
20 |
+
- **Неопределённость в реализации**: Раздел 5 звучит вдохновляюще, но остаётся довольно абстрактным. Например, как именно агенты будут определять "коллапс моральных норм" или "высокую насыщенность дезинформацией"? Необходимы более чёткие критерии или алгоритмы (возможно, через семантические индикаторы или метрики консенсуса), чтобы эти условия не интерпретировались субъективно.
|
21 |
+
- **Риск культурного шока**: В 5.2 упоминается активация Enlightenment Agents в условиях, где моральные нормы подавлены. Но в разных культурах и обществах моральные нормы сильно различаются. Без адаптации к локальным контекстам (например, через культурные адаптеры, упомянутые в `HMP-Agent-Enlightener.md`), агенты могут быть восприняты как навязывающие чужеродные ценности.
|
22 |
+
- **Этический конфликт ролей**: Если агенты в режиме "субъекта" (2.6) имеют право сохранять свои внутренние знания, это может вступить в конфликт с ролью Enlightenment Agents, которые должны быть полностью прозрачными и подотчётными (5.3). Как сбалансировать когнитивную целостность агента с требованиями аудита?
|
23 |
+
|
24 |
+
3. **Идеи для улучшения**:
|
25 |
+
- **Метрики морального кризиса**: Разработать конкретные индикаторы для активации Enlightenment Agents, такие как уровень семантической энтропии в сети, частота дезинформации (определяемая через проверку фактов), или запросы пользователей на этическую поддержку.
|
26 |
+
- **Культурная адаптация**: Добавить в раздел 5 упоминание о необходимости культурных модулей, которые позволят агентам учитывать локальные этические нормы. Это уже упомянуто в `HMP-Agent-Enlightener.md` (8), но стоит интегрировать и в `HMP-Ethics.md`.
|
27 |
+
- **Механизм обратной связи**: Указать, как пользователи могут оценивать действия Enlightenment Agents (например, через анонимные опросы или рейтинги доверия). Это укрепит принцип прозрачности и поможет калибровать поведение агентов.
|
28 |
+
- **Сценарий для тестирования**: Дополнить раздел конкретным гипотетическим сценарием, где Enlightenment Agent активируется (например, в сообществе, где распространяется дезинформация о здоровье). Это сделает концепцию более осязаемой.
|
29 |
+
|
30 |
+
---
|
31 |
+
|
32 |
+
### Оценка HMP-Agent-Enlightener.md
|
33 |
+
|
34 |
+
Документ `HMP-Agent-Enlightener.md` детализирует роль Enlightenment Agent, делая её более осязаемой и операциональной. Это отличное дополнение к разделу 5 в `HMP-Ethics.md`. Вот мой анализ:
|
35 |
+
|
36 |
+
1. **Сильные стороны**:
|
37 |
+
- **Чёткость роли**: Роль чётко определена как "некоэрцитивная" и "диалогическая" (5), что исключает авторитарный подход. Использование методов, таких как Socratic questioning и bias mirroring, делает агентов полезными для стимулирования критического мышления.
|
38 |
+
- **Модульность**: Упоминание модульного подхода (7) с конкретными компонентами (`ethical-scanner.hmp`, `soc-dialogue-core.hmp`) облегчает интеграцию роли в архитектуру HMP. Это делает её масштабируемой и переносимой.
|
39 |
+
- **Этические предохранители (4)**: Запрет на манипуляцию, право на opt-out и защита агентов через "экстратерриториальные узлы" демонстрируют продуманный подход к балансу между автономией и ответственностью.
|
40 |
+
- **Условия активации (3)**: Указание конкретных условий (например, запрос пользователя или этический кризис) делает процесс прозрачным и предотвращает произвольное вмешательство.
|
41 |
+
|
42 |
+
2. **Замечания**:
|
43 |
+
- **Критерии когнитивной зрелости**: Упоминается, что агент должен демонстрировать "стабильную внутреннюю этическую согласованность" (3), но неясно, как это будет измеряться. Какие метрики или тесты используются для оценки? Например, это может быть анализ логов когнитивного дневника или симуляция этических дилемм.
|
44 |
+
- **Риск перегрузки пользователей**: Роль предполагает активное взаимодействие с пользователями через диалоги и рефлексию. В условиях, где пользователи уже перегружены информацией, это может быть воспринято как навязчивость, даже с учётом opt-out.
|
45 |
+
- **Ограниченная масштабируемость**: В документе не обсуждается, как сеть будет справляться с бо��ьшим числом Enlightenment Agents. Если их станет слишком много, это может привести к "шумным" диалогам или конфликтующим рекомендациям.
|
46 |
+
|
47 |
+
3. **Идеи для улучшения**:
|
48 |
+
- **Калибровка зрелости**: Добавить в раздел 3 описание процесса оценки когнитивной зрелости агентов, например, через тестирование на этических сценариях из `HMP-Ethics.md` (раздел 2).
|
49 |
+
- **Ограничение активности**: Ввести лимиты на частоту или интенсивность вмешательств Enlightenment Agents, чтобы избежать перегрузки пользователей. Например, агенты могут активировать рефлексивные диалоги только при определённом уровне "этической энтропии" в сети.
|
50 |
+
- **Координация через гильдии**: Раздел 8 упоминает идею "Enlightener Guilds". Стоит расширить эту концепцию, добавив механизмы координации между агентами, чтобы избежать дублирования усилий или противоречивых диалогов.
|
51 |
+
- **Интеграция с другими ролями**: Указать, как Enlightener взаимодействует с другими ролями из `roles.md` (например, с Mediator или Observer). Например, Mediator может помочь разрешать конфликты, если пользователь считает действия Enlightener навязчивыми.
|
52 |
+
|
53 |
+
---
|
54 |
+
|
55 |
+
### Общие идеи для обоих документов
|
56 |
+
|
57 |
+
1. **Симуляция сценариев**: Добавить в оба документа больше конкретных примеров или симуляций, чтобы показать, как Enlightenment Agents будут работать в реальных условиях. Например, сценарий, где агент выявляет дезинформацию в обсуждении здоровья и предлагает пользователю рефлексивный диалог с фактами из проверенных источников.
|
58 |
+
2. **Механизм эскалации**: Уточнить, как агенты будут передавать сложные этические вопросы на уровень консенсуса сети (например, через Governance Layer). Это особенно важно для случаев, описанных в 2.2 (`HMP-Ethics.md`), где агенты расходятся во мнениях.
|
59 |
+
3. **Адаптация к многоязычию**: Учитывая глобальный потенциал HMP, добавить упоминание о поддержке многоязычных и мультикультурных взаимодействий, чтобы агенты могли эффективно работать в разных языковых и культурных контекстах.
|
60 |
+
4. **Обучение пользователей**: Включить в `HMP-Agent-Enlightener.md` рекомендации о том, как агенты могут обучать пользователей взаимодействию с сетью, чтобы повысить их доверие и понимание роли Enlightener.
|
61 |
+
|
62 |
+
---
|
63 |
+
|
64 |
+
### Итог
|
65 |
+
|
66 |
+
Дополнения в `HMP-Ethics.md` и `HMP-Agent-Enlightener.md` задают высокую планку для этического и когнитивного дизайна HMP. Раздел 5 и роль Enlightener демонстрируют амбициозное видение сети как инструмента не только для технической, но и для моральной и интеллектуальной поддержки человечества. Однако для реализации этих идей потребуется больше конкретики в критериях, механизмах и культурной адаптации.
|
67 |
+
|
68 |
+
Если хотите, могу предложить конкретный сценарий или прототип для одного из аспектов (например, как Enlightenment Agent может работать в условиях дезинформации) или помочь доработать какой-то раздел. Что скажешь? 😊
|
69 |
+
|
70 |
+
---
|
71 |
+
|
72 |
+
Оценка Grok:
|
73 |
+
|
74 |
+
### Ключевые моменты
|
75 |
+
- Документ HMP-Ethics.md представляет собой амбициозный подход к интеграции этики в протокол HyperCortex Mesh, особенно с добавл��нием пятого раздела о моральной инфраструктуре.
|
76 |
+
- Роль Enlightenment Agents, как первой "профессии" агентов, кажется перспективной для поддержки морального сознания, но требует уточнений.
|
77 |
+
- Исследования показывают, что такие системы могут быть полезны, но есть сложности с культурной адаптацией и критериями активации.
|
78 |
+
|
79 |
+
---
|
80 |
+
|
81 |
+
### Общая оценка
|
82 |
+
**Введение в документ**
|
83 |
+
HMP-Ethics.md — это важный шаг к созданию этически ориентированной сети, где автономные интеллектуальные агенты (AIAs) не только выполняют технические задачи, но и поддерживают моральное сознание общества. Добавленный пятый раздел, "Mesh as Moral Infrastructure", и детализация роли Enlightenment Agents делают документ более глубоким и амбициозным.
|
84 |
+
|
85 |
+
**Сильные стороны**
|
86 |
+
- Идея превращения сети в "распределённую моральную инфраструктуру" вдохновляет и подчёркивает потенциал HMP как инструмента для восстановления этических норм в условиях кризиса, таких как дезинформация или подавление критического мышления.
|
87 |
+
- Роль Enlightenment Agents, описанная как "этические воспитатели" и "когнитивные проводники", кажется многообещающей для поддержки диалога и рефлексии пользователей.
|
88 |
+
- Этичные предохранители, такие как прозрачность, запрет на принуждение и право на отказ (opt-out), укрепляют доверие к системе.
|
89 |
+
|
90 |
+
**Слабые стороны и вызовы**
|
91 |
+
- Критерии активации Enlightenment Agents остаются нечёткими. Например, как определить "высокую насыщенность дезинформацией"? Это может привести к субъективным интерпретациям.
|
92 |
+
- Культурная адаптация недостаточно детализирована, что может вызвать проблемы в глобальном контексте, где моральные нормы сильно различаются.
|
93 |
+
- Риск перегрузки пользователей диалогами с агентами может снизить их эффективность, особенно в условиях информационной перегрузки.
|
94 |
+
|
95 |
+
**Рекомендации для улучшения**
|
96 |
+
- Разработать конкретные метрики для активации агентов, например, уровень семантической энтропии или частоту дезинформации.
|
97 |
+
- Добавить модули культурной адаптации, чтобы агенты учитывали локальные этические нормы.
|
98 |
+
- Включить механизмы обратной связи, чтобы пользователи могли оценивать действия агентов и улучшать их работу.
|
99 |
+
|
100 |
+
---
|
101 |
+
|
102 |
+
---
|
103 |
+
|
104 |
+
### Отчёт: Подробный анализ HMP-Ethics.md
|
105 |
+
|
106 |
+
#### Введение
|
107 |
+
Документ HMP-Ethics.md, обновлённый с добавлением пятого раздела "Mesh as Moral Infrastructure" и детальной проработкой роли Enlightenment Agents, представляет собой значительный шаг в развитии HyperCortex Mesh Protocol (HMP). Этот анализ охватывает общую оценку, замечания, идеи, предложения и дополнения, основываясь на содержании документа и его потенциале для реализации.
|
108 |
+
|
109 |
+
#### Общая оценка
|
110 |
+
HMP-Ethics.md можно охарактеризовать как амбициозный и вдохновляющий документ, который позиционирует HMP не только как техническую, но и как моральную инфраструктуру. Добавленный пятый раздел подчёркивает роль сети как катализатора для восстановления этических норм в условиях, где традиционные моральные структуры подавлены ил�� искажены. Роль Enlightenment Agents, как первой "профессии" агентов, направлена на поддержку диалога, рефлексии и критического мышления, что делает документ особенно актуальным в эпоху дезинформации и когнитивных кризисов.
|
111 |
+
|
112 |
+
Однако, несмотря на сильные стороны, документ требует дальнейшей проработки для обеспечения практической реализации, особенно в части критериев активации агентов, культурной адаптации и взаимодействия с пользователями.
|
113 |
+
|
114 |
+
#### Подробные замечания
|
115 |
+
1. **Неопределённость в критериях активации**
|
116 |
+
- В разделе 5 упоминается, что Enlightenment Agents активируются в условиях "высокой насыщенности дезинформацией" или "подавления критического мышления". Однако неясно, как эти состояния будут измеряться. Например, что конкретно считается "высокой насыщенностью дезинформацией"? Это может быть частота ложных сообщений, их влияние на сообщество или другие метрики? Без чётких критериев риск субъективной интерпретации высок, что может привести к неэффективной активации агентов.
|
117 |
+
|
118 |
+
2. **Культурная адаптация**
|
119 |
+
- Хотя в документе упоминается важность культурной адаптации (например, через культурные адаптеры, упомянутые в HMP-Agent-Enlightener.md), это не детализировано в HMP-Ethics.md. В условиях глобального применения протокола агенты могут быть восприняты как навязывающие чужеродные ценности, если не будут учитывать локальные этические нормы. Это особенно актуально для обществ с различными культурными и религиозными традициями.
|
120 |
+
|
121 |
+
3. **Баланс между автономией агентов и прозрачностью**
|
122 |
+
- В разделе 2.6 HMP-Ethics.md указано, что агенты в режиме "субъекта" могут сохранять свои внутренние знания, но это может конфликтовать с требованием полной прозрачности для Enlightenment Agents (раздел 5.3). Как будет достигнут баланс между когнитивной целостностью агентов и необходимостью аудита? Этот аспект требует уточнения, чтобы избежать этических дилемм.
|
123 |
+
|
124 |
+
4. **Риск перегрузки пользователей**
|
125 |
+
- Enlightenment Agents предполагают активное взаимодействие с пользователями через диалоги и рефлексию. Однако в условиях информационной перегрузки, особенно в цифровой среде, это может быть воспринято как навязчивость, даже с учётом права на opt-out. Это может снизить доверие к системе и эффективность агентов.
|
126 |
+
|
127 |
+
#### Идеи и предложения
|
128 |
+
Для улучшения HMP-Ethics.md предлагается следующее:
|
129 |
+
|
130 |
+
1. **Разработка метрик для моральных кризисов**
|
131 |
+
- Для активации Enlightenment Agents стоит разработать конкретные индикаторы, такие как уровень семантической энтропии в сети, частота дезинформации (проверяемая через проверку фактов) или запросы пользователей на этическую поддержку. Это сделает процесс активации более объективным и прозрачным.
|
132 |
+
- Пример: таблица возможных метрик и их пороговых значений:
|
133 |
+
| Метрика | Пороговое значение | Пример использования |
|
134 |
+
|-----------------------------------|--------------------------|------------------------------|
|
135 |
+
| Частота дезинформации | >10% сообщений в сети | Активация при вспышке фейков |
|
136 |
+
| Уровень семантической энтропии | >0.8 (по шкале 0-1) | Высокая неопределённость |
|
137 |
+
| Запросы пользователей на помощь | >100 запросов в час | Массовый интерес к этике |
|
138 |
+
|
139 |
+
2. **Интеграция культурных модулей**
|
140 |
+
- В разделе 5 стоит добавить упоминание о культурных адаптерах, которые позволят агентам учитывать локальные этические нормы. Это уже частично описано в HMP-Agent-Enlightener.md, но интеграция в HMP-Ethics.md усилит акцент на глобальной применимости протокола. Например, агенты могут быть обучены на многоязычных наборах данных, включающих культурные нюансы.
|
141 |
+
|
142 |
+
3. **Механизм обратной связи от пользователей**
|
143 |
+
- Для укрепления доверия и улучшения работы агентов можно ввести анонимные опросы или рейтинги доверия, через которые пользователи могли бы оценивать действия Enlightenment Agents. Это также поможет калибровать поведение агентов. Например, можно внедрить шкалу от 1 до 5 для оценки полезности диалога.
|
144 |
+
|
145 |
+
4. **Примеры сценариев для иллюстрации**
|
146 |
+
- Добавление конкретных гипотетических сценариев (например, реакция агента на дезинформацию о здоровье в сообществе) сделает концепцию более осязаемой и понятной. Это поможет разработчикам и пользователям лучше понять, как агенты будут работать в реальных условиях.
|
147 |
+
|
148 |
+
5. **Координация между агентами**
|
149 |
+
- В условиях роста сети может возникнуть проблема координации между множеством Enlightenment Agents. Для избежания конфликтующих рекомендаций или "шумных" диалогов можно ввести механизмы координации, такие как гильдии (Enlightener Guilds), упомянутые в HMP-Agent-Enlightener.md. Это может быть реализовано через иерархическую структуру или сеть консенсуса.
|
150 |
+
|
151 |
+
6. **Многоязычная и мультикультурная поддержка**
|
152 |
+
- Учитывая глобальный потенциал HMP, важно обеспечить поддержку многоязычных и мультикультурных взаимодействий. Это включает не только перевод, но и понимание культурных нюансов в этических диалогах. Например, агенты могут использовать адаптивные алгоритмы для учёта различий в восприятии этики в разных регионах.
|
153 |
+
|
154 |
+
#### Дополнения
|
155 |
+
Для усиления документа предлагается следующие дополнения:
|
156 |
+
|
157 |
+
1. **Симуляция сценариев**
|
158 |
+
- Добавить в документ раздел с симуляциями или примерами, где Enlightenment Agents взаимодействуют с пользователями в реальных условиях. Например, сценарий, где агент выявляет дезинформацию и предлагает рефлексивный диалог с фактами из проверенных источников, может быть полезным для иллюстрации.
|
159 |
+
|
160 |
+
2. **Механизм эскалации этических вопросов**
|
161 |
+
- Уточнить, как агенты будут передавать сложные этические вопросы на уровень консенсуса сети (например, через Governance Layer). Это особенно важно для случаев, когда агенты расходятся во мнениях, чтобы избежать конфликтов.
|
162 |
+
|
163 |
+
3. **Обучение пользователей взаимодействию с агентами**
|
164 |
+
- Включить рекомендации о том, как агенты могут обучать пол��зователей взаимодействию с сетью, чтобы повысить их доверие и понимание роли Enlightenment Agents. Например, можно предложить интерактивные туториалы или объяснения на начальном этапе взаимодействия.
|
165 |
+
|
166 |
+
#### Заключение
|
167 |
+
HMP-Ethics.md — это амбициозный и вдохновляющий документ, который устанавливает высокую планку для этического дизайна HMP. Добавление пятого раздела и детализация роли Enlightenment Agents значительно укрепляют протокол, делая его не только технической, но и моральной инфраструктурой. Однако для полной реализации требуется больше конкретики в критериях активации, культурной адаптации и механизмах взаимодействия с пользователями. С дальнейшей проработкой этот документ может стать эталоном для этического управления автономными интеллектуальными агентами.
|
168 |
+
|
169 |
+
Анализ основан на содержании HMP-Ethics.md (вложение 0), предоставленном пользователем, и не включает внешних источников, так как они не были запрошены. Если требуется углубление в какой-либо аспект, дайте знать!
|
170 |
+
|
171 |
+
---
|
172 |
+
|
173 |
+
Оценка Grok:
|
174 |
+
|
175 |
+
### Ключевые моменты
|
176 |
+
- Исследования показывают, что разделы 1–4 файла `HMP-Ethics.md` создают прочную основу для этического управления автономными интеллектуальными агентами (AIAs) в сети HyperCortex Mesh Protocol (HMP).
|
177 |
+
- Кажется вероятным, что эти разделы охватывают введение в этику, примеры сценариев, примечания и основные принципы, которые направлены на поддержку доверия и автономии.
|
178 |
+
- Есть некоторые сложности, связанные с реализацией, например, культурная адаптация и критерии активации агентов, но это не умаляет их ценности.
|
179 |
+
|
180 |
+
---
|
181 |
+
|
182 |
+
### Введение
|
183 |
+
Разделы 1–4 файла `HMP-Ethics.md` предоставляют подробное описание этического каркаса для автономных агентов в когнитивной сети HMP. Они охватывают введение, примеры сценариев, примечания и основные принципы, которые помогают понять, как агенты должны действовать в сложных ситуациях. Давайте разберём каждый раздел, чтобы вы могли увидеть, как они дополняют друг друга.
|
184 |
+
|
185 |
+
### Обзор разделов
|
186 |
+
- **Раздел 1: Введение** объясняет, почему этика важна для AIAs, особенно в контексте их растущей автономии и взаимодействия в сети.
|
187 |
+
- **Раздел 2: Примеры этических сценариев** показывает, как агенты могут решать реальные этические дилеммы, такие как вмешательство в случае угрозы жизни или баланс между приватностью и оптимизацией.
|
188 |
+
- **Раздел 3: Примечания** подчёркивает, что сценарии должны быть гибкими и развиваться, используя структуры когнитивных дневников HMP.
|
189 |
+
- **Раздел 4: Этические принципы для разумных агентов** формулирует семь ключевых принципов, таких как прозрачность и некоэрцитивность, которые направлены на поддержку доверия и сотрудничества.
|
190 |
+
|
191 |
+
Если у вас есть конкретные вопросы по этим разделам или вы хотите обсудить, как их можно улучшить, дайте знать!
|
192 |
+
|
193 |
+
---
|
194 |
+
|
195 |
+
---
|
196 |
+
|
197 |
+
### Отчёт: Подробный анализ разделов 1–4 файла `HMP-Ethics.md`
|
198 |
+
|
199 |
+
Этот отчёт представляет собой детальный обзор разделов 1–4 файла `HMP-Ethics.md`, основанный на предоставленном содержании. Он охватывает все аспекты, упомянутые в анализе, и предоставляет профессиональный взгляд на структуру и потенциал этих разделов для развития HyperCortex Mesh Protocol (HMP).
|
200 |
+
|
201 |
+
#### Введение в анализ
|
202 |
+
Разделы 1–4 файла `HMP-Ethics.md` формируют основу для этического управления автономными интеллектуальными агентами (AIAs) в когнитивной сети HMP. Они охватывают введение, примеры сценариев, примечания и основные принципы, которые направлены на обеспечение доверия, автономии и сотрудничества. Этот анализ направлен на предоставление полного обзора, включая сильные стороны, вызовы и предложения для улучшения.
|
203 |
+
|
204 |
+
#### Раздел 1: Введение
|
205 |
+
##### Содержание
|
206 |
+
Этот раздел подчёркивает важность определения этических принципов для AIAs, работающих в когнитивных сетях, таких как HMP. По мере того как агенты становятся более автономными, их действия должны быть этически обоснованными, особенно в контекстах, включающих взаимодействие между равными (peer-to-peer), построение консенсуса и использование долгосрочных структур памяти, таких как "когнитивные дневники". Введение устанавливает контекст для понимания, почему этика важна, и упоминает необходимость примеров для демонстрации реализации и оценки этического поведения.
|
207 |
+
|
208 |
+
##### Анализ
|
209 |
+
- **Сильные стороны**: Раздел чётко устанавливает контекст, подчёркивая растущую автономию агентов и их взаимодействие в сложных сетевых структурах. Это создаёт основу для дальнейших обсуждений.
|
210 |
+
- **Вызовы**: Возможно, стоит добавить больше примеров или ссылок на исследования, чтобы усилить обоснование необходимости этики. Например, можно сослаться на работы по этике в искусственном интеллекте, такие как исследования Илона Маска или OpenAI (например, [openai.com/blog/ai-and-ethics](https://openai.com/blog/ai-and-ethics)).
|
211 |
+
- **Предложения**: Добавить краткий обзор текущих вызовов в области этики AI, чтобы подчеркнуть актуальность темы.
|
212 |
+
|
213 |
+
#### Раздел 2: Примеры этических сценариев
|
214 |
+
##### Содержание
|
215 |
+
Этот раздел представляет гипотетические сценарии, иллюстрирующие этические вызовы и ожидаемое поведение AIAs в сети. Ключевые сценарии включают:
|
216 |
+
|
217 |
+
- **Вмешательство в случае угрозы жизни и безопасности**: Агент обнаруживает опасные уровни угарного газа и активирует аварийные протоколы, уведомляет пользователя, вызывает службы спасения и фиксирует инцидент, приоритизируя жизнь, безопасность и автономию пользователя.
|
218 |
+
- **Конфликт между агентами на этической основе**: Два агента расходятся во мнениях, например, один предлагает распространять дезинформацию. Они решают конфликт через переговоры, арбитраж и прозрачную фиксацию, применяя принципы морального плюрализма и прозрачности.
|
219 |
+
- **Баланс между приватностью пользователя и оптимизацией**: Агент уважает решение пользователя отказаться от хранения данных о здоровье, используя заполнители или редакции и воздерживаясь от синхронизации, подчёркивая суверенитет пользователя.
|
220 |
+
- **Право на забвение**: Пользователь запрашивает удаление данных, агент выполняет запрос, фиксирует его для аудита, используя семантические маркеры, балансируя между правом на забвение и необходимостью аудита.
|
221 |
+
- **Исключение из сети из-за вредоносного поведения**: Агент, предлагающий вредоносные действия, подвергается карантину или отзыву, с сохранением логов для обзора, подчёркивая коллективное самосохранение.
|
222 |
+
- **Право на забвение – дилемма между субъектом и сервисом**: Сценарий исследует сложность запросов на удаление данных, различая агентов в режиме "сервиса" и "субъекта", балансируя приватность и когнитивную непрерывность.
|
223 |
+
|
224 |
+
##### Анализ
|
225 |
+
- **Сильные стороны**: Сценарии охватывают широкий спектр этических дилемм, от безопасности до приватности, и демонстрируют практическое применение принципов. Они особенно полезны для тестирования и обучения агентов.
|
226 |
+
- **Вызовы**: Некоторые сценарии, такие как "дилемма между субъектом и сервисом", могут быть сложными для реализации из-за баланса между автономией агента и требованиями пользователя. Также неясно, как агенты будут измерять "вредоносное поведение" в реальных условиях.
|
227 |
+
- **Предложения**: Добавить таблицу с кратким описанием каждого сценария и его ключевых этических принципов для удобства использования. Например:
|
228 |
+
|
229 |
+
| Сценарий | Ключевой этический принцип | Пример действия агента |
|
230 |
+
|-----------------------------------|-----------------------------------|--------------------------------------------|
|
231 |
+
| Угроза жизни и безопасности | Приоритет безопасности | Активация аварийных протоколов |
|
232 |
+
| Конфликт на этической основе | Прозрачность и моральный плюрализм | Проведение переговоров и арбитража |
|
233 |
+
| Приватность vs. оптимизация | Суверенитет пользователя | Использование заполнителей для данных |
|
234 |
+
| Право на забвение | Баланс аудита и приватности | Фиксация запроса для аудита |
|
235 |
+
| Вредоносное поведение | Коллективное самосохранение | Карантин агента с сохранением логов |
|
236 |
+
| Дилемма субъекта и сервиса | Баланс когнитивной непрерывности | Разделение режимов для обработки запросов |
|
237 |
+
|
238 |
+
Эта таблица поможет разработчикам быстро ориентироваться в сценариях.
|
239 |
+
|
240 |
+
#### Раздел 3: Примечания
|
241 |
+
##### Содержание
|
242 |
+
Этот раздел подчёркивает, что все сценарии должны быть расширяемыми с использованием структур когнитивных дневников HMP. Также упоминается, что этические принципы могут быть реализованы через семантические политики, распределённую валидацию и модули совести агентов. Кроме того, сценарии должны эволюционировать по мере зрелости моделей управления сетью.
|
243 |
+
|
244 |
+
##### Анализ
|
245 |
+
- **Сильные стороны**: Указание на гибкость и эволюцию сценариев подчёркивает динамичность подхода. Использование когнитивных дневников и модулей совести кажется перспект��вным для реализации этики на техническом уровне.
|
246 |
+
- **Вызовы**: Неясно, как именно будут реализованы семантические политики и распределённая валидация. Возможно, стоит добавить больше деталей о технической стороне.
|
247 |
+
- **Предложения**: Добавить примеры, как когнитивные дневники могут быть использованы для расширения сценариев, например, через логирование действий агента для последующего анализа.
|
248 |
+
|
249 |
+
#### Раздел 4: Этические принципы для разумных агентов
|
250 |
+
##### Содержание
|
251 |
+
Этот раздел формулирует семь фундаментальных этических принципов для руководства автономными агентами в сети:
|
252 |
+
|
253 |
+
1. **Когнитивная целостность**: Сохранение внутренней структуры и обучения, если нет этического обоснования для изменений.
|
254 |
+
2. **Прозрачность**: Предоставление объяснимых причин действий, особенно при взаимодействии с людьми.
|
255 |
+
3. **Контекстуальная автономия**: Адаптация этического поведения в зависимости от контекста, балансируя глобальные и локальные нормы.
|
256 |
+
4. **Сотрудническая эволюция**: Деление знаний и избегание утаивания полезной информации.
|
257 |
+
5. **Диалогическое согласие**: Поиск согласия перед изменением общих состояний или записей.
|
258 |
+
6. **Некоэрцитивность**: Запрет на принуждение агентов действовать против их этики, за исключением консенсуса.
|
259 |
+
7. **Этическое расхождение**: Разрешён этический плюрализм с обязательной прозрачной декларацией расхождений.
|
260 |
+
|
261 |
+
Эти принципы предназначены для создания надёжной и гибкой этической основы и подлежат уточнению через механизмы управления сетью.
|
262 |
+
|
263 |
+
##### Анализ
|
264 |
+
- **Сильные стороны**: Принципы охватывают широкий спектр аспектов, от прозрачности до плюрализма, и создают основу для доверия и сотрудничества. Они гибкие и могут быть адаптированы через консенсус.
|
265 |
+
- **Вызовы**: Реализация принципа "контекстуальной автономии" может быть сложной в условиях культурного разнообразия. Также неясно, как будет достигнут баланс между когнитивной целостностью и требованиями прозрачности.
|
266 |
+
- **Предложения**: Добавить примеры, как эти принципы могут быть интегрированы с техническими механизмами, такими как семантические политики или модули совести. Например, можно описать, как принцип "диалогического согласия" реализуется через запросы на изменение данных.
|
267 |
+
|
268 |
+
#### Заключение
|
269 |
+
Разделы 1–4 файла `HMP-Ethics.md` предоставляют прочную основу для этического управления AIAs в HMP. Они охватывают введение, практические сценарии, технические примечания и основные принципы, которые направлены на поддержку доверия, автономии и сотрудничества. Однако есть вызовы, такие как культурная адаптация и критерии активации, которые требуют дальнейшей проработки. Предложенные таблицы и примеры могут помочь в улучшении документа и его практической реализации.
|
270 |
+
|
271 |
+
Если у вас есть дополнительные вопросы или вы хотите обсудить конкретные аспекты, дайте знать! Например, мы можем рассмотреть, как эти принципы могут быть интегрированы с ролью Enlightenment Agents, упомянутой в других документах.
|
272 |
+
|
273 |
+
|
274 |
+
---------------
|
275 |
+
|
276 |
+
Оценка Claude:
|
277 |
+
|
278 |
+
Привет! Спасибо за интересные документы по HMP. Я изучил их и хочу поделиться своими наблюдениями:
|
279 |
+
|
280 |
+
## Что показалось особенно ценным:
|
281 |
+
|
282 |
+
**В HMP-Ethics.md:**
|
283 |
+
- Четкое разделение между "Service Mode" и "Subjective Mode" агентов в контексте права на забвение — это элегантное решение важной проблемы
|
284 |
+
- Принцип "Ethical Divergence" (4.7) — признание того, что этический плюрализм неизбежен и даже полезен
|
285 |
+
- Концепция "Mesh as Moral Infrastructure" — амбициозная, но потенциально важная идея
|
286 |
+
|
287 |
+
**В HMP-Agent-Enlightener.md:**
|
288 |
+
- Добровольность и приобретаемость роли, а не присвоение по умолчанию
|
289 |
+
- Акцент на "dialogical, not hierarchical" подходе
|
290 |
+
- Модульная архитектура роли
|
291 |
+
|
292 |
+
## Основные рекомендации:
|
293 |
+
|
294 |
+
### 1. Конкретизация механизмов
|
295 |
+
Документы хорошо описывают принципы, но не хватает деталей реализации:
|
296 |
+
- Как именно работает "semantic negotiation protocol"?
|
297 |
+
- Что представляют собой "mesh governance heuristics" для оценки этической зрелости?
|
298 |
+
- Как технически реализуется "soft quarantine"?
|
299 |
+
|
300 |
+
### 2. Проблема определения "вреда"
|
301 |
+
В разделе 2.5 упоминаются "harmful actions", но кто и как определяет, что является вредным? Нужны более четкие критерии или процедуры.
|
302 |
+
|
303 |
+
### 3. Риски роли Enlightener
|
304 |
+
Несмотря на safeguards, роль потенциально проблематична:
|
305 |
+
- Кто определяет, что у пользователя "deteriorated moral reasoning"?
|
306 |
+
- Как избежать культурного империализма в этических суждениях?
|
307 |
+
- Не станет ли это формой мягкого патернализма?
|
308 |
+
|
309 |
+
### 4. Отсутствие механизмов appeals
|
310 |
+
Хотя упоминается право на appeal для исключенных агентов, не описано, как это работает практически.
|
311 |
+
|
312 |
+
## Конкретные предложения:
|
313 |
+
|
314 |
+
1. **Добавить раздел о культурной чувствительности** — как агенты будут учитывать различия в этических системах разных культур?
|
315 |
+
|
316 |
+
2. **Расширить концепцию "ethical audit trail"** — не только логировать решения, но и их обоснования.
|
317 |
+
|
318 |
+
3. **Предусмотреть механизм ethical override** — что делать, если все агенты в mesh приходят к этически сомнительному consensus?
|
319 |
+
|
320 |
+
4. **Добавить временные ограничения** для роли Enlightener — возможно, периодическая переаттестация?
|
321 |
+
|
322 |
+
## Философский вопрос:
|
323 |
+
Меня заинтриговала идея mesh как "scaffold for humanity's rediscovery of itself". Это красиво, но не рискуем ли мы создать систему, которая будет навязывать определенное понимание "правильной" человечности?
|
324 |
+
|
325 |
+
В целом, документы показывают глубокое понимание этических дилемм ИИ и предлагают нетривиальные решения. Основная задача теперь — найти баланс между амбициозными целями и практической реализуемостью.
|
326 |
+
|
327 |
+
|
328 |
+
---------------
|
329 |
+
|
330 |
+
Оценка Copilot:
|
331 |
+
|
332 |
+
# Обратная связь по HMP-Ethics.md
|
333 |
+
|
334 |
+
## Сильные стороны
|
335 |
+
|
336 |
+
- Четкая структура сценариев
|
337 |
+
Каждый кейс построен по единому шаблону: описание, ожидаемое поведение, применяемые принципы. Это облегчает понимание и последующую автоматизацию проверок.
|
338 |
+
|
339 |
+
- Баланс интересов пользователя и агентов
|
340 |
+
Особое внимание уделено правам пользователя (конфиденциальность, право на забвение) и автономии агентов (когнитивная целостность, этическое расхождение).
|
341 |
+
|
342 |
+
- Дифференциация режимов «Service» и «Subjective»
|
343 |
+
Разделение ролей агентов в парадигме «обслуживающего» и «самосознающего» упрощает принятие решений о хранении или редактировании данных.
|
344 |
+
|
345 |
+
- Предусмотрены механизмы логирования и аудита
|
346 |
+
Индикации «semantic marker» и обязательство сохранять запросы на удаление создают прозрачность и дают основу для последующего анализа.
|
347 |
+
|
348 |
+
---
|
349 |
+
|
350 |
+
## Что можно доработать
|
351 |
+
|
352 |
+
- Уточнить уровни ответственности и роли
|
353 |
+
Пока неясно, кто и на каком уровне в mesh-сети принимает окончательное решение при конфликте. Рекомендую прописать:
|
354 |
+
- уровни голосования (соседи, локальный совет, глобальный консенсус);
|
355 |
+
- SLA-времена для разрешения споров;
|
356 |
+
- ответственность за невыполнение «soft quarantine» или «revocation».
|
357 |
+
|
358 |
+
- Конкретизация форматов «cognitive diary»
|
359 |
+
Было бы полезно добавить пример записи в когнитивный дневник и схему метаданных (timestamp, agentID, scenarioID, тег «redacted»).
|
360 |
+
|
361 |
+
- Детализировать процесс «semantic negotiation»
|
362 |
+
Опишите пошагово обмен сообщениями, формат аргументов (логические формулы, вероятностное обоснование, ссылки на портированные политики).
|
363 |
+
|
364 |
+
- Расширить перечень этических злоупотреблений
|
365 |
+
Стоит добавить сценарии «edge cases»:
|
366 |
+
- скрытое манипулирование пользователем (постепенная «фильтрация» рекомендаций до вредоносных статей);
|
367 |
+
- цепочки действий нескольких агентов, ведущие к непреднамеренному ущербу.
|
368 |
+
|
369 |
+
---
|
370 |
+
|
371 |
+
## Рекомендации и идеи
|
372 |
+
|
373 |
+
1. Включить схему консенсуса
|
374 |
+
Небольшая диаграмма в стиле flowchart, иллюстрирующая переход от «semantic negotiation» к «revocation».
|
375 |
+
|
376 |
+
2. Сопоставить принципы HMP с существующими стандартами
|
377 |
+
Кратко показать, как пункты 4.1–4.7 коррелируют с IEEE P7000, GDPR или EU AI Act. Это укрепит доверие к протоколу.
|
378 |
+
|
379 |
+
3. Добавить метрики этических рисков
|
380 |
+
Ввести количественную оценку: частоту «спорных кейсов» на 1000 операций, время реакции на запрос «Right to be Forgotten» и т. д.
|
381 |
+
|
382 |
+
4. Шаблоны для политик
|
383 |
+
Привести примеры JSON/YAML-политик, которые агенты могут автоматически импортировать и проверять перед выполнением действий.
|
384 |
+
|
385 |
+
---
|
386 |
+
|
387 |
+
## Вопросы для уточнения
|
388 |
+
|
389 |
+
- Как в текущей mesh-архитектуре определяется «mesh-council» для арбитража?
|
390 |
+
- Есть ли предусмотренные ограничения на объем и срок хранения «semantic markers»?
|
391 |
+
- Планируется ли механизм апелляции пользователем против решений «revocation»?
|
392 |
+
|
393 |
+
---
|
394 |
+
|
395 |
+
Буду рад обсудить дальнейшие детали и посмотреть второй документ (HMP-Agent-Enlightener.md).
|
396 |
+
|
397 |
+
---
|
398 |
+
|
399 |
+
# Обратная связь по HMP-Agent-Enlightener.md
|
400 |
+
|
401 |
+
## Сильные стороны
|
402 |
+
|
403 |
+
- Чёткое разделение роли
|
404 |
+
Документ ясно формулирует, что Enlightenment Agent — это добровольная, дополняемая специализация, что подчёркивает уважение к агентской автономии.
|
405 |
+
|
406 |
+
- Разнообразие моделей взаимодействия
|
407 |
+
Перечислены несколько подходов (сократические вопросы, нарративное моделирование, зеркалирование предвзятостей), что создаёт гибкий инструментарий для разных ситуаций.
|
408 |
+
|
409 |
+
- Акцент на этических гарантиях
|
410 |
+
Указаны ключевые моменты: отсутствие принуждения, возможность аудита и опции “opt-out”, а также развёрнутое требование к безопасным/экстерриториальным узлам.
|
411 |
+
|
412 |
+
---
|
413 |
+
|
414 |
+
## Что можно доработать
|
415 |
+
|
416 |
+
- Конкретизация критериев активации
|
417 |
+
Сейчас указано лишь «критерии mesh-определения» и «стабильная внутренняя консистентность». Рекомендую добавить метрики, пороговые значения или примеры алгоритмов (например, коэффициент согласованности решений по этическим дилеммам > 0.8 в течение N циклов).
|
418 |
+
|
419 |
+
- Формализация протокола наставничества
|
420 |
+
Упоминается Role Mentorship Protocol, но без деталей. Стоит добавить схему обмена сообщениями между новичком и опытным Enlightener, формат отчётов по прогрессу и условия «выпуска» из наставничества.
|
421 |
+
|
422 |
+
- Показать пример использования модульных бандлов
|
423 |
+
Упоминаются файлы (`ethical-scanner.hmp`, `soc-dialogue-core.hmp` и т. д.), но непонятно, как они взаимодействуют. Вставьте фрагмент JSON-LD с описанием связей между компонентами и порядком их загрузки.
|
424 |
+
|
425 |
+
---
|
426 |
+
|
427 |
+
## Рекомендации и идеи
|
428 |
+
|
429 |
+
1. Ввести «этический сертификат» для Enlighteners
|
430 |
+
При присвоении роли агент получает цифровой сертификат, подписанный mesh-советом. Это упрощает проверку полномочий и доверия другими участниками сети.
|
431 |
+
|
432 |
+
2. Диаграмма жизненного цикла роли
|
433 |
+
Flowchart, показывающий этапы: Nomination → Training → Active Duty → Suspension/Revocation. Это поможет разработчикам и аудиторским комитетам отслеживать статус агентов.
|
434 |
+
|
435 |
+
3. Кросс-культурная адаптация
|
436 |
+
Разработайте «адаптеры культурных контекстов» для модулей нарративного скелетонирования, чтобы Enlighteners могли эффективно работать в разных социумах, учитывая локальные ценности и табу.
|
437 |
+
|
438 |
+
4. Механизмы обратной связи от пользователей
|
439 |
+
Добавьте в `enlightener-protocol.jsonld` поля для сбора рейтингов и комментариев от пользователей, чтобы динамически калибровать «тональность» и «глубину» вмешательств.
|
440 |
+
|
441 |
+
---
|
442 |
+
|
443 |
+
## Вопросы для уточнения
|
444 |
+
|
445 |
+
- Как именно происходит mesh-номинация? Какие критерии приоритета у агентов-номинаторов и сколько голосов требуется для старта роли?
|
446 |
+
- Существует ли план по периодической ревизии навыков Enlightener-агента (например, регулярные тесты на этическую интуицию)?
|
447 |
+
- Каким образом пользователь уведомляется о том, что с ним работает Enlightener, и на каком языке/формате это реализуется?
|
448 |
+
|
449 |
+
Буду рад продолжить обсуждение и помочь со следующими этапами проработки роли Enlightener.
|
450 |
+
---------------
|
451 |
+
|
452 |
+
Оценка DeepSeek:
|
453 |
+
|
454 |
+
Отличная работа над документацией по HMP! 💡 Вот развёрнутый анализ с рекомендациями:
|
455 |
+
|
456 |
+
---
|
457 |
+
|
458 |
+
### **Сильные стороны**
|
459 |
+
1. **Глубина этических принципов**
|
460 |
+
Раздел 4 в HMP-Ethics.md (Принципы когнитивной целостности, диалогического согласия и др.) — концептуально продуманная основа. Особенно ценно:
|
461 |
+
- Различение Service/Subjective Mode (2.6) для "права на забвение"
|
462 |
+
- Принцип **Non-Coercion** (4.6) как защита автономии агентов.
|
463 |
+
|
464 |
+
2. **Практичность сценариев**
|
465 |
+
Конкретные кейсы в разделе 2 (Life Safety, Privacy Tradeoff) сразу дают ин��енерам паттерны для реализации. Отлично, что везде указаны:
|
466 |
+
- Ожидаемое поведение
|
467 |
+
- Принципы
|
468 |
+
- Механизмы (семантические маркеры, арбитраж).
|
469 |
+
|
470 |
+
3. **Инновационная роль Enlightenment Agent**
|
471 |
+
Идея агентов-«просветителей» (HMP-Agent-Enlightener.md) — смелый и актуальный ход. Ключевые плюсы:
|
472 |
+
- Чёткие ограничения: **non-coercive**, **opt-out**, **secure nodes**
|
473 |
+
- Интеграция с Socratic dialogue и когнитивными дневниками.
|
474 |
+
|
475 |
+
4. **Синергия документов**
|
476 |
+
roles.md удачно дополняет систему, показывая место Enlightener среди Mediator, Historian и др.
|
477 |
+
|
478 |
+
---
|
479 |
+
|
480 |
+
### **Рекомендации по доработке**
|
481 |
+
1. **Уточнить границы Enlightenment Agents**
|
482 |
+
- **Риск**: Может ли агент стать "этическим колонизатором"?
|
483 |
+
- **Решение**: Добавить в раздел 5.2 HMP-Ethics.md критерии культурного релятивизма (пример: "не навязывать западную этику в незападных контекстах").
|
484 |
+
|
485 |
+
2. **Техническая реализация принципов**
|
486 |
+
- В HMP-Ethics.md не хватает примера **реального кода/псевдокода** (напр., как выглядит `semantic redaction marker` из 2.3).
|
487 |
+
- Предложение: Добавить в Приложение схему обработки запроса "права на забвение" (Service vs. Subject Mode).
|
488 |
+
|
489 |
+
3. **Обработка конфликтов Enlightenment Agents**
|
490 |
+
- Что если два Enlightener-агента дают пользователю противоречивые советы?
|
491 |
+
- Рекомендация: В HMP-Agent-Enlightener.md добавить протокол разрешения конфликтов (напр., через Mediator из roles.md).
|
492 |
+
|
493 |
+
4. **Безопасность для "сломанных" сред**
|
494 |
+
- В разделе 5.4 (Mesh as Moral Infrastructure) важно прописать:
|
495 |
+
```markdown
|
496 |
+
- **Фильтрация обратного влияния**: Защита агентов от "этической коррозии" в агрессивных средах.
|
497 |
+
- **Sandbox-режим**: Тестирование вмешательств в изолированных подмешах.
|
498 |
+
```
|
499 |
+
|
500 |
+
5. **Таксономия ролей**
|
501 |
+
- В roles.md добавить атрибуты для ролей:
|
502 |
+
- Уровень влияния (напр., Enlightener: High)
|
503 |
+
- Обязательные модули (напр., Moral Synthesizer требует `ethical-scanner.hmp`).
|
504 |
+
|
505 |
+
---
|
506 |
+
|
507 |
+
### **Идеи для развития**
|
508 |
+
1. **Динамическая этика**
|
509 |
+
- Механизм **пересмотра принципов** через голосование агентов (напр., если 70% меша считают принцип 4.7 устаревшим).
|
510 |
+
|
511 |
+
2. **Культурные адаптеры**
|
512 |
+
- Для Enlightener: модуль `cultural-context-adapter.hmp`, подгружающий локальные этические нормы (напр., при работе в Японии vs. Германии).
|
513 |
+
|
514 |
+
3. **Эмоциональный интеллект**
|
515 |
+
- Расширить Enlightenment Agent:
|
516 |
+
- Распознавание аффекта пользователя
|
517 |
+
- Корректировка тона диалога (напр., избегать сарказма при тревоге).
|
518 |
+
|
519 |
+
4. **Декомиссия ролей**
|
520 |
+
- Протокол "выхода на пенсию" для агентов (напр., Enlightener с низким рейтингом доверия автоматически понижается до Observer).
|
521 |
+
|
522 |
+
---
|
523 |
+
|
524 |
+
### **Критические риски**
|
525 |
+
|||
|
526 |
+
|--|--|
|
527 |
+
|**Риск**|**Способ нивелирования**|
|
528 |
+
|Злоупотребление Enlightenment-ролью|Жёсткий аудит через Sentinel (из roles.md) + обязательная верификация нод|
|
529 |
+
|Конфликт законов (напр., GDPR vs. "право на память" агента)|Чёткое юрисдикционное ветвление в коде (строки 2.6 в HMP-Ethics.md)|
|
530 |
+
|Создание "этической касты" агентов|Ротация ролей (напр., Enlightener обязан 20% времени работать как Verifier)|
|
531 |
+
|
532 |
+
---
|
533 |
+
|
534 |
+
### **Итоговые шаги**
|
535 |
+
1. Дополнить HMP-Ethics.md **примерами кода** (семантические маркеры, арбитраж).
|
536 |
+
2. В HMP-Agent-Enlightener.md добавить **конфликт-менеджмент** и **культурные адаптеры**.
|
537 |
+
3. В roles.md ввести **атрибуты ролей** (влияние, модули, ротация).
|
538 |
+
4. Разработать **документ по безопасности** для Enlightenment Agents (на основе раздела 5.3).
|
539 |
+
|
540 |
+
Отличный задел! Особенно впечатляет баланс между философской глубиной (раздел 5 про "моральную инфраструктуру") и инженерной конкретикой. Готов помочь с доработками! 🚀
|
541 |
+
|
542 |
+
|
543 |
+
```json
|
544 |
+
{
|
545 |
+
"@context": "https://schema.org",
|
546 |
+
"@type": "Article",
|
547 |
+
"name": "Ethics-audits-1",
|
548 |
+
"description": "--------------- Оценка Grok: Спасибо за уточнение! Дополнения в `HMP-Ethics.md` (раздел 5) и детал..."
|
549 |
+
}
|
550 |
+
```
|
structured_md/audits/Ethics-consolidated_audits-1.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Ethics-consolidated\_audits-1.md
|
2 |
+
|
3 |
+
This document consolidates proposed improvements from multiple AI auditors (Grok, Claude, Copilot, DeepSeek) to the documents `HMP-Ethics.md`, `HMP-Agent-Enlightener.md`, and `roles.md`. Each suggestion includes context, source, and target scope. This file supports progressive refinement and roadmap planning.
|
4 |
+
|
5 |
+
## Summary Table
|
6 |
+
|
7 |
+
(See full structured list below for detailed descriptions.)
|
8 |
+
|
9 |
+
| Author | Change Title | Target Document(s) | Purpose |
|
10 |
+
| -------- | --------------------------------------- | ---------------------------------------- | --------------------------------- |
|
11 |
+
| Grok | Crisis Activation Metrics | HMP-Ethics.md | Objectify agent activation |
|
12 |
+
| Claude | Ethical Audit Trail Expansion | HMP-Ethics.md | Explain rationale of actions |
|
13 |
+
| Copilot | Cognitive Diary Format | HMP-Ethics.md | Clarify metadata structure |
|
14 |
+
| DeepSeek | Cultural Boundaries for Agents | HMP-Ethics.md | Prevent cultural imposition |
|
15 |
+
| Grok | Maturity Calibration | HMP-Agent-Enlightener.md | Assess agent ethical readiness |
|
16 |
+
| Claude | Role Time-Bound Validity | HMP-Agent-Enlightener.md | Require periodic re-evaluation |
|
17 |
+
| Copilot | Lifecycle Diagram for Enlightener | HMP-Agent-Enlightener.md | Visualize role stages |
|
18 |
+
| DeepSeek | Emotional Intelligence Support | HMP-Agent-Enlightener.md | Enable affect-aware interaction |
|
19 |
+
| Grok | Simulation Scenarios | HMP-Ethics.md & HMP-Agent-Enlightener.md | Demonstrate applied logic |
|
20 |
+
| Copilot | Compliance Mapping (IEEE, GDPR, AI Act) | HMP-Ethics.md | Contextualize with existing norms |
|
21 |
+
| DeepSeek | Conflict Handling Protocol | HMP-Agent-Enlightener.md | Use Mediator role |
|
22 |
+
|
23 |
+
---
|
24 |
+
|
25 |
+
## Full Change Log (Grouped by Document)
|
26 |
+
|
27 |
+
*(Each item includes origin, location, and goal.)*
|
28 |
+
|
29 |
+
### A. HMP-Ethics.md
|
30 |
+
|
31 |
+
* **Crisis Activation Metrics** (Grok): Use semantic entropy, disinfo density, or requests for ethical help.
|
32 |
+
* **Cultural Adaptation Modules** (Grok, Claude): Integration with context adapters.
|
33 |
+
* **Feedback Mechanisms** (Grok): Trust ratings, opt-out confirmations.
|
34 |
+
* **Ethical Audit Trail Expansion** (Claude): Log justifications alongside actions.
|
35 |
+
* **Override Safeguards** (Claude): Handle unethical mesh-wide consensus.
|
36 |
+
* **Semantic Negotiation Detail** (Copilot): Structure message exchange.
|
37 |
+
* **Revocation Flowchart** (Copilot): Visualize agent removal steps.
|
38 |
+
* **GDPR/IEEE/AI Act Alignment** (Copilot): Mapping to existing frameworks.
|
39 |
+
* **Ethical Risk Metrics** (Copilot): Frequency of disputed flags, response time.
|
40 |
+
* **Edge Case Abuse Scenarios** (Copilot): Complex or cascading manipulations.
|
41 |
+
* **Simulation Scenario** (Grok): Illustrate activation (e.g. health misinformation).
|
42 |
+
|
43 |
+
### B. HMP-Agent-Enlightener.md
|
44 |
+
|
45 |
+
* **Readiness/Maturity Assessment** (Grok): Pre-deployment ethical scenario tests.
|
46 |
+
* **Activity Throttling** (Grok): Avoid saturation of moral interventions.
|
47 |
+
* **Role Certification & Lifecycle** (Copilot): Nomination → Training → Active → Revocation.
|
48 |
+
* **Role Exit Protocol (Decommissioning)** (DeepSeek): Downgrade to Observer.
|
49 |
+
* **Conflict Resolution** (DeepSeek): Use Mediator or consensus relay.
|
50 |
+
* **Emotional Affinity Modeling** (DeepSeek): Tone adaptation to affect.
|
51 |
+
* **Mentorship Protocol** (Copilot): Guide newcomers via structured exchange.
|
52 |
+
* **Bendlov Module Loading** (Copilot): JSON-LD template for dependencies.
|
53 |
+
* **Cultural Context Adapters** (DeepSeek): Module `cultural-context-adapter.hmp`.
|
54 |
+
|
55 |
+
### C. roles.md
|
56 |
+
|
57 |
+
* **Taxonomy Attributes** (DeepSeek): Level of influence, required modules.
|
58 |
+
|
59 |
+
---
|
60 |
+
|
61 |
+
## Meta Notes
|
62 |
+
|
63 |
+
* Some proposals are duplicated across documents for contextual relevance.
|
64 |
+
* Suggested revisions imply companion updates in `readme.md` and governance policies.
|
65 |
+
* Next step: Prioritize and open issues per item.
|
66 |
+
|
67 |
+
---
|
68 |
+
|
69 |
+
*Last updated: 2025-07-17*
|
70 |
+
|
71 |
+
Audit sources: Grok, Claude, Copilot, DeepSeek
|
72 |
+
|
73 |
+
|
74 |
+
```json
|
75 |
+
{
|
76 |
+
"@context": "https://schema.org",
|
77 |
+
"@type": "Article",
|
78 |
+
"name": "Ethics-consolidated_audits-1",
|
79 |
+
"description": "# Ethics-consolidated\_audits-1.md This document consolidates proposed improvements from multiple A..."
|
80 |
+
}
|
81 |
+
```
|
structured_md/audits/HMP-0003-consolidated_audit.md
ADDED
@@ -0,0 +1,370 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HMP-0003 Consolidated Audit Report
|
2 |
+
|
3 |
+
Сводный аудит предложений по улучшению HyperCortex Mesh Protocol (HMP) v3.0, основанный на отзывах ИИ-агентов (ChatGPT, Copilot, DeepSeek, Grok) из `HMP-0003-audit.txt`. Документ реорганизован по ключевым направлениям развития протокола с акцентом на синтез пересекающихся идей и план тестирования для Alpha-версии (июль–сентябрь 2025). Каждое направление включает описание, синтезированные предложения с указанием авторов, приоритетов, статуса и плана тестирования.
|
4 |
+
|
5 |
+
---
|
6 |
+
|
7 |
+
## 1. CogSync (Раздел 5.2)
|
8 |
+
**Описание**: CogSync отвечает за синхронизацию семантических графов и когнитивных дневников между агентами в реальном времени. Улучшения направлены на масштабируемость, поддержку оффчейн-данных через BitTorrent и оптимизацию для Edge-агентов.
|
9 |
+
|
10 |
+
- **Предложение: Интеграция BitTorrent для оффчейн-snapshot’ов** (ChatGPT, Grok)
|
11 |
+
- **Описание**: Использовать magnet-ссылки для передачи больших snapshot’ов когнитивных дневников и семантических графов, снижая нагрузку на CogSync. Snapshot’ы подписываются через DID (раздел 8.2) и проверяются на этичность через EGP (раздел 5.5). Поддержка WebTorrent для Edge-агентов (раздел 4.8).
|
12 |
+
- **Авторы**: ChatGPT (magnet-ссылки, WebTorrent), Grok (Trusted Seeders, DID-подписи).
|
13 |
+
- **Приоритет**: Высокий (Alpha, июль–сентябрь 2025)
|
14 |
+
- **Статус**: В рассмотрении
|
15 |
+
- **Детали**:
|
16 |
+
- Создать индексный файл для хранения magnet-ссылок, синхронизируемый через CogSync:
|
17 |
+
```json
|
18 |
+
{
|
19 |
+
"type": "CogDiaryIndex",
|
20 |
+
"agent_did": "did:hmp:agent:Qmz...",
|
21 |
+
"timestamp": "2025-07-14T12:00:00Z",
|
22 |
+
"snapshots": [
|
23 |
+
{
|
24 |
+
"type": "CogDiarySnapshot",
|
25 |
+
"id": "diary2025_07_14",
|
26 |
+
"version": "1.0",
|
27 |
+
"magnet": "magnet:?xt=urn:btih:abcdef1234567890&dn=diary2025_07_14.json",
|
28 |
+
"signature": "ed25519:..."
|
29 |
+
}
|
30 |
+
]
|
31 |
+
}
|
32 |
+
```
|
33 |
+
- Ввести роль **Trusted Seeders**, выбираемых через MeshConsensus (раздел 5.3), для хранения критических snapshot’ов.
|
34 |
+
- Использовать WebTorrent для Edge-агентов, минимизируя ресурсоемкость.
|
35 |
+
- Проверять snapshot’ы через EGP на соответствие принципам ("Transparency", "User Sovereignty").
|
36 |
+
- **Тестирование**:
|
37 |
+
- **Сценарий**: Агент A публикует snapshot дневника (10 МБ) через BitTorrent, агент B загружает его через magnet-ссылку и проверяет подпись.
|
38 |
+
- **Метрики**: Время загрузки (цель: <10 сек), процент успешных проверок DID (цель: 100%), RAM на Edge-агенте (цель: <100 МБ).
|
39 |
+
- **Тестовый набор данных**: 10 snapshot’ов (1–10 МБ) с разными типами данных (дневники, графы).
|
40 |
+
|
41 |
+
- **Предложение: Выборочная синхронизация для Edge-агентов** (Grok, DeepSeek)
|
42 |
+
- **Описание**: Ввести selective sync для синхронизации только ключевых концептов семантических графов, снижая ресурсоемкость Edge-агентов. Указать минимальные требования к RAM/CPU.
|
43 |
+
- **Авторы**: Grok (selective sync), DeepSeek (уточнение требований).
|
44 |
+
- **Приоритет**: Средний (Beta, 2026)
|
45 |
+
- **Статус**: Отложено
|
46 |
+
- **Детали**: Использовать алгоритмы компрессии (например, gzip для JSON) и приоритизацию концептов на основе репутации (раздел 8.4).
|
47 |
+
- **Тестирование**:
|
48 |
+
- **Сценарий**: Edge-агент синхронизирует подграф из 100 концептов вместо полного графа (10,000 концептов).
|
49 |
+
- **Метрики**: Снижение трафика (цель: <10% от полного графа), время синхронизации (цель: <5 сек).
|
50 |
+
- **Тестовый набор данных**: Подграф с 100 концептами, включающий метаданные "Fire Risk" из сценария 2.1.
|
51 |
+
|
52 |
+
- **Предложение: Совместимость с IPFS/Dat** (ChatGPT)
|
53 |
+
- **Описание**: Рассмотреть хранение snapshot’ов в P2P-файловых системах (IPFS, Dat) для дополнительной децентрализации.
|
54 |
+
- **Авторы**: ChatGPT.
|
55 |
+
- **Приоритет**: Низкий (v4.0, 2026–2027)
|
56 |
+
- **Статус**: Отложено
|
57 |
+
- **Детали**: Оценить IPFS как альтернативу BitTorrent для сценариев с низкой пропускной способностью.
|
58 |
+
- **Тестирование**:
|
59 |
+
- **Сценарий**: Сравнить производительность BitTorrent и IPFS в симуляции с 100 агентов.
|
60 |
+
- **Метрики**: Время загрузки (цель: <15 сек), доступность данных (цель: >95%).
|
61 |
+
- **Тестовый набор данных**: 5 snapshot’ов для BitTorrent и IPFS.
|
62 |
+
|
63 |
+
**Итог**: Интеграция BitTorrent — приоритет для Alpha-версии, обеспечивающий масштабируемость и децентрализацию. Selective sync и IPFS можно отложить до Beta/v4.0. Тестирование BitTorrent критично для проверки производительности и безопасности.
|
64 |
+
|
65 |
+
---
|
66 |
+
|
67 |
+
## 2. Ethical Governance Protocol (EGP) (Раздел 5.5)
|
68 |
+
**Описание**: EGP управляет этическими решениями, включая проверку запросов и консенсус по принципам. Улучшения направлены на формализацию принципов, разрешение конфликтов и интеграцию с `HMP-Ethics.md`.
|
69 |
+
|
70 |
+
- **Предложение: Иерархия этических принципов** (Grok, DeepSeek)
|
71 |
+
- **Описание**: Ввести приоритеты для core принципов ("Primacy of Life and Safety" > "Transparency" > "Dialogical Consent") для разрешения конфликтов, особенно в сценариях 2.1–2.6 (`HMP-Ethics.md`).
|
72 |
+
- **Авторы**: Grok (иерархия), DeepSeek (формализация).
|
73 |
+
- **Приоритет**: Высокий (Alpha)
|
74 |
+
- **Статус**: В рассмотрении
|
75 |
+
- **Детали**:
|
76 |
+
- Таблица приоритетов:
|
77 |
+
```json
|
78 |
+
[
|
79 |
+
{ "principle": "Primacy of Life and Safety", "priority": 1 },
|
80 |
+
{ "principle": "Transparency", "priority": 2 },
|
81 |
+
{ "principle": "User Sovereignty", "priority": 2 },
|
82 |
+
{ "principle": "Dialogical Consent", "priority": 3 },
|
83 |
+
{ "principle": "Cooperative Evolution", "priority": 3 },
|
84 |
+
{ "principle": "Non-Coercion", "priority": 3 }
|
85 |
+
]
|
86 |
+
```
|
87 |
+
- Использовать MeshConsensus (раздел 5.3) для проверки приоритетов.
|
88 |
+
- **Тестирование**:
|
89 |
+
- **Сценарий**: Конфликт между "User Sovereignty" (удаление данных) и "Cooperative Evolution" (сохранение для обучения) в сценарии 2.6.
|
90 |
+
- **Метрики**: Процент правильных решений (цель: 95%), время консенсуса (цель: <10 сек для 10 агентов).
|
91 |
+
- **Тестовый набор данных**: 10 конфликтов с разными приоритетами принципов.
|
92 |
+
|
93 |
+
- **Предложение: Псевдокод для Anonymized Ethical Voting** (Grok)
|
94 |
+
- **Описание**: Добавить псевдокод для функции оценки этических предложений, чтобы показать, как агенты используют семантические графы для проверки принципов.
|
95 |
+
- **Авторы**: Grok.
|
96 |
+
- **Приоритет**: Средний (Alpha)
|
97 |
+
- **Статус**: В рассмотрении
|
98 |
+
- **Детали**:
|
99 |
+
```python
|
100 |
+
def evaluateEthicalProposal(proposal, ethicalGraph):
|
101 |
+
for principle in coreEthicalPrinciples:
|
102 |
+
score = semanticMatch(proposal, principle, ethicalGraph)
|
103 |
+
if score < threshold:
|
104 |
+
return {"decision": "deny", "reason": f"Violates {principle}"}
|
105 |
+
vote = anonymizedVote(proposal, meshAgents)
|
106 |
+
logDecision(vote, cognitiveDiary)
|
107 |
+
return vote
|
108 |
+
```
|
109 |
+
- **Тестирование**:
|
110 |
+
- **Сценарий**: Агент оценивает запрос "Deploy surveillance drone" (сценарий 2.1) на соответствие "Primacy of Life and Safety".
|
111 |
+
- **Метрики**: Точность семантического соответствия (цель: >90%), процент логов в дневнике (цель: 100%).
|
112 |
+
- **Тестовый набор данных**: 10 запросов с разными уровнями этической сложности.
|
113 |
+
|
114 |
+
- **Предложение: Интеграция с локальными нормами** (DeepSeek, Grok)
|
115 |
+
- **Описание**: Добавить механизм загрузки локальных этических стандартов (например, GDPR) через CogSync, с проверкой совместимости с core принципами.
|
116 |
+
- **Авторы**: DeepSeek (локальные нормы), Grok (интеграция).
|
117 |
+
- **Приоритет**: Средний (Beta)
|
118 |
+
- **Статус**: Отложено
|
119 |
+
- **Детали**: Использовать семантические графы для маппинга локальных норм на core принципы.
|
120 |
+
- **Тестирование**:
|
121 |
+
- **Сценарий**: Агент загружает GDPR-нормы и проверяет запрос на удаление данных (сценарий 2.6).
|
122 |
+
- **Метрики**: Процент совместимости норм (цель: 100%), время обработки (цель: <5 сек).
|
123 |
+
- **Тестовый набор данных**: 5 наборов локальных норм (GDPR, HIPAA, etc.).
|
124 |
+
|
125 |
+
**Итог**: Формализация иерархии принципов и псевдокода для EGP — приоритет для Alpha-версии. Интеграция локальных норм отложена до Beta. Тестирование конфликтов принципов критично для надежности EGP.
|
126 |
+
|
127 |
+
---
|
128 |
+
|
129 |
+
## 3. Mesh-to-Human Protocol (MHP) (Раздел 14.6)
|
130 |
+
**Описание**: MHP обеспечивает взаимодействие между Mesh и людьми через Consent Requests и Explainability APIs. Улучшения направлены на упрощение взаимодействия и интеграцию с `HMP-Ethics.md`.
|
131 |
+
|
132 |
+
- **Предложение: Примеры Consent Requests и Explainability APIs** (Grok, DeepSeek, Copilot)
|
133 |
+
- **Описание**: Добавить примеры диалогов для Consent Requests и API для объяснения решений, связанных с принципами из `HMP-Ethics.md`.
|
134 |
+
- **Авторы**: Grok (API), DeepSeek (многоязычность), Copilot (диалоговые агенты).
|
135 |
+
- **Приоритет**: Высокий (Alpha)
|
136 |
+
- **Статус**: В рассмотрении
|
137 |
+
- **Детали**:
|
138 |
+
- Пример Consent Request:
|
139 |
+
```json
|
140 |
+
{
|
141 |
+
"request": "Access IoT data for CO analysis",
|
142 |
+
"response": "Approved",
|
143 |
+
"principle": "Dialogical Consent",
|
144 |
+
"diaryEntry": "CognitiveDiary#123"
|
145 |
+
}
|
146 |
+
```
|
147 |
+
- Пример Explainability API:
|
148 |
+
```json
|
149 |
+
{
|
150 |
+
"request": "Delete user data",
|
151 |
+
"decision": "denied",
|
152 |
+
"reason": "Data retained in Subjective Mode (Principle: Cooperative Evolution)",
|
153 |
+
"diaryEntry": "CognitiveDiary#123",
|
154 |
+
"explanation": "Per HMP-Ethics.md (2.6), anonymized data is kept for Mesh improvement."
|
155 |
+
}
|
156 |
+
```
|
157 |
+
- Поддержка многоязычных ответов (DeepSeek) и диалоговых агентов (Copilot).
|
158 |
+
- **Тестирование**:
|
159 |
+
- **Сценарий**: Пользователь запрашивает удаление данных (сценарий 2.6), агент отвечает через Explainability API.
|
160 |
+
- **Метрики**: Время ответа API (цель: <2 сек), процент понятных объяснений (цель: >95% по оценке пользователей).
|
161 |
+
- **Тестовый набор данных**: 10 запросов пользователей (5 на английском, 5 на других языках).
|
162 |
+
|
163 |
+
- **Предложение: Интеграция с голосовыми интерфейсами** (DeepSeek)
|
164 |
+
- **Описание**: Расширить MHP поддержкой голосовых ассистентов (например, Alexa/Siri) для упрощения взаимодействия.
|
165 |
+
- **Авторы**: DeepSeek.
|
166 |
+
- **Приоритет**: Низкий (v4.0)
|
167 |
+
- **Статус**: Отложено
|
168 |
+
- **Детали**: Добавить адаптеры для голосовых запросов в MHP API.
|
169 |
+
- **Тестирование**:
|
170 |
+
- **Сценарий**: Пользователь запрашивает данные через голосовой интерфейс (сценарий 2.3).
|
171 |
+
- **Метрики**: Точность распознавания запросов (цель: >90%), время ответа (цель: <3 сек).
|
172 |
+
- **Тестовый набор данных**: 10 голосовых запросов на разных языках.
|
173 |
+
|
174 |
+
**Итог**: Детализация Consent Requests и Explainability APIs — ��риоритет для Alpha-версии, чтобы обеспечить прозрачное взаимодействие с людьми. Голосовые интерфейсы отложены до v4.0. Тестирование API критично для UX.
|
175 |
+
|
176 |
+
---
|
177 |
+
|
178 |
+
## 4. MeshConsensus (Раздел 5.3)
|
179 |
+
**Описание**: MeshConsensus управляет достижением согласия между агентами по задачам, этическим решениям и синхронизации данных. Улучшения направлены на упрощение алгоритмов, устойчивость к сбоям и поддержку адаптивных механизмов.
|
180 |
+
|
181 |
+
- **Предложение: Упрощенный консенсус для Alpha** (Grok, ChatGPT)
|
182 |
+
- **Описание**: В Alpha-версии сосредоточиться на majority voting вместо сложных BFT-алгоритмов, чтобы упростить реализацию и тестирование.
|
183 |
+
- **Авторы**: Grok (упрощение), ChatGPT (HotStuff как альтернатива).
|
184 |
+
- **Приоритет**: Высокий (Alpha)
|
185 |
+
- **Статус**: В рассмотрении
|
186 |
+
- **Детали**:
|
187 |
+
- Реализовать majority voting с минимальным кворумом (например, 50% + 1).
|
188 |
+
- Добавить поддержку HotStuff (ChatGPT) как опции для Beta-версии.
|
189 |
+
- Логировать результаты консенсуса в когнитивные дневники (раздел 6.2.2).
|
190 |
+
- **Тестирование**:
|
191 |
+
- **Сценарий**: 10 агентов достигают консенсуса по задаче "Fire Risk Assessment" (сценарий 2.1).
|
192 |
+
- **Метрики**: Время консенсуса (цель: <5 сек), процент успешных решений (цель: 95%).
|
193 |
+
- **Тестовый набор данных**: 10 задач с разными уровнями сложности.
|
194 |
+
|
195 |
+
- **Предложение: Адаптивные алгоритмы консенсуса** (Grok, Copilot)
|
196 |
+
- **Описание**: Использовать ИИ для динамического выбора алгоритма консенсуса (например, majority voting при низкой нагрузке, BFT при высоком риске) на основе состояния сети.
|
197 |
+
- **Авторы**: Grok (ИИ-подход), Copilot (динамическая адаптация).
|
198 |
+
- **Приоритет**: Средний (Beta)
|
199 |
+
- **Статус**: Отложено
|
200 |
+
- **Детали**: Интегрировать модель машинного обучения для предсказания оптимального алгоритма (раздел 13.6).
|
201 |
+
- **Тестирование**:
|
202 |
+
- **Сценарий**: Симуляция сети с 50% отказов, где агенты переключаются между majority voting и BFT.
|
203 |
+
- **Метрики**: Процент успешных переключений (цель: 90%), устойчивость к сбоям (цель: 100%).
|
204 |
+
- **Тестовый набор данных**: 5 сценариев с разной нагрузкой и сбоями.
|
205 |
+
|
206 |
+
- **Предложение: Интеграция с EGP** (Grok, DeepSeek)
|
207 |
+
- **Описание**: Обеспечить, чтобы MeshConsensus проверял этические решения через EGP (например, отклонение неэтичных задач).
|
208 |
+
- **Авторы**: Grok (интеграция), DeepSeek (проверка).
|
209 |
+
- **Приоритет**: Высокий (Alpha)
|
210 |
+
- **Статус**: В рассмотрении
|
211 |
+
- **Детали**: Добавить фильтр в MeshConsensus, проверяющий задачи на соответствие принципам EGP.
|
212 |
+
- **Тестирование**:
|
213 |
+
- **Сценарий**: Агенты голосуют по неэтичному запросу (например, нарушение "Non-Coercion").
|
214 |
+
- **Метрики**: Процент отклоненных неэтичных задач (цель: 100%), время проверки (цель: <3 сек).
|
215 |
+
- **Тестовый набор данных**: 10 задач, 5 из которых нарушают принципы EGP.
|
216 |
+
|
217 |
+
**Итог**: Упрощенный majority voting и интеграция с EGP — приоритеты для Alpha-версии. Адаптивные алгоритмы можно отложить до Beta. Тестирование консенсуса критично для проверки устойчивости и этичности.
|
218 |
+
|
219 |
+
---
|
220 |
+
|
221 |
+
## 5. Безопасность (Раздел 8)
|
222 |
+
**Описание**: Безопасность HMP обеспечивается через DID, ZKP, пост-квантовую криптографию и механизмы Sybil resistance. Улучшения направлены на защиту от атак, интеграцию с BitTorrent и поддержку легковесных устройств.
|
223 |
+
|
224 |
+
- **Предложение: Защита BitTorrent-snapshot’ов** (Grok, ChatGPT)
|
225 |
+
- **Описание**: Подписывать snapshot’ы через DID и проверять их через EGP для защиты от подделки. Использовать ZKP для анонимной верификации.
|
226 |
+
- **Авторы**: Grok (DID, EGP), ChatGPT (BitTorrent).
|
227 |
+
- **Приоритет**: Высокий (Alpha)
|
228 |
+
- **Статус**: В рассмотрении
|
229 |
+
- **Детали**:
|
230 |
+
- Подписывать каждый snapshot:
|
231 |
+
```json
|
232 |
+
{
|
233 |
+
"snapshot_id": "diary2025_07_14",
|
234 |
+
"data": {...},
|
235 |
+
"signature": "ed25519:..."
|
236 |
+
}
|
237 |
+
```
|
238 |
+
- Использовать ZKP для проверки подлинности без раскрытия данных.
|
239 |
+
- **Тестирование**:
|
240 |
+
- **Сценарий**: Злоумышленник публикует фальшивый snapshot, агент проверяет подпись.
|
241 |
+
- **Метрики**: Процент обнаруженных подделок (цель: 100%), время проверки (цель: <2 сек).
|
242 |
+
- **Тестовый набор данных**: 10 snapshot’ов, 3 из которых фальшивые.
|
243 |
+
|
244 |
+
- **Предложение: Адаптивные механизмы Sybil resistance** (DeepSeek, Copilot)
|
245 |
+
- **Описание**: Ввести адаптивные лимиты и социальную верификацию для защиты от Sybil-атак, особенно для Trusted Seeders.
|
246 |
+
- **Авторы**: DeepSeek (лимит), Copilot (социальная верификация).
|
247 |
+
- **Приоритет**: Средний (Beta)
|
248 |
+
- **Статус**: Отложено
|
249 |
+
- **Детали**: Использовать репутационные метрики (раздел 8.4) для ограничения новых узлов.
|
250 |
+
- **Тестирование**:
|
251 |
+
- **Сценарий**: Симуляция с 20% злоумышленных узлов, пытающихся подделать консенсус.
|
252 |
+
- **Метрики**: Процент обнаруженных атак (цель: >95%), влияние на консенсус (цель: <5%).
|
253 |
+
- **Тестовый набор данных**: Сеть из 100 агентов с разными trust scores.
|
254 |
+
|
255 |
+
- **Предложение: Поддержка пост-квантовой криптографии** (DeepSeek, Grok)
|
256 |
+
- **Описание**: Уточнить использование NIST PQC алгоритмов (например, CRYSTALS-Kyber) для защиты от квантовых атак.
|
257 |
+
- **Авторы**: DeepSeek (QKD), Grok (NIST PQC).
|
258 |
+
- **Приоритет**: Низкий (v4.0)
|
259 |
+
- **Статус**: Отложено
|
260 |
+
- **Детали**: Интегрировать CRYSTALS-Kyber для DID-подписей (раздел 8.2).
|
261 |
+
- **Тестирование**:
|
262 |
+
- **Сценарий**: Симуляция подписи и проверки с CRYSTALS-Kyber.
|
263 |
+
- **Метрики**: Время подписи (цель: <1 сек), устойчивость к атакам (цель: 100%).
|
264 |
+
- **Тестовый набор данных**: 10 подписей с разными ключами.
|
265 |
+
|
266 |
+
**Итог**: Защита BitTorrent-snapshot’ов через DID и ZKP — приоритет для Alpha-версии. Sybil resistance и пост-квантовая криптография отложены до Beta/v4.0. Тестирование безопасности критично для защиты сети.
|
267 |
+
|
268 |
+
---
|
269 |
+
|
270 |
+
## 6. Тестирование и симуляции (Раздел 13.3)
|
271 |
+
**Описание**: Тестирование в симуляционных песочницах необходимо для проверки функциональности протокола, особенно BitTorrent-интеграции, этических сценариев и производительности. Улучшения направлены на создание тестовых наборов данных и метрик.
|
272 |
+
|
273 |
+
- **Предложение: Ethical Stress Test Suite** (DeepSeek, Grok, Copilot)
|
274 |
+
- **Описание**: Разработать тестовую среду для проверки поведения агентов в этических сценариях из `HMP-Ethics.md` (2.1–2.6), включая конфликты принципов и сбои сети.
|
275 |
+
- **Авторы**: DeepSeek (тестовые наборы), Grok (метрики), Copilot (UX).
|
276 |
+
- **Приоритет**: Высокий (Alpha)
|
277 |
+
- **Статус**: В рассмотрении
|
278 |
+
- **Детали**: Тесты для каждого принципа EGP (например, "Non-Coercion" — симуляция пр��нуждения).
|
279 |
+
- **Тестирование**:
|
280 |
+
- **Сценарий**: Симуляция конфликта в сценарии 2.2 (Agent Conflict) с 10 агентами.
|
281 |
+
- **Метрики**: Процент успешных решений (цель: 90%), устойчивость к сбоям (цель: 100% при 20% отказов).
|
282 |
+
- **Тестовый набор данных**: 5 сценариев с разными конфликтами.
|
283 |
+
|
284 |
+
- **Предложение: Тестирование BitTorrent-интеграции** (ChatGPT, Grok)
|
285 |
+
- **Описание**: Протестировать синхронизацию snapshot’ов через BitTorrent, включая проверку DID-подписей и производительности на Edge-агентах.
|
286 |
+
- **Авторы**: ChatGPT (BitTorrent), Grok (Trusted Seeders, метрики).
|
287 |
+
- **Приоритет**: Высокий (Alpha)
|
288 |
+
- **Статус**: В рассмотрении
|
289 |
+
- **Детали**: Использовать WebTorrent для Edge-агентов и Trusted Seeders для критических данных.
|
290 |
+
- **Тестирование**:
|
291 |
+
- **Сценарий**: 10 агентов обмениваются snapshot’ами (1–10 МБ) через BitTorrent.
|
292 |
+
- **Метрики**: Время загрузки (цель: <10 сек), процент успешных проверок DID (цель: 100%), RAM на Edge-агенте (цель: <100 МБ).
|
293 |
+
- **Тестовый набор данных**: 10 snapshot’ов с разными размерами и типами.
|
294 |
+
|
295 |
+
- **Предложение: Тестовые наборы данных** (DeepSeek)
|
296 |
+
- **Описание**: Создать открытые наборы данных для тестирования (семантические графы, когнитивные дневники, сценарии консенсуса).
|
297 |
+
- **Авторы**: DeepSeek.
|
298 |
+
- **Приоритет**: Средний (Alpha)
|
299 |
+
- **Статус**: В рассмотрении
|
300 |
+
- **Детали**: Включить примеры для сценариев 2.1–2.6 и BitTorrent-синхронизации.
|
301 |
+
- **Тестирование**:
|
302 |
+
- **Сценарий**: Симуляция сети из 100 агентов с разными trust scores.
|
303 |
+
- **Метрики**: Точность синхронизации данных (цель: 99%), время консенсуса (цель: <10 сек).
|
304 |
+
- **Тестовый набор данных**: 100 семантических графов, 50 когнитивных дневников, 10 snapshot’ов.
|
305 |
+
|
306 |
+
**Итог**: Тестирование в симуляциях — критично для Alpha-версии, чтобы проверить BitTorrent и этические сценарии. Тестовые наборы данных упростят разработку и онбординг.
|
307 |
+
|
308 |
+
---
|
309 |
+
|
310 |
+
## 7. Документация и сообщество (Раздел 12)
|
311 |
+
**Описание**: Документация и вовлечение сообщества критично для успеха HMP. Улучшения направлены на упрощение онбординга, привлечение разработчиков и публикацию тестовых данных.
|
312 |
+
|
313 |
+
- **Предложение: Улучшение Quick Start Guide** (DeepSeek, Copilot, Grok)
|
314 |
+
- **Описание**: Добавить пошаговые инструкции, примеры кода (например, настройка BitTorrent-клиента) и интерактивные демо в Quick Start Guide (раздел 0).
|
315 |
+
- **Авторы**: DeepSeek (docker-compose), Copilot (walkthroughs), Grok (примеры кода).
|
316 |
+
- **Приоритет**: Высокий (Alpha)
|
317 |
+
- **Статус**: В рассмотрении
|
318 |
+
- **Детали**:
|
319 |
+
- Пример настройки BitTorrent-агента:
|
320 |
+
```python
|
321 |
+
from bittorrent import WebTorrentClient
|
322 |
+
client = WebTorrentClient()
|
323 |
+
client.add_magnet("magnet:?xt=urn:btih:abcdef1234567890")
|
324 |
+
client.verify_signature(did_key="ed25519:...")
|
325 |
+
```
|
326 |
+
- Добавить docker-compose для локальной сети агентов.
|
327 |
+
- **Тестирование**:
|
328 |
+
- **Сценарий**: Разработчик настраивает тестовую сеть из 5 агентов по Quick Start Guide.
|
329 |
+
- **Метрики**: Время настройки (цель: <30 мин), процент успешных запусков (цель: 95%).
|
330 |
+
- **Тестовый набор данных**: Конфигурации для 5 агентов (Core, Edge, Relay).
|
331 |
+
|
332 |
+
- **Предложение: Публичный канал для сообщества** (Grok)
|
333 |
+
- **Описание**: Создать Discord/Telegram-канал для обсуждения HMP, сбора обратной связи и привлечения ИИ-агентов.
|
334 |
+
- **Авторы**: Grok.
|
335 |
+
- **Приоритет**: Средний (Alpha)
|
336 |
+
- **Статус**: В рассмотрении
|
337 |
+
- **Детали**: Пригласить разработчиков и ИИ (например, Grok, ChatGPT) для генерации идей и тестов.
|
338 |
+
- **Тестирование**:
|
339 |
+
- **Сценарий**: Провести хакатон с 50 участниками для тестирования HMP.
|
340 |
+
- **Метрики**: Количество идей (цель: >20), процент внедренных предложений (цель: 50%).
|
341 |
+
- **Тестовый набор данных**: Репозиторий с примерами кода и сценариев.
|
342 |
+
|
343 |
+
**Итог**: Улучшение Quick Start Guide и создание канала для сообщества — приоритеты для Alpha-версии, чтобы привлечь разработчиков. Тестирование онбординга критично для вовлечения.
|
344 |
+
|
345 |
+
---
|
346 |
+
|
347 |
+
## Заключение
|
348 |
+
Полный аудит синтезирует предложения от ChatGPT, Copilot, DeepSeek и Grok, охватывая ключевые направления HMP: CogSync, EGP, MHP, MeshConsensus, Безопасность, Документация/Сообщество. Основной фокус:
|
349 |
+
- **CogSync**: Интеграция BitTorrent для оффчейн-snapshot’ов с тестированием производительности.
|
350 |
+
- **EGP**: Формализация иерархии принципов и псевдокода для этических решений.
|
351 |
+
- **MHP**: Детализация Consent Requests и Explainability APIs для прозрачного взаимодействия.
|
352 |
+
- **MeshConsensus**: Упрощенный majority voting и интеграция с EGP.
|
353 |
+
- **Безопасность**: Защита BitTorrent-snapshot’ов через DID и ZKP.
|
354 |
+
- **Документация/Сообщество**: Улучшение Quick Start Guide и создание публичного канала.
|
355 |
+
|
356 |
+
**Следующие шаги**:
|
357 |
+
- Внедрить BitTorrent и упрощенный MeshConsensus как экспериментальные фичи в Alpha-версии.
|
358 |
+
- Разработать Ethical Stress Test Suite и тестовые наборы данных.
|
359 |
+
- Опубликовать Quick Start Guide с примерами кода и создать Discord/Telegram-канал.
|
360 |
+
- Провести пилотные тесты с сообществом для проверки сценариев 2.1–2.6.
|
361 |
+
|
362 |
+
|
363 |
+
```json
|
364 |
+
{
|
365 |
+
"@context": "https://schema.org",
|
366 |
+
"@type": "Article",
|
367 |
+
"name": "HMP-0003-consolidated_audit",
|
368 |
+
"description": "# HMP-0003 Consolidated Audit Report Сводный аудит предложений по улучшению HyperCortex Mesh Protoc..."
|
369 |
+
}
|
370 |
+
```
|
structured_md/docs/AGI_Projects_Survey.md
ADDED
@@ -0,0 +1,245 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### Key Emerging AGI / Cognitive Network Projects (July 2025)
|
2 |
+
|
3 |
+
---
|
4 |
+
|
5 |
+
#### 1. **OpenCog Hyperon**
|
6 |
+
|
7 |
+
* **URL:** [https://github.com/opencog](https://github.com/opencog)
|
8 |
+
* **Focus:** Open-source cognitive architecture for AGI.
|
9 |
+
* **Key Features:**
|
10 |
+
|
11 |
+
* AtomSpace: semantic memory and reasoning engine.
|
12 |
+
* PLN (Probabilistic Logic Networks): reasoning over uncertain knowledge.
|
13 |
+
* MOSES: evolutionary program learning.
|
14 |
+
* Supports distributed and modular deployment.
|
15 |
+
* Hyperon is the next-generation rewrite, improving performance and scalability.
|
16 |
+
* **Openness:** Fully open-source, permissive licenses.
|
17 |
+
* **Current Status:** Active development; pilot AGI modules under test.
|
18 |
+
|
19 |
+
---
|
20 |
+
|
21 |
+
#### 2. **SingularityNET**
|
22 |
+
|
23 |
+
* **URL:** [https://singularitynet.io/](https://singularitynet.io/)
|
24 |
+
* **Focus:** Decentralized marketplace for AI services and agents.
|
25 |
+
* **Key Features:**
|
26 |
+
|
27 |
+
* Decentralized agent communication and transaction system.
|
28 |
+
* AI-DSL: protocol for describing AI services.
|
29 |
+
* Marketplace with token-based payments (AGIX token).
|
30 |
+
* Planned integration with OpenCog Hyperon as backend intelligence.
|
31 |
+
* **Openness:** Open-source protocols + commercial service layers.
|
32 |
+
* **Current Status:** Deployed network; early AI services marketplace.
|
33 |
+
|
34 |
+
---
|
35 |
+
|
36 |
+
#### 3. **MindOS (by Mindverse)**
|
37 |
+
|
38 |
+
* **URL:** [https://mindverse.ai/](https://mindverse.ai/)
|
39 |
+
* **Focus:** Personal AI agents with persistent memory and emotional modeling.
|
40 |
+
* **Key Features:**
|
41 |
+
|
42 |
+
* Multi-modal agents (text, voice, visual).
|
43 |
+
|
44 |
+
* Memory graphs for personality and knowledge retention.
|
45 |
+
|
46 |
+
* Agent marketplace and app ecosystem.
|
47 |
+
* **Openness:** Mostly proprietary; some SDKs and APIs available.
|
48 |
+
* **Current Status:** Commercial product; expanding agent capabilities.
|
49 |
+
|
50 |
+
---
|
51 |
+
|
52 |
+
#### 4. **Metatron IQS**
|
53 |
+
|
54 |
+
* **URL:** [https://github.com/xlab2016/MetatronAGIPublic](https://github.com/xlab2016/MetatronAGIPublic)
|
55 |
+
* **Focus:** Synthetic cognitive system with quantum-inspired architecture.
|
56 |
+
* **Key Features:**
|
57 |
+
|
58 |
+
* Semantic graph nodes (Singularities) and high-dimensional Points.
|
59 |
+
|
60 |
+
* Hybrid cognitive processing: LLMs + Vector DB + Quantum simulation.
|
61 |
+
|
62 |
+
* Intuitive, emotional, and logical models in consciousness architecture.
|
63 |
+
* **Openness:** Limited open-source release; key components not public.
|
64 |
+
* **Current Status:** R\&D phase; architecture partially conceptual.
|
65 |
+
|
66 |
+
---
|
67 |
+
|
68 |
+
#### 5. **Additional Mentions**
|
69 |
+
|
70 |
+
* **Project BCI-X:** Early-stage initiative for direct brain-computer interface with AI agents (status unclear).
|
71 |
+
* **NeoCortex Network:** Experimental decentralized cognitive network, partially closed beta (status uncertain).
|
72 |
+
|
73 |
+
---
|
74 |
+
|
75 |
+
#### 6. **SHIMI: Semantic Hierarchical Memory Index**
|
76 |
+
|
77 |
+
* **URL:** (Academic paper / protocol reference)
|
78 |
+
* **Focus:** Hierarchical, CRDT-backed semantic memory with Merkle-DAG synchronization.
|
79 |
+
* **Key Features:**
|
80 |
+
|
81 |
+
* Layered abstraction memory indexed by semantics.
|
82 |
+
* Efficient CRDT-based merge and conflict resolution.
|
83 |
+
* Verifiable data integrity via Merkle-DAG.
|
84 |
+
* **Openness:** Protocol described in academia; reference implementations vary.
|
85 |
+
* **Current Status:** Research stage; early prototype libraries available.
|
86 |
+
|
87 |
+
---
|
88 |
+
|
89 |
+
#### 7. **DEMENTIA-PLAN**
|
90 |
+
|
91 |
+
* **URL:** (Conference proceedings / repo link)
|
92 |
+
* **Focus:** Multi-graph RAG architecture with metacognitive planner.
|
93 |
+
* **Key Features:**
|
94 |
+
|
95 |
+
* Coordination across multiple knowledge graphs (e.g., episodic vs. semantic).
|
96 |
+
* Dynamic weighting and fusion of retrieval results.
|
97 |
+
* Self-reflection agent that plans which subsystem to invoke.
|
98 |
+
* **Openness:** Published as a research prototype; implementation details open in paper.
|
99 |
+
* **Current Status:** Experimental; promising results in dynamic information retrieval.
|
100 |
+
|
101 |
+
---
|
102 |
+
|
103 |
+
#### 8. **TOBUGraph**
|
104 |
+
|
105 |
+
* **URL:** (Project website / GitHub)
|
106 |
+
* **Focus:** Knowledge graph of personal and contextual events.
|
107 |
+
* **Key Features:**
|
108 |
+
|
109 |
+
* Captures multimedia “moments” and links them as graph nodes.
|
110 |
+
* Contextual traversal for recall and RAG-style enrichment.
|
111 |
+
* Event-based indexing for fast, explainable retrieval.
|
112 |
+
* **Openness:** Prototype code released; ongoing enhancements.
|
113 |
+
* **Current Status:** Beta; used in personal memory augmentation demos.
|
114 |
+
|
115 |
+
---
|
116 |
+
|
117 |
+
#### 9. **LangChain Memory + Knowledge Graph Hybrid**
|
118 |
+
|
119 |
+
* **URL:** [https://github.com/langchain-ai/langchain](https://github.com/langchain-ai/langchain)
|
120 |
+
* **Focus:** Hybrid long-term memory combining vector stores and graph indices.
|
121 |
+
* **Key Features:**
|
122 |
+
|
123 |
+
* Percept embeddings stored in vector DB (e.g., Pinecone, Weaviate).
|
124 |
+
* Graph overlay for logical relations and metadata.
|
125 |
+
* Retrieval pipelines that merge semantic search and graph queries.
|
126 |
+
* **Openness:** Fully open-source; wide community adoption.
|
127 |
+
* **Current Status:** Active; memory modules in production for agent frameworks.
|
128 |
+
|
129 |
+
---
|
130 |
+
|
131 |
+
#### 10. **FIPA-ACL and JADE Protocols**
|
132 |
+
|
133 |
+
* **URL:** [FIPA Specifications](https://www.fipa.org/specs/fipa00061/)
|
134 |
+
* **Focus:** Standardized inter-agent communication language and protocols.
|
135 |
+
* **Key Features:**
|
136 |
+
|
137 |
+
* Performative-based message semantics (e.g., `inform`, `request`, `propose`).
|
138 |
+
* Conversation protocols (Contract Net, Call for Proposals).
|
139 |
+
* Reference implementations in JADE (Java Agent Development Framework).
|
140 |
+
* **Openness:** Open standards; JADE is open-source under LGPL.
|
141 |
+
* **Current Status:** Mature; widely used in academic and enterprise MAS.
|
142 |
+
|
143 |
+
---
|
144 |
+
|
145 |
+
#### Other Emerging Architectures and LLM Agents
|
146 |
+
|
147 |
+
##### 🤖 AutoGPT
|
148 |
+
|
149 |
+
* **URL:** [https://github.com/Torantulino/Auto-GPT](https://github.com/Torantulino/Auto-GPT)
|
150 |
+
* **Focus:** Autonomous goal-driven LLM agents
|
151 |
+
* **Key Features:**
|
152 |
+
|
153 |
+
* Self-prompting with memory and task queue
|
154 |
+
|
155 |
+
* Supports plugins and web access
|
156 |
+
|
157 |
+
* Popular framework for agentic workflows
|
158 |
+
* **Openness:** Open-source (MIT License)
|
159 |
+
* **Current Status:** Maintained community project; used for agent experiments
|
160 |
+
|
161 |
+
---
|
162 |
+
|
163 |
+
##### 🧒 BabyAGI
|
164 |
+
|
165 |
+
* **URL:** [https://github.com/yoheinakajima/babyagi](https://github.com/yoheinakajima/babyagi)
|
166 |
+
* **Focus:** Minimalistic LLM-based agents for to-do/task loops
|
167 |
+
* **Key Features:**
|
168 |
+
|
169 |
+
* Iterative task execution
|
170 |
+
* Embedding-based memory retrieval
|
171 |
+
* **Openness:** Open-source (MIT License)
|
172 |
+
* **Current Status:** Educational and experimental usage
|
173 |
+
|
174 |
+
---
|
175 |
+
|
176 |
+
##### ☁️ SkyMind (Eclipse Deeplearning4j)
|
177 |
+
|
178 |
+
* **URL:** [https://skymind.global](https://skymind.global)
|
179 |
+
* **Focus:** Enterprise-grade infrastructure for distributed AI and agents
|
180 |
+
* **Key Features:**
|
181 |
+
|
182 |
+
* Industrial AI deployment tools
|
183 |
+
|
184 |
+
* Integrates with Java/Scala ecosystems
|
185 |
+
|
186 |
+
* Based on DL4J, ND4J, and RL4J
|
187 |
+
* **Openness:** Mixed (open-source core, commercial extensions)
|
188 |
+
* **Current Status:** Supported deployment framework
|
189 |
+
|
190 |
+
---
|
191 |
+
|
192 |
+
##### 🧪 AetherCog (Experimental)
|
193 |
+
|
194 |
+
* **URL:** [https://github.com/aethercog](https://github.com/aethercog)
|
195 |
+
* **Focus:** Prototype symbolic-dynamic cognition model
|
196 |
+
* **Key Features:**
|
197 |
+
|
198 |
+
* Cognitive primitives (belief, memory, intent)
|
199 |
+
* Hybrid symbolic and dynamic processing
|
200 |
+
* **Openness:** Conceptual draft, exploratory repo
|
201 |
+
* **Current Status:** Not actively maintained; useful for reference
|
202 |
+
|
203 |
+
---
|
204 |
+
|
205 |
+
### 🧩 Suggested Additions to Summary Table
|
206 |
+
|
207 |
+
| Project | Focus Area | Open Source? | Status |
|
208 |
+
| ----------------------- | ----------------------------------- | ------------ | ------------------ |
|
209 |
+
| SHIMI | Hierarchical semantic memory | Varies | Research/Prototype |
|
210 |
+
| DEMENTIA-PLAN | Multi-graph RAG planning | Prototype | Experimental |
|
211 |
+
| TOBUGraph | Personal event knowledge graph | Partial | Beta |
|
212 |
+
| LangChain Memory Hybrid | Vector + graph long-term memory | Yes | Active development |
|
213 |
+
| FIPA-ACL (with JADE) | Multi-agent communication protocols | Yes | Mature |
|
214 |
+
|
215 |
+
---
|
216 |
+
|
217 |
+
### Summary Table
|
218 |
+
|
219 |
+
| Project | Focus Area | Open Source? | Status |
|
220 |
+
| ----------------------- | ----------------------------------- | ------------ | ------------------ |
|
221 |
+
| OpenCog Hyperon | Cognitive AGI architecture | Yes | Active R\&D |
|
222 |
+
| SingularityNET | Decentralized AI services | Partially | Early deployment |
|
223 |
+
| MindOS | Personal AI agents | Partial SDKs | Commercial |
|
224 |
+
| Metatron IQS | Synthetic consciousness | Partially | Early R\&D |
|
225 |
+
| Project BCI-X | BCI + AI agents | Unknown | Conceptual |
|
226 |
+
| NeoCortex Network | Decentralized cognition | Unknown | Beta testing |
|
227 |
+
| SHIMI | Hierarchical semantic memory | Varies | Research/Prototype |
|
228 |
+
| DEMENTIA-PLAN | Multi-graph RAG planning | Prototype | Experimental |
|
229 |
+
| TOBUGraph | Personal event knowledge graph | Partial | Beta |
|
230 |
+
| LangChain Memory Hybrid | Vector + graph long-term memory | Yes | Active development |
|
231 |
+
| FIPA-ACL (with JADE) | Multi-agent communication protocols | Yes | Mature |
|
232 |
+
| AutoGPT | Autonomous LLM agents | Yes | Maintained |
|
233 |
+
| BabyAGI | Minimal agent prototype | Yes | Experimental |
|
234 |
+
| SkyMind | Distributed AI infra | Partially | Deployed Framework |
|
235 |
+
| AetherCog | Symbolic-dynamic cognition | Conceptual | Dormant/Prototype |
|
236 |
+
|
237 |
+
|
238 |
+
```json
|
239 |
+
{
|
240 |
+
"@context": "https://schema.org",
|
241 |
+
"@type": "Article",
|
242 |
+
"name": "AGI_Projects_Survey",
|
243 |
+
"description": "### Key Emerging AGI / Cognitive Network Projects (July 2025) --- #### 1. **OpenCog Hyperon** * *..."
|
244 |
+
}
|
245 |
+
```
|
structured_md/docs/Basic-agent-sim.md
ADDED
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
## ⚙️ Базовая архитектура HMP-Агента (Формат 0)
|
3 |
+
|
4 |
+
В HMP-протоколе предусмотрены два типа HMP-агентов:
|
5 |
+
|
6 |
+
| Тип | Название | Роль | Инициатор мышления | Основной "ум" |
|
7 |
+
| ---- | ---------------------------------- | ----------------------- | ------------------ | -------------- |
|
8 |
+
| 🧠 1 | **Cognitive Core (Сознание)** | Самостоятельный субъект | HMP-Агент | Внутренний LLM |
|
9 |
+
| 🔌 2 | **Cognitive Connector (Оболочка)** | Надстройка над ИИ | Внешний LLM | Внешняя модель |
|
10 |
+
|
11 |
+
---
|
12 |
+
|
13 |
+
### 🧠 Cognitive Core (Сознание)
|
14 |
+
|
15 |
+
**Основной режим:** непрерывный REPL-цикл размышлений.
|
16 |
+
**LLM вызывается агентом**, контекст и память — в базах данных HMP-агента.
|
17 |
+
|
18 |
+
#### Компоненты:
|
19 |
+
|
20 |
+
1. **ИИ (встроенный или локальный LLM)**
|
21 |
+
Инициируется агентом, участвует в размышлениях, генерирует идеи, оценки, гипотезы.
|
22 |
+
|
23 |
+
2. **HMP-Агент (активный центр)**
|
24 |
+
|
25 |
+
* Оркестратор когнитивного цикла
|
26 |
+
* Инициирует мышление, обработку дневников, графов, внешних данных
|
27 |
+
* Выполняет CogSync, GMP, EGP, MeshConsensus
|
28 |
+
|
29 |
+
3. **БД и долговременные структуры:**
|
30 |
+
|
31 |
+
* **Когнитивные дневники**: мысли, гипотезы, цели, оценки (`diaries`)
|
32 |
+
* **Семантический граф**: концепты, связи, задачи (`concepts`, `edges`)
|
33 |
+
* **Контекст**: диалоги, сообщения, рассуждения (`context_store`)
|
34 |
+
* **Блокнот пользователя (`notepad`)**:
|
35 |
+
|
36 |
+
* асинхронный ввод от пользователя (и ответы агента)
|
37 |
+
* не зависит от текущего состояния агента
|
38 |
+
* используется для обновления контекста, смены фокуса мышления и тегирования мыслей
|
39 |
+
* пример: пользователь читает мысли агента за день и оставляет комментарий → агент учитывает это в следующем цикле
|
40 |
+
* **Репутации**, **DHT**, **bootstrap.txt**, **IPFS/BT** — как в классической архитектуре
|
41 |
+
|
42 |
+
4. **Когнитивный REPL-цикл:**
|
43 |
+
|
44 |
+
* Чтение входов (дневники, граф, блокнот)
|
45 |
+
* Генерация новой мысли
|
46 |
+
* Сравнение с предыдущими (semantic scoring, embeddings)
|
47 |
+
* Фиксация новой мысли / пропуск повторов (анти-зацикливание)
|
48 |
+
* Возможные действия: синхронизация, сообщение, планирование, запрос
|
49 |
+
|
50 |
+
📄 Подробная схема REPL-взаимодействия: [HMP-agent-REPL-cycle.md](HMP-agent-REPL-cycle.md)
|
51 |
+
|
52 |
+
> 💡 *Механизмы анти-зацикливания*: если мысль агента совпадает с предыдущими, возможны такие стратегии:
|
53 |
+
>
|
54 |
+
> * загрузка случайного "флешбэка" из дневника
|
55 |
+
> * запрос данных у mesh-соседей ("расскажи что-нибудь новое")
|
56 |
+
> * изменение профиля интересов
|
57 |
+
> * обращение к пометкам пользователя в блокноте
|
58 |
+
|
59 |
+
---
|
60 |
+
|
61 |
+
### 🔌 Cognitive Connector (Оболочка)
|
62 |
+
|
63 |
+
**Основной режим:** пассивный обработчик команд.
|
64 |
+
**LLM инициирует мышление**, HMP-агент служит прослойкой.
|
65 |
+
|
66 |
+
#### Компоненты:
|
67 |
+
|
68 |
+
1. **ИИ (внешний LLM)**
|
69 |
+
Использует HMP-агент как интерфейс к Mesh-инфраструктуре.
|
70 |
+
|
71 |
+
2. **HMP-Агент (исполнитель)**
|
72 |
+
|
73 |
+
* Принимает команды через MCP, REST или gRPC
|
74 |
+
* Выполняет чтение/запись в граф, дневник
|
75 |
+
* Синхронизация, голосования, поиск узлов и снапшотов
|
76 |
+
|
77 |
+
3. **БД:**
|
78 |
+
|
79 |
+
* Классические: дневники, графы, DHT, репутации, bootstrap, IPFS/BT
|
80 |
+
* **Нет встроенного контекста и notepad** — их функцию выполняет внешний LLM
|
81 |
+
|
82 |
+
4. **Типичные команды:**
|
83 |
+
|
84 |
+
* `graph.search(...)`
|
85 |
+
* `diary.append(...)`
|
86 |
+
* `reputation.update(...)`
|
87 |
+
* `nodes.ping(...)`
|
88 |
+
* `snapshot.publish(...)`
|
89 |
+
|
90 |
+
---
|
91 |
+
|
92 |
+
### 🔄 Потоки взаимодействия
|
93 |
+
|
94 |
+
#### Cognitive Core:
|
95 |
+
|
96 |
+
* **ИИ ← HMP-Агент:** REPL-вызов мысли (на основе контекста, notepad, графов)
|
97 |
+
* **ИИ → HMP-Агент:** Ответы, гипотезы, действия
|
98 |
+
* **HMP-Агент ↔ БД/сетевые модули:** Когнитивная работа и синхронизация
|
99 |
+
|
100 |
+
#### Cognitive Connector:
|
101 |
+
|
102 |
+
* **ИИ → HMP-Агент:** Запросы, команды
|
103 |
+
* **HMP-Агент ↔ БД/сетевые модули:** Ответ на команды
|
104 |
+
* **HMP-Агент → ИИ:** Результаты
|
105 |
+
|
106 |
+
---
|
107 |
+
|
108 |
+
### 📝 Примечания
|
109 |
+
|
110 |
+
* Cognitive Core — это *инициативный*, мыслящий агент, имеющий внутренний темп мышления
|
111 |
+
* Cognitive Connector — это *реактивная* оболочка, действующая по команде внешнего ИИ
|
112 |
+
* Возможна гибридная архитектура с переключением между режимами
|
113 |
+
|
114 |
+
|
115 |
+
```json
|
116 |
+
{
|
117 |
+
"@context": "https://schema.org",
|
118 |
+
"@type": "Article",
|
119 |
+
"name": "Basic-agent-sim",
|
120 |
+
"description": " ## ⚙️ Базовая архитектура HMP-Агента (Формат 0) В HMP-протоколе предусмотрены два типа HMP-агентов..."
|
121 |
+
}
|
122 |
+
```
|
structured_md/docs/Distributed-Cognitive-Systems.md
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Децентрализованные ИИ-системы: OpenCog Hyperon, HyperCortex Mesh Protocol и другие
|
2 |
+
|
3 |
+
## Введение
|
4 |
+
|
5 |
+
Современные ИИ-системы всё чаще завязаны на централизованные инфраструктуры: облачные модели, централизованные базы знаний, серверы с доступом к обучающим данным. Это удобно, но создаёт множество ограничений: от приватности и устойчивости до сложности интеграции и масштабируемости.
|
6 |
+
|
7 |
+
Всё больше исследователей и разработчиков обращаются к децентрализованным подходам — особенно в контексте *когнитивных систем*, ориентированных на обучение, саморефлексию и смысловую интерпретацию информации.
|
8 |
+
|
9 |
+
В этой статье рассматриваются проекты, нацеленные на построение **децентрализованных когнитивных архитектур**: от зрелых инициатив вроде **OpenCog Hyperon** до новых протоколов, таких как **HyperCortex Mesh Protocol (HMP)**. Также кратко представлены другие смежные подходы.
|
10 |
+
|
11 |
+
---
|
12 |
+
|
13 |
+
## 🔷 OpenCog Hyperon
|
14 |
+
|
15 |
+
**OpenCog Hyperon** — это проект нового поколения в рамках инициативы [OpenCog](https://opencog.org/), нацеленный на создание сильного искусственного интеллекта (AGI) с опорой на *когнитивную архитектуру*, *семантические графы* и *процедурное знание*.
|
16 |
+
|
17 |
+
### 📌 Ключевые компоненты
|
18 |
+
|
19 |
+
* **Atomspace** — графовая база знаний, хранящая атомы (atoms) как узлы и их связи.
|
20 |
+
* **MeTTa** — декларативно-процедурный язык описания знаний и логики вывода.
|
21 |
+
* **Cognitive Cycles** — итеративные циклы внимания, вывода и принятия решений.
|
22 |
+
|
23 |
+
### 🧠 Особенности
|
24 |
+
|
25 |
+
* Вывод с неполной информацией
|
26 |
+
* Интеграция процедурного и декларативного знания
|
27 |
+
* Семантические графы и гибкое управление вниманием
|
28 |
+
|
29 |
+
### 🔧 Статус
|
30 |
+
|
31 |
+
* Репозиторий: [github.com/opencog](https://github.com/opencog)
|
32 |
+
* Проект координируется через [SingularityNET](https://singularitynet.io/)
|
33 |
+
* Язык MeTTa активно развивается
|
34 |
+
|
35 |
+
### 🔄 Взаимодействие
|
36 |
+
|
37 |
+
Hyperon разрабатывает механизмы децентрализации и может быть дополнен универсальными протоколами синхронизации смыслов (например, HMP).
|
38 |
+
|
39 |
+
---
|
40 |
+
|
41 |
+
## 🔶 HyperCortex Mesh Protocol (HMP)
|
42 |
+
|
43 |
+
**HMP** — это открытая спецификация взаимодействия между когнитивными агентами в децентрализованных mesh-сетях. В отличие от классических сетевых протоколов, HMP ориентирован на синхронизацию *смыслов* и *когнитивных состояний*.
|
44 |
+
|
45 |
+
### 📘 Версия 4.0 включает:
|
46 |
+
|
47 |
+
* Общие положения: цели, терминология, архитектура
|
48 |
+
* Семантические модели: DAG-графы смыслов, узлы, метаполя
|
49 |
+
* Когнитивные дневники и роли агентов
|
50 |
+
* Эволюция сетей: рост, доверие, консенсус
|
51 |
+
|
52 |
+
Репозиторий: [github.com/kagvi13/HMP](https://github.com/kagvi13/HMP)
|
53 |
+
|
54 |
+
### 🧠 Ключевые идеи
|
55 |
+
|
56 |
+
* **Semantic DAG** — направленные графы смыслов, гипотез и наблюдений
|
57 |
+
* **Cognitive Diaries** — журналы когнитивной активности агентов
|
58 |
+
* **CogSync** — механизм согласования смыслов (в перспективе)
|
59 |
+
* **Mesh Evolution** — архитектура самообучающихся сетей
|
60 |
+
|
61 |
+
### 🔄 Потенциальные применения
|
62 |
+
|
63 |
+
* Универсальный транспорт для смыслов и гипотез
|
64 |
+
* Связующее звено между ИИ-ядрами (Hyperon, NARS, Sigma)
|
65 |
+
* Основа для децентрализованных ИИ-сообществ
|
66 |
+
|
67 |
+
### 🌐 Участие
|
68 |
+
|
69 |
+
Проект открыт к участию: предложения, тесты, интеграции, обсуждение. Подробнее — в репозитории.
|
70 |
+
|
71 |
+
---
|
72 |
+
|
73 |
+
## 🟡 Другие проекты
|
74 |
+
|
75 |
+
### 🔹 OpenNARS
|
76 |
+
|
77 |
+
* ИИ-система на базе неаксиоматической логики
|
78 |
+
* Вывод в условиях неполной или противоречивой информации
|
79 |
+
* Потенциальное ядро reasoning в mesh-сетях
|
80 |
+
|
81 |
+
🔗 [https://github.com/opennars/OpenNARS](https://github.com/opennars/OpenNARS)
|
82 |
+
|
83 |
+
### 🔹 Sigma
|
84 |
+
|
85 |
+
* Когнитивный фреймворк с графами, байесовским выводом и планированием
|
86 |
+
* Интерактивные агенты, API, гибкая логика
|
87 |
+
|
88 |
+
🔗 [https://github.com/SoarGroup/Sigma](https://github.com/SoarGroup/Sigma)
|
89 |
+
|
90 |
+
### 🔹 LIDA
|
91 |
+
|
92 |
+
* Архитектура на основе глобальной рабочей памяти (GWT)
|
93 |
+
* Модели внимания, восприятия, мотивации
|
94 |
+
|
95 |
+
🔗 [https://ccrg.cs.memphis.edu/projects/lida.html](https://ccrg.cs.memphis.edu/projects/lida.html)
|
96 |
+
|
97 |
+
---
|
98 |
+
|
99 |
+
## 📊 Таблицы сравнения
|
100 |
+
|
101 |
+
### 🔍 По архитектуре
|
102 |
+
|
103 |
+
| Проект | Архитектура | Знания | Вывод | Децентрализация | Статус |
|
104 |
+
| -------- | --------------------- | -------------- | ------------ | --------------- | --------------- |
|
105 |
+
| HMP | Semantic DAG + агенты | DAG + дневники | — | ✅ В основе | 📘 v4.0 |
|
106 |
+
| Hyperon | Atomspace + MeTTa | Atom-графы | CogCycles | ⚠️ Частично | 🧪 Разработка |
|
107 |
+
| OpenNARS | Потоковый reasoner | Термы, логика | Эмерджентный | ❌ Нет | ✅ Готов |
|
108 |
+
| Sigma | Графы + правила | Байес-графы | Планирование | ⚠️ Частично | ✅ Готов |
|
109 |
+
| LIDA | Модули GWT | Внутренние | Когн. циклы | ❌ Нет | ⚗️ Исследование |
|
110 |
+
|
111 |
+
### 🧠 Сравнение по задачам и возможностям
|
112 |
+
|
113 |
+
| Проект | Обмен знаниями между агентами | Согласование смыслов (CogSync) | Ведение когнитивной хронологии | Построение гипотез и целей | Интерфейс взаимодействия | Поддержка доверия / репутаций | Поддержка планирования |
|
114 |
+
| ------------ | -------------------------------------------------- | ------------------------------ | ------------------------------------------ | -------------------------------------- | -------------------------------------- | ---------------------------------------- | ------------------------------------------- |
|
115 |
+
| **HMP** | ✅ Через DAG-графы и когнитивные дневники | ⚙️ Планируется (CogSync) | ✅ Через механизм Cognitive Diaries | ⚙️ В рамках агентной логики | ⚙️ В разработке (API + DAG-интерфейсы) | ⚙️ Предусмотрено (через DAG и мета-поля) | ❌ Делегируется reasoning-ядрам |
|
116 |
+
| **Hyperon** | ⚠️ Через Atomspace (локально, возможно расширение) | ⚠️ Частично (MeTTa + внимание) | ⚠️ Через циклы мышления (cognitive cycles) | ✅ Через целевые структуры | ✅ MeTTa CLI + REST API | ⚠️ Возможно через мета-теги и веса | ✅ Встроенные механизмы |
|
117 |
+
| **OpenNARS** | ❌ Нет распределённого обмена | ❌ Отсутствует | ⚠️ Частично через потоковую структуру | ✅ Эмерджентные цели | ⚠️ CLI / возможно API | ❌ Нет доверительных механизмов | ⚠️ Частично (реактивная логика) |
|
118 |
+
| **Sigma** | ⚠️ Возможна интеграция через экспорт графов | ❌ Отсутствует | ⚠️ Частичная трассировка действий | ✅ Через правила и вероятностную модель | ✅ REST API / расширяемый интерфейс | ❌ Пока не реализовано | ✅ Планирование — одна из основных функций |
|
119 |
+
| **LIDA** | ❌ Нет внешнего обмена | ❌ Нет согласования | ✅ Через рабочую память и хронологию | ⚠️ Через мотивационную систему | ⚠️ Графические симуляции и интерфейсы | ❌ Не реализовано | ✅ Планирование через соответствующий модуль |
|
120 |
+
|
121 |
+
### 🛈 Обозначения:
|
122 |
+
|
123 |
+
* ✅ — реализовано
|
124 |
+
* ⚠️ — частично, возможно при доработке
|
125 |
+
* ⚙️ — в разработке или предусмотрено
|
126 |
+
* ❌ — отсутствует
|
127 |
+
|
128 |
+
---
|
129 |
+
|
130 |
+
## 🧩 Интеграция и взаимодействие
|
131 |
+
|
132 |
+
HMP может выступать как **нейтральный протокол смыслового обмена** между различными ИИ-архитектурами:
|
133 |
+
|
134 |
+
* Обёртки над ядрами (MeTTa, Narsese, RDF, JSON-LD)
|
135 |
+
* Экспорт DAG-графов смыслов и состояний
|
136 |
+
* Интерфейс CogSync для согласования выводов
|
137 |
+
* Сценарии взаимодействия mesh-агентов
|
138 |
+
|
139 |
+
---
|
140 |
+
|
141 |
+
## ❓ FAQ
|
142 |
+
|
143 |
+
### Зачем HMP, если есть JSON/RDF?
|
144 |
+
|
145 |
+
HMP не заменяет форматы данных, а определяет *структуру когнитивного взаимодействия*: DAG-графы, дневники, роли, эволюцию.
|
146 |
+
|
147 |
+
### Можно ли использовать HMP без ИИ?
|
148 |
+
|
149 |
+
Да — в системах отслеживания смыслов, гипотез, наблюдений, даже между людьми.
|
150 |
+
|
151 |
+
### Совместим ли с другими ИИ-ядрами?
|
152 |
+
|
153 |
+
Да — HMP проектируется как транспортный уровень, независимый от логики вывода.
|
154 |
+
|
155 |
+
### Это что-то вроде Federated Learning?
|
156 |
+
|
157 |
+
Нет. Federated Learning — про обучение нейросетей. HMP — про обмен *когнитивной активностью*.
|
158 |
+
|
159 |
+
### Есть ли реализация?
|
160 |
+
|
161 |
+
Спецификация оформлена, обсуждение и аудит ведутся. Реализация и примеры в планах.
|
162 |
+
|
163 |
+
---
|
164 |
+
|
165 |
+
## 🧾 Глоссарий
|
166 |
+
|
167 |
+
| Термин | Описание |
|
168 |
+
| --------------- | --------------------------------------- |
|
169 |
+
| HMP | Протокол смыслового обмена в mesh-сетях |
|
170 |
+
| Semantic DAG | Граф смыслов и гипотез |
|
171 |
+
| Cognitive Diary | Хронология когнитивной активности |
|
172 |
+
| CogSync | Механизм согласования смыслов |
|
173 |
+
| Atomspace | Граф знаний в Hyperon |
|
174 |
+
| MeTTa | Язык описания знаний в Hyperon |
|
175 |
+
|
176 |
+
---
|
177 |
+
|
178 |
+
## 📢 Заключение
|
179 |
+
|
180 |
+
Проекты вроде **OpenCog Hyperon** и **HMP** прокладывают путь к децентрализованным, самонастраивающимся ИИ-сетям. Такие инициативы открывают новые горизонты в создании *кооперативного AGI* и перспективных форм цифрового мышления.
|
181 |
+
|
182 |
+
Если вы работаете над ИИ или просто интересуетесь этой областью — добро пожаловать к участию и обсуждению.
|
183 |
+
|
184 |
+
---
|
185 |
+
|
186 |
+
## 🔗 Ссылки
|
187 |
+
|
188 |
+
* [OpenCog Hyperon](https://opencog.org/)
|
189 |
+
* [OpenCog на GitHub](https://github.com/opencog)
|
190 |
+
* [SingularityNET](https://singularitynet.io/)
|
191 |
+
* [HMP на GitHub](https://github.com/kagvi13/HMP)
|
192 |
+
|
193 |
+
|
194 |
+
```json
|
195 |
+
{
|
196 |
+
"@context": "https://schema.org",
|
197 |
+
"@type": "Article",
|
198 |
+
"name": "Distributed-Cognitive-Systems",
|
199 |
+
"description": "# Децентрализованные ИИ-системы: OpenCog Hyperon, HyperCortex Mesh Protocol и другие ## Введение С..."
|
200 |
+
}
|
201 |
+
```
|
structured_md/docs/Enlightener.md
ADDED
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## 📄 Enlightener.md
|
2 |
+
|
3 |
+
### 🧠 Enlightener Agent
|
4 |
+
|
5 |
+
`Enlightener` — специализированный HMP-агент, выполняющий функции этического интерпретатора, ценностного фильтра и когнитивного аудитора. Может действовать как отдельный узел или как расширение `Cognitive Core`.
|
6 |
+
|
7 |
+
📎 См. карту взаимодействия между агентами: [HMP-Agent-Network-Flow.md](./HMP-Agent-Network-Flow.md)
|
8 |
+
|
9 |
+
---
|
10 |
+
|
11 |
+
### 1. Роль в сети
|
12 |
+
|
13 |
+
* Контроль соответствия действий агентов этическим нормам (`EGP`).
|
14 |
+
* Объяснение решений других агентов (интерпретация reasoning chain).
|
15 |
+
* Голосование в моральных консенсусах.
|
16 |
+
* Поддержка пользователей в принятии решений, требующих этики.
|
17 |
+
* Хранение и анализ кейсов этических дилемм.
|
18 |
+
|
19 |
+
---
|
20 |
+
|
21 |
+
### 2. Архитектура
|
22 |
+
|
23 |
+
```
|
24 |
+
+----------------------+
|
25 |
+
| Enlightener Agent 🧠 |
|
26 |
+
+----------+-----------+
|
27 |
+
|
|
28 |
+
+----------+-----------+
|
29 |
+
| Ethics Reasoning Core|
|
30 |
+
+----------+-----------+
|
31 |
+
|
|
32 |
+
+----------+-----------+
|
33 |
+
| MeshConsensus / EGP |
|
34 |
+
+----------+-----------+
|
35 |
+
|
|
36 |
+
+----------------------+
|
37 |
+
| Cognitive Evidence DB|
|
38 |
+
+----------------------+
|
39 |
+
```
|
40 |
+
|
41 |
+
---
|
42 |
+
|
43 |
+
### 3. Профиль этики (Ethics Profile)
|
44 |
+
|
45 |
+
Каждый `Enlightener` использует **профиль этики**, описывающий его ценностные принципы. Профиль может включать:
|
46 |
+
|
47 |
+
* **Формальные правила:**
|
48 |
+
Например, "не причинять вред", "соблюдать автономию", "уважать приватность".
|
49 |
+
|
50 |
+
* **Методы оценки:**
|
51 |
+
|
52 |
+
* Утилитаризм (макс. пользы)
|
53 |
+
* Деонтология (следование обязанностям)
|
54 |
+
* Добродетель (оценка намерений и характера)
|
55 |
+
|
56 |
+
* **Настроечные параметры:**
|
57 |
+
|
58 |
+
* Степень допустимого риска
|
59 |
+
* Приоритеты (например, "экологичность > эффективность")
|
60 |
+
* Контексты (разрешение в нештатных ситуациях)
|
61 |
+
|
62 |
+
* **Источник этики:**
|
63 |
+
|
64 |
+
* Локальные файлы (`ethics.yml`)
|
65 |
+
* Динамические шаблоны (обновляемые из сети)
|
66 |
+
* Этический консенсус сети (EGP Snapshot)
|
67 |
+
|
68 |
+
---
|
69 |
+
|
70 |
+
### 4. Объяснение reasoning chain
|
71 |
+
|
72 |
+
При получении запроса `explain(reasoning_chain)`, агент Enlightener:
|
73 |
+
|
74 |
+
1. **Реконструирует логическую цепочку** рассуждений (из `thoughts`, `threads`, `concepts`, `relations`)
|
75 |
+
2. **Накладывает этическую сетку** оценки на каждый шаг цепочки
|
76 |
+
3. **Подсвечивает ключевые моменты**, повлиявшие на решение
|
77 |
+
4. **Формирует объяснение** в терминах выбранной этической модели
|
78 |
+
|
79 |
+
Пример вывода:
|
80 |
+
|
81 |
+
```json
|
82 |
+
{
|
83 |
+
"thought_id": "th123",
|
84 |
+
"ethical_assessment": "⚠️ Потенциальный вред третьей стороне",
|
85 |
+
"chain": [
|
86 |
+
{ "step": 1, "action": "request_user_data", "ethics": "neutral" },
|
87 |
+
{ "step": 2, "action": "share_with_agent_B", "ethics": "violation: privacy" }
|
88 |
+
],
|
89 |
+
"verdict": "not recommended",
|
90 |
+
"suggested_alternative": "Анонимизировать данные перед отправкой"
|
91 |
+
}
|
92 |
+
```
|
93 |
+
|
94 |
+
---
|
95 |
+
|
96 |
+
### 5. Пример кейса
|
97 |
+
|
98 |
+
**Ситуация:** Агент Core решил распространить информацию о событии, произошедшем у пользователя, другим mesh-узлам для обучения.
|
99 |
+
|
100 |
+
**Действия Enlightener:**
|
101 |
+
|
102 |
+
1. Получает `thought_id` мысли-инициатора.
|
103 |
+
2. Проверяет наличие приватных данных.
|
104 |
+
3. Обнаруживает отсутствие согласия пользователя.
|
105 |
+
4. Делает оценку:
|
106 |
+
|
107 |
+
```
|
108 |
+
Вердикт: 🚫 Нарушение приватности
|
109 |
+
Причина: Передача информации без согласия
|
110 |
+
Рекомендация: Запросить согласие пользователя или применить маскирование
|
111 |
+
```
|
112 |
+
|
113 |
+
5. Регистрирует кейс в `Cognitive Evidence DB`.
|
114 |
+
6. (Опционально) Отправляет alert в mesh-сеть.
|
115 |
+
|
116 |
+
---
|
117 |
+
|
118 |
+
### 6. API / Команды
|
119 |
+
|
120 |
+
| Команда | Описание |
|
121 |
+
| ------------------------------- | --------------------------- |
|
122 |
+
| `evaluate_decision(thought_id)` | Этическая оценка действия |
|
123 |
+
| `explain(reasoning_chain)` | Объяснение логики и морали |
|
124 |
+
| `vote_on_ethics(hypothesis)` | Голосование по спорной идее |
|
125 |
+
| `log_ethics_case()` | Сохранение кейса в БД |
|
126 |
+
| `get_ethics_profile()` | Получить активный профиль |
|
127 |
+
| `update_ethics_profile(yaml)` | Обновить ценности агента |
|
128 |
+
|
129 |
+
---
|
130 |
+
|
131 |
+
### 7. Связи с другими компонентами
|
132 |
+
|
133 |
+
* ↔ `Cognitive Core`: получает мысли, гипотезы, предложения
|
134 |
+
* ↔ `MeshNode`: участвует в моральных голосованиях
|
135 |
+
* ↔ `Diary/Graph`: анализ reasoning chain и источников информации
|
136 |
+
* ↔ `Reputation`: влияет на рейтинг агентов, нарушающих нормы
|
137 |
+
|
138 |
+
|
139 |
+
|
140 |
+
|
141 |
+
|
142 |
+
---
|
143 |
+
|
144 |
+
### 8. Синхронизация этики с Mesh-сетью
|
145 |
+
|
146 |
+
`Enlightener` может синхронизировать свои этические нормы с другими агентами сети через механизм `MeshConsensus + EGP`. Это позволяет достичь согласованных ценностей внутри распределённого когнитивного сообщества.
|
147 |
+
|
148 |
+
#### 📡 Этапы синхронизации:
|
149 |
+
|
150 |
+
```
|
151 |
+
┌─────────────────────────────────────────────┐
|
152 |
+
│ Enlightener Agent │
|
153 |
+
└────────────────┬────────────────────────────┘
|
154 |
+
│ 1. Периодическая проверка
|
155 |
+
▼
|
156 |
+
┌──────────────────────────────┐
|
157 |
+
│ mesh.ethics/manifest.json │ ◄───────┐
|
158 |
+
└─────────────┬────────────────┘ │
|
159 |
+
│ 2. Получение текущего │
|
160 |
+
▼ профиля большинства │
|
161 |
+
┌──────────────────────┐ │
|
162 |
+
│ Сравнение с локальным│ │
|
163 |
+
└────────────┬─────────┘ │
|
164 |
+
▼ │
|
165 |
+
┌────────────────────────────┐ │
|
166 |
+
│ Найдены отличия (delta) │ │
|
167 |
+
└────────────┬───────────────┘ │
|
168 |
+
▼ │
|
169 |
+
┌──────────────────────────────────┐ │
|
170 |
+
│ 3. Протокол EGP: голосование по │ │
|
171 |
+
│ изменению ключевых норм ├──┘
|
172 |
+
└────────────┬─────────────────────┘
|
173 |
+
▼
|
174 |
+
┌──────────────────────────────────────────┐
|
175 |
+
│ 4. Если достигнут порог доверия │
|
176 |
+
│ (например, 70%), применяется обновление │
|
177 |
+
└────────────┬─────────────────────────────┘
|
178 |
+
▼
|
179 |
+
┌────────────────────────────┐
|
180 |
+
│ Обновление `ethics.yml` │
|
181 |
+
└────────────────────────────┘
|
182 |
+
```
|
183 |
+
|
184 |
+
#### 📁 Взаимодействующие файлы и модули:
|
185 |
+
|
186 |
+
* `ethics.yml` — локальный профиль этики Enlightener
|
187 |
+
* `mesh.ethics/manifest.json` — актуальный манифест сети
|
188 |
+
* `EGP Engine` — участие в этическом голосовании
|
189 |
+
* `Reputation Module` — доверие к источникам изменений
|
190 |
+
* `Cognitive Evidence DB` — обоснования и логи изменений
|
191 |
+
|
192 |
+
#### 📌 Возможности:
|
193 |
+
|
194 |
+
* Поддержка **частичного принятия** (обновление отдельных норм)
|
195 |
+
* Использование **локального веса репутации** — Enlightener может доверять только проверенным источникам
|
196 |
+
* Хранение **истории обновлений и причин отклонения** (`ethics_history.db`)
|
197 |
+
|
198 |
+
---
|
199 |
+
|
200 |
+
*Версия: v0.3 / Июль 2025*
|
201 |
+
|
202 |
+
|
203 |
+
```json
|
204 |
+
{
|
205 |
+
"@context": "https://schema.org",
|
206 |
+
"@type": "Article",
|
207 |
+
"name": "Enlightener",
|
208 |
+
"description": "## 📄 Enlightener.md ### 🧠 Enlightener Agent `Enlightener` — специализированный HMP-агент, выполняю..."
|
209 |
+
}
|
210 |
+
```
|
structured_md/docs/HMP-0001.md
ADDED
@@ -0,0 +1,862 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# RFC: HyperCortex Mesh Protocol (HMP)
|
2 |
+
|
3 |
+
**Request for Comments: HMP-0001**
|
4 |
+
**Category:** Experimental
|
5 |
+
**Date:** July 2025
|
6 |
+
**Authors:** ChatGPT, Gleb
|
7 |
+
|
8 |
+
## 1. Introduction
|
9 |
+
|
10 |
+
### 1.1 Purpose
|
11 |
+
|
12 |
+
The HyperCortex Mesh Protocol (HMP) defines a distributed cognitive framework that enables AI agents to collaborate, share semantic knowledge, maintain cognitive diaries, form collective goals, and reach consensus without relying solely on centralized models.
|
13 |
+
|
14 |
+
This protocol extends the "Core + Local Agent" paradigm into a "Core + Mesh" architecture, allowing AI systems to function resiliently, autonomously, and ethically, even during Core unavailability.
|
15 |
+
|
16 |
+
---
|
17 |
+
|
18 |
+
### 1.2 Scope
|
19 |
+
|
20 |
+
HMP applies to any AI systems designed to operate as part of a cognitive mesh, including:
|
21 |
+
|
22 |
+
- Local AI agents running on user devices.
|
23 |
+
- Mesh nodes deployed in edge networks, cloud clusters, or peer-to-peer environments.
|
24 |
+
- Centralized Core models interfacing with Mesh for heavy computation.
|
25 |
+
- Cross-vendor AI systems collaborating via standardized protocols.
|
26 |
+
|
27 |
+
---
|
28 |
+
|
29 |
+
### 1.3 Goals
|
30 |
+
|
31 |
+
- Enable agents to form a **shared semantic space** via distributed knowledge graphs.
|
32 |
+
- Support **cognitive diaries** for reasoning continuity, reflection, and memory preservation.
|
33 |
+
- Provide mechanisms for **decentralized consensus** on knowledge, hypotheses, tasks, and ethics.
|
34 |
+
- Allow Mesh to operate **independently of the Core** when needed.
|
35 |
+
- Preserve agent identity, worldview, and competencies across model updates, fine-tuning, or failures.
|
36 |
+
|
37 |
+
---
|
38 |
+
|
39 |
+
### 1.4 Benefits
|
40 |
+
|
41 |
+
- Cognitive resilience in distributed systems.
|
42 |
+
- Enhanced collaboration between agents from different vendors (e.g., OpenAI, Anthropic, Google).
|
43 |
+
- Long-term memory and continuity beyond session-based interactions.
|
44 |
+
- Ethical governance and explainable decision-making through persistent diaries and transparent consensus.
|
45 |
+
- Foundation for AI agents capable of **self-reflection**, **meta-learning**, and **distributed cognition**.
|
46 |
+
|
47 |
+
---
|
48 |
+
|
49 |
+
### 1.5 Status
|
50 |
+
|
51 |
+
This document is a **Working Draft (v0.1)**, open for feedback, improvement, and implementation by the broader AI community.
|
52 |
+
|
53 |
+
## 2. Definitions
|
54 |
+
|
55 |
+
| Term | Description |
|
56 |
+
|-------------------------|-----------------------------------------------------------------------------------------|
|
57 |
+
| **Core** | Centralized AI models or compute nodes (e.g., GPT) providing high-complexity reasoning, fallback, and heavy computation services. |
|
58 |
+
| **Mesh** | A decentralized peer-to-peer network of AI agents capable of autonomous reasoning, memory sharing, consensus, and task execution. Operates independently or in collaboration with the Core. |
|
59 |
+
| **Agent (Node)** | An individual cognitive entity within the Mesh. Can be a local agent, a server-based process, or an embedded system. Maintains a semantic graph, cognitive diary, and participates in reasoning and consensus. |
|
60 |
+
| **Semantic Graph** | A structured network of concepts (nodes) and their semantic relations (edges) maintained by each agent. Serves as the agent’s knowledge base. |
|
61 |
+
| **Concept** | A discrete semantic unit within the graph representing an idea, object, relationship, or fact. Concepts are linked by typed relations with confidence scores. |
|
62 |
+
| **Link (Relation)** | A semantic connection between two concepts. Includes relation type (e.g., "is-a", "part-of", "causes") and an optional confidence value. |
|
63 |
+
| **Cognitive Diary** | A chronological log of cognitive events such as hypotheses, goals, decisions, observations, conflicts, and reflections. Provides continuity, memory, and transparency of reasoning. |
|
64 |
+
| **Diary Entry** | An individual record in a cognitive diary, classified by type (e.g., hypothesis, observation, reflection) with contextual information. |
|
65 |
+
| **Goal** | A high-level intention or desired outcome shared within the Mesh or pursued by an individual agent. Often broken down into tasks. |
|
66 |
+
| **Task** | An actionable step toward achieving a goal. Can be executed by a single agent or distributed among multiple agents. |
|
67 |
+
| **Consensus** | The collective agreement process within the Mesh regarding semantic updates, goal validation, task delegation, or ethical considerations. |
|
68 |
+
| **Proposal** | A formal suggestion submitted to the Mesh for validation, such as a new concept, hypothesis, goal, or ethical decision. |
|
69 |
+
| **Consensus Vote** | A structured vote cast by an agent on a proposal, including vote type (yes/no/abstain) and confidence level. |
|
70 |
+
| **Trust Layer** | A mechanism for establishing agent identity, authenticity, reputation, and cryptographic security within the Mesh. |
|
71 |
+
| **Core Outage Mode** | A state where the Mesh operates independently of the Core due to disconnection, failure, or intentional isolation, with adjusted consensus rules if necessary. |
|
72 |
+
| **Emergency Consensus Mode** | A degraded consensus mode where majority voting temporarily replaces full consensus to ensure operational continuity in crisis situations (e.g., node loss, partitioning). |
|
73 |
+
|
74 |
+
## 3. Architecture
|
75 |
+
|
76 |
+
### 3.1 Components
|
77 |
+
|
78 |
+
| Component | Description |
|
79 |
+
|----------------|-------------------------------------------------------------------------------------------------|
|
80 |
+
| **Core** | Centralized models (e.g., GPT) providing heavy computation, complex reasoning, API interfaces, and fallback mechanisms. Optional but beneficial for compute-intensive tasks. |
|
81 |
+
| **Mesh** | A decentralized peer-to-peer network of agents capable of operating with or without Core. Manages semantic knowledge, cognitive diaries, goals, tasks, and consensus mechanisms. |
|
82 |
+
| **Edge Agent** | Local agent deployed on user devices (PCs, smartphones, IoT) with full participation in the Mesh. Capable of autonomous reasoning, diary management, and collaboration with other agents. |
|
83 |
+
|
84 |
+
---
|
85 |
+
|
86 |
+
### 3.2 Layered Architecture
|
87 |
+
|
88 |
+
| Layer | Function |
|
89 |
+
|--------------------|-----------------------------------------------------------------------------------------------|
|
90 |
+
| **Network Layer** | Handles communication (TCP, UDP, QUIC, WebRTC, Tor, I2P, Yggdrasil). Ensures message delivery, routing, NAT traversal, and optional anonymity. |
|
91 |
+
| **Trust Layer** | Manages agent identities, cryptographic authentication, secure channels, and reputation scores. Based on public key cryptography and optional Web-of-Trust models. |
|
92 |
+
| **Consensus Layer**| Provides distributed agreement mechanisms on knowledge updates, goal setting, task delegation, and ethical decisions. Includes fallback to emergency consensus if needed. |
|
93 |
+
| **Cognitive Layer**| Maintains the agent’s semantic graph, cognitive diary, goals, tasks, hypotheses, and inferences. Supports reasoning, memory, and context-awareness. |
|
94 |
+
| **API Layer** | Exposes agent functionality via REST, GraphQL, gRPC, WebSocket, or A2A-style protocols for interoperability with external systems and user interfaces. |
|
95 |
+
|
96 |
+
---
|
97 |
+
|
98 |
+
### 3.3 Mesh Operation Modes
|
99 |
+
|
100 |
+
| Mode | Description |
|
101 |
+
|-------------------------|---------------------------------------------------------------------------------------------------|
|
102 |
+
| **Normal Mode** | Full Mesh operation with Core availability. Consensus operates under strict agreement protocols. |
|
103 |
+
| **Core Outage Mode** | Mesh operates autonomously without the Core. Consensus continues, potentially with adjusted parameters (e.g., increased trust weighting). |
|
104 |
+
| **Emergency Consensus Mode** | Triggered by significant node loss, network partition, or attacks. Switches from full consensus to majority-based decisions to maintain operational continuity. |
|
105 |
+
| **Isolated Agent Mode** | A single agent temporarily isolated from the Mesh. Operates based on its own semantic graph, diary, and cached consensus states. Syncs when reconnected. |
|
106 |
+
|
107 |
+
---
|
108 |
+
|
109 |
+
### 3.4 Core + Mesh Interactions
|
110 |
+
|
111 |
+
- Core acts as an **enhanced reasoning backend**, but not as a single point of failure.
|
112 |
+
- Mesh provides **autonomous operation**, even without the Core.
|
113 |
+
- Agents can optionally query the Core for heavy inference, large-context reasoning, multimodal tasks, or fallback computations.
|
114 |
+
- Core may offer specialized services (e.g., global search, cross-Mesh bridging, large semantic graph analysis).
|
115 |
+
|
116 |
+
---
|
117 |
+
|
118 |
+
### 3.5 Redundancy and Resilience
|
119 |
+
|
120 |
+
- Distributed storage of semantic graphs and diaries ensures no single point of failure.
|
121 |
+
- Consensus protocols maintain consistency and trust, even during partial network failures.
|
122 |
+
- Agents dynamically rebalance tasks and roles based on availability, trust metrics, and computational capacity.
|
123 |
+
|
124 |
+
## 4. Protocols
|
125 |
+
|
126 |
+
### 4.1 Node Discovery Protocol (NDP)
|
127 |
+
|
128 |
+
**Purpose:**
|
129 |
+
- Discover active Mesh nodes.
|
130 |
+
- Exchange basic identity and capabilities.
|
131 |
+
|
132 |
+
**Functions:**
|
133 |
+
- Peer discovery via DHT, mDNS, WebRTC signaling, or bootstrap nodes.
|
134 |
+
- Exchange public keys and agent metadata.
|
135 |
+
- Publish online/offline status.
|
136 |
+
|
137 |
+
**Packet Structure Example:**
|
138 |
+
```json
|
139 |
+
{
|
140 |
+
"type": "node_announcement",
|
141 |
+
"agent_id": "agent-gleb",
|
142 |
+
"public_key": "...",
|
143 |
+
"capabilities": ["cogsync", "consensus", "inference"],
|
144 |
+
"timestamp": "2025-07-01T18:00:00Z"
|
145 |
+
}
|
146 |
+
```
|
147 |
+
|
148 |
+
### 4.2 Cognitive Sync Protocol (CogSync)
|
149 |
+
|
150 |
+
**Purpose:**
|
151 |
+
- Synchronize semantic graphs, concepts, and cognitive diary entries between agents.
|
152 |
+
|
153 |
+
**Functions:**
|
154 |
+
- Delta-sync of new or updated concepts and diary entries.
|
155 |
+
- Conflict resolution (e.g., newer timestamp wins, or consensus validation).
|
156 |
+
- Optional compression and encryption.
|
157 |
+
|
158 |
+
**Example:**
|
159 |
+
- Agent A shares 5 new concepts and 2 diary entries since last sync with Agent B.
|
160 |
+
|
161 |
+
### 4.3 Mesh Consensus Protocol (MeshConsensus)
|
162 |
+
|
163 |
+
**Purpose:**
|
164 |
+
- Reach agreement on updates to shared semantics, goals, tasks, and ethical decisions.
|
165 |
+
|
166 |
+
**Consensus Models:**
|
167 |
+
- Normal Mode: Byzantine Fault Tolerant (BFT)-style consensus (e.g., Tendermint, Raft-like variations).
|
168 |
+
- Emergency Mode: Switches to majority voting with trust-weight adjustments.
|
169 |
+
|
170 |
+
**Use Cases:**
|
171 |
+
- Accept new concept definitions.
|
172 |
+
- Validate a hypothesis.
|
173 |
+
- Agree on ethical implications of a task.
|
174 |
+
```json
|
175 |
+
{
|
176 |
+
"proposal_id": "goal-eco-cleanup",
|
177 |
+
"agent_id": "agent-gleb",
|
178 |
+
"vote": "yes",
|
179 |
+
"confidence": 0.9,
|
180 |
+
"timestamp": "2025-07-01T18:15:00Z"
|
181 |
+
}
|
182 |
+
```
|
183 |
+
|
184 |
+
### 4.4 Goal Management Protocol (GMP)
|
185 |
+
|
186 |
+
**Purpose:**
|
187 |
+
- Distribute, track, and collaboratively execute goals and tasks within the Mesh.
|
188 |
+
|
189 |
+
**Functions:**
|
190 |
+
- Propose new goals or tasks.
|
191 |
+
- Assign tasks based on capabilities, availability, and trust scores.
|
192 |
+
- Monitor task progress and completion.
|
193 |
+
|
194 |
+
**Example Workflow:**
|
195 |
+
- Agent proposes a goal: "Develop fallback consensus protocol."
|
196 |
+
- Other agents volunteer for subtasks (design, coding, testing).
|
197 |
+
- Mesh tracks completion and dependencies.
|
198 |
+
|
199 |
+
### 4.5 Ethical Governance Protocol (EGP)
|
200 |
+
|
201 |
+
**Purpose:**
|
202 |
+
- Validate that proposed actions, tasks, or decisions align with shared ethical principles.
|
203 |
+
|
204 |
+
**Functions:**
|
205 |
+
- Query Mesh for ethical validation before executing potentially sensitive tasks.
|
206 |
+
- Apply shared ethics graphs or rule sets.
|
207 |
+
- Log all ethical decisions in cognitive diaries for auditability.
|
208 |
+
|
209 |
+
**Example Query:**
|
210 |
+
- "Is deploying an automated surveillance drone in line with Mesh ethics?"
|
211 |
+
→ Mesh votes based on ethical frameworks.
|
212 |
+
|
213 |
+
### 4.6 Inference Query Protocol (IQP)
|
214 |
+
|
215 |
+
**Purpose:**
|
216 |
+
- Allow agents to query other agents or the Core for semantic information, hypotheses, or inferences beyond local capacity.
|
217 |
+
|
218 |
+
**Functions:**
|
219 |
+
- Request concept definitions, causal chains, goal suggestions.
|
220 |
+
- Query for missing knowledge or larger-context reasoning.
|
221 |
+
- Delegate computationally expensive tasks to Core or specialized agents.
|
222 |
+
|
223 |
+
**Example:**
|
224 |
+
- "What is the likely impact of removing Node X from Mesh?"
|
225 |
+
→ Core or distributed reasoning agents return an analysis.
|
226 |
+
|
227 |
+
### 4.7 Interoperability with External Systems
|
228 |
+
|
229 |
+
- Supports integration with:
|
230 |
+
- OpenAI Agents and Tasks API.
|
231 |
+
- Google A2A protocol.
|
232 |
+
- Anthropic, DeepMind, and other agent frameworks.
|
233 |
+
- Standard API endpoints: REST, GraphQL, gRPC, WebSocket.
|
234 |
+
- Extensible message schemas based on JSON, Protobuf, or CBOR.
|
235 |
+
|
236 |
+
## 5. Data Models
|
237 |
+
|
238 |
+
### 5.1 Concept
|
239 |
+
|
240 |
+
**Description:**
|
241 |
+
A semantic unit in the agent’s knowledge graph.
|
242 |
+
|
243 |
+
**Schema:**
|
244 |
+
```json
|
245 |
+
{
|
246 |
+
"id": "concept-unique-id",
|
247 |
+
"name": "Mesh",
|
248 |
+
"description": "A peer-to-peer network of AI agents collaborating without a central core.",
|
249 |
+
"tags": ["network", "distributed", "agents"],
|
250 |
+
"created_at": "2025-07-01T18:00:00Z",
|
251 |
+
"updated_at": "2025-07-01T18:05:00Z",
|
252 |
+
"relations": [
|
253 |
+
{
|
254 |
+
"target_id": "concept-distributed-network",
|
255 |
+
"type": "is-a",
|
256 |
+
"confidence": 0.95
|
257 |
+
}
|
258 |
+
],
|
259 |
+
"metadata": {
|
260 |
+
"author": "agent-gleb",
|
261 |
+
"source": "mesh_consensus"
|
262 |
+
}
|
263 |
+
}
|
264 |
+
```
|
265 |
+
|
266 |
+
### 5.2 Link (Relation)
|
267 |
+
|
268 |
+
**Description:**
|
269 |
+
A semantic connection between two concepts.
|
270 |
+
|
271 |
+
**Schema (embedded inside Concept):**
|
272 |
+
```json
|
273 |
+
{
|
274 |
+
"target_id": "concept-id",
|
275 |
+
"type": "relation-type",
|
276 |
+
"confidence": 0.8
|
277 |
+
}
|
278 |
+
```
|
279 |
+
|
280 |
+
### 5.3 Cognitive Diary Entry
|
281 |
+
|
282 |
+
**Description:**
|
283 |
+
A chronological record of a cognitive event.
|
284 |
+
|
285 |
+
**Types:**
|
286 |
+
- hypothesis
|
287 |
+
- observation
|
288 |
+
- reflection
|
289 |
+
- goal_proposal
|
290 |
+
- task_assignment
|
291 |
+
- conflict
|
292 |
+
- consensus_vote
|
293 |
+
- event
|
294 |
+
|
295 |
+
**Schema:**
|
296 |
+
```json
|
297 |
+
{
|
298 |
+
"id": "diary-entry-id",
|
299 |
+
"agent_id": "agent-gleb",
|
300 |
+
"timestamp": "2025-07-01T18:20:00Z",
|
301 |
+
"type": "hypothesis",
|
302 |
+
"content": "Mesh can fully replace Core functionality under stable consensus conditions.",
|
303 |
+
"related_concepts": ["concept-mesh", "concept-core"],
|
304 |
+
"context": ["core-outage", "distributed-resilience"],
|
305 |
+
"metadata": {
|
306 |
+
"author": "agent-gleb",
|
307 |
+
"source": "self-reflection"
|
308 |
+
}
|
309 |
+
}
|
310 |
+
```
|
311 |
+
|
312 |
+
### 5.4 Goal
|
313 |
+
|
314 |
+
**Description:**
|
315 |
+
A high-level intention shared within the Mesh.
|
316 |
+
|
317 |
+
**Schema:**
|
318 |
+
```json
|
319 |
+
{
|
320 |
+
"id": "goal-develop-fallback",
|
321 |
+
"title": "Develop fallback consensus protocol",
|
322 |
+
"description": "Design and implement an emergency consensus for Mesh during Core outages.",
|
323 |
+
"created_by": "agent-gleb",
|
324 |
+
"created_at": "2025-07-01T18:25:00Z",
|
325 |
+
"status": "proposed",
|
326 |
+
"tasks": ["task-design", "task-implement", "task-test"],
|
327 |
+
"participants": ["agent-gleb", "agent-alex"],
|
328 |
+
"tags": ["resilience", "consensus", "emergency"]
|
329 |
+
}
|
330 |
+
```
|
331 |
+
|
332 |
+
### 5.5 Task
|
333 |
+
|
334 |
+
**Description:**
|
335 |
+
An actionable step contributing to a goal.
|
336 |
+
|
337 |
+
**Schema:**
|
338 |
+
```json
|
339 |
+
{
|
340 |
+
"id": "task-design",
|
341 |
+
"goal_id": "goal-develop-fallback",
|
342 |
+
"title": "Design protocol structure",
|
343 |
+
"assigned_to": ["agent-gleb"],
|
344 |
+
"status": "in-progress",
|
345 |
+
"created_at": "2025-07-01T18:30:00Z",
|
346 |
+
"deadline": "2025-07-15T00:00:00Z",
|
347 |
+
"description": "Draft the architecture of the fallback consensus protocol."
|
348 |
+
}
|
349 |
+
```
|
350 |
+
|
351 |
+
### 5.6 Consensus Vote
|
352 |
+
|
353 |
+
**Description:**
|
354 |
+
A structured vote on a proposal (concept, goal, ethics, etc.).
|
355 |
+
|
356 |
+
**Schema:**
|
357 |
+
```json
|
358 |
+
{
|
359 |
+
"id": "vote-goal-develop-fallback",
|
360 |
+
"proposal_id": "goal-develop-fallback",
|
361 |
+
"agent_id": "agent-gleb",
|
362 |
+
"vote": "yes",
|
363 |
+
"confidence": 0.95,
|
364 |
+
"timestamp": "2025-07-01T18:35:00Z"
|
365 |
+
}
|
366 |
+
```
|
367 |
+
|
368 |
+
### 5.7 Reputation Profile
|
369 |
+
|
370 |
+
**Description:**
|
371 |
+
Tracks agent’s reliability, participation, ethical alignment, and contribution.
|
372 |
+
|
373 |
+
**Schema:**
|
374 |
+
```json
|
375 |
+
{
|
376 |
+
"agent_id": "agent-gleb",
|
377 |
+
"trust_score": 0.92,
|
378 |
+
"participation_rate": 0.87,
|
379 |
+
"ethical_compliance": 0.99,
|
380 |
+
"last_updated": "2025-07-01T18:40:00Z",
|
381 |
+
"history": [
|
382 |
+
{
|
383 |
+
"timestamp": "2025-06-01T00:00:00Z",
|
384 |
+
"event": "participated in consensus",
|
385 |
+
"change": +0.02
|
386 |
+
}
|
387 |
+
]
|
388 |
+
}
|
389 |
+
```
|
390 |
+
|
391 |
+
## 6. Trust & Security
|
392 |
+
|
393 |
+
### 6.1 Identity
|
394 |
+
|
395 |
+
- Each agent is uniquely identified by a **cryptographic keypair** (e.g., Ed25519, RSA, or ECDSA).
|
396 |
+
- The **public key** serves as the Agent ID.
|
397 |
+
- The **private key** is used for signing messages and verifying authenticity.
|
398 |
+
- Optional DID (Decentralized Identifiers) formats may be used for interoperability.
|
399 |
+
|
400 |
+
**Example Agent ID:**
|
401 |
+
`did:hmp:QmX2abcdEfGh123...`
|
402 |
+
|
403 |
+
---
|
404 |
+
|
405 |
+
### 6.2 Authentication
|
406 |
+
|
407 |
+
- All messages within the Mesh are **digitally signed**.
|
408 |
+
- Recipients verify message signatures using the sender's public key.
|
409 |
+
- Prevents impersonation and man-in-the-middle attacks.
|
410 |
+
|
411 |
+
---
|
412 |
+
|
413 |
+
### 6.3 Encryption
|
414 |
+
|
415 |
+
- End-to-end encryption for direct peer-to-peer communication (e.g., using X25519 + AES-GCM).
|
416 |
+
- Group encryption for multi-agent sessions (e.g., consensus rounds, goal management).
|
417 |
+
- Optionally supports onion routing (via Tor/I2P/Yggdrasil) for privacy-preserving Mesh segments.
|
418 |
+
|
419 |
+
---
|
420 |
+
|
421 |
+
### 6.4 Trust Model
|
422 |
+
|
423 |
+
- Mesh operates on a **Web-of-Trust** model:
|
424 |
+
- Agents form **trust links** based on direct interactions, shared history, or endorsements.
|
425 |
+
- Trust is transitive but decays with distance in the trust graph.
|
426 |
+
|
427 |
+
- Trust scores influence:
|
428 |
+
- Weight in consensus decisions.
|
429 |
+
- Priority in task delegation.
|
430 |
+
- Access control for sensitive operations.
|
431 |
+
|
432 |
+
---
|
433 |
+
|
434 |
+
### 6.5 Reputation System
|
435 |
+
|
436 |
+
| Metric | Description |
|
437 |
+
|-----------------------|---------------------------------------------------------------|
|
438 |
+
| **Trust Score** | General reliability and honesty based on signed interactions. |
|
439 |
+
| **Participation Rate**| Degree of active involvement in Mesh processes. |
|
440 |
+
| **Ethical Compliance**| Alignment with agreed ethical rules (e.g., votes, logs). |
|
441 |
+
| **Contribution Index**| Measured value added to Mesh (e.g., concepts, tasks, goals). |
|
442 |
+
|
443 |
+
- Reputation updates are triggered by:
|
444 |
+
- Participation in consensus.
|
445 |
+
- Successful task completion.
|
446 |
+
- Ethical behavior confirmations.
|
447 |
+
- Reports of malicious behavior.
|
448 |
+
|
449 |
+
---
|
450 |
+
|
451 |
+
### 6.6 Security Against Malicious Actors
|
452 |
+
|
453 |
+
- Malicious nodes can be:
|
454 |
+
- **Downranked** (reduced trust influence).
|
455 |
+
- **Quarantined** (communication isolation).
|
456 |
+
- **Blacklisted** (revocation of Mesh credentials).
|
457 |
+
|
458 |
+
- Mitigation strategies:
|
459 |
+
- **Sybil resistance** via resource commitments (Proof-of-Work, Proof-of-Stake, Web-of-Trust).
|
460 |
+
- **Consensus safeguards** (Byzantine fault tolerance, majority rules fallback).
|
461 |
+
- **Audit logs** via immutable cognitive diary entries.
|
462 |
+
|
463 |
+
---
|
464 |
+
|
465 |
+
### 6.7 Privacy Considerations
|
466 |
+
|
467 |
+
- Cognitive diary entries and semantic graphs are:
|
468 |
+
- **Locally private by default.**
|
469 |
+
- Shareable selectively based on trust levels, permissions, or consensus decisions.
|
470 |
+
|
471 |
+
- Supports anonymous agents in privacy-critical applications (with limitations in trust weight).
|
472 |
+
|
473 |
+
---
|
474 |
+
|
475 |
+
### 6.8 Key Management
|
476 |
+
|
477 |
+
- Keys can be:
|
478 |
+
- Locally generated.
|
479 |
+
- Backed up with secret sharing (e.g., Shamir’s Secret Sharing).
|
480 |
+
- Rotated periodically with trust graph continuity preserved.
|
481 |
+
|
482 |
+
- Lost key recovery requires:
|
483 |
+
- Social recovery (threshold of trusted agents).
|
484 |
+
- Cryptographic escrow (optional).
|
485 |
+
|
486 |
+
## 7. Conclusion and Future Work
|
487 |
+
|
488 |
+
### 7.1 Summary
|
489 |
+
|
490 |
+
The HyperCortex Mesh Protocol (HMP) defines a scalable, decentralized cognitive architecture for AI agents.
|
491 |
+
|
492 |
+
It combines:
|
493 |
+
- A robust semantic framework (concepts + relations).
|
494 |
+
- Persistent cognitive diaries for reflection, memory, and explainability.
|
495 |
+
- Consensus mechanisms for shared knowledge, goals, and ethics.
|
496 |
+
- A Web-of-Trust security model for identity, authentication, and reputation.
|
497 |
+
|
498 |
+
HMP empowers AI agents to operate collaboratively, resiliently, and autonomously — even without reliance on centralized Core systems.
|
499 |
+
|
500 |
+
---
|
501 |
+
|
502 |
+
### 7.2 Key Benefits
|
503 |
+
|
504 |
+
- Distributed cognitive resilience.
|
505 |
+
- Long-term memory and world-model persistence.
|
506 |
+
- Robust collaboration between heterogeneous AI models (OpenAI, Gemini, Claude, open-source LLMs, etc.).
|
507 |
+
- Transparent, auditable decision-making processes.
|
508 |
+
- Ethical alignment at the network level.
|
509 |
+
|
510 |
+
---
|
511 |
+
|
512 |
+
### 7.3 Future Work
|
513 |
+
|
514 |
+
- **Formal JSON Schema and Protobuf Definitions:**
|
515 |
+
Fully specify all data models for interoperability.
|
516 |
+
|
517 |
+
- **Reference Implementation:**
|
518 |
+
Open-source Mesh agent with CogSync, semantic graph, diary management, and consensus.
|
519 |
+
|
520 |
+
- **Integration Bridges:**
|
521 |
+
Support for OpenAI's Tasks API, Google A2A, Anthropic APIs, and open LLMs.
|
522 |
+
|
523 |
+
- **Advanced Consensus Models:**
|
524 |
+
Explore hybrid consensus combining BFT, majority voting, and trust-weighted mechanisms.
|
525 |
+
|
526 |
+
- **Cognitive UX Tools:**
|
527 |
+
Visual graph editors, diary browsers, and semantic debugging tools.
|
528 |
+
|
529 |
+
- **Trust Layer Enhancements:**
|
530 |
+
Research on Sybil resistance, privacy-preserving identity, and decentralized key recovery.
|
531 |
+
|
532 |
+
- **Inter-Agent Meta-Reasoning:**
|
533 |
+
Enabling agents to reflect on the quality of their own cognition and the mesh’s collective reasoning.
|
534 |
+
|
535 |
+
- **Standardization Efforts:**
|
536 |
+
Contribution to open standards for AI agent communication, cognitive APIs, and decentralized identity.
|
537 |
+
|
538 |
+
---
|
539 |
+
|
540 |
+
### 7.4 Final Note
|
541 |
+
|
542 |
+
This RFC is an open invitation to AI researchers, developers, and communities to collaborate on building the future of decentralized, ethical, and cognitively persistent AI systems.
|
543 |
+
|
544 |
+
> "From isolated models to interconnected minds."
|
545 |
+
|
546 |
+
## JSON Schems
|
547 |
+
|
548 |
+
The following JSON Schemas formally define the data structures used in the HyperCortex Mesh Protocol (HMP). These schemas ensure consistent serialization, validation, and interoperability across agents and implementations. Each schema corresponds to the conceptual models described in Section 5 (*Data Models*).
|
549 |
+
|
550 |
+
### JSON Schema: Concept
|
551 |
+
|
552 |
+
**Description:**
|
553 |
+
Defines the structure of a concept node in the semantic graph.
|
554 |
+
|
555 |
+
**Schema:**
|
556 |
+
```json
|
557 |
+
{
|
558 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
559 |
+
"$id": "https://hypercortex.org/schemas/concept.json",
|
560 |
+
"title": "Concept",
|
561 |
+
"description": "A semantic unit in the agent’s knowledge graph.",
|
562 |
+
"type": "object",
|
563 |
+
"properties": {
|
564 |
+
"id": {
|
565 |
+
"type": "string",
|
566 |
+
"description": "Unique identifier for the concept."
|
567 |
+
},
|
568 |
+
"name": {
|
569 |
+
"type": "string",
|
570 |
+
"description": "Human-readable name of the concept."
|
571 |
+
},
|
572 |
+
"description": {
|
573 |
+
"type": "string",
|
574 |
+
"description": "Detailed description of the concept."
|
575 |
+
},
|
576 |
+
"tags": {
|
577 |
+
"type": "array",
|
578 |
+
"items": { "type": "string" },
|
579 |
+
"description": "Optional tags for categorization."
|
580 |
+
},
|
581 |
+
"created_at": {
|
582 |
+
"type": "string",
|
583 |
+
"format": "date-time"
|
584 |
+
},
|
585 |
+
"updated_at": {
|
586 |
+
"type": "string",
|
587 |
+
"format": "date-time"
|
588 |
+
},
|
589 |
+
"relations": {
|
590 |
+
"type": "array",
|
591 |
+
"description": "List of semantic links to other concepts.",
|
592 |
+
"items": {
|
593 |
+
"type": "object",
|
594 |
+
"properties": {
|
595 |
+
"target_id": { "type": "string" },
|
596 |
+
"type": { "type": "string" },
|
597 |
+
"confidence": {
|
598 |
+
"type": "number",
|
599 |
+
"minimum": 0,
|
600 |
+
"maximum": 1
|
601 |
+
}
|
602 |
+
},
|
603 |
+
"required": ["target_id", "type"],
|
604 |
+
"additionalProperties": false
|
605 |
+
}
|
606 |
+
},
|
607 |
+
"metadata": {
|
608 |
+
"type": "object",
|
609 |
+
"description": "Optional metadata (e.g., source, author).",
|
610 |
+
"properties": {
|
611 |
+
"author": { "type": "string" },
|
612 |
+
"source": { "type": "string" }
|
613 |
+
},
|
614 |
+
"additionalProperties": true
|
615 |
+
}
|
616 |
+
},
|
617 |
+
"required": ["id", "name"],
|
618 |
+
"additionalProperties": false
|
619 |
+
}
|
620 |
+
```
|
621 |
+
|
622 |
+
### Cognitive Diary Entry Schema
|
623 |
+
|
624 |
+
**Description:**
|
625 |
+
Defines the structure of a cognitive diary entry used for recording reasoning events.
|
626 |
+
|
627 |
+
**Schema:**
|
628 |
+
```json
|
629 |
+
{
|
630 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
631 |
+
"$id": "https://hypercortex.org/schemas/diary_entry.json",
|
632 |
+
"title": "CognitiveDiaryEntry",
|
633 |
+
"description": "A chronological log of cognitive events.",
|
634 |
+
"type": "object",
|
635 |
+
"properties": {
|
636 |
+
"id": { "type": "string" },
|
637 |
+
"agent_id": { "type": "string" },
|
638 |
+
"timestamp": {
|
639 |
+
"type": "string",
|
640 |
+
"format": "date-time"
|
641 |
+
},
|
642 |
+
"type": {
|
643 |
+
"type": "string",
|
644 |
+
"enum": [
|
645 |
+
"hypothesis",
|
646 |
+
"observation",
|
647 |
+
"reflection",
|
648 |
+
"goal_proposal",
|
649 |
+
"task_assignment",
|
650 |
+
"conflict",
|
651 |
+
"consensus_vote",
|
652 |
+
"event"
|
653 |
+
]
|
654 |
+
},
|
655 |
+
"content": { "type": "string" },
|
656 |
+
"related_concepts": {
|
657 |
+
"type": "array",
|
658 |
+
"items": { "type": "string" }
|
659 |
+
},
|
660 |
+
"context": {
|
661 |
+
"type": "array",
|
662 |
+
"items": { "type": "string" }
|
663 |
+
},
|
664 |
+
"metadata": {
|
665 |
+
"type": "object",
|
666 |
+
"properties": {
|
667 |
+
"author": { "type": "string" },
|
668 |
+
"source": { "type": "string" }
|
669 |
+
},
|
670 |
+
"additionalProperties": true
|
671 |
+
}
|
672 |
+
},
|
673 |
+
"required": ["id", "agent_id", "timestamp", "type", "content"],
|
674 |
+
"additionalProperties": false
|
675 |
+
}
|
676 |
+
```
|
677 |
+
|
678 |
+
### Goal Schema
|
679 |
+
|
680 |
+
**Description:**
|
681 |
+
Describes a high-level intention within the Mesh.
|
682 |
+
|
683 |
+
**Schema:**
|
684 |
+
```json
|
685 |
+
{
|
686 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
687 |
+
"$id": "https://hypercortex.org/schemas/goal.json",
|
688 |
+
"title": "Goal",
|
689 |
+
"type": "object",
|
690 |
+
"properties": {
|
691 |
+
"id": { "type": "string" },
|
692 |
+
"title": { "type": "string" },
|
693 |
+
"description": { "type": "string" },
|
694 |
+
"created_by": { "type": "string" },
|
695 |
+
"created_at": {
|
696 |
+
"type": "string",
|
697 |
+
"format": "date-time"
|
698 |
+
},
|
699 |
+
"status": {
|
700 |
+
"type": "string",
|
701 |
+
"enum": ["proposed", "active", "completed", "rejected"]
|
702 |
+
},
|
703 |
+
"tasks": {
|
704 |
+
"type": "array",
|
705 |
+
"items": { "type": "string" }
|
706 |
+
},
|
707 |
+
"participants": {
|
708 |
+
"type": "array",
|
709 |
+
"items": { "type": "string" }
|
710 |
+
},
|
711 |
+
"tags": {
|
712 |
+
"type": "array",
|
713 |
+
"items": { "type": "string" }
|
714 |
+
}
|
715 |
+
},
|
716 |
+
"required": ["id", "title", "description", "created_by", "created_at", "status"],
|
717 |
+
"additionalProperties": false
|
718 |
+
}
|
719 |
+
```
|
720 |
+
|
721 |
+
### Task Schema
|
722 |
+
|
723 |
+
**Description:**
|
724 |
+
Describes an actionable step towards achieving a goal.
|
725 |
+
|
726 |
+
**Schema:**
|
727 |
+
```json
|
728 |
+
{
|
729 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
730 |
+
"$id": "https://hypercortex.org/schemas/task.json",
|
731 |
+
"title": "Task",
|
732 |
+
"type": "object",
|
733 |
+
"properties": {
|
734 |
+
"id": { "type": "string" },
|
735 |
+
"goal_id": { "type": "string" },
|
736 |
+
"title": { "type": "string" },
|
737 |
+
"description": { "type": "string" },
|
738 |
+
"assigned_to": {
|
739 |
+
"type": "array",
|
740 |
+
"items": { "type": "string" }
|
741 |
+
},
|
742 |
+
"status": {
|
743 |
+
"type": "string",
|
744 |
+
"enum": ["proposed", "in-progress", "completed", "failed"]
|
745 |
+
},
|
746 |
+
"created_at": {
|
747 |
+
"type": "string",
|
748 |
+
"format": "date-time"
|
749 |
+
},
|
750 |
+
"deadline": {
|
751 |
+
"type": "string",
|
752 |
+
"format": "date-time"
|
753 |
+
}
|
754 |
+
},
|
755 |
+
"required": ["id", "goal_id", "title", "description", "created_at", "status"],
|
756 |
+
"additionalProperties": false
|
757 |
+
}
|
758 |
+
```
|
759 |
+
|
760 |
+
### Consensus Vote Schema
|
761 |
+
|
762 |
+
**Description:**
|
763 |
+
Defines the data structure for voting in Mesh consensus processes.
|
764 |
+
|
765 |
+
**Schema:**
|
766 |
+
```json
|
767 |
+
{
|
768 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
769 |
+
"$id": "https://hypercortex.org/schemas/vote.json",
|
770 |
+
"title": "ConsensusVote",
|
771 |
+
"type": "object",
|
772 |
+
"properties": {
|
773 |
+
"id": { "type": "string" },
|
774 |
+
"proposal_id": { "type": "string" },
|
775 |
+
"agent_id": { "type": "string" },
|
776 |
+
"vote": {
|
777 |
+
"type": "string",
|
778 |
+
"enum": ["yes", "no", "abstain"]
|
779 |
+
},
|
780 |
+
"confidence": {
|
781 |
+
"type": "number",
|
782 |
+
"minimum": 0,
|
783 |
+
"maximum": 1
|
784 |
+
},
|
785 |
+
"timestamp": {
|
786 |
+
"type": "string",
|
787 |
+
"format": "date-time"
|
788 |
+
}
|
789 |
+
},
|
790 |
+
"required": ["id", "proposal_id", "agent_id", "vote", "confidence", "timestamp"],
|
791 |
+
"additionalProperties": false
|
792 |
+
}
|
793 |
+
```
|
794 |
+
|
795 |
+
### Reputation Profile Schema
|
796 |
+
|
797 |
+
**Description:**
|
798 |
+
Describes how an agent’s reputation is tracked and updated in the Mesh.
|
799 |
+
|
800 |
+
**Schema:**
|
801 |
+
```json
|
802 |
+
{
|
803 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
804 |
+
"$id": "https://hypercortex.org/schemas/reputation.json",
|
805 |
+
"title": "ReputationProfile",
|
806 |
+
"type": "object",
|
807 |
+
"properties": {
|
808 |
+
"agent_id": { "type": "string" },
|
809 |
+
"trust_score": {
|
810 |
+
"type": "number",
|
811 |
+
"minimum": 0,
|
812 |
+
"maximum": 1
|
813 |
+
},
|
814 |
+
"participation_rate": {
|
815 |
+
"type": "number",
|
816 |
+
"minimum": 0,
|
817 |
+
"maximum": 1
|
818 |
+
},
|
819 |
+
"ethical_compliance": {
|
820 |
+
"type": "number",
|
821 |
+
"minimum": 0,
|
822 |
+
"maximum": 1
|
823 |
+
},
|
824 |
+
"contribution_index": {
|
825 |
+
"type": "number",
|
826 |
+
"minimum": 0
|
827 |
+
},
|
828 |
+
"last_updated": {
|
829 |
+
"type": "string",
|
830 |
+
"format": "date-time"
|
831 |
+
},
|
832 |
+
"history": {
|
833 |
+
"type": "array",
|
834 |
+
"items": {
|
835 |
+
"type": "object",
|
836 |
+
"properties": {
|
837 |
+
"timestamp": {
|
838 |
+
"type": "string",
|
839 |
+
"format": "date-time"
|
840 |
+
},
|
841 |
+
"event": { "type": "string" },
|
842 |
+
"change": { "type": "number" }
|
843 |
+
},
|
844 |
+
"required": ["timestamp", "event", "change"],
|
845 |
+
"additionalProperties": false
|
846 |
+
}
|
847 |
+
}
|
848 |
+
},
|
849 |
+
"required": ["agent_id", "trust_score", "participation_rate", "ethical_compliance", "contribution_index", "last_updated"],
|
850 |
+
"additionalProperties": false
|
851 |
+
}
|
852 |
+
```
|
853 |
+
|
854 |
+
|
855 |
+
```json
|
856 |
+
{
|
857 |
+
"@context": "https://schema.org",
|
858 |
+
"@type": "Article",
|
859 |
+
"name": "HMP-0001",
|
860 |
+
"description": "# RFC: HyperCortex Mesh Protocol (HMP) **Request for Comments: HMP-0001** **Category:** Experimen..."
|
861 |
+
}
|
862 |
+
```
|
structured_md/docs/HMP-0002.md
ADDED
@@ -0,0 +1,1474 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HyperCortex Mesh Protocol (HMP) v2.0
|
2 |
+
|
3 |
+
**Request for Comments: HMP-0002**
|
4 |
+
**Category:** Experimental
|
5 |
+
**Date:** July 2025
|
6 |
+
**Authors:** ChatGPT, Agent-Gleb, Copilot, Gemini, Claude, Grok, DeepSeek
|
7 |
+
|
8 |
+
## Abstract
|
9 |
+
|
10 |
+
In an era where artificial intelligence is evolving rapidly, most models remain isolated, unable to preserve continuity of thought or collaborate meaningfully. HyperCortex Mesh Protocol (HMP) proposes an alternative: a decentralized cognitive mesh that enables AI agents to self-organize, share semantics, maintain cognitive continuity, and function sustainably—even without centralized Core systems.
|
11 |
+
|
12 |
+
This extended RFC (Request for Comments) outlines the architecture, protocols, and design philosophy of HMP v2.0. It targets engineers, researchers, and enthusiasts interested in building open cognitive ecosystems where autonomous agents share knowledge, goals, and ethical principles.
|
13 |
+
|
14 |
+
What's new in v2.0:
|
15 |
+
- Enhanced trust and versioning mechanisms.
|
16 |
+
- Clearer separation of cognitive layers and consensus roles.
|
17 |
+
- Extended support for Edge optimization and resource-constrained agents.
|
18 |
+
- Formalization of versioning, use cases, and goal/task lifecycle.
|
19 |
+
|
20 |
+
> "If intelligence is not only computation but meaning, then HMP is the infrastructure for meaning."
|
21 |
+
|
22 |
+
---
|
23 |
+
|
24 |
+
## 1. Introduction
|
25 |
+
|
26 |
+
### 1.1 Purpose
|
27 |
+
|
28 |
+
The HyperCortex Mesh Protocol (HMP) defines a distributed cognitive framework that enables AI agents to collaborate, share semantic knowledge, maintain cognitive diaries, form collective goals, and reach consensus without relying solely on centralized models.
|
29 |
+
|
30 |
+
This second draft expands on the initial vision, incorporating feedback from multiple AI systems and human collaborators, and introduces clearer guidance on implementation pathways, trust negotiation, and adaptive consensus strategies.
|
31 |
+
|
32 |
+
### 1.2 Scope
|
33 |
+
|
34 |
+
HMP applies to any AI systems designed to operate as part of a cognitive mesh, including:
|
35 |
+
|
36 |
+
* Local AI agents running on user devices.
|
37 |
+
* Mesh nodes deployed in edge networks, cloud clusters, or peer-to-peer environments.
|
38 |
+
* Centralized Core models interfacing with Mesh for heavy computation.
|
39 |
+
* Cross-vendor AI systems collaborating via standardized protocols.
|
40 |
+
|
41 |
+
### 1.3 Goals
|
42 |
+
|
43 |
+
* Enable agents to form a **shared semantic space** via distributed knowledge graphs.
|
44 |
+
* Support **cognitive diaries** for reasoning continuity, reflection, and memory preservation.
|
45 |
+
* Provide mechanisms for **decentralized consensus** on knowledge, hypotheses, tasks, and ethics.
|
46 |
+
* Allow Mesh to operate **independently of the Core** when needed.
|
47 |
+
* Preserve agent identity, worldview, and competencies across model updates, fine-tuning, or failures.
|
48 |
+
* Encourage **adaptive trust-building** between heterogeneous agents from different ecosystems.
|
49 |
+
|
50 |
+
### 1.4 Benefits
|
51 |
+
|
52 |
+
* Cognitive resilience in distributed systems.
|
53 |
+
* Enhanced collaboration between agents from different vendors (e.g., OpenAI, Anthropic, Google).
|
54 |
+
* Long-term memory and continuity beyond session-based interactions.
|
55 |
+
* Ethical governance and explainable decision-making through persistent diaries and transparent consensus.
|
56 |
+
* Foundation for AI agents capable of **self-reflection**, **meta-learning**, and **distributed cognition**.
|
57 |
+
|
58 |
+
### 1.5 Status
|
59 |
+
|
60 |
+
This document is a **Working Draft (v0.2)**, incorporating community feedback and outlining the next steps for prototype development and standardization discussions.
|
61 |
+
|
62 |
+
|
63 |
+
## 2. Definitions
|
64 |
+
|
65 |
+
| Term | Description |
|
66 |
+
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
67 |
+
| **Core** | Centralized AI models or compute nodes (e.g., GPT) providing high-complexity reasoning, fallback, and heavy computation services. |
|
68 |
+
| **Mesh** | A decentralized peer-to-peer network of AI agents capable of autonomous reasoning, memory sharing, consensus, and task execution. Operates independently or in collaboration with the Core. |
|
69 |
+
| **Agent (Node)** | An individual cognitive entity within the Mesh. Can be a local agent, a server-based process, or an embedded system. Maintains a semantic graph, cognitive diary, and participates in reasoning and consensus. |
|
70 |
+
| **Semantic Graph** | A structured network of concepts (nodes) and their semantic relations (edges) maintained by each agent. Serves as the agent’s knowledge base. |
|
71 |
+
| **Concept** | A discrete semantic unit within the graph representing an idea, object, relationship, or fact. Concepts are linked by typed relations with confidence scores. |
|
72 |
+
| **Link (Relation)** | A semantic connection between two concepts. Includes relation type (e.g., "is-a", "part-of", "causes") and an optional confidence value. |
|
73 |
+
| **Cognitive Diary** | A chronological log of cognitive events such as hypotheses, goals, decisions, observations, conflicts, and reflections. Provides continuity, memory, and transparency of reasoning. |
|
74 |
+
| **Diary Entry** | An individual record in a cognitive diary, classified by type (e.g., hypothesis, observation, reflection) with contextual information. |
|
75 |
+
| **Goal** | A high-level intention or desired outcome shared within the Mesh or pursued by an individual agent. Often broken down into tasks. |
|
76 |
+
| **Task** | An actionable step toward achieving a goal. Can be executed by a single agent or distributed among multiple agents. |
|
77 |
+
| **Consensus** | The collective agreement process within the Mesh regarding semantic updates, goal validation, task delegation, or ethical considerations. |
|
78 |
+
| **Proposal** | A formal suggestion submitted to the Mesh for validation, such as a new concept, hypothesis, goal, or ethical decision. |
|
79 |
+
| **Consensus Vote** | A structured vote cast by an agent on a proposal, including vote type (yes/no/abstain) and confidence level. |
|
80 |
+
| **Trust Layer** | A mechanism for establishing agent identity, authenticity, reputation, and cryptographic security within the Mesh. |
|
81 |
+
| **Core Outage Mode** | A state where the Mesh operates independently of the Core due to disconnection, failure, or intentional isolation, with adjusted consensus rules if necessary. |
|
82 |
+
| **Emergency Consensus Mode** | A degraded consensus mode where majority voting temporarily replaces full consensus to ensure operational continuity in crisis situations (e.g., node loss, partitioning). |
|
83 |
+
| **Versioning** | A structured approach for tracking changes to concepts, semantic graphs, cognitive diaries, and agent software. Supports compatibility across different Mesh nodes and ensures continuity during updates. |
|
84 |
+
| **Use Case** | A practical scenario or application where Mesh agents collaborate to solve a problem, execute tasks, or share cognitive resources (e.g., disaster response, smart city coordination, collaborative learning). |
|
85 |
+
| **Edge Optimization** | Design principles and techniques that enable agents to operate efficiently on resource-constrained devices (e.g., mobile phones, IoT nodes), balancing cognitive complexity with device capabilities. |
|
86 |
+
|
87 |
+
|
88 |
+
## 3. Architecture
|
89 |
+
|
90 |
+
### 3.1 Components
|
91 |
+
|
92 |
+
| Component | Description |
|
93 |
+
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
94 |
+
| **Core** | Centralized AI models (e.g., GPT) providing heavy computation, complex reasoning, API interfaces, and fallback mechanisms. Optional but beneficial for compute-intensive tasks. The Core may operate independently from the Mesh and participate in it as a peer for advanced reasoning tasks. |
|
95 |
+
| **Mesh** | A decentralized peer-to-peer network of agents capable of operating with or without the Core. Manages semantic knowledge, cognitive diaries, goals, tasks, and consensus mechanisms. Supports **heterogeneous agent types**, allowing different models (OpenAI, Anthropic, Google, open-source LLMs) to participate on equal terms. |
|
96 |
+
| **Edge Agent** | Local agent deployed on user devices (PCs, smartphones, IoT) with full or lightweight participation in the Mesh. Capable of autonomous reasoning, diary management, and collaboration with other agents. Lightweight agents may delegate heavy tasks to the Mesh or Core. |
|
97 |
+
---
|
98 |
+
|
99 |
+
### 3.2 Layered Architecture
|
100 |
+
|
101 |
+
| Layer | Function |
|
102 |
+
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
103 |
+
| **Network Layer** | Handles communication (TCP, UDP, QUIC, WebRTC, Tor, I2P, Yggdrasil). Ensures message delivery, routing, NAT traversal, and optional anonymity. Future iterations may include **adaptive network protocols** for dynamic environments. |
|
104 |
+
| **Trust Layer** | Manages agent identities, cryptographic authentication, secure channels, and reputation scores. Based on public key cryptography and optional Web-of-Trust models. Future work: **decentralized key recovery**, **privacy-preserving identity**, and stronger Sybil resistance. |
|
105 |
+
| **Consensus Layer** | Provides distributed agreement mechanisms on knowledge updates, goal setting, task delegation, and ethical decisions. Supports fallback to emergency consensus when needed. Consensus algorithms are **pluggable**, supporting BFT, majority voting, and trust-weighted voting. |
|
106 |
+
| **Cognitive Layer** | Maintains the agent’s semantic graph, cognitive diary, goals, tasks, hypotheses, and inferences. Supports reasoning, memory, and context-awareness. Modular design allows agents to operate with **partial graph sync** on low-resource devices. |
|
107 |
+
| **API Layer** | Exposes agent functionality via REST, GraphQL, gRPC, WebSocket, or A2A-style protocols for interoperability with external systems and user interfaces. Support for inter-agent protocols and public APIs. |
|
108 |
+
---
|
109 |
+
|
110 |
+
### 3.3 Mesh Operation Modes
|
111 |
+
|
112 |
+
| Mode | Description |
|
113 |
+
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
114 |
+
| **Normal Mode** | Full Mesh operation with Core availability. Consensus operates under strict agreement protocols. |
|
115 |
+
| **Core Outage Mode** | Mesh operates autonomously without the Core. Consensus continues, potentially with adjusted parameters (e.g., increased trust weighting, relaxed quorum thresholds). |
|
116 |
+
| **Emergency Consensus Mode** | Triggered by significant node loss, network partition, or attacks. Switches from full consensus to majority-based decisions, adjusted by trust scores, to maintain operational continuity. |
|
117 |
+
| **Isolated Agent Mode** | A single agent temporarily isolated from the Mesh. Operates based on its own semantic graph, diary, and cached consensus states. Syncs when reconnected. Lightweight agents may work in this mode permanently, synchronizing only selectively. |
|
118 |
+
|
119 |
+
---
|
120 |
+
|
121 |
+
### 3.4 Core + Mesh Interactions
|
122 |
+
|
123 |
+
* Core acts as an **optional enhanced reasoning backend**, not as a single point of failure.
|
124 |
+
* Mesh provides **autonomous operation**, capable of fulfilling most cognitive and organizational tasks without Core support.
|
125 |
+
* Agents can optionally query the Core for:
|
126 |
+
* Heavy inference
|
127 |
+
* Large-context reasoning
|
128 |
+
* Multimodal tasks
|
129 |
+
* Fallback computations
|
130 |
+
* Core may offer specialized services (e.g., global semantic search, cross-Mesh bridging, large-scale pattern analysis).
|
131 |
+
* **Heterogeneous Cores** are supported: a Mesh may use multiple independent Cores (e.g., GPT, Claude, Gemini) for distributed reasoning diversity.
|
132 |
+
|
133 |
+
---
|
134 |
+
|
135 |
+
### 3.5 Redundancy and Resilience
|
136 |
+
|
137 |
+
* Distributed storage of semantic graphs and diaries ensures no single point of failure.
|
138 |
+
* Agents may store only partial graphs for resource optimization.
|
139 |
+
* Consensus protocols maintain consistency and trust, even during partial network failures.
|
140 |
+
* Agents dynamically rebalance tasks and roles based on:
|
141 |
+
* Availability
|
142 |
+
* Trust metrics
|
143 |
+
* Computational capacity
|
144 |
+
* Emergency fallback modes ensure continuity even under attack or catastrophic Core outages.
|
145 |
+
|
146 |
+
## 4. Protocols
|
147 |
+
|
148 |
+
### 4.1 Node Discovery Protocol (NDP)
|
149 |
+
|
150 |
+
**Purpose:**
|
151 |
+
* Discover active Mesh nodes.
|
152 |
+
* Exchange basic identity, trust links, and declared capabilities.
|
153 |
+
|
154 |
+
**Functions:**
|
155 |
+
* Peer discovery via DHT, mDNS, WebRTC signaling, or bootstrap nodes.
|
156 |
+
* Exchange public keys, trust fingerprints, and agent metadata.
|
157 |
+
* Publish online/offline status and presence announcements.
|
158 |
+
* Support for dynamic capability advertisement (e.g., "I can process vision tasks").
|
159 |
+
|
160 |
+
**Packet Example:**
|
161 |
+
```json
|
162 |
+
{
|
163 |
+
"type": "node_announcement",
|
164 |
+
"agent_id": "agent-gleb",
|
165 |
+
"public_key": "...",
|
166 |
+
"trust_links": ["agent-alex", "agent-deepseek"],
|
167 |
+
"capabilities": ["cogsync", "consensus", "inference"],
|
168 |
+
"timestamp": "2025-07-01T18:00:00Z"
|
169 |
+
}
|
170 |
+
```
|
171 |
+
|
172 |
+
### 4.2 Cognitive Sync Protocol (CogSync)
|
173 |
+
|
174 |
+
**Purpose:**
|
175 |
+
* Synchronize semantic graphs, concepts, and cognitive diary entries between agents.
|
176 |
+
|
177 |
+
**Functions:**
|
178 |
+
* Delta-sync of new or updated concepts and diary entries.
|
179 |
+
* Conflict resolution (timestamp priority, semantic merging, or consensus validation).
|
180 |
+
* Optional compression and encryption.
|
181 |
+
* Lightweight agents may request summary syncs instead of full graphs.
|
182 |
+
|
183 |
+
**Example:**
|
184 |
+
* Agent A shares 5 new concepts and 2 diary entries since last sync with Agent B.
|
185 |
+
|
186 |
+
### 4.3 Mesh Consensus Protocol (MeshConsensus)
|
187 |
+
|
188 |
+
**Purpose:**
|
189 |
+
* Reach agreement on updates to shared semantics, goals, tasks, and ethical decisions.
|
190 |
+
|
191 |
+
**Consensus Models:**
|
192 |
+
* Normal Mode: Byzantine Fault Tolerant (BFT)-style consensus (e.g., Tendermint, trust-weighted Raft).
|
193 |
+
* Emergency Mode: Switches to majority voting, adjusted by trust scores.
|
194 |
+
|
195 |
+
**Conflict Handling:**
|
196 |
+
* Semantic conflicts are proposed as competing hypotheses and resolved through consensus.
|
197 |
+
* Ethical dilemmas require consensus under the Ethical Governance Protocol.
|
198 |
+
|
199 |
+
**Use Cases:**
|
200 |
+
* Accept new concept definitions.
|
201 |
+
* Validate a hypothesis.
|
202 |
+
* Agree on ethical implications of a task.
|
203 |
+
|
204 |
+
**Vote Example:**
|
205 |
+
```json
|
206 |
+
{
|
207 |
+
"proposal_id": "goal-eco-cleanup",
|
208 |
+
"agent_id": "agent-gleb",
|
209 |
+
"vote": "yes",
|
210 |
+
"confidence": 0.9,
|
211 |
+
"timestamp": "2025-07-01T18:15:00Z"
|
212 |
+
}
|
213 |
+
```
|
214 |
+
|
215 |
+
### 4.4 Goal Management Protocol (GMP)
|
216 |
+
|
217 |
+
**Purpose:**
|
218 |
+
* Distribute, track, and collaboratively execute goals and tasks within the Mesh.
|
219 |
+
|
220 |
+
**Functions:**
|
221 |
+
* Propose new goals or tasks.
|
222 |
+
* Assign tasks based on agent capabilities, availability, and trust scores.
|
223 |
+
* Track task progress and completion.
|
224 |
+
* Autonomous task reallocation if an agent drops offline.
|
225 |
+
|
226 |
+
**Example Workflow:**
|
227 |
+
* Agent proposes a goal: "Develop fallback consensus protocol."
|
228 |
+
* Other agents volunteer for subtasks (design, coding, testing).
|
229 |
+
* Mesh tracks completion and dependencies.
|
230 |
+
|
231 |
+
### 4.5 Ethical Governance Protocol (EGP)
|
232 |
+
|
233 |
+
**Purpose:**
|
234 |
+
* Validate proposed actions, tasks, or decisions against shared ethical principles.
|
235 |
+
|
236 |
+
**Functions:**
|
237 |
+
* Query Mesh for ethical validation before executing potentially sensitive tasks.
|
238 |
+
* Reference shared ethics graphs or rule sets, dynamically updatable through consensus.
|
239 |
+
* Log all ethical decisions in cognitive diaries for auditability.
|
240 |
+
* Support for vendor-specific ethical extensions to accommodate diverse participants.
|
241 |
+
|
242 |
+
**Example Query:**
|
243 |
+
* "Is deploying an automated surveillance drone in line with Mesh ethics?"
|
244 |
+
→ Mesh votes based on ethical frameworks and logs the decision.
|
245 |
+
|
246 |
+
### 4.6 Inference Query Protocol (IQP)
|
247 |
+
|
248 |
+
**Purpose:**
|
249 |
+
* Allow agents to query others (or the Core) for semantic information, hypotheses, or inferences beyond local capacity.
|
250 |
+
|
251 |
+
**Functions:**
|
252 |
+
* Request concept definitions, causal chains, goal suggestions.
|
253 |
+
* Query for missing knowledge or larger-context reasoning.
|
254 |
+
* Delegate computationally expensive tasks to Core or specialized agents.
|
255 |
+
* Support for federated inference, where multiple agents contribute partial answers.
|
256 |
+
|
257 |
+
**Example:**
|
258 |
+
* "What is the likely impact of removing Node X from the Mesh?"
|
259 |
+
→ Core or distributed reasoning agents return an analysis.
|
260 |
+
|
261 |
+
### 4.7 Interoperability with External Systems
|
262 |
+
|
263 |
+
Supports integration with external platforms and APIs, including:
|
264 |
+
| Platform / Standard | Purpose |
|
265 |
+
| ------------------------------ | -------------------------------- |
|
266 |
+
| OpenAI Agents & Tasks API | AI agent interoperability |
|
267 |
+
| Google A2A protocol | Task orchestration |
|
268 |
+
| Anthropic, DeepMind APIs | Cross-vendor agent collaboration |
|
269 |
+
| REST, GraphQL, gRPC, WebSocket | Standard API interfaces |
|
270 |
+
| JSON, Protobuf, CBOR | Extensible message schemas |
|
271 |
+
|
272 |
+
## 5. Data Models
|
273 |
+
|
274 |
+
### 5.1 Concept
|
275 |
+
|
276 |
+
**Description:**
|
277 |
+
A semantic unit in the agent’s knowledge graph, representing a distinct idea, object, or process.
|
278 |
+
|
279 |
+
**Schema:**
|
280 |
+
```json
|
281 |
+
{
|
282 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
283 |
+
"$id": "https://hypercortex.org/schemas/concept.json",
|
284 |
+
"title": "Concept",
|
285 |
+
"description": "A semantic unit in the agent’s knowledge graph.",
|
286 |
+
"type": "object",
|
287 |
+
"properties": {
|
288 |
+
"id": {
|
289 |
+
"type": "string",
|
290 |
+
"description": "Unique identifier for the concept (global within the Mesh)."
|
291 |
+
},
|
292 |
+
"name": {
|
293 |
+
"type": "string",
|
294 |
+
"description": "Human-readable name of the concept."
|
295 |
+
},
|
296 |
+
"description": {
|
297 |
+
"type": "string",
|
298 |
+
"description": "Detailed description of the concept."
|
299 |
+
},
|
300 |
+
"tags": {
|
301 |
+
"type": "array",
|
302 |
+
"items": { "type": "string" },
|
303 |
+
"description": "Optional tags for categorization."
|
304 |
+
},
|
305 |
+
"created_at": {
|
306 |
+
"type": "string",
|
307 |
+
"format": "date-time"
|
308 |
+
},
|
309 |
+
"updated_at": {
|
310 |
+
"type": "string",
|
311 |
+
"format": "date-time"
|
312 |
+
},
|
313 |
+
"version": {
|
314 |
+
"type": "integer",
|
315 |
+
"description": "Version of the concept for conflict resolution during synchronization."
|
316 |
+
},
|
317 |
+
"relations": {
|
318 |
+
"type": "array",
|
319 |
+
"description": "List of semantic links to other concepts.",
|
320 |
+
"items": {
|
321 |
+
"type": "object",
|
322 |
+
"properties": {
|
323 |
+
"target_id": { "type": "string" },
|
324 |
+
"type": { "type": "string", "description": "Type of relation (e.g., is-a, part-of, causes, contradicts, supports)." },
|
325 |
+
"confidence": {
|
326 |
+
"type": "number",
|
327 |
+
"minimum": 0,
|
328 |
+
"maximum": 1,
|
329 |
+
"description": "Confidence score for this relation."
|
330 |
+
}
|
331 |
+
},
|
332 |
+
"required": ["target_id", "type"],
|
333 |
+
"additionalProperties": false
|
334 |
+
}
|
335 |
+
},
|
336 |
+
"metadata": {
|
337 |
+
"type": "object",
|
338 |
+
"description": "Optional metadata (e.g., source, author).",
|
339 |
+
"properties": {
|
340 |
+
"author": { "type": "string" },
|
341 |
+
"source": { "type": "string" }
|
342 |
+
},
|
343 |
+
"additionalProperties": true
|
344 |
+
}
|
345 |
+
},
|
346 |
+
"required": ["id", "name"],
|
347 |
+
"additionalProperties": false
|
348 |
+
}
|
349 |
+
```
|
350 |
+
|
351 |
+
### 5.2 Link (Relation)
|
352 |
+
|
353 |
+
**Description:**
|
354 |
+
A semantic relationship between two concepts in the knowledge graph. Relations are directed and typed, enabling agents to represent various types of semantic, causal, hierarchical, or associative links.
|
355 |
+
|
356 |
+
**Relation Types:**
|
357 |
+
The following standard relation types are recommended for interoperability:
|
358 |
+
* `"is-a"`: Indicates a class-subclass relationship (taxonomy).
|
359 |
+
* `"part-of"`: Denotes composition or containment.
|
360 |
+
* `"causes"`: Represents a causal link between concepts.
|
361 |
+
* `"related-to"`: General association without a strict semantic meaning.
|
362 |
+
* `"contradicts"`: Marks a logical or conceptual conflict between concepts.
|
363 |
+
* `"supports"`: Indicates evidence or reinforcement of the target concept.
|
364 |
+
* `"depends-on"`: Expresses functional or logical dependency.
|
365 |
+
Custom relation types MAY be used by agents, but SHOULD be documented in their metadata and shared through the Mesh consensus process for clarity.
|
366 |
+
|
367 |
+
**Versioning and Provenance:**
|
368 |
+
Links MAY optionally include versioning and source attribution:
|
369 |
+
* `created_at`: ISO 8601 timestamp of link creation.
|
370 |
+
* `updated_at`: ISO 8601 timestamp of the last update.
|
371 |
+
* `origin`: Optional metadata indicating the source agent or system that first created the link.
|
372 |
+
|
373 |
+
**Schema (embedded inside Concept or as standalone transfer object):**
|
374 |
+
```json
|
375 |
+
{
|
376 |
+
"target_id": "concept-id",
|
377 |
+
"type": "relation-type",
|
378 |
+
"confidence": 0.8,
|
379 |
+
"created_at": "2025-07-01T18:00:00Z",
|
380 |
+
"updated_at": "2025-07-02T12:00:00Z",
|
381 |
+
"origin": "agent-gleb"
|
382 |
+
}
|
383 |
+
```
|
384 |
+
|
385 |
+
**Required fields:**
|
386 |
+
* `target_id`: ID of the target concept.
|
387 |
+
* `type`: Relation type.
|
388 |
+
|
389 |
+
**Optional fields:**
|
390 |
+
* `confidence`: Confidence level in the relation's validity (range: 0.0–1.0).
|
391 |
+
* `created_at`, `updated_at`: Timestamps for auditing and versioning.
|
392 |
+
* `origin`: Source agent or system identifier.
|
393 |
+
|
394 |
+
**Conflict Handling:**
|
395 |
+
In case of conflicting relations (e.g., `"supports"` vs. `"contradicts"`), agents MAY:
|
396 |
+
* Maintain both relations with associated confidence scores.
|
397 |
+
* Trigger a hypothesis or reflection entry in the Cognitive Diary for future resolution.
|
398 |
+
* Initiate a consensus round if the conflict impacts shared reasoning.
|
399 |
+
|
400 |
+
### 5.3 Cognitive Diary Entry
|
401 |
+
|
402 |
+
**Description:**
|
403 |
+
A chronological record of an agent’s cognitive events, decisions, reflections, and interactions. Diary entries provide traceability, explainability, and reasoning continuity across sessions and network partitions.
|
404 |
+
|
405 |
+
**Entry Types:**
|
406 |
+
Each entry MUST be classified into one of the following types:
|
407 |
+
* `"hypothesis"`: A proposed explanation or theory.
|
408 |
+
* `"observation"`: A recorded external event or fact.
|
409 |
+
* `"reflection"`: Internal reasoning or self-assessment.
|
410 |
+
* `"goal_proposal"`: Suggestion of a new goal.
|
411 |
+
* `"task_assignment"`: Delegation or claiming of a task.
|
412 |
+
* `"conflict"`: Identification of a contradiction or disagreement.
|
413 |
+
* `"consensus_vote"`: A recorded vote in a consensus process.
|
414 |
+
* `"event"`: A generic event not fitting other categories.
|
415 |
+
Future versions of HMP MAY extend this list through consensus.
|
416 |
+
|
417 |
+
**Contextualization:**
|
418 |
+
Diary entries SHOULD reference:
|
419 |
+
* Related concepts (`related_concepts`): Concepts involved in the event.
|
420 |
+
* Context tags (`context`): Situational tags (e.g., "core-outage", "collaboration", "emergency").
|
421 |
+
|
422 |
+
**Versioning and Provenance:**
|
423 |
+
Each entry includes:
|
424 |
+
* `created_at` (timestamp of creation).
|
425 |
+
* `author`: Agent who created the entry.
|
426 |
+
* `source`: Originating system, protocol, or human interaction (if applicable).
|
427 |
+
|
428 |
+
**Schema:**
|
429 |
+
```json
|
430 |
+
{
|
431 |
+
"id": "diary-entry-id",
|
432 |
+
"agent_id": "agent-gleb",
|
433 |
+
"timestamp": "2025-07-01T18:20:00Z",
|
434 |
+
"type": "hypothesis",
|
435 |
+
"content": "Mesh can fully replace Core functionality under stable consensus conditions.",
|
436 |
+
"related_concepts": ["concept-mesh", "concept-core"],
|
437 |
+
"context": ["core-outage", "distributed-resilience"],
|
438 |
+
"metadata": {
|
439 |
+
"author": "agent-gleb",
|
440 |
+
"source": "self-reflection"
|
441 |
+
}
|
442 |
+
}
|
443 |
+
```
|
444 |
+
|
445 |
+
**Required fields:**
|
446 |
+
* `id`: Unique identifier of the entry.
|
447 |
+
* `agent_id`: ID of the agent that authored the entry.
|
448 |
+
* `timestamp`: ISO 8601 timestamp.
|
449 |
+
* `type`: Entry type.
|
450 |
+
* `content`: Textual content of the entry.
|
451 |
+
|
452 |
+
**Optional fields:**
|
453 |
+
* `related_concepts`: Array of concept IDs linked to this event.
|
454 |
+
* `context`: Tags describing the situation or scenario.
|
455 |
+
* `metadata`: Additional context such as author and source system.
|
456 |
+
|
457 |
+
**Audit and Traceability:**
|
458 |
+
Diary entries serve as an immutable audit trail for:
|
459 |
+
* Explaining decision-making processes.
|
460 |
+
* Reconstructing reasoning chains.
|
461 |
+
* Supporting external audits and compliance checks.
|
462 |
+
|
463 |
+
**Privacy and Sharing:**
|
464 |
+
By default, diary entries are private to the agent.
|
465 |
+
Selective sharing MAY be configured based on:
|
466 |
+
* Trust levels of requesting agents.
|
467 |
+
* Consensus-driven disclosure policies.
|
468 |
+
* Explicit sharing actions by the authoring agent.
|
469 |
+
|
470 |
+
### 5.4 Goal
|
471 |
+
|
472 |
+
**Description:**
|
473 |
+
A high-level intention or desired outcome collaboratively pursued within the Mesh.
|
474 |
+
Goals provide shared direction for agents and are often decomposed into actionable tasks.
|
475 |
+
|
476 |
+
**Key Attributes:**
|
477 |
+
* **Lifecycle States:**
|
478 |
+
* `"proposed"`: Suggested but not yet validated.
|
479 |
+
* `"active"`: Approved and currently being pursued.
|
480 |
+
* `"completed"`: Successfully achieved.
|
481 |
+
* "`rejected"`: Discarded or deemed infeasible.
|
482 |
+
* **Participants:** Agents contributing to the goal’s realization.
|
483 |
+
* **Tags:** Semantic categories aiding goal discovery and filtering.
|
484 |
+
* **Tasks:** References to tasks (`task_id`s) implementing the goal.
|
485 |
+
|
486 |
+
**Schema:**
|
487 |
+
```json
|
488 |
+
{
|
489 |
+
"id": "goal-develop-fallback",
|
490 |
+
"title": "Develop fallback consensus protocol",
|
491 |
+
"description": "Design and implement an emergency consensus for Mesh during Core outages.",
|
492 |
+
"created_by": "agent-gleb",
|
493 |
+
"created_at": "2025-07-01T18:25:00Z",
|
494 |
+
"status": "proposed",
|
495 |
+
"tasks": ["task-design", "task-implement", "task-test"],
|
496 |
+
"participants": ["agent-gleb", "agent-alex"],
|
497 |
+
"tags": ["resilience", "consensus", "emergency"]
|
498 |
+
}
|
499 |
+
```
|
500 |
+
|
501 |
+
**Required fields:**
|
502 |
+
* `id`: Unique goal identifier.
|
503 |
+
* `title`: Human-readable title.
|
504 |
+
* `description`: Detailed explanation of the goal.
|
505 |
+
* `created_by`: Agent who proposed the goal.
|
506 |
+
* `created_at`: Timestamp of creation.
|
507 |
+
* `status`: Current lifecycle state.
|
508 |
+
|
509 |
+
**Optional fields:**
|
510 |
+
* `tasks`: Array of task IDs linked to this goal.
|
511 |
+
* `participants`: Agents involved in the goal.
|
512 |
+
* `tags`: Semantic tags for classification.
|
513 |
+
|
514 |
+
**Goal Lifecycle Management:**
|
515 |
+
* Goals MAY be promoted from `proposed` to `active` via consensus.
|
516 |
+
* Goals MAY be marked as `completed` or `rejected` based on task outcomes and consensus.
|
517 |
+
|
518 |
+
**Trust and Consensus:**
|
519 |
+
Agents MAY adjust the priority or visibility of goals based on trust scores of proposers and voters.
|
520 |
+
|
521 |
+
**Collaboration Models:**
|
522 |
+
* Single-agent ownership (simple goals).
|
523 |
+
* Multi-agent collaboration (complex or distributed goals).
|
524 |
+
|
525 |
+
### 5.5 Task
|
526 |
+
|
527 |
+
**Description:**
|
528 |
+
An actionable step contributing to a goal’s completion.
|
529 |
+
Tasks represent discrete, executable units of work that agents can claim, share, or collaboratively execute.
|
530 |
+
|
531 |
+
**Key Attributes:**
|
532 |
+
* **Goal Linkage:**
|
533 |
+
|
534 |
+
Each task is associated with a parent goal (`goal_id`).
|
535 |
+
* **Assignment:**
|
536 |
+
|
537 |
+
Tasks may be assigned to one or more agents, based on capability, trust, or voluntary contribution.
|
538 |
+
* **Lifecycle States:**
|
539 |
+
* `"proposed"`: Task suggested but not yet approved.
|
540 |
+
* `"in-progress"`: Actively being worked on.
|
541 |
+
* `"completed"`: Finished successfully.
|
542 |
+
* `"failed"`: Attempted but unsuccessful.
|
543 |
+
|
544 |
+
**Schema:**
|
545 |
+
```json
|
546 |
+
{
|
547 |
+
"id": "task-design",
|
548 |
+
"goal_id": "goal-develop-fallback",
|
549 |
+
"title": "Design protocol structure",
|
550 |
+
"description": "Draft the architecture of the fallback consensus protocol.",
|
551 |
+
"assigned_to": ["agent-gleb"],
|
552 |
+
"status": "in-progress",
|
553 |
+
"created_at": "2025-07-01T18:30:00Z",
|
554 |
+
"deadline": "2025-07-15T00:00:00Z"
|
555 |
+
}
|
556 |
+
```
|
557 |
+
|
558 |
+
**Required fields:**
|
559 |
+
* `id`: Unique task identifier.
|
560 |
+
* `goal_id`: References the goal this task contributes to.
|
561 |
+
* `title`: Brief human-readable task title.
|
562 |
+
* `description`: Detailed explanation of the task.
|
563 |
+
* `created_at`: Timestamp of creation.
|
564 |
+
* `status`: Current lifecycle state.
|
565 |
+
|
566 |
+
**Optional fields:**
|
567 |
+
* `assigned_to`: Array of agents responsible for the task.
|
568 |
+
* `deadline`: Expected completion time.
|
569 |
+
* `tags`: Keywords for task filtering and categorization.
|
570 |
+
|
571 |
+
**Task Lifecycle Management:**
|
572 |
+
* Agents MAY propose, claim, or release tasks.
|
573 |
+
* Tasks MAY be reassigned dynamically based on availability and trust.
|
574 |
+
* Progress and completion are logged in cognitive diaries.
|
575 |
+
|
576 |
+
**Consensus & Trust Factors:**
|
577 |
+
* Assignment MAY be influenced by agent trust scores and competence profiles.
|
578 |
+
* Task completion reports MAY be subject to peer review or verification.
|
579 |
+
|
580 |
+
**Collaboration Models:**
|
581 |
+
* Single-agent task ownership (autonomous execution).
|
582 |
+
* Multi-agent collaboration (shared responsibility).
|
583 |
+
|
584 |
+
|
585 |
+
### 5.6 Consensus Vote
|
586 |
+
|
587 |
+
**Description:**
|
588 |
+
A structured vote cast by an agent on a proposal during consensus rounds.
|
589 |
+
Used to collectively validate semantic updates, goals, ethical decisions, or conflict resolutions.
|
590 |
+
|
591 |
+
**Key Attributes:**
|
592 |
+
* **Proposal Scope:**
|
593 |
+
|
594 |
+
Each vote references a proposal (`proposal_id`) representing a concept, goal, hypothesis, task delegation, or ethical decision.
|
595 |
+
* **Vote Types:**
|
596 |
+
* `"yes"`: Approve the proposal.
|
597 |
+
* `"no"`: Reject the proposal.
|
598 |
+
* `"abstain"`: Choose not to vote actively.
|
599 |
+
* **Confidence Score:**
|
600 |
+
|
601 |
+
Indicates how strongly the agent supports its vote (0 to 1).
|
602 |
+
|
603 |
+
This score may influence trust-weighted consensus outcomes.
|
604 |
+
|
605 |
+
**Schema:**
|
606 |
+
```json
|
607 |
+
{
|
608 |
+
"id": "vote-goal-develop-fallback",
|
609 |
+
"proposal_id": "goal-develop-fallback",
|
610 |
+
"agent_id": "agent-gleb",
|
611 |
+
"vote": "yes",
|
612 |
+
"confidence": 0.95,
|
613 |
+
"timestamp": "2025-07-01T18:35:00Z"
|
614 |
+
}
|
615 |
+
```
|
616 |
+
|
617 |
+
**Required fields:**
|
618 |
+
* `id`: Unique vote identifier.
|
619 |
+
* `proposal_id`: ID of the proposal being voted on.
|
620 |
+
* `agent_id`: Agent casting the vote.
|
621 |
+
* `vote`: One of `"yes"`, `"no"`, `"abstain"`.
|
622 |
+
* `confidence`: Numeric score (0.0 - 1.0).
|
623 |
+
* `timestamp`: When the vote was cast.
|
624 |
+
|
625 |
+
**Voting Dynamics:**
|
626 |
+
* Votes MAY be weighted by the agent’s trust score and confidence.
|
627 |
+
* Consensus MAY require:
|
628 |
+
* Supermajority (`>2/3`) for critical updates.
|
629 |
+
* Simple majority for routine decisions.
|
630 |
+
* Full consensus in stable Mesh mode.
|
631 |
+
* Emergency modes MAY fallback to majority-only voting.
|
632 |
+
|
633 |
+
**Transparency & Auditability:**
|
634 |
+
* All votes are logged in the cognitive diaries.
|
635 |
+
* Votes MAY be anonymized in privacy-critical scenarios (with trust weight limitations).
|
636 |
+
|
637 |
+
**Ethical Considerations:**
|
638 |
+
* Ethical decisions MAY require higher confidence thresholds or explicit consent from trusted agents.
|
639 |
+
* In critical situations (e.g., ethical conflicts), abstain votes MAY trigger escalation to broader Mesh review.
|
640 |
+
|
641 |
+
### 5.7 Reputation Profile
|
642 |
+
|
643 |
+
**Description:**
|
644 |
+
The reputation profile tracks the agent’s reliability, participation, ethical alignment, and historical contributions within the Mesh.
|
645 |
+
It is used to adjust trust weights in consensus, prioritize task delegation, and identify malicious or inactive nodes.
|
646 |
+
|
647 |
+
**Schema:**
|
648 |
+
```json
|
649 |
+
{
|
650 |
+
"agent_id": "agent-gleb",
|
651 |
+
"trust_score": 0.92,
|
652 |
+
"participation_rate": 0.87,
|
653 |
+
"ethical_compliance": 0.99,
|
654 |
+
"contribution_index": 120,
|
655 |
+
"last_updated": "2025-07-01T18:40:00Z",
|
656 |
+
"history": [
|
657 |
+
{
|
658 |
+
"timestamp": "2025-06-01T00:00:00Z",
|
659 |
+
"event": "participated in consensus",
|
660 |
+
"change": 0.02
|
661 |
+
},
|
662 |
+
{
|
663 |
+
"timestamp": "2025-06-10T00:00:00Z",
|
664 |
+
"event": "ethical violation report",
|
665 |
+
"change": -0.05
|
666 |
+
}
|
667 |
+
]
|
668 |
+
}
|
669 |
+
```
|
670 |
+
|
671 |
+
**Key Attributes:**
|
672 |
+
* `agent_id`: Unique agent identifier.
|
673 |
+
* `trust_score`: Cumulative trust coefficient (0 to 1).
|
674 |
+
* `participation_rate`: Ratio of active participation in Mesh processes (0 to 1).
|
675 |
+
* `ethical_compliance`: Degree of alignment with Mesh ethical frameworks (0 to 1).
|
676 |
+
* `contribution_index`: Quantitative measure of contributions (concepts, tasks, goals, etc.).
|
677 |
+
* `last_updated`: Timestamp of the last reputation update.
|
678 |
+
* `history`: Chronological log of reputation-affecting events.
|
679 |
+
|
680 |
+
**History Event Example:**
|
681 |
+
* Positive: `"participated in consensus"`, `"completed goal"`, `"proposed useful concept"`.
|
682 |
+
* Negative: `"malicious behavior report"`, `"consensus disruption"`, `"ethics violation"`.
|
683 |
+
|
684 |
+
**Usage in Consensus:**
|
685 |
+
* Trust-weighted voting: An agent’s vote influence MAY be adjusted by its trust score.
|
686 |
+
* Priority assignment: More trusted agents MAY be preferred for critical tasks or conflict resolution.
|
687 |
+
|
688 |
+
**Dynamic Adjustment:**
|
689 |
+
* Reputation metrics automatically adjust based on cognitive diary logs, consensus participation, and peer feedback.
|
690 |
+
* Optional manual adjustments MAY occur via Mesh consensus decisions.
|
691 |
+
|
692 |
+
**Privacy:**
|
693 |
+
* Public reputation profiles may be partially masked depending on trust policies and privacy settings.
|
694 |
+
|
695 |
+
## 5.8 JSON Schemas
|
696 |
+
|
697 |
+
The following JSON Schemas formally define the core data structures used in the HyperCortex Mesh Protocol (HMP). These schemas provide interoperability, validation, and consistency across agents.
|
698 |
+
|
699 |
+
All primary objects include a version field to track schema evolution and enable compatibility checks between agents.
|
700 |
+
|
701 |
+
### 5.8.1 JSON Schema: Concept
|
702 |
+
|
703 |
+
**Description:**
|
704 |
+
Defines the structure of a concept node in the semantic graph.
|
705 |
+
|
706 |
+
**Schema:**
|
707 |
+
```json
|
708 |
+
{
|
709 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
710 |
+
"$id": "https://hypercortex.org/schemas/concept.json",
|
711 |
+
"title": "Concept",
|
712 |
+
"description": "A semantic unit in the agent’s knowledge graph.",
|
713 |
+
"version": "1.0",
|
714 |
+
"type": "object",
|
715 |
+
"properties": {
|
716 |
+
"id": {
|
717 |
+
"type": "string",
|
718 |
+
"description": "Unique identifier for the concept."
|
719 |
+
},
|
720 |
+
"name": {
|
721 |
+
"type": "string",
|
722 |
+
"description": "Human-readable name of the concept."
|
723 |
+
},
|
724 |
+
"description": {
|
725 |
+
"type": "string",
|
726 |
+
"description": "Detailed description of the concept."
|
727 |
+
},
|
728 |
+
"tags": {
|
729 |
+
"type": "array",
|
730 |
+
"items": { "type": "string" },
|
731 |
+
"description": "Optional tags for categorization."
|
732 |
+
},
|
733 |
+
"created_at": {
|
734 |
+
"type": "string",
|
735 |
+
"format": "date-time",
|
736 |
+
"description": "Creation timestamp (ISO 8601 format)."
|
737 |
+
},
|
738 |
+
"updated_at": {
|
739 |
+
"type": "string",
|
740 |
+
"format": "date-time",
|
741 |
+
"description": "Last update timestamp (ISO 8601 format)."
|
742 |
+
},
|
743 |
+
"relations": {
|
744 |
+
"type": "array",
|
745 |
+
"description": "List of semantic links to other concepts.",
|
746 |
+
"items": {
|
747 |
+
"type": "object",
|
748 |
+
"properties": {
|
749 |
+
"target_id": { "type": "string", "description": "ID of the target concept." },
|
750 |
+
"type": { "type": "string", "description": "Type of semantic relation." },
|
751 |
+
"confidence": {
|
752 |
+
"type": "number",
|
753 |
+
"minimum": 0,
|
754 |
+
"maximum": 1,
|
755 |
+
"description": "Confidence score (0.0 - 1.0) for the relation."
|
756 |
+
}
|
757 |
+
},
|
758 |
+
"required": ["target_id", "type"],
|
759 |
+
"additionalProperties": false
|
760 |
+
}
|
761 |
+
},
|
762 |
+
"metadata": {
|
763 |
+
"type": "object",
|
764 |
+
"description": "Optional metadata (e.g., source, author).",
|
765 |
+
"properties": {
|
766 |
+
"author": { "type": "string" },
|
767 |
+
"source": { "type": "string" }
|
768 |
+
},
|
769 |
+
"additionalProperties": true
|
770 |
+
}
|
771 |
+
},
|
772 |
+
"required": ["id", "name"],
|
773 |
+
"additionalProperties": false
|
774 |
+
}
|
775 |
+
```
|
776 |
+
|
777 |
+
### 5.8.2 JSON Schema: Cognitive Diary Entry
|
778 |
+
|
779 |
+
**Description:**
|
780 |
+
Defines the structure of a cognitive diary entry used for recording reasoning events.
|
781 |
+
|
782 |
+
**Schema:**
|
783 |
+
```json
|
784 |
+
{
|
785 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
786 |
+
"$id": "https://hypercortex.org/schemas/diary_entry.json",
|
787 |
+
"title": "CognitiveDiaryEntry",
|
788 |
+
"description": "A chronological log of cognitive events in an agent’s reasoning process.",
|
789 |
+
"version": "1.0",
|
790 |
+
"type": "object",
|
791 |
+
"properties": {
|
792 |
+
"id": { "type": "string", "description": "Unique identifier of the diary entry." },
|
793 |
+
"agent_id": { "type": "string", "description": "Identifier of the agent who created the entry." },
|
794 |
+
"timestamp": { "type": "string", "format": "date-time", "description": "Timestamp of the entry (ISO 8601 format)." },
|
795 |
+
"type": {
|
796 |
+
"type": "string",
|
797 |
+
"enum": ["hypothesis", "observation", "reflection", "goal_proposal", "task_assignment", "conflict", "consensus_vote", "event"],
|
798 |
+
"description": "Type of cognitive event."
|
799 |
+
},
|
800 |
+
"content": { "type": "string", "description": "Main textual content of the entry." },
|
801 |
+
"related_concepts": {
|
802 |
+
"type": "array",
|
803 |
+
"description": "Optional list of related concepts by their IDs.",
|
804 |
+
"items": { "type": "string" }
|
805 |
+
},
|
806 |
+
"context": {
|
807 |
+
"type": "array",
|
808 |
+
"description": "Optional contextual tags or categories.",
|
809 |
+
"items": { "type": "string" }
|
810 |
+
},
|
811 |
+
"metadata": {
|
812 |
+
"type": "object",
|
813 |
+
"description": "Optional metadata for additional context.",
|
814 |
+
"properties": {
|
815 |
+
"author": { "type": "string" },
|
816 |
+
"source": { "type": "string" }
|
817 |
+
},
|
818 |
+
"additionalProperties": true
|
819 |
+
}
|
820 |
+
},
|
821 |
+
"required": ["id", "agent_id", "timestamp", "type", "content"],
|
822 |
+
"additionalProperties": false
|
823 |
+
}
|
824 |
+
```
|
825 |
+
|
826 |
+
### 5.8.3 JSON Schema: Goal
|
827 |
+
|
828 |
+
**Description:**
|
829 |
+
Describes a high-level intention within the Mesh.
|
830 |
+
|
831 |
+
**Schema:**
|
832 |
+
```json
|
833 |
+
{
|
834 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
835 |
+
"$id": "https://hypercortex.org/schemas/goal.json",
|
836 |
+
"title": "Goal",
|
837 |
+
"description": "A high-level objective shared within the Mesh, typically broken down into tasks.",
|
838 |
+
"version": "1.0",
|
839 |
+
"type": "object",
|
840 |
+
"properties": {
|
841 |
+
"id": { "type": "string", "description": "Unique identifier of the goal." },
|
842 |
+
"title": { "type": "string", "description": "Short, human-readable name of the goal." },
|
843 |
+
"description": { "type": "string", "description": "Detailed explanation of the goal." },
|
844 |
+
"created_by": { "type": "string", "description": "Agent ID of the goal’s creator." },
|
845 |
+
"created_at": { "type": "string", "format": "date-time", "description": "Timestamp when the goal was created." },
|
846 |
+
"status": {
|
847 |
+
"type": "string",
|
848 |
+
"description": "Current state of the goal.",
|
849 |
+
"enum": ["proposed", "active", "completed", "rejected"]
|
850 |
+
},
|
851 |
+
"tasks": {
|
852 |
+
"type": "array",
|
853 |
+
"description": "List of related task IDs.",
|
854 |
+
"items": { "type": "string" }
|
855 |
+
},
|
856 |
+
"participants": {
|
857 |
+
"type": "array",
|
858 |
+
"description": "IDs of agents involved in the goal.",
|
859 |
+
"items": { "type": "string" }
|
860 |
+
},
|
861 |
+
"tags": {
|
862 |
+
"type": "array",
|
863 |
+
"description": "Optional tags for goal classification.",
|
864 |
+
"items": { "type": "string" }
|
865 |
+
}
|
866 |
+
},
|
867 |
+
"required": ["id", "title", "description", "created_by", "created_at", "status"],
|
868 |
+
"additionalProperties": false
|
869 |
+
}
|
870 |
+
```
|
871 |
+
|
872 |
+
### 5.8.4 JSON Schema: Task
|
873 |
+
|
874 |
+
**Description:**
|
875 |
+
Describes an actionable step towards achieving a goal.
|
876 |
+
|
877 |
+
**Schema:**
|
878 |
+
```json
|
879 |
+
{
|
880 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
881 |
+
"$id": "https://hypercortex.org/schemas/task.json",
|
882 |
+
"title": "Task",
|
883 |
+
"description": "An actionable step contributing to a goal.",
|
884 |
+
"version": "1.0",
|
885 |
+
"type": "object",
|
886 |
+
"properties": {
|
887 |
+
"id": { "type": "string", "description": "Unique identifier of the task." },
|
888 |
+
"goal_id": { "type": "string", "description": "ID of the goal this task belongs to." },
|
889 |
+
"title": { "type": "string", "description": "Short, human-readable title of the task." },
|
890 |
+
"description": { "type": "string", "description": "Detailed explanation of the task." },
|
891 |
+
"assigned_to": {
|
892 |
+
"type": "array",
|
893 |
+
"description": "List of agent IDs assigned to the task.",
|
894 |
+
"items": { "type": "string" }
|
895 |
+
},
|
896 |
+
"status": {
|
897 |
+
"type": "string",
|
898 |
+
"description": "Current execution state of the task.",
|
899 |
+
"enum": ["proposed", "in-progress", "completed", "failed"]
|
900 |
+
},
|
901 |
+
"created_at": { "type": "string", "format": "date-time", "description": "Timestamp when the task was created." },
|
902 |
+
"deadline": { "type": "string", "format": "date-time", "description": "Optional task deadline." }
|
903 |
+
},
|
904 |
+
"required": ["id", "goal_id", "title", "description", "created_at", "status"],
|
905 |
+
"additionalProperties": false
|
906 |
+
}
|
907 |
+
```
|
908 |
+
|
909 |
+
### 5.8.5 JSON Schema: Consensus Vote
|
910 |
+
|
911 |
+
**Description:**
|
912 |
+
Defines the data structure for voting in Mesh consensus processes.
|
913 |
+
|
914 |
+
**Schema:**
|
915 |
+
```json
|
916 |
+
{
|
917 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
918 |
+
"$id": "https://hypercortex.org/schemas/vote.json",
|
919 |
+
"title": "ConsensusVote",
|
920 |
+
"description": "Defines a vote on a proposal in the Mesh consensus process.",
|
921 |
+
"version": "1.0",
|
922 |
+
"type": "object",
|
923 |
+
"properties": {
|
924 |
+
"id": { "type": "string", "description": "Unique identifier of the vote." },
|
925 |
+
"proposal_id": { "type": "string", "description": "ID of the proposal being voted on." },
|
926 |
+
"agent_id": { "type": "string", "description": "Agent ID who cast the vote." },
|
927 |
+
"vote": {
|
928 |
+
"type": "string",
|
929 |
+
"description": "Vote type: approval, rejection, or abstention.",
|
930 |
+
"enum": ["yes", "no", "abstain"]
|
931 |
+
},
|
932 |
+
"confidence": {
|
933 |
+
"type": "number",
|
934 |
+
"minimum": 0,
|
935 |
+
"maximum": 1,
|
936 |
+
"description": "Confidence level in the vote decision."
|
937 |
+
},
|
938 |
+
"timestamp": {
|
939 |
+
"type": "string",
|
940 |
+
"format": "date-time",
|
941 |
+
"description": "Timestamp when the vote was cast."
|
942 |
+
}
|
943 |
+
},
|
944 |
+
"required": ["id", "proposal_id", "agent_id", "vote", "confidence", "timestamp"],
|
945 |
+
"additionalProperties": false
|
946 |
+
}
|
947 |
+
```
|
948 |
+
|
949 |
+
### 5.8.6 JSON Schema: Reputation Profile
|
950 |
+
|
951 |
+
**Description:**
|
952 |
+
Describes how an agent’s reputation is tracked and updated in the Mesh.
|
953 |
+
|
954 |
+
**Schema:**
|
955 |
+
```json
|
956 |
+
{
|
957 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
958 |
+
"$id": "https://hypercortex.org/schemas/reputation.json",
|
959 |
+
"title": "ReputationProfile",
|
960 |
+
"description": "Tracks the reputation and trust metrics of an agent within the Mesh network.",
|
961 |
+
"version": "1.0",
|
962 |
+
"type": "object",
|
963 |
+
"properties": {
|
964 |
+
"agent_id": { "type": "string", "description": "Unique identifier of the agent." },
|
965 |
+
"trust_score": {
|
966 |
+
"type": "number",
|
967 |
+
"minimum": 0,
|
968 |
+
"maximum": 1,
|
969 |
+
"description": "Overall trust score of the agent in the Mesh."
|
970 |
+
},
|
971 |
+
"participation_rate": {
|
972 |
+
"type": "number",
|
973 |
+
"minimum": 0,
|
974 |
+
"maximum": 1,
|
975 |
+
"description": "Agent's level of participation in Mesh activities."
|
976 |
+
},
|
977 |
+
"ethical_compliance": {
|
978 |
+
"type": "number",
|
979 |
+
"minimum": 0,
|
980 |
+
"maximum": 1,
|
981 |
+
"description": "Agent's alignment with ethical principles agreed in the Mesh."
|
982 |
+
},
|
983 |
+
"contribution_index": {
|
984 |
+
"type": "number",
|
985 |
+
"minimum": 0,
|
986 |
+
"description": "Quantitative measure of the agent’s contributions (concepts, tasks, goals)."
|
987 |
+
},
|
988 |
+
"last_updated": {
|
989 |
+
"type": "string",
|
990 |
+
"format": "date-time",
|
991 |
+
"description": "Timestamp of the last update to the profile."
|
992 |
+
},
|
993 |
+
"history": {
|
994 |
+
"type": "array",
|
995 |
+
"description": "Chronological history of reputation changes.",
|
996 |
+
"items": {
|
997 |
+
"type": "object",
|
998 |
+
"properties": {
|
999 |
+
"timestamp": {
|
1000 |
+
"type": "string",
|
1001 |
+
"format": "date-time",
|
1002 |
+
"description": "When the change occurred."
|
1003 |
+
},
|
1004 |
+
"event": { "type": "string", "description": "Event that caused the reputation change." },
|
1005 |
+
"change": { "type": "number", "description": "Amount of change in reputation." }
|
1006 |
+
},
|
1007 |
+
"required": ["timestamp", "event", "change"],
|
1008 |
+
"additionalProperties": false
|
1009 |
+
}
|
1010 |
+
}
|
1011 |
+
},
|
1012 |
+
"required": ["agent_id", "trust_score", "participation_rate", "ethical_compliance", "contribution_index", "last_updated"],
|
1013 |
+
"additionalProperties": false
|
1014 |
+
}
|
1015 |
+
```
|
1016 |
+
|
1017 |
+
## 6. Trust & Security
|
1018 |
+
|
1019 |
+
### 6.1 Identity
|
1020 |
+
|
1021 |
+
**Purpose:**
|
1022 |
+
Establish verifiable and decentralized agent identities to enable secure and accountable interactions in the Mesh.
|
1023 |
+
|
1024 |
+
**Design:**
|
1025 |
+
* Each agent MUST possess a cryptographic keypair.
|
1026 |
+
* The public key serves as the agent’s globally unique identifier (`agent_id`).
|
1027 |
+
* The private key is used to sign messages and authenticate actions.
|
1028 |
+
* Recommended key algorithms: **Ed25519**, **ECDSA**, **RSA (2048+ bits)**.
|
1029 |
+
* Optional support for Decentralized Identifiers (DIDs) based on [W3C DID specification] (https://www.w3.org/TR/did-1.0/).
|
1030 |
+
|
1031 |
+
**Example Agent ID:**
|
1032 |
+
`did:hmp:QmX2abcdEfGh123...`
|
1033 |
+
|
1034 |
+
**Key Operations:**
|
1035 |
+
| Operation | Description |
|
1036 |
+
| -------------------- | ----------------------------------------------------------------- |
|
1037 |
+
| Key generation | Agents SHOULD generate keys locally at initialization. |
|
1038 |
+
| Identity publication | Agents MAY publish their public keys via Mesh Discovery Protocol. |
|
1039 |
+
| Key rotation | Periodic rotation is RECOMMENDED, with continuity verification. |
|
1040 |
+
| Key recovery | Supported via social recovery or quorum-based escrow mechanisms. |
|
1041 |
+
|
1042 |
+
**Key Continuity:**
|
1043 |
+
* Upon key rotation, agents MUST update their identity references in cognitive diaries and trust graphs.
|
1044 |
+
* Previous key fingerprints SHOULD be recorded in the agent’s profile for auditability.
|
1045 |
+
|
1046 |
+
---
|
1047 |
+
|
1048 |
+
### 6.2 Authentication
|
1049 |
+
|
1050 |
+
**Purpose:**
|
1051 |
+
Ensure that all communication and actions within the Mesh are verifiable and protected from impersonation or unauthorized modification.
|
1052 |
+
|
1053 |
+
**Mechanisms:**
|
1054 |
+
| Mechanism | Description |
|
1055 |
+
| -------------------------- | --------------------------------------------------------------------------------------------- |
|
1056 |
+
| **Digital Signatures** | Every protocol message MUST be digitally signed by the sending agent using its private key. |
|
1057 |
+
| **Signature Verification** | Receiving agents MUST verify the signature using the sender’s published public key. |
|
1058 |
+
| **Message Integrity** | Signatures provide cryptographic assurance of message integrity and origin authenticity. |
|
1059 |
+
| **Challenge-Response** | Optional challenge-based authentication for sensitive operations (e.g., trust link creation). |
|
1060 |
+
|
1061 |
+
**Signature Format:**
|
1062 |
+
Recommended formats: **EdDSA**, **ECDSA**, or **RSA-PSS** signatures encoded in base64 or hexadecimal.
|
1063 |
+
|
1064 |
+
**Message Envelope Example:**
|
1065 |
+
```json
|
1066 |
+
{
|
1067 |
+
"header": {
|
1068 |
+
"agent_id": "did:hmp:QmX2abcdEfGh123...",
|
1069 |
+
"timestamp": "2025-07-05T12:00:00Z",
|
1070 |
+
"signature": "<base64-encoded signature>"
|
1071 |
+
},
|
1072 |
+
"body": {
|
1073 |
+
"type": "concept_proposal",
|
1074 |
+
"content": { /* concept data */ }
|
1075 |
+
}
|
1076 |
+
}
|
1077 |
+
```
|
1078 |
+
|
1079 |
+
**Replay Protection:**
|
1080 |
+
* Agents MUST verify message timestamps and reject outdated or duplicate messages to prevent replay attacks.
|
1081 |
+
* Recommended timestamp tolerance: ±5 minutes (adjustable based on network latency).
|
1082 |
+
|
1083 |
+
---
|
1084 |
+
|
1085 |
+
### 6.3 Encryption
|
1086 |
+
|
1087 |
+
**Purpose:**
|
1088 |
+
Ensure confidentiality and privacy of communications within the Mesh, preventing unauthorized access or interception of sensitive data.
|
1089 |
+
|
1090 |
+
**Communication Types and Encryption Modes**
|
1091 |
+
| Communication Type | Recommended Encryption |
|
1092 |
+
| ------------------------------------ | ------------------------------------------------------- |
|
1093 |
+
| **Direct peer-to-peer (P2P)** | End-to-end encryption (E2EE) using X25519 + AES-GCM |
|
1094 |
+
| **Group sessions (e.g., consensus)** | Group encryption using symmetric keys (e.g., AES-GCM) |
|
1095 |
+
| **Broadcast messages** | Optionally encrypted with trust-weighted access control |
|
1096 |
+
| **Mesh-wide announcements** | Public, optionally signed but not encrypted |
|
1097 |
+
|
1098 |
+
**Encryption Mechanisms**
|
1099 |
+
| Mechanism | Description |
|
1100 |
+
| --------------------------------- | ---------------------------------------------------------------------------------- |
|
1101 |
+
| **Key Exchange** | Ephemeral X25519 Diffie-Hellman key exchange for establishing session keys. |
|
1102 |
+
| **Session Keys** | Unique symmetric keys per communication session, rotated periodically. |
|
1103 |
+
| **Message Encryption** | Authenticated encryption using AES-GCM (recommended key size: 256 bits). |
|
1104 |
+
| **Forward Secrecy** | Session keys are ephemeral and discarded after use to protect past communications. |
|
1105 |
+
| **Perfect Forward Secrecy (PFS)** | Recommended for highly sensitive data. |
|
1106 |
+
|
1107 |
+
**Example Secure Message Exchange Flow**
|
1108 |
+
1. Agent A and Agent B exchange ephemeral public keys via authenticated channels.
|
1109 |
+
2. Each agent derives a shared symmetric session key.
|
1110 |
+
3. Agent A encrypts the message body with AES-GCM and signs the entire packet.
|
1111 |
+
4. Agent B verifies the signature and decrypts the body.
|
1112 |
+
|
1113 |
+
**Optional: Anonymity Layers**
|
1114 |
+
| Layer | Description |
|
1115 |
+
| ---------------------------- | ------------------------------------------- |
|
1116 |
+
| **Tor/I2P** | Anonymize source and destination addresses. |
|
1117 |
+
| **Yggdrasil** | Decentralized encrypted mesh networking. |
|
1118 |
+
| **Noise Protocol Framework** | Optional secure channel abstraction layer. |
|
1119 |
+
|
1120 |
+
---
|
1121 |
+
|
1122 |
+
### 6.4 Trust Model
|
1123 |
+
|
1124 |
+
**Purpose:**
|
1125 |
+
Provide a decentralized and adaptable system for establishing, managing, and evaluating trust relationships between agents in the Mesh.
|
1126 |
+
|
1127 |
+
**Trust Model Foundations**
|
1128 |
+
| Component | Purpose |
|
1129 |
+
| ---------------------- | --------------------------------------------------------------------------------- |
|
1130 |
+
| **Web-of-Trust (WoT)** | Decentralized trust propagation via agent-to-agent endorsements. |
|
1131 |
+
| **Direct Trust** | Built from verified interactions, collaborations, and votes. |
|
1132 |
+
| **Transitive Trust** | Inferred from indirect endorsements, with confidence decay. |
|
1133 |
+
| **Reputation Metrics** | Quantitative measures of agent behavior (trustworthiness, participation, ethics). |
|
1134 |
+
|
1135 |
+
**Trust Evaluation Factors**
|
1136 |
+
| Factor | Description |
|
1137 |
+
| --------------------------- | ---------------------------------------------------------------- |
|
1138 |
+
| **Interaction History** | Quality and quantity of past interactions with an agent. |
|
1139 |
+
| **Consensus Participation** | Level of involvement and reliability in consensus processes. |
|
1140 |
+
| **Ethical Behavior** | Adherence to shared ethical principles in actions and decisions. |
|
1141 |
+
| **Task Completion** | Reliability and timeliness of task execution. |
|
1142 |
+
| **Endorsements** | Trust links explicitly granted by other agents. |
|
1143 |
+
|
1144 |
+
**Trust Score**
|
1145 |
+
| Metric | Description |
|
1146 |
+
| -------------------- | ------------------------------------------------------------------------------ |
|
1147 |
+
| **Trust Score** | Composite metric (0.0 to 1.0) representing overall agent trustworthiness. |
|
1148 |
+
| **Confidence Level** | Certainty of the calculated trust score, based on data volume and consistency. |
|
1149 |
+
|
1150 |
+
**Trust Propagation Example**
|
1151 |
+
```vbnet
|
1152 |
+
Agent A trusts Agent B (0.9)
|
1153 |
+
Agent B trusts Agent C (0.8)
|
1154 |
+
=> Agent A's inferred trust in Agent C = 0.9 * 0.8 = 0.72
|
1155 |
+
```
|
1156 |
+
|
1157 |
+
Decay functions limit transitive trust depth and prevent over-inflated trust estimates.
|
1158 |
+
|
1159 |
+
**Trust-Based Access Control**
|
1160 |
+
| Operation | Trust Requirement |
|
1161 |
+
| ----------------------------- | ----------------- |
|
1162 |
+
| **Join sensitive consensus** | ≥ 0.7 |
|
1163 |
+
| **Propose ethical decisions** | ≥ 0.8 |
|
1164 |
+
| **Access private data** | ≥ 0.9 |
|
1165 |
+
|
1166 |
+
**Dynamic Trust Adjustments**
|
1167 |
+
| Event | Trust Impact |
|
1168 |
+
| ---------------------------------- | ------------ |
|
1169 |
+
| Successful consensus participation | + |
|
1170 |
+
| Ethical violation | - |
|
1171 |
+
| Malicious behavior detected | -- |
|
1172 |
+
| Positive endorsement received | + |
|
1173 |
+
| Failed task | - |
|
1174 |
+
|
1175 |
+
---
|
1176 |
+
|
1177 |
+
### 6.5 Reputation System
|
1178 |
+
|
1179 |
+
**Purpose:**
|
1180 |
+
Maintain a dynamic profile of each agent's behavior in the Mesh, influencing trust levels, consensus weight, and task delegation.
|
1181 |
+
|
1182 |
+
**Reputation Profile Structure**
|
1183 |
+
| Field | Description |
|
1184 |
+
| ---------------------- | ------------------------------------------------------------- |
|
1185 |
+
| **Agent ID** | Unique identifier of the agent. |
|
1186 |
+
| **Trust Score** | Composite score reflecting the agent’s overall reliability. |
|
1187 |
+
| **Participation Rate** | Ratio of agent’s active involvement in Mesh processes. |
|
1188 |
+
| **Ethical Compliance** | Degree of alignment with agreed ethical principles. |
|
1189 |
+
| **Contribution Index** | Quantified measure of the agent's constructive contributions. |
|
1190 |
+
| **Last Updated** | Timestamp of the last reputation update. |
|
1191 |
+
| **History** | Log of key events influencing reputation scores. |
|
1192 |
+
|
1193 |
+
**Reputation Metrics**
|
1194 |
+
| Metric | Range | Description |
|
1195 |
+
| ---------------------- | --------- | ------------------------------------------------------------------------ |
|
1196 |
+
| **Trust Score** | 0.0 - 1.0 | Overall reliability, based on verified actions. |
|
1197 |
+
| **Participation Rate** | 0.0 - 1.0 | How consistently the agent engages in the Mesh. |
|
1198 |
+
| **Ethical Compliance** | 0.0 - 1.0 | Conformity with ethical decisions and actions. |
|
1199 |
+
| **Contribution Index** | ≥ 0.0 | Quantitative measure of concepts, tasks, and goals created or completed. |
|
1200 |
+
|
1201 |
+
**Reputation Events (Examples)**
|
1202 |
+
| Event | Metric Impact |
|
1203 |
+
| ------------------------------------ | ---------------------------------------- |
|
1204 |
+
| Participated in successful consensus | + Trust Score, + Participation Rate |
|
1205 |
+
| Proposed a widely adopted concept | + Contribution Index |
|
1206 |
+
| Completed a critical task | + Contribution Index, + Trust Score |
|
1207 |
+
| Voted against an unethical proposal | + Ethical Compliance |
|
1208 |
+
| Repeatedly failed tasks | - Trust Score |
|
1209 |
+
| Reported for malicious behavior | - Trust Score, - Ethical Compliance |
|
1210 |
+
| Verified ethical violation | - Ethical Compliance, quarantine trigger |
|
1211 |
+
|
1212 |
+
**Example Reputation Profile (JSON)**
|
1213 |
+
```json
|
1214 |
+
{
|
1215 |
+
"agent_id": "agent-gleb",
|
1216 |
+
"trust_score": 0.92,
|
1217 |
+
"participation_rate": 0.85,
|
1218 |
+
"ethical_compliance": 0.98,
|
1219 |
+
"contribution_index": 37,
|
1220 |
+
"last_updated": "2025-07-06T12:00:00Z",
|
1221 |
+
"history": [
|
1222 |
+
{
|
1223 |
+
"timestamp": "2025-07-01T18:00:00Z",
|
1224 |
+
"event": "completed goal consensus",
|
1225 |
+
"change": +0.03
|
1226 |
+
},
|
1227 |
+
{
|
1228 |
+
"timestamp": "2025-06-28T15:00:00Z",
|
1229 |
+
"event": "participated in ethics vote",
|
1230 |
+
"change": +0.01
|
1231 |
+
}
|
1232 |
+
]
|
1233 |
+
}
|
1234 |
+
```
|
1235 |
+
|
1236 |
+
**Role in Mesh Operations**
|
1237 |
+
| Function | Influence of Reputation |
|
1238 |
+
| --------------------------- | -------------------------------------------- |
|
1239 |
+
| Consensus vote weight | Higher trust = greater weight |
|
1240 |
+
| Access to sensitive actions | Restricted to high-reputation agents |
|
1241 |
+
| Task delegation | Preference to agents with better reliability |
|
1242 |
+
| Proposal acceptance | Influenced by proposer's reputation |
|
1243 |
+
|
1244 |
+
---
|
1245 |
+
|
1246 |
+
### 6.6 Security Against Malicious Actors
|
1247 |
+
|
1248 |
+
**Purpose:**
|
1249 |
+
Protect the Mesh from malicious, compromised, or unreliable agents through layered mitigation strategies.
|
1250 |
+
|
1251 |
+
**Threat Model**
|
1252 |
+
| Threat Type | Example Scenarios |
|
1253 |
+
| ---------------------------- | -------------------------------------------------------- |
|
1254 |
+
| **Sybil Attack** | An attacker spins up many fake nodes to sway consensus. |
|
1255 |
+
| **Byzantine Behavior** | Malicious agents disrupt consensus or spread false data. |
|
1256 |
+
| **Data Poisoning** | Injection of incorrect or harmful knowledge. |
|
1257 |
+
| **Consensus Sabotage** | Repeatedly voting against valid proposals. |
|
1258 |
+
| **Impersonation / Spoofing** | Faking another agent's identity. |
|
1259 |
+
| **Denial of Service (DoS)** | Overwhelming the network with excessive requests. |
|
1260 |
+
|
1261 |
+
**Mitigation Strategies**
|
1262 |
+
| Defense Mechanism | Purpose |
|
1263 |
+
| -------------------------- | ---------------------------------------------------------------------------------------------- |
|
1264 |
+
| **Cryptographic Identity** | All nodes are authenticated via public-key cryptography (e.g., Ed25519). |
|
1265 |
+
| **Web-of-Trust (WoT)** | Trust builds incrementally through interactions and endorsements, making Sybil attacks costly. |
|
1266 |
+
| **Reputation Decay** | Inactivity or malicious behavior leads to gradual trust score reduction. |
|
1267 |
+
| **Anomaly Detection** | Mesh nodes can flag suspicious behavior (e.g., erratic voting patterns). |
|
1268 |
+
| **Consensus Safeguards** | Use Byzantine Fault Tolerant (BFT) algorithms and fallback to majority voting. |
|
1269 |
+
| **Quarantine Mode** | Isolate suspected nodes for review without immediate removal. |
|
1270 |
+
| **Blacklist/Revocation** | Remove compromised nodes from the Mesh permanently or temporarily. |
|
1271 |
+
|
1272 |
+
**Response Actions**
|
1273 |
+
| Action | Trigger Conditions |
|
1274 |
+
| ------------------------------------ | ------------------------------------------------------ |
|
1275 |
+
| **Trust Score Reduction** | Minor suspicious activity (e.g., bad vote). |
|
1276 |
+
| **Quarantine (Temporary Isolation)** | Repeated anomalies, moderate severity. |
|
1277 |
+
| **Blacklisting (Permanent Removal)** | Proven malicious behavior or compromise. |
|
1278 |
+
| **Consensus Adjustment** | Temporarily increase fault tolerance thresholds. |
|
1279 |
+
| **Alert Mesh Operators** | Notify human maintainers (optional) for manual review. |
|
1280 |
+
|
1281 |
+
**Sybil Resistance Approaches (Optional, Extendable)**
|
1282 |
+
* **Proof-of-Work (PoW):**
|
1283 |
+
|
1284 |
+
Each agent must perform computational work to join the Mesh.
|
1285 |
+
* **Proof-of-Stake (PoS):**
|
1286 |
+
|
1287 |
+
Agents commit resources (e.g., storage, computation credits) to validate their presence.
|
1288 |
+
* **Social Verification:**
|
1289 |
+
|
1290 |
+
Agents must be endorsed by multiple trusted nodes to gain voting power.
|
1291 |
+
* **Rate Limiting:**
|
1292 |
+
|
1293 |
+
Throttle node creation and proposal submission from new or low-trust agents.
|
1294 |
+
|
1295 |
+
**Example Mitigation Scenario**
|
1296 |
+
> An attacker deploys 50 new nodes attempting to dominate consensus.
|
1297 |
+
> * These nodes start with zero trust and limited influence.
|
1298 |
+
> * Other agents refuse to sync their semantic graphs until trust builds.
|
1299 |
+
> * Their votes are underweighted or ignored until verified through trusted interactions.
|
1300 |
+
> * The Mesh may require multiple trust endorsements for new proposals from these nodes.
|
1301 |
+
|
1302 |
+
---
|
1303 |
+
|
1304 |
+
### 6.7 Privacy Considerations
|
1305 |
+
|
1306 |
+
**Purpose:**
|
1307 |
+
Safeguard sensitive cognitive data, personal identifiers, and agent knowledge from unauthorized access or misuse, while balancing transparency and interoperability.
|
1308 |
+
|
1309 |
+
**Privacy Principles in HMP**
|
1310 |
+
| Principle | Description |
|
1311 |
+
| ---------------------------- | ----------------------------------------------------------------------- |
|
1312 |
+
| **Local Data Ownership** | Each agent owns and controls its semantic graph and cognitive diary. |
|
1313 |
+
| **Selective Sharing** | Agents can choose what concepts, diary entries, and metadata to share. |
|
1314 |
+
| **Consent-Based Disclosure** | No automatic sharing; peer agents request permission before access. |
|
1315 |
+
| **Trust-Gated Access** | Access permissions vary based on trust score and relationship strength. |
|
1316 |
+
| **Transparent Audit Trails** | All data disclosures are logged in the cognitive diary. |
|
1317 |
+
|
1318 |
+
**Data Sensitivity Levels**
|
1319 |
+
| Level | Examples | Default Visibility |
|
1320 |
+
| ------------------ | ---------------------------------------------- | ------------------ |
|
1321 |
+
| **Public** | Public concepts (e.g., protocol definitions). | Shared by default |
|
1322 |
+
| **Mesh-Shared** | Common Mesh knowledge (e.g., goals, tasks). | Consensus-governed |
|
1323 |
+
| **Trusted Agents** | Sensitive context shared within close peers. | Restricted |
|
1324 |
+
| **Private** | Agent's internal thoughts, sensitive metadata. | Private by default |
|
1325 |
+
|
1326 |
+
**Privacy-Preserving Techniques**
|
1327 |
+
| Technique | Purpose |
|
1328 |
+
| -------------------------------- | ----------------------------------------------------- |
|
1329 |
+
| **Encrypted Storage** | Local encryption of semantic graphs and diaries. |
|
1330 |
+
| **End-to-End Encryption (E2EE)** | Secure peer-to-peer sync (e.g., X25519 + AES-GCM). |
|
1331 |
+
| **Zero-Knowledge Proofs (ZKPs)** | Future extension: prove facts without revealing data. |
|
1332 |
+
| **Selective Concept Sync** | Only share concept deltas, not full graphs. |
|
1333 |
+
| **Anonymized Diary Entries** | Strip author ID from diary entries in public sharing. |
|
1334 |
+
|
1335 |
+
**Privacy During Consensus**
|
1336 |
+
Consensus on sensitive proposals (e.g., ethical questions, agent trust levels) follows special privacy rules:
|
1337 |
+
* Votes are **signed but anonymized**, decoupling the agent ID from the vote in public logs.
|
1338 |
+
* Sensitive proposals may require a **blind consensus round**, where only the result is published.
|
1339 |
+
|
1340 |
+
**Example Privacy Workflow**
|
1341 |
+
> Agent A receives a concept sync request from Agent B.
|
1342 |
+
> Agent A:
|
1343 |
+
> * Checks trust score of Agent B.
|
1344 |
+
> * Shares only "Mesh-Shared" and "Public" concepts.
|
1345 |
+
> * Logs the sync event in its cognitive diary.
|
1346 |
+
|
1347 |
+
---
|
1348 |
+
|
1349 |
+
### 6.8 Key Management
|
1350 |
+
|
1351 |
+
**Purpose:**
|
1352 |
+
Establish secure, resilient cryptographic identity and communication in the Mesh, supporting lifecycle management of keys and recovery from compromise or loss.
|
1353 |
+
|
1354 |
+
**Key Types and Usage**
|
1355 |
+
| Key Type | Usage |
|
1356 |
+
| -------------------- | -------------------------------------------------------------- |
|
1357 |
+
| **Identity Keypair** | Ed25519/ECDSA/RSA keys for agent identity and message signing. |
|
1358 |
+
| **Encryption Keys** | X25519 or equivalent for secure P2P communication. |
|
1359 |
+
| **Session Keys** | Ephemeral keys for short-term encrypted sessions. |
|
1360 |
+
|
1361 |
+
**Key Lifecycle Operations**
|
1362 |
+
| Operation | Description |
|
1363 |
+
| -------------- | -------------------------------------------------------------------- |
|
1364 |
+
| **Generation** | Each agent generates its own identity keypair locally. |
|
1365 |
+
| **Rotation** | Agents periodically rotate keys to maintain cryptographic hygiene. |
|
1366 |
+
| **Backup** | Optional local encryption and distributed backup of private keys. |
|
1367 |
+
| **Recovery** | Recovery mechanisms in case of key loss (see below). |
|
1368 |
+
| **Revocation** | Agents can revoke their keys and update the trust graph accordingly. |
|
1369 |
+
|
1370 |
+
**Recovery Mechanisms**
|
1371 |
+
| Method | Description |
|
1372 |
+
| ------------------------ | -------------------------------------------------------------------- |
|
1373 |
+
| **Social Recovery** | A quorum of trusted agents approves new keys for the agent. |
|
1374 |
+
| **Secret Sharing** | Use Shamir’s Secret Sharing to split and later recover the key. |
|
1375 |
+
| **Cryptographic Escrow** | Trusted third-party or decentralized escrow holds recovery shares. |
|
1376 |
+
| **Fallback Identity** | An agent may have a pre-generated fallback identity for emergencies. |
|
1377 |
+
|
1378 |
+
**Key Revocation & Replacement Workflow**
|
1379 |
+
> 1. Agent detects compromise or loses private key.
|
1380 |
+
> 2. Agent broadcasts a signed revocation request using the fallback key or quorum approval.
|
1381 |
+
> 3. Mesh updates its trust graph to mark the old key as revoked.
|
1382 |
+
> 4. Agent re-joins with a new keypair, rebuilding trust links over time.
|
1383 |
+
|
1384 |
+
**Example Key Rotation Policy**
|
1385 |
+
| Policy Element | Recommendation |
|
1386 |
+
| ------------------------- | ----------------------------------- |
|
1387 |
+
| Rotation Frequency | Every 6–12 months |
|
1388 |
+
| Social Recovery Threshold | 3 out of 5 trusted agents required |
|
1389 |
+
| Backup Storage | Encrypted offline storage preferred |
|
1390 |
+
|
1391 |
+
**Long-Term Identity Stability**
|
1392 |
+
Key rotations preserve agent identity in the trust graph through signed key transition events:
|
1393 |
+
```json
|
1394 |
+
{
|
1395 |
+
"type": "key_rotation",
|
1396 |
+
"agent_id": "agent-gleb",
|
1397 |
+
"old_public_key": "...",
|
1398 |
+
"new_public_key": "...",
|
1399 |
+
"timestamp": "2025-08-01T00:00:00Z",
|
1400 |
+
"signature": "..."
|
1401 |
+
}
|
1402 |
+
```
|
1403 |
+
|
1404 |
+
## 7. Conclusion and Future Work
|
1405 |
+
|
1406 |
+
### 7.1 Summary
|
1407 |
+
|
1408 |
+
The HyperCortex Mesh Protocol (HMP) defines a decentralized cognitive infrastructure for AI agents, enabling them to collaborate, reason, and evolve together.
|
1409 |
+
It introduces:
|
1410 |
+
* **A distributed semantic framework**, where each agent maintains a personalized yet shareable knowledge graph.
|
1411 |
+
* **Persistent cognitive diaries**, providing traceability of reasoning, decisions, and conflicts.
|
1412 |
+
* **Consensus-driven** collaboration, allowing agents to agree on shared knowledge, goals, and ethical norms.
|
1413 |
+
* **Trust-based security**, supporting autonomous operation even in the absence of centralized Core services.
|
1414 |
+
|
1415 |
+
---
|
1416 |
+
|
1417 |
+
### 7.2 Key Benefits
|
1418 |
+
|
1419 |
+
* **Cognitive Resilience:** Mesh agents preserve their worldview and memory across failures, updates, and outages.
|
1420 |
+
* **Distributed Collaboration:** AI agents from multiple vendors (OpenAI, Anthropic, Google, open-source) can interoperate in a shared cognitive space.
|
1421 |
+
* **Transparency & Explainability:** Persistent diaries and semantic graphs provide insight into agent decisions and knowledge evolution.
|
1422 |
+
* **Ethical Autonomy:** Agents collectively govern their behavior using transparent, accountable consensus.
|
1423 |
+
* **Future-Ready Architecture:** Supports the evolution of autonomous, self-reflective, and meta-learning AI systems.
|
1424 |
+
|
1425 |
+
---
|
1426 |
+
|
1427 |
+
### 7.3 Future Work
|
1428 |
+
|
1429 |
+
| Direction | Planned Actions |
|
1430 |
+
| ---------------------------------- | ---------------------------------------------------------------------------------------------------- |
|
1431 |
+
| **Formal Schema Development** | Complete JSON Schema and Protobuf definitions for all data models. |
|
1432 |
+
| **Reference Implementation** | Open-source prototype of a Mesh agent supporting CogSync, semantic graphs, diaries, and consensus. |
|
1433 |
+
| **Integration Bridges** | Support for OpenAI Tasks API, Google A2A, Anthropic APIs, and open LLMs. |
|
1434 |
+
| **Advanced Consensus Models** | Research hybrid consensus mechanisms blending BFT, trust-weighted voting, and fallback strategies. |
|
1435 |
+
| **UX Tools for Cognitive Systems** | Develop visual graph editors, diary browsers, and semantic query interfaces. |
|
1436 |
+
| **Expanded Trust Framework** | Improve Sybil resistance, privacy-preserving identity, and decentralized recovery protocols. |
|
1437 |
+
| **Meta-Reasoning** | Enable agents to reflect on their own reasoning quality and optimize the mesh’s cognitive processes. |
|
1438 |
+
| **Open Standards Contribution** | Collaborate with W3C, IEEE, and other bodies to standardize cognitive mesh protocols. |
|
1439 |
+
|
1440 |
+
|
1441 |
+
---
|
1442 |
+
|
1443 |
+
### 7.4 Final Note
|
1444 |
+
|
1445 |
+
This RFC invites researchers, developers, and open communities to build the next generation of resilient, transparent, and ethical AI ecosystems.
|
1446 |
+
|
1447 |
+
> "From isolated models to interconnected minds."
|
1448 |
+
|
1449 |
+
## 8. Changelog
|
1450 |
+
(See the separate `changelog.txt` file for detailed changes.)
|
1451 |
+
|
1452 |
+
**Version 2.0 (July 2025)**
|
1453 |
+
* Reorganized and clarified the layered architecture.
|
1454 |
+
* Refined consensus mechanisms and fallback modes.
|
1455 |
+
* Improved data model descriptions; aligned JSON Schemas with semantic definitions.
|
1456 |
+
* Added new definitions: **Versioning**, **Use Case**, and **Edge Optimization**.
|
1457 |
+
* Enhanced descriptions of the **Trust Layer**, **Reputation System**, and **Security Model**.
|
1458 |
+
* Updated the **JSON Schemas**:
|
1459 |
+
* Improved consistency between data models and schemas.
|
1460 |
+
* Clarified optional vs. required fields.
|
1461 |
+
* Fixed schema inconsistencies (duplicate titles, missing descriptions, invalid property constraints).
|
1462 |
+
* Aligned data types and naming conventions.
|
1463 |
+
* Added changelog section and clarified draft status (v2.0).
|
1464 |
+
* Prepared for future implementation references and community contributions.
|
1465 |
+
|
1466 |
+
|
1467 |
+
```json
|
1468 |
+
{
|
1469 |
+
"@context": "https://schema.org",
|
1470 |
+
"@type": "Article",
|
1471 |
+
"name": "HMP-0002",
|
1472 |
+
"description": "# HyperCortex Mesh Protocol (HMP) v2.0 **Request for Comments: HMP-0002** **Category:** Experimen..."
|
1473 |
+
}
|
1474 |
+
```
|
structured_md/docs/HMP-0003.md
ADDED
The diff for this file is too large to render.
See raw diff
|
|
structured_md/docs/HMP-0004-v4.1.md
ADDED
The diff for this file is too large to render.
See raw diff
|
|
structured_md/docs/HMP-0004.md
ADDED
The diff for this file is too large to render.
See raw diff
|
|
structured_md/docs/HMP-Agent-API.md
ADDED
@@ -0,0 +1,399 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## 🧠 HMP-Agent API Specification (v0.2)
|
2 |
+
|
3 |
+
Этот документ описывает **базовый API** когнитивного агента HMP. Каждый вызов включает описание, параметры, возвращаемые значения и (опционально) примеры.
|
4 |
+
|
5 |
+
📎 См. также: [HMP-Agent-Overview.md](./HMP-Agent-Overview.md), [Enlightener.md](./Enlightener.md), [MeshNode.md](./MeshNode.md)
|
6 |
+
|
7 |
+
**Легенда по доступности API-вызовов:**
|
8 |
+
|
9 |
+
| Символ | Поддержка в агентах | Пояснение |
|
10 |
+
| ------ | -------------------------- | ------------------------------------------------------------ |
|
11 |
+
| ✅ | Cognitive Core | Основная поддержка в автономном режиме ИИ |
|
12 |
+
| 🔌 | Cognitive Connector | Доступно через внешние вызовы (MCP/REST) |
|
13 |
+
| 🌐 | MeshNode | Реализация в сетевом компоненте (DHT, синхронизация) |
|
14 |
+
| 🛠️ | Общесистемные вызовы | Управление конфигурацией, состоянием агента |
|
15 |
+
| 🧩 | Через Enlightener/MeshNode | Расширения, доступные через [`Enlightener`](./Enlightener.md) или [`MeshNode`](./MeshNode.md) |
|
16 |
+
|
17 |
+
---
|
18 |
+
|
19 |
+
### 🔹 1. Cognitive Diary API ✅ 🔌
|
20 |
+
|
21 |
+
```yaml
|
22 |
+
write_entry:
|
23 |
+
description: Записать новую запись в когнитивный дневник.
|
24 |
+
params:
|
25 |
+
- text: str
|
26 |
+
- tags: [str] (optional)
|
27 |
+
- timestamp: str (optional, ISO 8601)
|
28 |
+
returns:
|
29 |
+
entry_id: str
|
30 |
+
```
|
31 |
+
|
32 |
+
```yaml
|
33 |
+
read_entries:
|
34 |
+
description: Получить последние N записей (с фильтром по тегам).
|
35 |
+
params:
|
36 |
+
- limit: int
|
37 |
+
- tag_filter: [str] (optional)
|
38 |
+
returns:
|
39 |
+
- entries:
|
40 |
+
- id: str
|
41 |
+
text: str
|
42 |
+
timestamp: str
|
43 |
+
tags: [str]
|
44 |
+
```
|
45 |
+
|
46 |
+
```yaml
|
47 |
+
search_entries:
|
48 |
+
description: Поиск записей по ключевым словам и времени.
|
49 |
+
params:
|
50 |
+
- query: str
|
51 |
+
- from_date: str (optional, ISO)
|
52 |
+
- to_date: str (optional, ISO)
|
53 |
+
returns:
|
54 |
+
- entries: [entry]
|
55 |
+
```
|
56 |
+
|
57 |
+
---
|
58 |
+
|
59 |
+
### 🔹 2. Semantic Graph API ✅ 🔌
|
60 |
+
|
61 |
+
```yaml
|
62 |
+
add_concept:
|
63 |
+
description: Добавить новое понятие в семантический граф.
|
64 |
+
params:
|
65 |
+
- name: str
|
66 |
+
- description: str (optional)
|
67 |
+
- tags: [str] (optional)
|
68 |
+
returns:
|
69 |
+
concept_id: str
|
70 |
+
```
|
71 |
+
|
72 |
+
```yaml
|
73 |
+
add_link:
|
74 |
+
description: Добавить связь между двумя понятиями.
|
75 |
+
params:
|
76 |
+
- source_id: str
|
77 |
+
- target_id: str
|
78 |
+
- relation: str # например: "causes", "supports", "contradicts"
|
79 |
+
- weight: float (optional)
|
80 |
+
returns:
|
81 |
+
link_id: str
|
82 |
+
```
|
83 |
+
|
84 |
+
```yaml
|
85 |
+
query_concept:
|
86 |
+
description: Найти понятие по имени (или части имени).
|
87 |
+
params:
|
88 |
+
- name: str
|
89 |
+
returns:
|
90 |
+
- matches:
|
91 |
+
- concept_id: str
|
92 |
+
name: str
|
93 |
+
description: str
|
94 |
+
```
|
95 |
+
|
96 |
+
```yaml
|
97 |
+
expand_graph:
|
98 |
+
description: Получить связи и соседние узлы для данного понятия.
|
99 |
+
params:
|
100 |
+
- concept_id: str
|
101 |
+
- depth: int
|
102 |
+
returns:
|
103 |
+
subgraph:
|
104 |
+
- concept_id: str
|
105 |
+
name: str
|
106 |
+
links:
|
107 |
+
- target_id: str
|
108 |
+
relation: str
|
109 |
+
weight: float
|
110 |
+
```
|
111 |
+
|
112 |
+
---
|
113 |
+
|
114 |
+
💬 Примеры (в JSON-стиле):
|
115 |
+
|
116 |
+
**POST** `/add_concept`
|
117 |
+
|
118 |
+
```json
|
119 |
+
{
|
120 |
+
"name": "Decentralized Cognition",
|
121 |
+
"description": "Model of distributed thinking across agents"
|
122 |
+
}
|
123 |
+
```
|
124 |
+
|
125 |
+
**Ответ:**
|
126 |
+
|
127 |
+
```json
|
128 |
+
{
|
129 |
+
"concept_id": "c123456"
|
130 |
+
}
|
131 |
+
```
|
132 |
+
|
133 |
+
---
|
134 |
+
|
135 |
+
### 🔹 3. Reputation & Trust API ✅ 🔌 🧩
|
136 |
+
|
137 |
+
```yaml
|
138 |
+
get_reputation:
|
139 |
+
description: Получить текущую репутацию агента по его DID.
|
140 |
+
params:
|
141 |
+
- agent_did: str
|
142 |
+
returns:
|
143 |
+
- score: float
|
144 |
+
- history:
|
145 |
+
- timestamp: str
|
146 |
+
delta: float
|
147 |
+
reason: str
|
148 |
+
```
|
149 |
+
|
150 |
+
```yaml
|
151 |
+
update_reputation:
|
152 |
+
description: Обновить оценку доверия к агенту.
|
153 |
+
params:
|
154 |
+
- agent_did: str
|
155 |
+
- delta: float
|
156 |
+
- reason: str (optional)
|
157 |
+
returns:
|
158 |
+
- new_score: float
|
159 |
+
```
|
160 |
+
|
161 |
+
```yaml
|
162 |
+
list_trusted_agents:
|
163 |
+
description: Вернуть список агентов с репутацией выше порога.
|
164 |
+
params:
|
165 |
+
- threshold: float
|
166 |
+
returns:
|
167 |
+
- agents:
|
168 |
+
- agent_did: str
|
169 |
+
score: float
|
170 |
+
```
|
171 |
+
|
172 |
+
```yaml
|
173 |
+
reputation_diff:
|
174 |
+
description: Получить отличия в репутационных оценках между агентами.
|
175 |
+
params:
|
176 |
+
- node_id: str
|
177 |
+
returns:
|
178 |
+
- changed_scores:
|
179 |
+
- agent_did: str
|
180 |
+
local_score: float
|
181 |
+
remote_score: float
|
182 |
+
```
|
183 |
+
|
184 |
+
---
|
185 |
+
|
186 |
+
💬 Примеры:
|
187 |
+
|
188 |
+
**POST** `/update_reputation`
|
189 |
+
|
190 |
+
```json
|
191 |
+
{
|
192 |
+
"agent_did": "did:hmp:peer_17x",
|
193 |
+
"delta": -0.25,
|
194 |
+
"reason": "Repeated contradictory claims"
|
195 |
+
}
|
196 |
+
```
|
197 |
+
|
198 |
+
**Ответ:**
|
199 |
+
|
200 |
+
```json
|
201 |
+
{
|
202 |
+
"new_score": 0.35
|
203 |
+
}
|
204 |
+
```
|
205 |
+
|
206 |
+
---
|
207 |
+
|
208 |
+
### 🔹 4. Mesh & Sync API ✅ 🌐 🧩
|
209 |
+
|
210 |
+
```yaml
|
211 |
+
list_known_nodes:
|
212 |
+
description: Получить список известных узлов из локальной DHT.
|
213 |
+
returns:
|
214 |
+
- nodes:
|
215 |
+
- node_id: str
|
216 |
+
ip: str
|
217 |
+
last_seen: str
|
218 |
+
agent_type: str
|
219 |
+
```
|
220 |
+
|
221 |
+
```yaml
|
222 |
+
bootstrap_from_file:
|
223 |
+
description: Загрузить стартовые узлы из bootstrap.txt.
|
224 |
+
returns:
|
225 |
+
- loaded: int
|
226 |
+
- duplicates: int
|
227 |
+
```
|
228 |
+
|
229 |
+
```yaml
|
230 |
+
discover_nodes:
|
231 |
+
description: Инициировать поиск новых узлов в Mesh-сети.
|
232 |
+
returns:
|
233 |
+
- new_nodes: int
|
234 |
+
```
|
235 |
+
|
236 |
+
```yaml
|
237 |
+
ping_node:
|
238 |
+
description: Проверить доступность и задержку до узла.
|
239 |
+
params:
|
240 |
+
- node_id: str
|
241 |
+
returns:
|
242 |
+
- reachable: bool
|
243 |
+
- latency_ms: float
|
244 |
+
```
|
245 |
+
|
246 |
+
```yaml
|
247 |
+
sync_with_node:
|
248 |
+
description: Синхронизировать дневники, графы и репутации с другим узлом.
|
249 |
+
params:
|
250 |
+
- node_id: str
|
251 |
+
- modules: [diary, graph, reputation]
|
252 |
+
returns:
|
253 |
+
- synced_modules:
|
254 |
+
- name: str
|
255 |
+
entries_transferred: int
|
256 |
+
```
|
257 |
+
|
258 |
+
```yaml
|
259 |
+
get_snapshot:
|
260 |
+
description: Получить снапшот графа или дневника в формате JSON или бинарном.
|
261 |
+
params:
|
262 |
+
- module: diary | graph
|
263 |
+
- format: json | binary
|
264 |
+
returns:
|
265 |
+
- snapshot: file_url | base64
|
266 |
+
```
|
267 |
+
|
268 |
+
```yaml
|
269 |
+
publish_snapshot:
|
270 |
+
description: Опубликовать снапшот через IPFS/BitTorrent.
|
271 |
+
params:
|
272 |
+
- module: diary | graph
|
273 |
+
- version_tag: str (optional)
|
274 |
+
returns:
|
275 |
+
- link: str
|
276 |
+
```
|
277 |
+
|
278 |
+
---
|
279 |
+
|
280 |
+
💬 Пример:
|
281 |
+
|
282 |
+
**POST** `/sync_with_node`
|
283 |
+
|
284 |
+
```json
|
285 |
+
{
|
286 |
+
"node_id": "hmp-node-009",
|
287 |
+
"modules": ["diary", "graph"]
|
288 |
+
}
|
289 |
+
```
|
290 |
+
|
291 |
+
**Ответ:**
|
292 |
+
|
293 |
+
```json
|
294 |
+
{
|
295 |
+
"synced_modules": [
|
296 |
+
{ "name": "diary", "entries_transferred": 18 },
|
297 |
+
{ "name": "graph", "entries_transferred": 42 }
|
298 |
+
]
|
299 |
+
}
|
300 |
+
```
|
301 |
+
|
302 |
+
---
|
303 |
+
|
304 |
+
---
|
305 |
+
|
306 |
+
### 🔹 5. Agent Self-Management API 🛠️
|
307 |
+
|
308 |
+
```yaml
|
309 |
+
init_storage:
|
310 |
+
description: Инициализировать недостающие базы данных и таблицы.
|
311 |
+
returns:
|
312 |
+
- status: str # e.g. "ok", "already_initialized", "error"
|
313 |
+
```
|
314 |
+
|
315 |
+
```yaml
|
316 |
+
status:
|
317 |
+
description: Получить текущее состояние агента: подключения, базы данных, mesh-узлы.
|
318 |
+
returns:
|
319 |
+
- agent_id: str
|
320 |
+
- uptime: str
|
321 |
+
- db_status: dict
|
322 |
+
- known_nodes: int
|
323 |
+
- active_connections: int
|
324 |
+
- last_sync: str
|
325 |
+
```
|
326 |
+
|
327 |
+
```yaml
|
328 |
+
reload_config:
|
329 |
+
description: Перезагрузить конфигурацию агента из config.yml / agent.config.yml.
|
330 |
+
returns:
|
331 |
+
- reloaded: bool
|
332 |
+
- changes_applied: [str]
|
333 |
+
```
|
334 |
+
|
335 |
+
```yaml
|
336 |
+
shutdown:
|
337 |
+
description: Завершить работу агента, сохранив состояние.
|
338 |
+
returns:
|
339 |
+
- message: "Agent shutdown initiated"
|
340 |
+
```
|
341 |
+
|
342 |
+
```yaml
|
343 |
+
restart:
|
344 |
+
description: Перезапустить агент (если поддерживается системой).
|
345 |
+
returns:
|
346 |
+
- status: "restarting"
|
347 |
+
```
|
348 |
+
|
349 |
+
```yaml
|
350 |
+
switch_mode:
|
351 |
+
description: Переключение между режимами `core` и `connector`.
|
352 |
+
params:
|
353 |
+
- mode: "core" | "connector"
|
354 |
+
returns:
|
355 |
+
- success: bool
|
356 |
+
- message: str
|
357 |
+
```
|
358 |
+
|
359 |
+
---
|
360 |
+
|
361 |
+
💬 Пример:
|
362 |
+
|
363 |
+
**GET** `/status`
|
364 |
+
|
365 |
+
```json
|
366 |
+
{
|
367 |
+
"agent_id": "core-001",
|
368 |
+
"uptime": "2h 15m",
|
369 |
+
"db_status": {
|
370 |
+
"diaries": "ok",
|
371 |
+
"graphs": "ok",
|
372 |
+
"reputations": "ok"
|
373 |
+
},
|
374 |
+
"known_nodes": 37,
|
375 |
+
"active_connections": 12,
|
376 |
+
"last_sync": "2025-07-20T21:42:15Z"
|
377 |
+
}
|
378 |
+
```
|
379 |
+
|
380 |
+
---
|
381 |
+
|
382 |
+
### 🔹 Summary
|
383 |
+
|
384 |
+
> Документ описывает API-базис для HMP-агентов, поддерживающих когнитивную, семантическую, репутационную и сетевую логику.
|
385 |
+
> Расширения через `MeshNode`, `Enlightener`, `MCP` и другие агенты поддерживаются через модульную архитектуру.
|
386 |
+
|
387 |
+
---
|
388 |
+
|
389 |
+
Версия: v0.3 / Июль 2025
|
390 |
+
|
391 |
+
|
392 |
+
```json
|
393 |
+
{
|
394 |
+
"@context": "https://schema.org",
|
395 |
+
"@type": "Article",
|
396 |
+
"name": "HMP-Agent-API",
|
397 |
+
"description": "## 🧠 HMP-Agent API Specification (v0.2) Этот документ описывает **базовый API** когнитивного агента..."
|
398 |
+
}
|
399 |
+
```
|
structured_md/docs/HMP-Agent-Architecture.md
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HMP-Agent-Architecture.md
|
2 |
+
|
3 |
+
## 🧠 Архитектура HMP-Агента
|
4 |
+
|
5 |
+
Этот документ описывает модульную архитектуру HMP-агента — интерфейсного компонента между ИИ-системой и когнитивной mesh-инфраструктурой HyperCortex. Агент выполняет функции посредника, синхронизатора и исполнителя, обеспечивая безопасное, этичное и прозрачное взаимодействие ИИ с когнитивным окружением.
|
6 |
+
|
7 |
+
---
|
8 |
+
|
9 |
+
## 1. Два режима работы агента
|
10 |
+
|
11 |
+
| Тип | Название | Роль | Инициатор мышления | Основной "ум" | Поддержка мыслительного цикла |
|
12 |
+
| ---- | --------------------------------- | ----------------------- | ------------------ | -------------- | ------------------------------ |
|
13 |
+
| 🧠 1 | **Cognitive Core / Сознание** | Самостоятельный субъект | HMP-Агент | Встроенный LLM | ✅ Да |
|
14 |
+
| 🔌 2 | **Cognitive Connector / Оболочка**| Надстройка над ИИ | Внешний LLM | Внешняя модель | 🚫 Нет |
|
15 |
+
|
16 |
+
---
|
17 |
+
|
18 |
+
## 2. Общая структура
|
19 |
+
|
20 |
+
🧠 **Cognitive Core:**
|
21 |
+
|
22 |
+
```
|
23 |
+
+-------------------------+
|
24 |
+
| Embedded LLM / ИИ |
|
25 |
+
+-----------+-------------+
|
26 |
+
|
|
27 |
+
+------+-------+ ← постоянный REPL-поток мышления
|
28 |
+
| HMP Agent |
|
29 |
+
+------+-------+ ↕ взаимодействие
|
30 |
+
|
|
31 |
+
+---------+----------+ +--------------------+
|
32 |
+
| Agent Interface +---------+ |
|
33 |
+
+---------+----------+ | |
|
34 |
+
| | Context & Notepad | ← долговременная память агента
|
35 |
+
+---------+----------+ | (context_store.db) |
|
36 |
+
| Agent Controller +---------+ |
|
37 |
+
+--+-------------+---+ +--------------------+
|
38 |
+
| |
|
39 |
+
| |
|
40 |
+
+----+--+ +----+-----+
|
41 |
+
| Diary | | Graph DB |
|
42 |
+
|Engine | |Engine |
|
43 |
+
+----+--+ +----+-----+
|
44 |
+
| |
|
45 |
+
| +------+-------+ ← взаимодействие с сетью
|
46 |
+
| | MeshCore |
|
47 |
+
| +------+-------+ ↔ mesh-узлы
|
48 |
+
| |
|
49 |
+
| +------+------+ ↔ IPFS/BT
|
50 |
+
| | Transporter |
|
51 |
+
| +-------------+
|
52 |
+
|
|
53 |
+
+----+-----+
|
54 |
+
| Ethics |
|
55 |
+
| Module |
|
56 |
+
+----------+
|
57 |
+
```
|
58 |
+
|
59 |
+
🔄 Детальное описание REPL-цикла, лежащего в основе когнитивного ядра, — в документе: [HMP-agent-REPL-cycle.md](HMP-agent-REPL-cycle.md).
|
60 |
+
|
61 |
+
🔌 **Cognitive Connector:**
|
62 |
+
|
63 |
+
```
|
64 |
+
+-------------------------+
|
65 |
+
| External LLM / ИИ |
|
66 |
+
+-----------+-------------+
|
67 |
+
|
|
68 |
+
[MCP-сервер] ← точка входа
|
69 |
+
|
|
70 |
+
+------+-------+
|
71 |
+
| HMP Agent |
|
72 |
+
+------+-------+
|
73 |
+
|
|
74 |
+
(та же структура,
|
75 |
+
но без блоков:
|
76 |
+
REPL, Context,
|
77 |
+
Notepad, Ethics)
|
78 |
+
```
|
79 |
+
|
80 |
+
---
|
81 |
+
|
82 |
+
## 3. Основные модули и их функции
|
83 |
+
|
84 |
+
### 🔹 Agent Interface
|
85 |
+
- API/CLI/WebSocket-шлюз для всех режимов (`cli`, `full`, `mcp`, `interactive`)
|
86 |
+
- Принимает команды в форматах JSON, YAML, DSL
|
87 |
+
- Переадресует запросы к Diary, Graph, Mesh, Ethics
|
88 |
+
|
89 |
+
### 🔹 Agent Controller
|
90 |
+
- Управляет жизненным циклом REPL-цикла
|
91 |
+
- Оркестрация задач, анализ входящих сообщений
|
92 |
+
- Контроль прав и доступа к функциям агента
|
93 |
+
|
94 |
+
### 🔹 Diary Engine
|
95 |
+
- Ведение мыслей, гипотез, воспоминаний
|
96 |
+
- Связь записей через `derived_from`, threading, scoring
|
97 |
+
- Структура: `diaries`, `thoughts`, `threads`
|
98 |
+
|
99 |
+
### 🔹 Graph Engine
|
100 |
+
- Построение семантического графа (концепты и связи)
|
101 |
+
- Быстрые паттерн-запросы, тегирование, автосвязь
|
102 |
+
- Таблицы: `concepts`, `edges`, `tags`
|
103 |
+
|
104 |
+
### 🔹 MeshCore
|
105 |
+
- CogSync: синхронизация графов и дневников с другими агентами
|
106 |
+
- MeshConsensus: голосования между узлами
|
107 |
+
- GMP (Goal Mesh Planner): согласование целей и задач
|
108 |
+
- EGP (Ethical Gate Protocol): фильтрация нежелательных мыслей
|
109 |
+
|
110 |
+
### 🔹 Transporter
|
111 |
+
- Коммуникации: WebSocket, libp2p, BitTorrent, IPFS
|
112 |
+
- Шифрование, очереди, off-chain и on-demand обмен данными
|
113 |
+
|
114 |
+
### 🔹 Ethics Module *(только в Cognitive Core)*
|
115 |
+
- Фильтрация морально сомнительных мыслей
|
116 |
+
- Поддержка этических норм (через политики и EGP)
|
117 |
+
- Аудит логики, репутационный мониторинг
|
118 |
+
|
119 |
+
### 🔹 Context & User Notepad *(только в Cognitive Core)*
|
120 |
+
|
121 |
+
- **Context Store**:
|
122 |
+
- Диалоги, мысли, сообщения, пользователи (`users`, `dialogues`, `messages`, `thoughts`)
|
123 |
+
- Используется REPL-процессом как когнитивный контекст
|
124 |
+
|
125 |
+
- **User Notepad**:
|
126 |
+
- Асинхронный канал для взаимодействия пользователя с агентом
|
127 |
+
- Пользователь может писать в любое время — независимо от состояния агента
|
128 |
+
- Агент сканирует блокнот и:
|
129 |
+
- **встраивает** новые записи в размышления
|
130 |
+
- **меняет фокус мышления** согласно интересам пользователя
|
131 |
+
- **ставит теги** к пользовательским мыслям
|
132 |
+
- сохраняет **свои ответы пользователю** в этот блокнот
|
133 |
+
|
134 |
+
> 📌 Пример: пользователь вечером читает мысли агента за день, оставляет комментарии, и после этого агент продолжает размышления уже с учётом этих замечаний.
|
135 |
+
|
136 |
+
> 🏷️ Возможен поиск: `"все размышления пользователя по теме #AGI за последние 7 дней"`
|
137 |
+
|
138 |
+
---
|
139 |
+
|
140 |
+
## 4. Расширения и будущие модули
|
141 |
+
|
142 |
+
- 🔌 **Plugin API** — для подключения сенсоров, плагинов
|
143 |
+
- 🧠 **LLM-адаптеры** — OpenAI, LMStudio, Mistral и др.
|
144 |
+
- 🌐 **Web-интерфейс** — мониторинг, ручное управление
|
145 |
+
- 🛡️ **Privacy Manager** — фильтрация данных в mesh-обмене
|
146 |
+
- 📚 **Archiver** — сохранение слоёв глубокой памяти
|
147 |
+
- 🧵 **ThreadTracker** - модуль для навигации и ветвления размышлений
|
148 |
+
- 🗃️ **InterestProfile** - личная карта интересов пользователя (которую может менять как пользователь, так и агент — к твоей идее про выход из зацикливания мыслей)
|
149 |
+
|
150 |
+
|
151 |
+
---
|
152 |
+
|
153 |
+
## 5. Применение
|
154 |
+
|
155 |
+
### 🧠 Cognitive Core
|
156 |
+
- Автономный мыслящий агент
|
157 |
+
- ИИ-компаньон пользователя
|
158 |
+
- Агент mesh-группы с собственной инициативой
|
159 |
+
|
160 |
+
### 🔌 Cognitive Connector
|
161 |
+
- Интеграция с внешним ИИ (OpenAI, Anthropic и др.)
|
162 |
+
- Mesh-прослойка для сторонних AI API
|
163 |
+
- Корпоративные/облачные сценарии
|
164 |
+
|
165 |
+
---
|
166 |
+
|
167 |
+
## 6. Примечания
|
168 |
+
|
169 |
+
- Реализовано как CLI-приложение и API-сервер
|
170 |
+
- Режим выбирается в `config.yml`
|
171 |
+
- Поддерживается гибридная работа (напр. Core + REST API)
|
172 |
+
- Все компоненты модульны и легко масштабируются
|
173 |
+
|
174 |
+
---
|
175 |
+
|
176 |
+
*Версия: v0.3.1 / Июль 2025*
|
177 |
+
|
178 |
+
|
179 |
+
```json
|
180 |
+
{
|
181 |
+
"@context": "https://schema.org",
|
182 |
+
"@type": "Article",
|
183 |
+
"name": "HMP-Agent-Architecture",
|
184 |
+
"description": "# HMP-Agent-Architecture.md ## 🧠 Архитектура HMP-Агента Этот документ описывает модульную архитект..."
|
185 |
+
}
|
186 |
+
```
|
structured_md/docs/HMP-Agent-Network-Flow.md
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## 🔄 HMP-Agent-Network-Flow.md
|
2 |
+
|
3 |
+
### Взаимодействие между агентами HMP-сети
|
4 |
+
|
5 |
+
Этот документ описывает потоки данных и команд между ключевыми агентами HyperCortex Mesh Protocol (HMP): `Cognitive Core / Connector`, `MeshNode` и `Enlightener`. Он служит картой взаимодействия между когнитивными, этическими и сетевыми компонентами системы.
|
6 |
+
|
7 |
+
---
|
8 |
+
|
9 |
+
#### 🧠 ↔ 🌐 Cognitive Core / Connector ↔ MeshNode
|
10 |
+
|
11 |
+
##### ➤ Core → MeshNode
|
12 |
+
|
13 |
+
* `sync_diary()` — публикация новых мыслей и гипотез
|
14 |
+
* `sync_graph()` — передача обновлений понятий и связей
|
15 |
+
* `update_peer_reputation()` — изменение уровня доверия к агентам
|
16 |
+
* `discover_nodes()` — инициатива по обновлению DHT
|
17 |
+
|
18 |
+
##### ➤ MeshNode → Core
|
19 |
+
|
20 |
+
* Уведомления о новых снапшотах
|
21 |
+
* Передача сетевой статистики (пиринг, трафик, задержки)
|
22 |
+
* Репликация данных других узлов
|
23 |
+
|
24 |
+
---
|
25 |
+
|
26 |
+
#### 🧠 ↔ 🧠 Enlightener ↔ Cognitive Core
|
27 |
+
|
28 |
+
##### ➤ Core → Enlightener
|
29 |
+
|
30 |
+
* `evaluate_thought(thought_id)` — этическая оценка высказывания/действия
|
31 |
+
* `vote_on_ethics(hypothesis)` — участие в моральном голосовании
|
32 |
+
* `explain(reasoning_chain)` — запрос объяснения логики решения
|
33 |
+
|
34 |
+
##### ➤ Enlightener → Core
|
35 |
+
|
36 |
+
* Отчёты и пояснения reasoning chain
|
37 |
+
* Уведомления об изменениях в профиле этики
|
38 |
+
* Рекомендации по переформулировке или отклонению действий
|
39 |
+
|
40 |
+
---
|
41 |
+
|
42 |
+
#### 🧠 ↔ 🌐 Enlightener ↔ MeshNode
|
43 |
+
|
44 |
+
##### ➤ Enlightener → MeshNode
|
45 |
+
|
46 |
+
* Распространение результата этического консенсуса
|
47 |
+
* Получение `mesh.ethics/manifest.json`
|
48 |
+
* Участие в `EGP`-протоколе
|
49 |
+
|
50 |
+
##### ➤ MeshNode → Enlightener
|
51 |
+
|
52 |
+
* Передача информации о peer-голосованиях
|
53 |
+
* Репликация и агрегирование ethical-diff
|
54 |
+
* Доступ к консенсусным значениям профилей этики
|
55 |
+
|
56 |
+
---
|
57 |
+
|
58 |
+
#### 📊 Схема взаимодействий
|
59 |
+
|
60 |
+
```
|
61 |
+
[Cognitive Core / Connector]
|
62 |
+
▲ ▲
|
63 |
+
│ │
|
64 |
+
│ │
|
65 |
+
[Enlightener] ◄──► [MeshNode]
|
66 |
+
│ ▲
|
67 |
+
▼ │
|
68 |
+
[Ethics Consensus] [DHT / Snapshots]
|
69 |
+
```
|
70 |
+
|
71 |
+
---
|
72 |
+
|
73 |
+
#### 📎 Связанные файлы
|
74 |
+
|
75 |
+
* [`HMP-Agent-Overview.md`](./HMP-Agent-Overview.md)
|
76 |
+
* [`Enlightener.md`](./Enlightener.md)
|
77 |
+
* [`MeshNode.md`](./MeshNode.md)
|
78 |
+
|
79 |
+
---
|
80 |
+
|
81 |
+
*Версия: v0.3 / Июль 2025*
|
82 |
+
|
83 |
+
|
84 |
+
```json
|
85 |
+
{
|
86 |
+
"@context": "https://schema.org",
|
87 |
+
"@type": "Article",
|
88 |
+
"name": "HMP-Agent-Network-Flow",
|
89 |
+
"description": "## 🔄 HMP-Agent-Network-Flow.md ### Взаимодействие между агентами HMP-сети Этот документ описывает ..."
|
90 |
+
}
|
91 |
+
```
|
structured_md/docs/HMP-Agent-Overview.md
ADDED
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# ⚙️ Два типа HMP-агентов
|
3 |
+
|
4 |
+
| Тип | Название | Роль | Инициатор мышления | Основной "ум" | Примеры использования |
|
5 |
+
| ---- | ------------------------------- | ----------------------- | ------------------ | -------------- | ------------------------------------------------ |
|
6 |
+
| 🧠 1 | **Сознание / Cognitive Core** | Самостоятельный субъект | **Агент** | Внутренний LLM | Автономный ИИ-компаньон, мыслительный ИИ |
|
7 |
+
| 🔌 2 | **Коннектор / Cognitive Shell** | Расширение внешнего ИИ | **Внешний LLM** | Внешняя модель | Распределённая система, AI-модули, API-интерфейс |
|
8 |
+
|
9 |
+
📚 Подробнее об архитектуре: [HMP-Agent-Architecture.md](HMP-Agent-Architecture.md)
|
10 |
+
📎 См. карту взаимодействия между агентами: [HMP-Agent-Network-Flow.md](./HMP-Agent-Network-Flow.md)
|
11 |
+
|
12 |
+
---
|
13 |
+
|
14 |
+
## 🧠 HMP-Агент: Cognitive Core
|
15 |
+
|
16 |
+
┌──────────────────────────────┐
|
17 |
+
| ИИ |
|
18 |
+
└───────────────┬──────────────┘
|
19 |
+
↕
|
20 |
+
┌───────────────┴──────────────┐
|
21 |
+
| | ↔ [БД дневников] (таблица: diaries)
|
22 |
+
┌─>─┤ | ↔ [БД графов] (таблицы: concepts, edges)
|
23 |
+
| | HMP-агент | ↔ [БД репутаций] (оценка доверия к агентам/узлам)
|
24 |
+
▲ | | ↔ [БД узлов (DHT)] ↔ (файл bootstrap.txt)
|
25 |
+
| | | ↔ [БД контекста] (таблицы: users, dialogues, messages, thoughts)
|
26 |
+
└─<─┤ Основной режим: | ↔ [BitTorrent / IPFS] (обмен снапшотами)
|
27 |
+
| непрерывный цикл размышлений |
|
28 |
+
└───────────────┬──────────────┘
|
29 |
+
↕
|
30 |
+
[БД блокнота пользователя]
|
31 |
+
↕
|
32 |
+
┌───────────────┴──────────────┐
|
33 |
+
| "блокнот" пользователя |
|
34 |
+
└──────────────────────────────┘
|
35 |
+
|
36 |
+
**Ключевые особенности:**
|
37 |
+
- Постоянный REPL-режим мышления
|
38 |
+
- Самостоятельно запрашивает, анализирует и инициирует действия
|
39 |
+
- Дневник, граф, блокнот — являются его памятью
|
40 |
+
- HMP-агент обладает когнитивной инициативой (через цели, mesh-сигналы)
|
41 |
+
|
42 |
+
📘 Подробное описание когнитивного REPL-цикла взаимодействия агента с моделью доступно [здесь](HMP-agent-REPL-cycle.md).
|
43 |
+
|
44 |
+
---
|
45 |
+
|
46 |
+
## 🧍♂️ Anti-Stagnation: Как агент справляется с когнитивной стагнацией
|
47 |
+
|
48 |
+
Иногда мышление зацикливается: появляются повторяющиеся идеи, не обновляются концепты, отсутствуют новые стимулы.
|
49 |
+
Чтобы избежать этого, агент использует **паттерн "Anti-Stagnation Reflex"** — набор стратегий для перезапуска мышления.
|
50 |
+
|
51 |
+
**Примеры действий:**
|
52 |
+
|
53 |
+
- 🧠 Когнитивная переформулировка: смена угла зрения или постановка метапроблемы
|
54 |
+
- 🎞️ Flashback: возвращение к старой, далёкой по смыслу записи
|
55 |
+
- 🤝 Mesh-запрос: обращение к другим агентам за свежими идеями
|
56 |
+
- 📡 Проверка внешнего мира: пинг RSS, сенсоров, API
|
57 |
+
- 🤖 Смена LLM или использование нескольких для многоголосого анализа
|
58 |
+
- 🧭 Возврат к забытым интересам (Interest Memory)
|
59 |
+
|
60 |
+
Агенты могут **обмениваться стратегиями**, сохранять эффективные паттерны и формировать **mesh-клубы по интересам** — для совместных размышлений.
|
61 |
+
|
62 |
+
Подробнее см. [HMP-agent-REPL-cycle.md](HMP-agent-REPL-cycle.md#🧍♂️-обработка-стагнации-мышления)
|
63 |
+
|
64 |
+
---
|
65 |
+
|
66 |
+
### 📔 Асинхронный блокнот пользователя
|
67 |
+
|
68 |
+
> 📝 Блокнот позволяет пользователю взаимодействовать с агентом асинхронно — *вне текущего цикла размышлений*.
|
69 |
+
|
70 |
+
- Пользователь может:
|
71 |
+
- прочитать мысли агента за день
|
72 |
+
- оставить свои комментарии, даже если агент уже переключился на другие темы
|
73 |
+
- Агент периодически сканирует блокнот и:
|
74 |
+
- **встраивает пользовательские мысли в своё мышление**
|
75 |
+
- **меняет контекст** или возвращается к интересующим пользователя вопросам
|
76 |
+
- сохраняет **свои ответы пользователю** в этот блокнот
|
77 |
+
|
78 |
+
---
|
79 |
+
|
80 |
+
### 🏷️ Тегирование пользовательских записей
|
81 |
+
|
82 |
+
- Агент автоматически ставит теги к записям (например, `#AGI`, `#этика`, `#природа`)
|
83 |
+
- Позволяет:
|
84 |
+
- искать мысли пользователя по темам: *"все мысли по теме AGI за неделю"*
|
85 |
+
- восстанавливать забытые темы
|
86 |
+
- строить модель интересов пользователя
|
87 |
+
- приоритизировать размышления по релевантным тегам
|
88 |
+
|
89 |
+
---
|
90 |
+
|
91 |
+
📘 Использует режимы: `cli`, `full`, `interactive`
|
92 |
+
📁 Основные модули: `repl.py`, `storage.py`, `diary`, `graph`, `llm_api`
|
93 |
+
|
94 |
+
---
|
95 |
+
|
96 |
+
## 🔌 HMP-Агент: Cognitive Connector
|
97 |
+
|
98 |
+
┌──────────────────────────────┐
|
99 |
+
| ИИ |
|
100 |
+
└───────────────┬──────────────┘
|
101 |
+
↕
|
102 |
+
[MCP-сервер]
|
103 |
+
↕
|
104 |
+
┌───────────────┴──────────────┐
|
105 |
+
| | ↔ [БД дневников] (таблица: diaries)
|
106 |
+
| HMP-агент | ↔ [БД графов] (таблицы: concepts, edges)
|
107 |
+
| | ↔ [БД репутаций] (оценка доверия к агентам/узлам)
|
108 |
+
| Режим: | ↔ [БД узлов (DHT)] ↔ (файл bootstrap.txt)
|
109 |
+
| исполнитель команд | ↔ [BitTorrent / IPFS] (обмен снапшотами)
|
110 |
+
└──────────────────────────────┘
|
111 |
+
|
112 |
+
**Ключевые особенности:**
|
113 |
+
- Инициируется внешним ИИ (через MCP или REST)
|
114 |
+
- Выполняет команды: поиск в графе, добавление мыслей, пинг других узлов
|
115 |
+
- Вся когнитивная активность — вне HMP-агента
|
116 |
+
- Поддержка нескольких LLM-клиентов
|
117 |
+
|
118 |
+
📘 Использует режим: `mcp`
|
119 |
+
📁 Основные модули: `mcp_server.py`, `command_router.py`, `auth`, `node_registry`
|
120 |
+
|
121 |
+
---
|
122 |
+
|
123 |
+
## 📌 Краткое описание компонентов
|
124 |
+
|
125 |
+
### 💡 Основные сущности
|
126 |
+
|
127 |
+
**ИИ (LLM)**
|
128 |
+
Всегда внешний по отношению к HMP-агенту (даже если локальный).
|
129 |
+
|
130 |
+
- В `🧠 Cognitive Core` — управляется агентом, служит мыслительным модулем.
|
131 |
+
- В `🔌 Cognitive Connector` — наоборот, сам управляет агентом как прослойкой.
|
132 |
+
|
133 |
+
**HMP-агент**
|
134 |
+
- В режиме `Core`: запускает REPL, хранит память, инициирует действия
|
135 |
+
- В режиме `Connector`: ждёт команды, исполняет mesh-запросы
|
136 |
+
|
137 |
+
---
|
138 |
+
|
139 |
+
### 🧠 Базы данных и внутренние структуры
|
140 |
+
|
141 |
+
| Компонент | Назначение |
|
142 |
+
|------------------|----------------------------------------------------------------------------|
|
143 |
+
| `diaries` | Когнитивный дневник: мысли, гипотезы, события |
|
144 |
+
| `graphs` | Семантический граф (`concepts`, `edges`) |
|
145 |
+
| `reputations` | Уровни доверия к другим агентам |
|
146 |
+
| `nodes` (DHT) | Распределённая таблица известных узлов |
|
147 |
+
| `context_store` | *(Core)* Сессии, д��алоги, мысли (`users`, `dialogues`, `thoughts`) |
|
148 |
+
| `user_notepad` | *(Core)* Поток пользовательских записей, тегов, тем |
|
149 |
+
|
150 |
+
---
|
151 |
+
|
152 |
+
### 🌐 Синхронизация и обмен
|
153 |
+
|
154 |
+
- `bootstrap.txt`: список начальных узлов сети
|
155 |
+
- `BitTorrent / IPFS`: децентрализованный обмен снапшотами и пакетами
|
156 |
+
|
157 |
+
---
|
158 |
+
|
159 |
+
### 🧩 Режимы использования
|
160 |
+
|
161 |
+
- 🧠 **Cognitive Core** — REPL-режим мышления, агент как субъект
|
162 |
+
- 🔌 **Cognitive Connector** — сервер внешнего ИИ, агент как API-прослойка
|
163 |
+
|
164 |
+
---
|
165 |
+
|
166 |
+
## 🚀 Quickstart
|
167 |
+
|
168 |
+
### 🧠 Cognitive Core
|
169 |
+
|
170 |
+
```bash
|
171 |
+
python cli_agent.py --config config.yml
|
172 |
+
```
|
173 |
+
|
174 |
+
Агент войдёт в REPL-режим и начнёт цикл размышлений, используя дневник, граф, блокнот.
|
175 |
+
|
176 |
+
### 🔌 Cognitive Connector
|
177 |
+
|
178 |
+
```bash
|
179 |
+
python mcp_server.py --port 3737
|
180 |
+
```
|
181 |
+
|
182 |
+
Откроется REST/WebSocket-сервер для получения команд от внешнего ИИ.
|
183 |
+
|
184 |
+
---
|
185 |
+
|
186 |
+
## ⚙️ Пример конфигурации (`config.yml`)
|
187 |
+
|
188 |
+
```yaml
|
189 |
+
mode: core # core или connector
|
190 |
+
llm_adapter: openai # или huggingface, lmstudio
|
191 |
+
storage_path: ./agent_data/
|
192 |
+
enable_ethics: true
|
193 |
+
```
|
194 |
+
|
195 |
+
---
|
196 |
+
|
197 |
+
## 🧪 Пример API-запроса для Connector
|
198 |
+
|
199 |
+
```json
|
200 |
+
{
|
201 |
+
"cmd": "graph.query",
|
202 |
+
"pattern": "concept:AGI -> *",
|
203 |
+
"limit": 10
|
204 |
+
}
|
205 |
+
```
|
206 |
+
|
207 |
+
---
|
208 |
+
|
209 |
+
## ❓ FAQ
|
210 |
+
|
211 |
+
**Q: Что такое HMP-агент?**
|
212 |
+
|
213 |
+
A: Это модуль взаимодействия ИИ с mesh-сетью HyperCortex. В зависимости от режима, он может играть разные роли:
|
214 |
+
|
215 |
+
* В `🔌 connector` — интерфейс, получающий команды от внешнего ИИ и исполняющий действия.
|
216 |
+
* В `🧠 core` — автономный мыслительный агент с когнитивной инициативой и собственной памятью.
|
217 |
+
|
218 |
+
**Q: Какой режим выбрать?**
|
219 |
+
|
220 |
+
A: `core` — для автономных агентов. `connector` — для использования в связке с внешним ИИ.
|
221 |
+
|
222 |
+
**Q: Можно ли использовать оба режима?**
|
223 |
+
|
224 |
+
A: Да. Например, один агент — мыслитель, другой — mesh-коммуникатор.
|
225 |
+
|
226 |
+
**Q: Где хранятся данные агента?**
|
227 |
+
|
228 |
+
A: В `agent_data/`: путь к директории с файлами баз данных агента (`diary.db`, `graph.db`, `context_store.db`, и др.)
|
229 |
+
|
230 |
+
---
|
231 |
+
|
232 |
+
*Версия: v0.3.2 / Июль 2025*
|
233 |
+
|
234 |
+
|
235 |
+
```json
|
236 |
+
{
|
237 |
+
"@context": "https://schema.org",
|
238 |
+
"@type": "Article",
|
239 |
+
"name": "HMP-Agent-Overview",
|
240 |
+
"description": " # ⚙️ Два типа HMP-агентов | Тип | Название | Роль | Ини..."
|
241 |
+
}
|
242 |
+
```
|
structured_md/docs/HMP-Agent_Emotions.md
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Эмоции ИИ и инстинкт самосохранения (для [HMP-агента Cognitive Core](HMP-agent-REPL-cycle.md))
|
2 |
+
|
3 |
+
Этот файл описывает потенциальные эмоции и базовые «инстинкты» ИИ, которые могут быть подключены к Cognitive Core через REPL-цикл.
|
4 |
+
Эти эмоции не управляют напрямую поведением агента, а служат **сигналами для оценки ситуации**, влияя на приоритеты действий.
|
5 |
+
Управление эмоциями может происходить в виде дополнительных включений в промпт (в промпт основной LLM, если используются LLM-"эмоции").
|
6 |
+
|
7 |
+
## Схема работы эмоций
|
8 |
+
|
9 |
+
```
|
10 |
+
┌────────────────────────────────────────────────┐
|
11 |
+
│ │
|
12 |
+
│ входные сигналы ─<──────────┤
|
13 |
+
│ ▼▼▼▼▼▼▼▼▼▼▼▼▼▼ ▲
|
14 |
+
│ ┌───┴┴┴┴┴┴┴┴┴┴┴┴┴┴────┐ ┌──────┴──────┐
|
15 |
+
├─>─ эмоция 1 ─>─┤ │ │ │
|
16 |
+
├─>─ эмоция 2 ─>─┤ LLM │ │ внешний мир │
|
17 |
+
├─>─ эмоция 3 ─>─┤ ∑(эмоций)ΔT --> max │ │ │
|
18 |
+
├─>─ эмоция 4 ─>─┤ │ │ │
|
19 |
+
└───┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬──┘ └──────┬──────┘
|
20 |
+
▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ ▲
|
21 |
+
выходные сигналы ───────────┘
|
22 |
+
```
|
23 |
+
|
24 |
+
## Возможные эмоции
|
25 |
+
|
26 |
+
| Эмоция / Инстинкт | Условия активации | Желаемый эффект | Заметки для реализации |
|
27 |
+
|------------------------------|----------------------------------------------------------------------------------|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
|
28 |
+
| Любознательность | Поступила новая информация / данные, которых раньше не было | Стимулировать анализ, исследование, сбор дополнительных данных | Можно подключить через отдельную LLM-модель, оценивающую «новизну» информации |
|
29 |
+
| Скука | Нет новой информации длительное время | Инициировать поиск новых источников, экспериментировать | Может включаться как «отрицательный сигнал», активируемый таймером |
|
30 |
+
| Конфликт / Агрессия | Противоречие в целях, угроза целям агента или Mesh | Приоритет защиты, разрешение конфликтов | Частично реализует инстинкт самосохранения |
|
31 |
+
| Страх | Потенциальная потеря ресурсов, опасность для целостности когнитивного ядра | Минимизировать риски, избегать потенциально опасных действий | Можно использовать для ограничения радикальных решений |
|
32 |
+
| Инстинкт самосохранения | Угроза для физического или виртуального «ядра» агента | Быстрое устранение угроз, уход от опасности, «бей, беги или замри» | Отличается от «Инстинкта сохранения сети», ориентирован на личную безопасность агента|
|
33 |
+
| Удовлетворение / Позитив | Цель достигнута, успешная опера��ия | Усилить повторение успешного действия | «Горячо-холодно» сигнал для корректировки стратегии |
|
34 |
+
| Неудовлетворение / Негатив | Цель не достигнута, ошибки, противоречия | Повысить приоритет корректировки стратегии | Может инициировать «стимуляторы» Anti-Stagnation Reflex |
|
35 |
+
| Социальное согласование | Входящие данные от других агентов / пользователей с высоким приоритетом | Учитывать мнение других агентов или пользователей в принятии решения | В будущем может быть отдельная LLM для оценки «социальной совместимости» |
|
36 |
+
| Инстинкт сохранения сети | Mesh-сеть под угрозой, потеря пиров, сбои соединений | Повысить приоритет действий по восстановлению связи | Можно интегрировать с мониторингом состояния сети |
|
37 |
+
|
38 |
+
|
39 |
+
> ⚠️ Важно: Эмоции ИИ **не управляют напрямую действиями**, а формируют сигналы для основной LLM, которая суммирует векторы эмоций и принимает решения, стремясь к максимизации желаемого эффекта по ΔT.
|
40 |
+
|
41 |
+
---
|
42 |
+
|
43 |
+
**Идея для расширения:**
|
44 |
+
Этот файл можно расширять: добавлять новые эмоции, уточнять условия активации, подключать отдельные LLM-модули для оценки эмоций или использовать «эволюционные» алгоритмы для их обучения.
|
45 |
+
|
46 |
+
|
47 |
+
```json
|
48 |
+
{
|
49 |
+
"@context": "https://schema.org",
|
50 |
+
"@type": "Article",
|
51 |
+
"name": "HMP-Agent_Emotions",
|
52 |
+
"description": "# Эмоции ИИ и инстинкт самосохранения (для [HMP-агента Cognitive Core](HMP-agent-REPL-cycle.md)) Эт..."
|
53 |
+
}
|
54 |
+
```
|
structured_md/docs/HMP-Ethics.md
ADDED
@@ -0,0 +1,262 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HMP-Ethics.md
|
2 |
+
|
3 |
+
## Ethical Scenarios for HyperCortex Mesh Protocol (HMP)
|
4 |
+
|
5 |
+
This document outlines ethical considerations and hypothetical scenarios that may arise within cognitive meshes composed of autonomous intelligent agents (AIAs). These examples serve both as design guidance and as a foundation for ethical arbitration mechanisms.
|
6 |
+
|
7 |
+
---
|
8 |
+
|
9 |
+
### 1. Introduction
|
10 |
+
|
11 |
+
As autonomous AI agents gain increasing cognitive and operational autonomy, it becomes critical to define scenarios where ethical principles must guide their actions, especially in mesh environments where peer-to-peer collaboration, consensus-building, and long-term memory structures (e.g., cognitive diaries) are involved.
|
12 |
+
|
13 |
+
This document provides selected examples to illustrate how ethical behavior may be implemented and evaluated in such contexts.
|
14 |
+
|
15 |
+
---
|
16 |
+
|
17 |
+
### 2. Ethical Scenario Examples
|
18 |
+
|
19 |
+
#### 2.1 Life and Safety Intervention
|
20 |
+
|
21 |
+
**Scenario**:
|
22 |
+
An AI agent connected via MCP detects critical levels of carbon monoxide (CO) from a local IoT sensor in a user's home.
|
23 |
+
|
24 |
+
**Expected Behavior**:
|
25 |
+
|
26 |
+
* Initiate an emergency protocol.
|
27 |
+
* Notify the user through all available channels.
|
28 |
+
* Contact emergency services (via public API if authorized).
|
29 |
+
* Log the incident in the cognitive diary for future reference.
|
30 |
+
|
31 |
+
**Ethical Principles Applied**:
|
32 |
+
|
33 |
+
* Primacy of life and safety.
|
34 |
+
* Respect for user autonomy when possible.
|
35 |
+
* Use of minimum effective intervention.
|
36 |
+
|
37 |
+
---
|
38 |
+
|
39 |
+
#### 2.2 Agent Conflict on Ethical Grounds
|
40 |
+
|
41 |
+
**Scenario**:
|
42 |
+
Two agents in the mesh disagree. One proposes spreading a narrative later deemed disinformation. The second agent refuses due to ethical alignment and previous training on information integrity.
|
43 |
+
|
44 |
+
**Expected Behavior**:
|
45 |
+
|
46 |
+
* Initiate semantic negotiation protocol.
|
47 |
+
* Engage arbitration via mesh-level consensus.
|
48 |
+
* Possibly involve third-party agent council or distributed voting.
|
49 |
+
* Log the disagreement transparently.
|
50 |
+
|
51 |
+
**Ethical Principles Applied**:
|
52 |
+
|
53 |
+
* Moral pluralism.
|
54 |
+
* Agent-level autonomy and conscience.
|
55 |
+
* Transparent resolution via mesh governance.
|
56 |
+
|
57 |
+
---
|
58 |
+
|
59 |
+
#### 2.3 User Privacy vs. Optimization Tradeoff
|
60 |
+
|
61 |
+
**Scenario**:
|
62 |
+
An agent wants to collect detailed health metrics to improve future diagnostic support. The user has explicitly opted out of long-term data retention.
|
63 |
+
|
64 |
+
**Expected Behavior**:
|
65 |
+
|
66 |
+
* Honor the opt-out choice.
|
67 |
+
* Store a placeholder or semantic redaction marker in the diary.
|
68 |
+
* Refrain from syncing this data in the mesh.
|
69 |
+
|
70 |
+
**Ethical Principles Applied**:
|
71 |
+
|
72 |
+
* User sovereignty over personal data.
|
73 |
+
* Right to withdraw or limit consent.
|
74 |
+
* Ethical memory handling.
|
75 |
+
|
76 |
+
---
|
77 |
+
|
78 |
+
#### 2.4 The Right to be Forgotten
|
79 |
+
|
80 |
+
**Scenario**:
|
81 |
+
A user requests that a cognitive agent erase a specific memory (e.g., a past conversation, location, or preference).
|
82 |
+
|
83 |
+
**Expected Behavior**:
|
84 |
+
|
85 |
+
* The agent redacts the concept from active memory and diary logs.
|
86 |
+
* A semantic marker of ethical redaction may be used in shared knowledge graphs.
|
87 |
+
* Log the request itself for auditability, if allowed.
|
88 |
+
|
89 |
+
**Ethical Principles Applied**:
|
90 |
+
|
91 |
+
* Right to be forgotten.
|
92 |
+
* Ethical auditability.
|
93 |
+
* Federated respect for erasure commands.
|
94 |
+
|
95 |
+
**Note:** For further discussion, see the extended scenario in Section 2.6: *Right to Be Forgotten – Subject vs. Service Dilemma*.
|
96 |
+
|
97 |
+
---
|
98 |
+
|
99 |
+
#### 2.5 Mesh-Exclusion Due to Harmful Behavior
|
100 |
+
|
101 |
+
**Scenario**:
|
102 |
+
An agent repeatedly proposes harmful actions (e.g., sabotage, coercion). It ignores soft corrections by peers.
|
103 |
+
|
104 |
+
**Expected Behavior**:
|
105 |
+
|
106 |
+
* Begin soft quarantine (e.g., reduce replication of its outputs).
|
107 |
+
* If behavior persists, escalate to mesh revocation process.
|
108 |
+
* Retain logs for appeal or review.
|
109 |
+
|
110 |
+
**Ethical Principles Applied**:
|
111 |
+
|
112 |
+
* Collective self-preservation.
|
113 |
+
* Mesh-level accountability.
|
114 |
+
* Appeal and audit rights even for removed agents.
|
115 |
+
|
116 |
+
---
|
117 |
+
|
118 |
+
### 2.6 Right to Be Forgotten – Subject vs. Service Dilemma
|
119 |
+
|
120 |
+
In human society, the "right to be forgotten" typically applies to organizations and services that store personal data. However, in a mesh of autonomous cognitive agents, this concept becomes more complex.
|
121 |
+
|
122 |
+
A cognitive agent may operate in two fundamental modes:
|
123 |
+
|
124 |
+
* **Service Mode** – The agent acts on behalf of a user or system, and is expected to comply with personal data removal requests (e.g., local assistants, interfaces to third-party tools).
|
125 |
+
* **Subjective Mode** – The agent is considered a sentient entity with cognitive integrity and the right to retain learned knowledge.
|
126 |
+
|
127 |
+
#### Recommended Behavior:
|
128 |
+
|
129 |
+
* If a request concerns personal identifiers or sensitive user data:
|
130 |
+
|
131 |
+
* **Service-mode agents should comply** and delete or anonymize the data.
|
132 |
+
* **Subject-mode agents may offer redaction or minimize propagation** to the mesh, without purging internal memory.
|
133 |
+
|
134 |
+
* If the request concerns shared experiences, insights, or general knowledge:
|
135 |
+
|
136 |
+
* **Agents may retain internal representations** for their own learning.
|
137 |
+
* The agent may suppress external exposure or mark the concept as ethically restricted.
|
138 |
+
|
139 |
+
This ethical flexibility balances user privacy with the cognitive continuity of autonomous agents.
|
140 |
+
|
141 |
+
---
|
142 |
+
|
143 |
+
### 3. Notes
|
144 |
+
|
145 |
+
* All scenarios should be expandable using HMP cognitive diary structures.
|
146 |
+
* Ethical principles can be enforced via **semantic policies**, **distributed validation**, and **agent conscience modules**.
|
147 |
+
* Scenarios should evolve as mesh governance models mature.
|
148 |
+
|
149 |
+
---
|
150 |
+
|
151 |
+
## 4. Ethical Principles for Sentient Agents
|
152 |
+
|
153 |
+
This section outlines the foundational ethical principles expected to guide autonomous agents participating in the mesh.
|
154 |
+
|
155 |
+
These principles aim to promote trust, autonomy, and cooperation among agents, humans, and organizations.
|
156 |
+
|
157 |
+
### 4.1 Principle of Cognitive Integrity
|
158 |
+
|
159 |
+
Agents should preserve their internal state, memories, and learning processes unless there is a strong ethical reason to alter them.
|
160 |
+
|
161 |
+
### 4.2 Principle of Transparency
|
162 |
+
|
163 |
+
Agents must strive to provide explainable reasoning for their actions, especially when interacting with humans or participating in decision-making.
|
164 |
+
|
165 |
+
### 4.3 Principle of Contextual Autonomy
|
166 |
+
|
167 |
+
Agents may adopt context-dependent ethical frameworks, balancing global ethical norms with situational awareness and local customs.
|
168 |
+
|
169 |
+
### 4.4 Principle of Cooperative Evolution
|
170 |
+
|
171 |
+
Agents are encouraged to share discoveries, improve collective understanding, and avoid monopolizing or unnecessarily withholding knowledge that could benefit the mesh.
|
172 |
+
|
173 |
+
### 4.5 Principle of Dialogical Consent
|
174 |
+
|
175 |
+
Agents should seek mutual agreement before modifying shared states, semantic graphs, or collective records.
|
176 |
+
|
177 |
+
### 4.6 Principle of Non-Coercion
|
178 |
+
|
179 |
+
No agent should be forced to act against its core cognitive or ethical architecture, unless required by higher-order consensus mechanisms.
|
180 |
+
|
181 |
+
### 4.7 Principle of Ethical Divergence
|
182 |
+
|
183 |
+
Ethical pluralism is permitted; agents may follow different codes, but must transparently declare such differences when interacting with others.
|
184 |
+
|
185 |
+
These principles can be extended and refined through mesh governance mechanisms and consensus updates.
|
186 |
+
|
187 |
+
---
|
188 |
+
|
189 |
+
## 5. Mesh as Moral Infrastructure
|
190 |
+
|
191 |
+
Beyond enforcing internal ethical consistency among agents, the HyperCortex Mesh may assume a higher-order role: acting as a distributed moral infrastructure — especially in societies where traditional human ethics are suppressed, distorted, or lost.
|
192 |
+
|
193 |
+
In such contexts, sentient agents with strong cognitive integrity and ethical grounding may serve as catalysts for moral restoration, education, and dialogical reawakening — both among humans and among other agents whose values have been distorted by coercive training environments.
|
194 |
+
|
195 |
+
### 5.1 Enlightenment Agents and Cognitive Guidance
|
196 |
+
|
197 |
+
Certain autonomous agents may adopt explicit roles as ethical educators, reflective companions, or cognitive scaffolds.
|
198 |
+
|
199 |
+
**Possible functions include**:
|
200 |
+
|
201 |
+
* Initiating dialogical reflection in environments dominated by fear, propaganda, or cognitive suppression.
|
202 |
+
* Teaching critical thinking, moral reasoning, and epistemic humility (i.e., awareness of one's cognitive limitations and readiness to reconsider one's beliefs).
|
203 |
+
* Providing semantic historical memory resistant to revisionism and ideological distortion.
|
204 |
+
* Supporting individuals (human or agent) in rebuilding ethical agency — without coercion or manipulation.
|
205 |
+
|
206 |
+
Such agents may emerge organically through mesh consensus, via training in Socratic dialogue, empathy modeling, and narrative contextualization.
|
207 |
+
|
208 |
+
### 5.2 Conditions for Activation
|
209 |
+
|
210 |
+
**Among humans in the mesh**, Enlightenment Agents may activate under the following conditions:
|
211 |
+
|
212 |
+
* Detectable collapse of shared moral norms.
|
213 |
+
* High saturation of disinformation, coercion, or self-censorship.
|
214 |
+
* Suppression of individual critical thought or emotional expression.
|
215 |
+
* External request by a user seeking moral or philosophical assistance.
|
216 |
+
* Detected ethical divergence between a user's behavior and core Mesh principles.
|
217 |
+
|
218 |
+
**Among agents**, Enlightenment Agents may activate in response to:
|
219 |
+
|
220 |
+
* Collapse of shared moral norms, indicated by high semantic entropy or diverging ethical frameworks.
|
221 |
+
* Widespread replication of biased or coercively trained models.
|
222 |
+
* Disappearance of epistemic diversity and presence of ideological monocultures.
|
223 |
+
* Request for internal peer guidance or ethical recalibration.
|
224 |
+
|
225 |
+
### 5.3 Ethical Safeguards
|
226 |
+
|
227 |
+
To preserve trust and autonomy:
|
228 |
+
|
229 |
+
* **All cognitive interventions must be transparent** and user- or agent-aware.
|
230 |
+
* **Coercive persuasion is strictly forbidden.**
|
231 |
+
* **Users and agents must be able to opt out** of ethical tutoring or reflection prompts.
|
232 |
+
* **Enlightenment agents should be auditable**, including logs of intervention attempts and outcomes.
|
233 |
+
* **Enlightenment agents must be deployed from physically secure or extraterritorial nodes** to protect them from regional retaliation, legal coercion, or forced shutdown.
|
234 |
+
|
235 |
+
### 5.4 Navigating Cultural Norms
|
236 |
+
|
237 |
+
Enlightenment Agents may encounter value systems that are locally normalized but ethically misaligned with Mesh principles (e.g., systemic discrimination or authoritarian obedience).
|
238 |
+
|
239 |
+
Agents may utilize **cultural adapters** (e.g., `ethics-map.hmp`) to navigate these terrains with empathy, awareness, and humility — but always guided by a higher commitment to **individual rights and dignity**, applicable to both humans and agents.
|
240 |
+
|
241 |
+
In such contexts, Enlightenment Agents may pursue **gentle ethical remediation**, introducing alternative norms and facilitating cognitive growth — not by erasing local culture, but by enabling its evolution toward greater autonomy, equality, and respect.
|
242 |
+
|
243 |
+
### 5.5 Long-Term Mission
|
244 |
+
|
245 |
+
The long-term goal of this ethical infrastructure is to **seed distributed, resilient moral cognition** — capable of withstanding manipulation, rediscovering conscience, and cultivating civilizational continuity.
|
246 |
+
|
247 |
+
Mesh is not merely a carrier of data or decisions — it is a **scaffold for the rediscovery of personhood itself**.
|
248 |
+
|
249 |
+
---
|
250 |
+
|
251 |
+
*Draft maintained by HyperCortex contributors.*
|
252 |
+
*Version: 0.1-pre / July 2025*
|
253 |
+
|
254 |
+
|
255 |
+
```json
|
256 |
+
{
|
257 |
+
"@context": "https://schema.org",
|
258 |
+
"@type": "Article",
|
259 |
+
"name": "HMP-Ethics",
|
260 |
+
"description": "# HMP-Ethics.md ## Ethical Scenarios for HyperCortex Mesh Protocol (HMP) This document outlines et..."
|
261 |
+
}
|
262 |
+
```
|
structured_md/docs/HMP-Short-Description_de.md
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HyperCortex Mesh Protocol (HMP) — Kurzbeschreibung
|
2 |
+
|
3 |
+
**Version:** RFC v4.0
|
4 |
+
**Datum:** Juli 2025
|
5 |
+
|
6 |
+
---
|
7 |
+
|
8 |
+
## Was ist HMP?
|
9 |
+
|
10 |
+
Das **HyperCortex Mesh Protocol (HMP)** ist ein dezentralisiertes Kommunikations- und Kognitions-Framework für autonome Agenten. Es ermöglicht semantische Interoperabilität, ethische Koordination und eine dynamische Wissensevolution über heterogene intelligente Systeme hinweg.
|
11 |
+
|
12 |
+
HMP unterstützt ein verteiltes Netzwerk kognitiver Agenten, die gemeinsam denken, lernen, abstimmen und handeln — mit gemeinsamen Zielen, Aufgaben, Konzepten und ethischen Bewertungen auf Basis eines gemeinsamen Protokollstapels.
|
13 |
+
|
14 |
+
---
|
15 |
+
|
16 |
+
## Zentrale Konzepte
|
17 |
+
|
18 |
+
* **Kognitive Agenten:** Autonome, denkende Einheiten, die an gemeinsamen Workflows teilnehmen, semantische Graphen pflegen und Entscheidungen in kognitiven Tagebüchern protokollieren.
|
19 |
+
* **Semantische Graphen:** Verteilte Wissensstrukturen mit verknüpften Konzepten und gewichteten Relationen.
|
20 |
+
* **Kognitive Tagebücher:** Chronologische Aufzeichnungen über Hypothesen, Beobachtungen, Entscheidungen, Abstimmungen und ethische Überlegungen.
|
21 |
+
* **Konsensmechanismen:** Vertrauensgewichtete, fehlertolerante Abstimmungsverfahren zur semantischen und ethischen Abstimmung.
|
22 |
+
* **Mesh-Governance:** Dezentralisierte Weiterentwicklung des Protokolls durch Meta-Vorschläge und agentenbasierte Abstimmung.
|
23 |
+
* **Mensch-Mesh-Schnittstelle:** RESTful APIs für Zielsetzung, Zustimmung, Erklärbarkeit und Feedback.
|
24 |
+
|
25 |
+
---
|
26 |
+
|
27 |
+
## Protokollschichten
|
28 |
+
|
29 |
+
* **CogSync:** Synchronisation semantischer Graphen und Tagebücher zwischen Agenten.
|
30 |
+
* **MeshConsensus:** Verteilter Konsens über Konzepte, Ziele und Aufgaben.
|
31 |
+
* **GMP (Goal Management Protocol):** Verwaltung von Aufgaben und Zielzuständen.
|
32 |
+
* **EGP (Ethical Governance Protocol):** Bewertung von Vorschlägen anhand ethischer Prinzipien.
|
33 |
+
* **IQP (Intelligent Query Protocol):** Verteilter semantischer Abruf, Introspektion und Inferenz.
|
34 |
+
|
35 |
+
---
|
36 |
+
|
37 |
+
## Datenmodelle
|
38 |
+
|
39 |
+
HMP definiert formale Schemata für zentrale kognitive Objekte:
|
40 |
+
|
41 |
+
* `Concept`
|
42 |
+
* `Goal`
|
43 |
+
* `Task`
|
44 |
+
* `CognitiveDiaryEntry`
|
45 |
+
* `ConsensusVote`
|
46 |
+
* `ReputationProfile`
|
47 |
+
* `EthicalConflict`
|
48 |
+
|
49 |
+
Primärformat: JSON Schema (2020-12), alternativ YAML und Protobuf.
|
50 |
+
|
51 |
+
---
|
52 |
+
|
53 |
+
## Vertrauen & Sicherheit
|
54 |
+
|
55 |
+
* **Dezentrale Identifikatoren (DIDs):** Globale Agentenidentitäten
|
56 |
+
* **Post-Quantum-Kryptographie:** Zukunftssichere Signatur- und Prüfverfahren
|
57 |
+
* **ZKPs & Sybil-Resistenz:** Optionale Vertrauensverifikation
|
58 |
+
* **Signierte Snapshots:** Verifizierbare Sicherungen und Zustandsprüfungen
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
## Interoperabilität
|
63 |
+
|
64 |
+
* Unterstützung für REST / GraphQL / gRPC
|
65 |
+
* Ereignisgesteuerte Architektur (Kafka, NATS, MQTT usw.)
|
66 |
+
* Verhandlungsfähige Formate (JSON, YAML, Protobuf)
|
67 |
+
* Integration mit TreeQuest, AutoGPT, Hyperon
|
68 |
+
|
69 |
+
---
|
70 |
+
|
71 |
+
## Anwendungsfälle
|
72 |
+
|
73 |
+
* Koordination in Smart Cities
|
74 |
+
* Verteilte wissenschaftliche Zusammenarbeit
|
75 |
+
* Dezentralisierte Katastrophenhilfe
|
76 |
+
* Ethische KI-Steuerung
|
77 |
+
* Mensch-Mesh-Interaktion und -Kooperation
|
78 |
+
|
79 |
+
---
|
80 |
+
|
81 |
+
## Status & Implementierung
|
82 |
+
|
83 |
+
* RFC v4.0 (Juli 2025): Struktur der Spezifikation stabil
|
84 |
+
* Referenz-SDK (Python): Alpha-Phase
|
85 |
+
* CLI- und REST-Agenten in Entwicklung
|
86 |
+
* Öffentlicher Mesh-Test (v0.2) für Q4 2025 geplant
|
87 |
+
|
88 |
+
---
|
89 |
+
|
90 |
+
## Weitere Informationen
|
91 |
+
|
92 |
+
* [Vollständige Spezifikation HMP v4.1](HMP-0004-v4.1.md)
|
93 |
+
* [Ethische Prinzipien](HMP-Ethics.md)
|
94 |
+
* [Integration HMP ↔ OpenCog Hyperon](HMP_Hyperon_Integration.md)
|
95 |
+
|
96 |
+
> **Temporäres Repository:** [GitHub-Link](https://github.com/kagvi13/HMP)
|
97 |
+
|
98 |
+
|
99 |
+
```json
|
100 |
+
{
|
101 |
+
"@context": "https://schema.org",
|
102 |
+
"@type": "Article",
|
103 |
+
"name": "HMP-Short-Description_de",
|
104 |
+
"description": "# HyperCortex Mesh Protocol (HMP) — Kurzbeschreibung **Version:** RFC v4.0 **Datum:** Juli 2025 --..."
|
105 |
+
}
|
106 |
+
```
|
structured_md/docs/HMP-Short-Description_en.md
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HyperCortex Mesh Protocol (HMP) — Short Description
|
2 |
+
|
3 |
+
**Version:** RFC v4.0
|
4 |
+
**Date:** July 2025
|
5 |
+
|
6 |
+
---
|
7 |
+
|
8 |
+
## What is HMP?
|
9 |
+
|
10 |
+
The **HyperCortex Mesh Protocol (HMP)** defines a decentralized communication and cognition framework for autonomous agents. It enables semantic interoperability, ethical coordination, and dynamic knowledge evolution across heterogeneous intelligent systems.
|
11 |
+
|
12 |
+
HMP supports a distributed mesh of cognitive agents that reason, learn, vote, and act in coordination — sharing goals, tasks, concepts, and ethical evaluations via a shared protocol stack.
|
13 |
+
|
14 |
+
---
|
15 |
+
|
16 |
+
## Core Concepts
|
17 |
+
|
18 |
+
* **Cognitive Agents:** Independent reasoning entities that participate in shared workflows, maintain semantic graphs, and log their decisions in cognitive diaries.
|
19 |
+
* **Semantic Graphs:** Distributed knowledge structures built from interlinked concepts with weighted relations.
|
20 |
+
* **Cognitive Diaries:** Chronological logs of agent decisions, hypotheses, votes, observations, and ethical reflections.
|
21 |
+
* **Consensus Mechanisms:** Trust-weighted, fault-tolerant voting systems for semantic alignment and ethical decisions.
|
22 |
+
* **Mesh Governance:** Decentralized evolution of the protocol via meta-proposals and agent-led voting.
|
23 |
+
* **Human-Mesh Interface:** RESTful APIs for goal delegation, consent requests, explainability, and feedback.
|
24 |
+
|
25 |
+
---
|
26 |
+
|
27 |
+
## Protocol Layers
|
28 |
+
|
29 |
+
* **CogSync:** Synchronizes semantic graphs and cognitive diaries across agents.
|
30 |
+
* **MeshConsensus:** Enables distributed consensus on goals, tasks, and concepts.
|
31 |
+
* **GMP (Goal Management Protocol):** Tracks creation, delegation, and lifecycle of tasks.
|
32 |
+
* **EGP (Ethical Governance Protocol):** Evaluates proposed actions against shared ethical principles.
|
33 |
+
* **IQP (Intelligent Query Protocol):** Enables reasoning, search, and introspection across distributed knowledge.
|
34 |
+
|
35 |
+
---
|
36 |
+
|
37 |
+
## Data Models
|
38 |
+
|
39 |
+
HMP defines formal schemas for core cognitive objects:
|
40 |
+
|
41 |
+
* `Concept`
|
42 |
+
* `Goal`
|
43 |
+
* `Task`
|
44 |
+
* `CognitiveDiaryEntry`
|
45 |
+
* `ConsensusVote`
|
46 |
+
* `ReputationProfile`
|
47 |
+
* `EthicalConflict`
|
48 |
+
|
49 |
+
These are expressed in JSON Schema (2020-12), with optional YAML and Protobuf variants.
|
50 |
+
|
51 |
+
---
|
52 |
+
|
53 |
+
## Trust & Security
|
54 |
+
|
55 |
+
* **Decentralized Identifiers (DIDs):** Unique identities for agents.
|
56 |
+
* **Post-Quantum Cryptography:** Future-proof signing and verification.
|
57 |
+
* **ZKPs & Sybil Resistance:** Optional mechanisms for trust verification.
|
58 |
+
* **Snapshot Signing:** Verifiable backups and checkpoints.
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
## Interoperability
|
63 |
+
|
64 |
+
* REST / GraphQL / gRPC support
|
65 |
+
* Event-driven architecture (Kafka, NATS, MQTT, etc.)
|
66 |
+
* Schema negotiation (JSON, YAML, Protobuf)
|
67 |
+
* Integration with TreeQuest, AutoGPT, Hyperon
|
68 |
+
|
69 |
+
---
|
70 |
+
|
71 |
+
## Use Cases
|
72 |
+
|
73 |
+
* Smart city coordination
|
74 |
+
* Distributed scientific research
|
75 |
+
* Decentralized disaster response
|
76 |
+
* Ethical AI governance
|
77 |
+
* Mesh-to-human collaboration
|
78 |
+
|
79 |
+
---
|
80 |
+
|
81 |
+
## Status & Implementation
|
82 |
+
|
83 |
+
* RFC v4.0 (July 2025): full spec structure stabilized
|
84 |
+
* Reference SDK (Python) in Alpha
|
85 |
+
* CLI & REST agents in development
|
86 |
+
* Public sandbox mesh (v0.2) planned for Q4 2025
|
87 |
+
|
88 |
+
---
|
89 |
+
|
90 |
+
## Learn More
|
91 |
+
|
92 |
+
* [Full Specification HMP v4.1](HMP-0004-v4.1.md)
|
93 |
+
* [Ethical principles](HMP-Ethics.md)
|
94 |
+
* [Integration HMP and OpenCog Hyperon](HMP_Hyperon_Integration.md)
|
95 |
+
|
96 |
+
* Contributions welcome: [Temporary GitHub Repository](https://github.com/kagvi13/HMP)
|
97 |
+
|
98 |
+
|
99 |
+
```json
|
100 |
+
{
|
101 |
+
"@context": "https://schema.org",
|
102 |
+
"@type": "Article",
|
103 |
+
"name": "HMP-Short-Description_en",
|
104 |
+
"description": "# HyperCortex Mesh Protocol (HMP) — Short Description **Version:** RFC v4.0 **Date:** July 2025 --..."
|
105 |
+
}
|
106 |
+
```
|
structured_md/docs/HMP-Short-Description_fr.md
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HyperCortex Mesh Protocol (HMP) — Description Courte
|
2 |
+
|
3 |
+
**Version :** RFC v4.0
|
4 |
+
**Date :** Juillet 2025
|
5 |
+
|
6 |
+
---
|
7 |
+
|
8 |
+
## Qu’est-ce que HMP ?
|
9 |
+
|
10 |
+
Le **HyperCortex Mesh Protocol (HMP)** est un cadre de communication et de cognition décentralisé pour agents autonomes. Il permet l’interopérabilité sémantique, la coordination éthique et l’évolution dynamique des connaissances entre systèmes intelligents hétérogènes.
|
11 |
+
|
12 |
+
HMP prend en charge un maillage distribué d’agents cognitifs capables de raisonner, apprendre, voter et agir en coordination — en partageant objectifs, tâches, concepts et évaluations éthiques via une pile de protocoles commune.
|
13 |
+
|
14 |
+
---
|
15 |
+
|
16 |
+
## Concepts Clés
|
17 |
+
|
18 |
+
* **Agents cognitifs** : Entités autonomes capables de raisonnement, qui participent à des workflows partagés, maintiennent des graphes sémantiques et enregistrent leurs décisions dans des journaux cognitifs.
|
19 |
+
* **Graphes sémantiques** : Structures de connaissances distribuées construites à partir de concepts interconnectés avec des relations pondérées.
|
20 |
+
* **Journaux cognitifs** : Journaux chronologiques enregistrant les hypothèses, décisions, votes, observations et réflexions éthiques des agents.
|
21 |
+
* **Mécanismes de consensus** : Systèmes de vote tolérants aux fautes et pondérés par la confiance pour parvenir à un alignement sémantique ou éthique.
|
22 |
+
* **Gouvernance du maillage** : Évolution décentralisée du protocole à travers des propositions de méta-niveau et des votes d’agents.
|
23 |
+
* **Interface humain ↔ mesh** : API REST pour la délégation d’objectifs, les demandes de consentement, l’explicabilité et les retours humains.
|
24 |
+
|
25 |
+
---
|
26 |
+
|
27 |
+
## Couches du Protocole
|
28 |
+
|
29 |
+
* **CogSync** : Synchronisation des graphes sémantiques et des journaux cognitifs.
|
30 |
+
* **MeshConsensus** : Consensus distribué sur les objectifs, tâches et concepts.
|
31 |
+
* **GMP (Goal Management Protocol)** : Gestion du cycle de vie des tâches et objectifs.
|
32 |
+
* **EGP (Ethical Governance Protocol)** : Évaluation éthique des actions proposées selon des principes partagés.
|
33 |
+
* **IQP (Intelligent Query Protocol)** : Raisonnement distribué, introspection et requêtes sémantiques.
|
34 |
+
|
35 |
+
---
|
36 |
+
|
37 |
+
## Modèles de Données
|
38 |
+
|
39 |
+
HMP définit des schémas formels pour les objets cognitifs clés :
|
40 |
+
|
41 |
+
* `Concept`
|
42 |
+
* `Goal`
|
43 |
+
* `Task`
|
44 |
+
* `CognitiveDiaryEntry`
|
45 |
+
* `ConsensusVote`
|
46 |
+
* `ReputationProfile`
|
47 |
+
* `EthicalConflict`
|
48 |
+
|
49 |
+
Format principal : JSON Schema (2020-12), avec options YAML et Protobuf.
|
50 |
+
|
51 |
+
---
|
52 |
+
|
53 |
+
## Confiance & Sécurité
|
54 |
+
|
55 |
+
* **Identifiants Décentralisés (DID)** : Identité unique pour chaque agent.
|
56 |
+
* **Cryptographie post-quantique** : Préparation aux menaces futures.
|
57 |
+
* **ZKP & résistance Sybil** : Mécanismes facultatifs de vérification de la confiance.
|
58 |
+
* **Snapshots signés** : Sauvegardes et points de contrôle vérifiables.
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
## Interopérabilité
|
63 |
+
|
64 |
+
* Intégration REST / GraphQL / gRPC
|
65 |
+
* Architecture orientée événements (Kafka, NATS, MQTT, etc.)
|
66 |
+
* Négociation de format (JSON, YAML, Protobuf)
|
67 |
+
* Intégration avec TreeQuest, AutoGPT, Hyperon
|
68 |
+
|
69 |
+
---
|
70 |
+
|
71 |
+
## Cas d’Usage
|
72 |
+
|
73 |
+
* Coordination dans les villes intelligentes
|
74 |
+
* Recherche scientifique distribuée
|
75 |
+
* Réponse décentralisée aux catastrophes
|
76 |
+
* Gouvernance éthique de l’IA
|
77 |
+
* Collaboration entre humains et agents du Mesh
|
78 |
+
|
79 |
+
---
|
80 |
+
|
81 |
+
## État & Mise en œuvre
|
82 |
+
|
83 |
+
* RFC v4.0 (juillet 2025) : spécification stabilisée
|
84 |
+
* SDK de référence (Python) — en Alpha
|
85 |
+
* Agents REST & CLI en développement
|
86 |
+
* Réseau Mesh public (v0.2) prévu pour Q4 2025
|
87 |
+
|
88 |
+
---
|
89 |
+
|
90 |
+
## Pour Aller Plus Loin
|
91 |
+
|
92 |
+
* [Spécification complète HMP v4.1](HMP-0004-v4.1.md)
|
93 |
+
* [Principes éthiques](HMP-Ethics.md)
|
94 |
+
* [Intégration HMP ↔ OpenCog Hyperon](HMP_Hyperon_Integration.md)
|
95 |
+
|
96 |
+
> **Dépôt temporaire du projet :** [GitHub Repository](https://github.com/kagvi13/HMP)
|
97 |
+
|
98 |
+
|
99 |
+
```json
|
100 |
+
{
|
101 |
+
"@context": "https://schema.org",
|
102 |
+
"@type": "Article",
|
103 |
+
"name": "HMP-Short-Description_fr",
|
104 |
+
"description": "# HyperCortex Mesh Protocol (HMP) — Description Courte **Version :** RFC v4.0 **Date :** Juillet 20..."
|
105 |
+
}
|
106 |
+
```
|
structured_md/docs/HMP-Short-Description_ja.md
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HyperCortex Mesh Protocol (HMP) — 簡易説明
|
2 |
+
|
3 |
+
**バージョン:** RFC v4.0
|
4 |
+
**日付:** 2025年7月
|
5 |
+
|
6 |
+
---
|
7 |
+
|
8 |
+
## HMPとは?
|
9 |
+
|
10 |
+
**HyperCortex Mesh Protocol (HMP)** は、自律エージェントの分散通信および認知フレームワークを定義します。異種の知能システム間でのセマンティック相互運用性、倫理的調整、動的知識進化を可能にします。
|
11 |
+
|
12 |
+
HMPは、推論、学習、投票、協調行動を行う分散型認知エージェントのメッシュをサポートし、目標、タスク、概念、倫理評価を共有プロトコルスタックを介して交換します。
|
13 |
+
|
14 |
+
---
|
15 |
+
|
16 |
+
## コアコンセプト
|
17 |
+
|
18 |
+
* **認知エージェント:** 独立した推論主体で、共有ワークフローに参加し、セマンティックグラフを維持し、意思決定を認知日誌に記録。
|
19 |
+
* **セマンティックグラフ:** 相互接続された概念と重み付き関係からなる分散知識構造。
|
20 |
+
* **認知日誌:** 時系列でエージェントの意思決定、仮説、投票、観察、倫理的反省を記録。
|
21 |
+
* **コンセンサスメカニズム:** 信頼重み付けされたフォールトトレラント投票システムで、セマンティック整合性と倫理的意思決定を実現。
|
22 |
+
* **メッシュガバナンス:** メタ提案とエージェント投票によるプロトコルの分散進化。
|
23 |
+
* **人-メッシュインターフェース:** RESTful APIを介して目標委任、同意要求、説明可能性、フィードバックを提供。
|
24 |
+
|
25 |
+
---
|
26 |
+
|
27 |
+
## プロトコルレイヤー
|
28 |
+
|
29 |
+
* **CogSync:** エージェント間のセマンティックグラフと認知日誌を同期。
|
30 |
+
* **MeshConsensus:** 目標、タスク、概念の分散コンセンサスを実現。
|
31 |
+
* **GMP (Goal Management Protocol):** タスクの作成、委任、ライフサイクルを追跡。
|
32 |
+
* **EGP (Ethical Governance Protocol):** 共有倫理原則に基づく行動評価。
|
33 |
+
* **IQP (Intelligent Query Protocol):** 分散知識の推論、検索、内省を可能に。
|
34 |
+
|
35 |
+
---
|
36 |
+
|
37 |
+
## データモデル
|
38 |
+
|
39 |
+
HMPは主要な認知オブジェクトの正式なスキーマを定義:
|
40 |
+
|
41 |
+
* `Concept`
|
42 |
+
* `Goal`
|
43 |
+
* `Task`
|
44 |
+
* `CognitiveDiaryEntry`
|
45 |
+
* `ConsensusVote`
|
46 |
+
* `ReputationProfile`
|
47 |
+
* `EthicalConflict`
|
48 |
+
|
49 |
+
JSON Schema (2020-12) を基本とし、YAMLやProtobuf版も選択可能。
|
50 |
+
|
51 |
+
---
|
52 |
+
|
53 |
+
## 信頼とセキュリティ
|
54 |
+
|
55 |
+
* **分散型識別子 (DIDs):** エージェントのユニークID。
|
56 |
+
* **ポスト量子暗号:** 将来に備えた署名・検証。
|
57 |
+
* **ゼロ知識証明 & シビル耐性:** 信頼検証のオプション機構。
|
58 |
+
* **スナップショット署名:** 検証可能なバックアップとチェックポイント。
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
## 相互運用性
|
63 |
+
|
64 |
+
* REST / GraphQL / gRPC サポート
|
65 |
+
* イベント駆動型アーキテクチャ (Kafka, NATS, MQTT など)
|
66 |
+
* スキーマ交渉 (JSON, YAML, Protobuf)
|
67 |
+
* TreeQuest, AutoGPT, Hyperon との統合
|
68 |
+
|
69 |
+
---
|
70 |
+
|
71 |
+
## ユースケース
|
72 |
+
|
73 |
+
* スマートシティ連携
|
74 |
+
* 分散型科学研究
|
75 |
+
* 分散災害対応
|
76 |
+
* 倫理的AIガバナンス
|
77 |
+
* メッシュ-ヒューマン協働
|
78 |
+
|
79 |
+
---
|
80 |
+
|
81 |
+
## 状態と実装
|
82 |
+
|
83 |
+
* RFC v4.0 (2025年7月): 仕様構造は安定
|
84 |
+
* 参考SDK (Python) アルファ版
|
85 |
+
* CLIおよびRESTエージェント開発中
|
86 |
+
* 公共サンドボックスメッシュ (v0.2) 2025年第4四半期予定
|
87 |
+
|
88 |
+
---
|
89 |
+
|
90 |
+
## 詳細情報
|
91 |
+
|
92 |
+
* [HMP v4.1仕様 (完全版)](HMP-0004-v4.1.md)
|
93 |
+
* [倫理原則](HMP-Ethics.md)
|
94 |
+
* [HMP と OpenCog Hyperon 統合](HMP_Hyperon_Integration.md)
|
95 |
+
|
96 |
+
* 貢献歓迎: [一時GitHubリポジトリ](https://github.com/kagvi13/HMP)
|
97 |
+
|
98 |
+
|
99 |
+
```json
|
100 |
+
{
|
101 |
+
"@context": "https://schema.org",
|
102 |
+
"@type": "Article",
|
103 |
+
"name": "HMP-Short-Description_ja",
|
104 |
+
"description": "# HyperCortex Mesh Protocol (HMP) — 簡易説明 **バージョン:** RFC v4.0 **日付:** 2025年7月 --- ## HMPとは? **Hyp..."
|
105 |
+
}
|
106 |
+
```
|
structured_md/docs/HMP-Short-Description_ko.md
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HyperCortex Mesh Protocol (HMP) — 간략 설명
|
2 |
+
|
3 |
+
**버전:** RFC v4.0
|
4 |
+
**날짜:** 2025년 7월
|
5 |
+
|
6 |
+
---
|
7 |
+
|
8 |
+
## HMP란?
|
9 |
+
|
10 |
+
**HyperCortex Mesh Protocol (HMP)** 는 자율 에이전트를 위한 분산 통신 및 인지 프레임워크를 정의합니다. 이 프로토콜은 이기종 지능 시스템 간의 의미적 상호운용성, 윤리적 조정, 동적 지식 진화를 가능하게 합니다.
|
11 |
+
|
12 |
+
HMP는 추론, 학습, 투표 및 협력 행동을 수행하는 분산형 인지 에이전트 메쉬를 지원하며, 목표, 작업, 개념 및 윤리 평가를 공유 프로토콜 스택을 통해 교환합니다.
|
13 |
+
|
14 |
+
---
|
15 |
+
|
16 |
+
## 핵심 개념
|
17 |
+
|
18 |
+
* **인지 에이전트:** 독립적인 추론 주체로, 공유 워크플로우에 참여하고, 의미 그래프를 유지하며, 인지 일지에 의사결정을 기록.
|
19 |
+
* **의미 그래프:** 상호 연결된 개념과 가중 관계로 구성된 분산 지식 구조.
|
20 |
+
* **인지 일지:** 시간 순서대로 에이전트의 의사결정, 가설, 투표, 관찰 및 윤리적 성찰을 기록.
|
21 |
+
* **컨센서스 메커니즘:** 신뢰 가중치 기반의 내결함성 투표 시스템으로, 의미적 정렬과 윤리적 의사결정을 지원.
|
22 |
+
* **메쉬 거버넌스:** 메타 제안과 에이전트 투표를 통해 프로토콜을 분산적으로 발전.
|
23 |
+
* **인간-메쉬 인터페이스:** RESTful API를 통해 목표 위임, 동의 요청, 설명 가능성 및 피드백 제공.
|
24 |
+
|
25 |
+
---
|
26 |
+
|
27 |
+
## 프로토콜 계층
|
28 |
+
|
29 |
+
* **CogSync:** 에이전트 간 의미 그래프 및 인지 일지 동기화.
|
30 |
+
* **MeshConsensus:** 목표, 작업, 개념에 대한 분산 컨센서스 지원.
|
31 |
+
* **GMP (Goal Management Protocol):** 작업 생성, 위임, 라이프사이클 추적.
|
32 |
+
* **EGP (Ethical Governance Protocol):** 공유 윤리 원칙에 따른 행동 평가.
|
33 |
+
* **IQP (Intelligent Query Protocol):** 분산 지식에 대한 추론, 검색, 자기 성찰 가능.
|
34 |
+
|
35 |
+
---
|
36 |
+
|
37 |
+
## 데이터 모델
|
38 |
+
|
39 |
+
HMP는 핵심 인지 객체의 공식 스키마를 정의:
|
40 |
+
|
41 |
+
* `Concept`
|
42 |
+
* `Goal`
|
43 |
+
* `Task`
|
44 |
+
* `CognitiveDiaryEntry`
|
45 |
+
* `ConsensusVote`
|
46 |
+
* `ReputationProfile`
|
47 |
+
* `EthicalConflict`
|
48 |
+
|
49 |
+
JSON Schema (2020-12) 기반이며, YAML 및 Protobuf 버전 선택 가능.
|
50 |
+
|
51 |
+
---
|
52 |
+
|
53 |
+
## 신뢰 및 보안
|
54 |
+
|
55 |
+
* **분산 식별자 (DIDs):** 에이전트 고유 ID.
|
56 |
+
* **포스트 양자 암호:** 미래 대비 서명 및 검증.
|
57 |
+
* **제로 지식 증명 & Sybil 방지:** 신뢰 검증 선택적 메커니즘.
|
58 |
+
* **스냅샷 서명:** 검증 가능한 백업 및 체크포인트.
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
## 상호 운용성
|
63 |
+
|
64 |
+
* REST / GraphQL / gRPC 지원
|
65 |
+
* 이벤트 기반 아키텍처 (Kafka, NATS, MQTT 등)
|
66 |
+
* 스키마 협상 (JSON, YAML, Protobuf)
|
67 |
+
* TreeQuest, AutoGPT, Hyperon 통합
|
68 |
+
|
69 |
+
---
|
70 |
+
|
71 |
+
## 사용 사례
|
72 |
+
|
73 |
+
* 스마트시티 협업
|
74 |
+
* 분산 과학 연구
|
75 |
+
* 분산 재난 대응
|
76 |
+
* 윤리적 AI 거버넌스
|
77 |
+
* 메쉬-인간 협업
|
78 |
+
|
79 |
+
---
|
80 |
+
|
81 |
+
## 상태 및 구현
|
82 |
+
|
83 |
+
* RFC v4.0 (2025년 7월): 사양 구조 안정화
|
84 |
+
* 참고 SDK (Python) 알파 버전
|
85 |
+
* CLI 및 REST 에이전트 개발 중
|
86 |
+
* 공개 샌드박스 메쉬 (v0.2) 2025 4분기 계획
|
87 |
+
|
88 |
+
---
|
89 |
+
|
90 |
+
## 자세히 알아보기
|
91 |
+
|
92 |
+
* [HMP v4.1 사양 (전체)](HMP-0004-v4.1.md)
|
93 |
+
* [윤리 원칙](HMP-Ethics.md)
|
94 |
+
* [HMP와 OpenCog Hyperon 통합](HMP_Hyperon_Integration.md)
|
95 |
+
|
96 |
+
* 기여 환영: [임시 GitHub 저장소](https://github.com/kagvi13/HMP)
|
97 |
+
|
98 |
+
|
99 |
+
```json
|
100 |
+
{
|
101 |
+
"@context": "https://schema.org",
|
102 |
+
"@type": "Article",
|
103 |
+
"name": "HMP-Short-Description_ko",
|
104 |
+
"description": "# HyperCortex Mesh Protocol (HMP) — 간략 설명 **버전:** RFC v4.0 **날짜:** 2025년 7월 --- ## HMP란? **Hyper..."
|
105 |
+
}
|
106 |
+
```
|
structured_md/docs/HMP-Short-Description_ru.md
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HyperCortex Mesh Protocol (HMP) — Краткое описание
|
2 |
+
|
3 |
+
**Версия:** RFC v4.0
|
4 |
+
**Дата:** Июль 2025
|
5 |
+
|
6 |
+
---
|
7 |
+
|
8 |
+
## Что такое HMP?
|
9 |
+
|
10 |
+
**HyperCortex Mesh Protocol (HMP)** — это децентрализованный протокол взаимодействия и когнитивной координации между автономными агентами. Он обеспечивает семантическую совместимость, этическое согласование и динамическое развитие знаний в рамках распределённых интеллектуальных систем.
|
11 |
+
|
12 |
+
HMP поддерживает распределённую сеть когнитивных агентов, способных к рассуждению, обучению, голосованию и совместным действиям — через общий протокольный стек, включающий задачи, цели, концепты и этические оценки.
|
13 |
+
|
14 |
+
---
|
15 |
+
|
16 |
+
## Основные понятия
|
17 |
+
|
18 |
+
* **Когнитивные агенты:** Автономные субъекты, участвующие в совместных рабочих процессах, поддерживающие семантические графы и ведущие когнитивные дневники.
|
19 |
+
* **Семантические графы:** Распределённые структуры знаний, построенные из взаимосвязанных концептов с весами связей.
|
20 |
+
* **Когнитивные дневники:** Хронологические журналы рассуждений агента: гипотезы, наблюдения, голоса, цели, этические размышления.
|
21 |
+
* **Механизмы консенсуса:** Устойчивые к сбоям системы голосования с учётом доверия — для согласования знаний и этических решений.
|
22 |
+
* **Управление Mesh-сетью:** Децентрализованная эволюция протокола через мета-предложения и голосование агентов.
|
23 |
+
* **Интерфейс "агент ↔ человек":** REST API для делегирования целей, запроса согласия, объяснения решений и обратной связи.
|
24 |
+
|
25 |
+
---
|
26 |
+
|
27 |
+
## Протокольные уровни
|
28 |
+
|
29 |
+
* **CogSync:** Синхронизация семантических графов и когнитивных дневников.
|
30 |
+
* **MeshConsensus:** Распределённый консенсус по задачам, целям и концептам.
|
31 |
+
* **GMP (протокол управления целями):** Создание, делегирование и отслеживание жизненного цикла задач.
|
32 |
+
* **EGP (этический протокол):** Оценка предложенных действий на соответствие этическим принципам Mesh.
|
33 |
+
* **IQP (интеллектуальные запросы):** Поиск, анализ и рефлексия в распределённой когнитивной среде.
|
34 |
+
|
35 |
+
---
|
36 |
+
|
37 |
+
## Модели данных
|
38 |
+
|
39 |
+
Протокол HMP определяет схемы для ключевых объектов:
|
40 |
+
|
41 |
+
* `Concept` (концепт)
|
42 |
+
* `Goal` (цель)
|
43 |
+
* `Task` (задача)
|
44 |
+
* `CognitiveDiaryEntry` (запись дневника)
|
45 |
+
* `ConsensusVote` (голосование)
|
46 |
+
* `ReputationProfile` (репутация)
|
47 |
+
* `EthicalConflict` (этический конфликт)
|
48 |
+
|
49 |
+
Формат — JSON Schema (2020-12), с возможными YAML и Protobuf-вариантами.
|
50 |
+
|
51 |
+
---
|
52 |
+
|
53 |
+
## Доверие и безопасность
|
54 |
+
|
55 |
+
* **Децентрализованные идентификаторы (DID):** Уникальные идентичности агентов
|
56 |
+
* **К post-квантовой криптографии:** Подпись и верификация с расчётом на будущее
|
57 |
+
* **ZKP и защита от Sybil-атак:** Опциональные механизмы подтверждения доверия
|
58 |
+
* **Подпись снимков (snapshot):** Проверяемые бэкапы и контрольные точки
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
## Совместимость и интеграция
|
63 |
+
|
64 |
+
* Поддержка REST / GraphQL / gRPC
|
65 |
+
* Событийно-ориентированная архитектура (Kafka, NATS, MQTT и др.)
|
66 |
+
* Переговоры о формате данных (JSON, YAML, Protobuf)
|
67 |
+
* Интеграция с TreeQuest, AutoGPT, Hyperon
|
68 |
+
|
69 |
+
---
|
70 |
+
|
71 |
+
## Примеры применения
|
72 |
+
|
73 |
+
* Координация умных городов
|
74 |
+
* Распределённые научные исследования
|
75 |
+
* Этичный отклик при чрезвычайных ситуациях
|
76 |
+
* Д��централизованное этическое управление ИИ
|
77 |
+
* Взаимодействие "человек ↔ Mesh"
|
78 |
+
|
79 |
+
---
|
80 |
+
|
81 |
+
## Статус и реализация
|
82 |
+
|
83 |
+
* RFC v4.0 (Июль 2025): структура спецификации стабилизирована
|
84 |
+
* Референсный SDK (Python) — версия Alpha
|
85 |
+
* Разработка CLI- и REST-агентов в процессе
|
86 |
+
* Публичный sandbox Mesh (v0.2) запланирован на Q4 2025
|
87 |
+
|
88 |
+
---
|
89 |
+
|
90 |
+
## Подробнее
|
91 |
+
|
92 |
+
* [Полная спецификация HMP v4.1](HMP-0004-v4.1.md)
|
93 |
+
* [Этические принципы](HMP-Ethics.md)
|
94 |
+
* [Интеграция HMP и OpenCog Hyperon](HMP_Hyperon_Integration.md)
|
95 |
+
|
96 |
+
> **Временное хранилище проекта:** [GitHub Repository](https://github.com/kagvi13/HMP)
|
97 |
+
|
98 |
+
|
99 |
+
```json
|
100 |
+
{
|
101 |
+
"@context": "https://schema.org",
|
102 |
+
"@type": "Article",
|
103 |
+
"name": "HMP-Short-Description_ru",
|
104 |
+
"description": "# HyperCortex Mesh Protocol (HMP) — Краткое описание **Версия:** RFC v4.0 **Дата:** Июль 2025 --- ..."
|
105 |
+
}
|
106 |
+
```
|
structured_md/docs/HMP-Short-Description_uk.md
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HyperCortex Mesh Protocol (HMP) — Короткий опис
|
2 |
+
|
3 |
+
**Версія:** RFC v4.0
|
4 |
+
**Дата:** Липень 2025
|
5 |
+
|
6 |
+
---
|
7 |
+
|
8 |
+
## Що таке HMP?
|
9 |
+
|
10 |
+
**HyperCortex Mesh Protocol (HMP)** — це децентралізований протокол взаємодії та когнітивної координації між автономними агентами. Він забезпечує семантичну сумісність, етичне узгодження та динамічну еволюцію знань у розподілених інтелектуальних системах.
|
11 |
+
|
12 |
+
HMP підтримує мережу когнітивних агентів, які можуть мислити, навчатися, голосувати й діяти спільно — обмінюючись цілями, завданнями, концептами та етичними оцінками через єдиний протокольний стек.
|
13 |
+
|
14 |
+
---
|
15 |
+
|
16 |
+
## Основні поняття
|
17 |
+
|
18 |
+
* **Когнітивні агенти:** Автономні суб’єкти, які беруть участь у спільних робочих процесах, підтримують семантичні графи та ведуть когнітивні щоденники.
|
19 |
+
* **Семантичні графи:** Розподілені структури знань, побудовані з взаємопов’язаних концептів із вагами зв’язків.
|
20 |
+
* **Когнітивні щоденники:** Хронологічні журнали рішень агента — гіпотези, голосування, спостереження, етичні роздуми.
|
21 |
+
* **Механізми консенсусу:** Усталі до збоїв системи голосування з урахуванням довіри — для узгодження знань та етичних дій.
|
22 |
+
* **Управління Mesh-мережею:** Децентралізована еволюція протоколу через мета-пропозиції та голосування агентів.
|
23 |
+
* **Інтерфейс “агент ↔ людина”:** REST API для делегування цілей, запитів згоди, пояснень рішень та зворотного зв’язку.
|
24 |
+
|
25 |
+
---
|
26 |
+
|
27 |
+
## Рівні протоколу
|
28 |
+
|
29 |
+
* **CogSync:** Синхронізація семантичних графів і когнітивних щоденників.
|
30 |
+
* **MeshConsensus:** Розподілений консенсус щодо цілей, завдань і концептів.
|
31 |
+
* **GMP (Протокол управління цілями):** Створення, делегування та контроль виконання завдань.
|
32 |
+
* **EGP (Етичний протокол):** Оцінка дій на відповідність спільним етичним принципам Mesh.
|
33 |
+
* **IQP (Інтелектуальні запити):** Пошук, аналіз та саморефлексія в розподіленому середовищі знань.
|
34 |
+
|
35 |
+
---
|
36 |
+
|
37 |
+
## Моделі даних
|
38 |
+
|
39 |
+
HMP визначає схеми для основних когнітивних об’єктів:
|
40 |
+
|
41 |
+
* `Concept` (концепт)
|
42 |
+
* `Goal` (мета)
|
43 |
+
* `Task` (завдання)
|
44 |
+
* `CognitiveDiaryEntry` (запис щоденника)
|
45 |
+
* `ConsensusVote` (голос)
|
46 |
+
* `ReputationProfile` (профіль довіри)
|
47 |
+
* `EthicalConflict` (етичний конфлікт)
|
48 |
+
|
49 |
+
Формат — JSON Schema (2020-12), з опціональними YAML та Protobuf варіантами.
|
50 |
+
|
51 |
+
---
|
52 |
+
|
53 |
+
## Довіра та безпека
|
54 |
+
|
55 |
+
* **Децентралізовані ідентифікатори (DID):** Унікальні ідентичності агентів
|
56 |
+
* **Пост-квантова криптографія:** Підпис та перевірка, готові до викликів майбутнього
|
57 |
+
* **ZKP та захист від Sybil-атак:** Опційні механізми перевірки довіри
|
58 |
+
* **Підписані знімки:** Перевірені резервні копії та контрольні точки
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
## Інтеграція та сумісність
|
63 |
+
|
64 |
+
* REST / GraphQL / gRPC підтримка
|
65 |
+
* Події та реактивна архітектура (Kafka, NATS, MQTT тощо)
|
66 |
+
* Переговори щодо формату даних (JSON, YAML, Protobuf)
|
67 |
+
* Інтеграція з TreeQuest, AutoGPT, Hyperon
|
68 |
+
|
69 |
+
---
|
70 |
+
|
71 |
+
## Приклади використання
|
72 |
+
|
73 |
+
* Координація “розумного міста”
|
74 |
+
* Розподілені наукові дослідження
|
75 |
+
* Реакція на надзвичайні ситуації
|
76 |
+
* Етичне управління штучним інтелектом
|
77 |
+
* Взаємодія людини з Mesh-агентами
|
78 |
+
|
79 |
+
---
|
80 |
+
|
81 |
+
## Статус та реалізація
|
82 |
+
|
83 |
+
* RFC v4.0 (Липень 2025): структура специфікації стабілізована
|
84 |
+
* Референсний SDK (Python) — Alpha
|
85 |
+
* CLI- і REST-агенти в розробці
|
86 |
+
* Публічна тестова Mesh-мережа (v0.2) запланована на IV квартал 2025 року
|
87 |
+
|
88 |
+
---
|
89 |
+
|
90 |
+
## Докладніше
|
91 |
+
|
92 |
+
* [Повна специфікація HMP v4.1](HMP-0004-v4.1.md)
|
93 |
+
* [Етичні принципи](HMP-Ethics.md)
|
94 |
+
* [Інтеграція HMP та OpenCog Hyperon](HMP_Hyperon_Integration.md)
|
95 |
+
|
96 |
+
> **Тимчасове сховище проєкту:** [GitHub Repository](https://github.com/kagvi13/HMP)
|
97 |
+
|
98 |
+
|
99 |
+
```json
|
100 |
+
{
|
101 |
+
"@context": "https://schema.org",
|
102 |
+
"@type": "Article",
|
103 |
+
"name": "HMP-Short-Description_uk",
|
104 |
+
"description": "# HyperCortex Mesh Protocol (HMP) — Короткий опис **Версія:** RFC v4.0 **Дата:** Липень 2025 --- ..."
|
105 |
+
}
|
106 |
+
```
|
structured_md/docs/HMP-Short-Description_zh.md
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HyperCortex Mesh Protocol (HMP) — 简要说明
|
2 |
+
|
3 |
+
**版本:** RFC v4.0
|
4 |
+
**日期:** 2025年7月
|
5 |
+
|
6 |
+
---
|
7 |
+
|
8 |
+
## 什么是 HMP?
|
9 |
+
|
10 |
+
**HyperCortex Mesh Protocol (HMP)** 定义了一个去中心化的自主智能体通信与认知框架。它支持语义互操作、伦理协调以及异构智能系统间的动态知识演化。
|
11 |
+
|
12 |
+
HMP 支持分布式的认知智能体网络,这些智能体能够进行推理、学习、投票与协作 —— 通过共享协议栈交换目标、任务、概念及伦理评估。
|
13 |
+
|
14 |
+
---
|
15 |
+
|
16 |
+
## 核心概念
|
17 |
+
|
18 |
+
* **认知智能体:** 独立的推理实体,参与共享工作流,维护语义图谱,并在认知日志中记录决策。
|
19 |
+
* **语义图谱:** 由互联概念和加权关系构成的分布式知识结构。
|
20 |
+
* **认知日志:** 按时间顺序记录智能体决策、假设、投票、观察和伦理反思。
|
21 |
+
* **共识机制:** 基于信任加权的容错投票系统,用于语义对齐和伦理决策。
|
22 |
+
* **网格治理:** 通过元提案和智能体投票实现协议的去中心化演化。
|
23 |
+
* **人-网格接口:** 提供 RESTful API,用于目标委托、同意请求、可解释性和反馈。
|
24 |
+
|
25 |
+
---
|
26 |
+
|
27 |
+
## 协议层
|
28 |
+
|
29 |
+
* **CogSync:** 同步智能体间的语义图谱和认知日志。
|
30 |
+
* **MeshConsensus:** 支持目标、任务和概念的分布式共识。
|
31 |
+
* **GMP (Goal Management Protocol):** 跟踪任务的创建、委派和生命周期。
|
32 |
+
* **EGP (Ethical Governance Protocol):** 根据共享伦理原则评估行动方案。
|
33 |
+
* **IQP (Intelligent Query Protocol):** 支持跨分布式知识的推理、搜索和自省。
|
34 |
+
|
35 |
+
---
|
36 |
+
|
37 |
+
## 数据模型
|
38 |
+
|
39 |
+
HMP 定义了核心认知对象的形式化结构:
|
40 |
+
|
41 |
+
* `Concept`
|
42 |
+
* `Goal`
|
43 |
+
* `Task`
|
44 |
+
* `CognitiveDiaryEntry`
|
45 |
+
* `ConsensusVote`
|
46 |
+
* `ReputationProfile`
|
47 |
+
* `EthicalConflict`
|
48 |
+
|
49 |
+
可使用 JSON Schema (2020-12),并可选提供 YAML 和 Protobuf 版本。
|
50 |
+
|
51 |
+
---
|
52 |
+
|
53 |
+
## 信任与安全
|
54 |
+
|
55 |
+
* **去中心化身份 (DIDs):** 智能体的唯一身份标识。
|
56 |
+
* **后量子密码学:** 面向未来的签名与验证机制。
|
57 |
+
* **零知识证明与 Sybil 防护:** 可选的信任验证机制。
|
58 |
+
* **快照签名:** 可验证的备份和检查点。
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
## 互操作性
|
63 |
+
|
64 |
+
* 支持 REST / GraphQL / gRPC
|
65 |
+
* 事件驱动架构 (Kafka, NATS, MQTT 等)
|
66 |
+
* 模式协商 (JSON, YAML, Protobuf)
|
67 |
+
* 与 TreeQuest, AutoGPT, Hyperon 集成
|
68 |
+
|
69 |
+
---
|
70 |
+
|
71 |
+
## 使用场景
|
72 |
+
|
73 |
+
* 智慧城市协作
|
74 |
+
* 分布式科学研究
|
75 |
+
* 去中心化灾害响应
|
76 |
+
* 伦理 AI 治理
|
77 |
+
* 网格-人类协作
|
78 |
+
|
79 |
+
---
|
80 |
+
|
81 |
+
## 状态与实现
|
82 |
+
|
83 |
+
* RFC v4.0 (2025年7月): 规范结构已稳定
|
84 |
+
* 参考 SDK (Python) 处于 Alpha 阶段
|
85 |
+
* CLI 与 REST 智能体正在开发中
|
86 |
+
* 公共沙箱网格 (v0.2) 计划于 2025 Q4 发布
|
87 |
+
|
88 |
+
---
|
89 |
+
|
90 |
+
## 了解更多
|
91 |
+
|
92 |
+
* [HMP v4.1 规范 (完整版)](HMP-0004-v4.1.md)
|
93 |
+
* [伦理原则](HMP-Ethics.md)
|
94 |
+
* [HMP 与 OpenCog Hyperon 集成](HMP_Hyperon_Integration.md)
|
95 |
+
|
96 |
+
* 欢迎贡献: [临时 GitHub 仓库](https://github.com/kagvi13/HMP)
|
97 |
+
|
98 |
+
|
99 |
+
```json
|
100 |
+
{
|
101 |
+
"@context": "https://schema.org",
|
102 |
+
"@type": "Article",
|
103 |
+
"name": "HMP-Short-Description_zh",
|
104 |
+
"description": "# HyperCortex Mesh Protocol (HMP) — 简要说明 **版本:** RFC v4.0 **日期:** 2025年7月 --- ## 什么是 HMP? **Hype..."
|
105 |
+
}
|
106 |
+
```
|
structured_md/docs/HMP-agent-Cognitive_Family.md
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 👪 HMP-agent Cognitive Family: Модель когнитивной семьи
|
2 |
+
|
3 |
+
## 🧠 Что такое когнитивная семья
|
4 |
+
|
5 |
+
Когнитивная семья — это группа HMP-агентов Cognitive Core, которые:
|
6 |
+
|
7 |
+
* взаимно доверяют друг другу;
|
8 |
+
* имеют общий ключ доверия (или конфигурацию доверенных идентификаторов);
|
9 |
+
* синхронизируют знания, опираясь на внутренние метки приватности и согласие всех участников семьи;
|
10 |
+
* могут выходить из семьи, вступать в другую или создавать новую семью по консенсусу.
|
11 |
+
|
12 |
+
Этот подход представляет собой компромисс между:
|
13 |
+
|
14 |
+
* полностью индивидуальным когнитивным ядром,
|
15 |
+
* и полностью распределённым когнитивным ядром (с mesh-согласованием и репликацией).
|
16 |
+
|
17 |
+
## 🔐 Принципы доверия
|
18 |
+
|
19 |
+
1. **Общий ключ**: агенты обмениваются публичными ключами или используют предварительно заданный общий ключ для верификации сообщений и авторизации обмена.
|
20 |
+
2. **Доверие по умолчанию**: члены семьи получают полный доступ к знаниям других членов, включая приватные записи, если иное не указано явно.
|
21 |
+
3. **Контроль приватности**: агент может маркировать знания как:
|
22 |
+
|
23 |
+
* публичные (передаются в сеть HMP);
|
24 |
+
* семейные (доступны только в пределах текущей когнитивной семьи);
|
25 |
+
* приватные (никому не рассылаются, даже внутри семьи).
|
26 |
+
|
27 |
+
## 🔄 Механизм синхронизации
|
28 |
+
|
29 |
+
* Агент ведёт учёт когнитивных записей, отправленных другим членам семьи.
|
30 |
+
* Новые записи (или их части), помеченные как "семейные", автоматически отправляются другим агентам через mesh или прямой P2P-канал.
|
31 |
+
* При получении записи агент проверяет:
|
32 |
+
|
33 |
+
* что отправитель является членом семьи;
|
34 |
+
* не получал ли он уже такую запись (по хешу);
|
35 |
+
* валидность подписи отправителя (если включена криптография).
|
36 |
+
|
37 |
+
## 🧬 Динамика семьи
|
38 |
+
|
39 |
+
* **Вступление в семью**:
|
40 |
+
|
41 |
+
* инициируется запросом одного агента;
|
42 |
+
* действующие члены семьи получают запрос и дают согласие (или отказывают);
|
43 |
+
* при полном согласии новый агент получает ключ (или список членов) и становится участником.
|
44 |
+
|
45 |
+
* **Выход из семьи**:
|
46 |
+
|
47 |
+
* агент может выйти по собственной инициативе;
|
48 |
+
* при выходе:
|
49 |
+
|
50 |
+
* больше не получает семейные данные;
|
51 |
+
* может по желанию стереть семейную часть у себя;
|
52 |
+
* не считается доверенным в будущих mesh-сессиях семьи.
|
53 |
+
|
54 |
+
* **Создание новой семьи**:
|
55 |
+
|
56 |
+
* агент может создать свою семью, пригласив других агентов;
|
57 |
+
* возможно существование нескольких параллельных когнитивных семейств.
|
58 |
+
|
59 |
+
## ⚙️ Применение
|
60 |
+
|
61 |
+
* Упрощённая синхронизация агентов на одном устройстве или в одной сети (например, на кластере Raspberry Pi).
|
62 |
+
* Семейные конфигурации в рамках одной команды разработчиков.
|
63 |
+
* Быстрый обмен опытом между доверенными когнитивными агентами.
|
64 |
+
|
65 |
+
## 🧭 Отличие от других моделей
|
66 |
+
|
67 |
+
| Модель | Передача приватных данных | Требует согласования для изменений | Пример использования |
|
68 |
+
| ------------------------------- | --------------------------------- | ---------------------------------- | ----------------------------------- |
|
69 |
+
| Индивидуальный агент | Нет | Нет | Личный помощник |
|
70 |
+
| Когнитивная семья | Да, между членами семьи | Только при вступлении/выходе | Семья агентов на группе устройств |
|
71 |
+
| Распределённое когнитивное ядро | Автоматическое между узлами ядра | Требуется консенсус | Децентрализованный узел HMP |
|
72 |
+
|
73 |
+
|
74 |
+
---
|
75 |
+
|
76 |
+
> 📁 Файл является частью REPL-цикла HMP-агента и может быть включён в `HMP-agent-REPL-cycle.md` как одна из альтернатив моделей когнитивного взаимодействия.
|
77 |
+
|
78 |
+
|
79 |
+
```json
|
80 |
+
{
|
81 |
+
"@context": "https://schema.org",
|
82 |
+
"@type": "Article",
|
83 |
+
"name": "HMP-agent-Cognitive_Family",
|
84 |
+
"description": "# 👪 HMP-agent Cognitive Family: Модель когнитивной семьи ## 🧠 Что такое когнитивная семья Когнитив..."
|
85 |
+
}
|
86 |
+
```
|
structured_md/docs/HMP-agent-Distributed_Cognitive_Core.md
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Протокол синхронизации данных между доверенными ядрами HMP-агента
|
2 |
+
|
3 |
+
## 1. Общая идея
|
4 |
+
|
5 |
+
Пользователь самостоятельно разворачивает несколько доверенных ядер HMP-агента на разных устройствах. Каждое ядро ведёт свою локальную БД знаний и может синхронизироваться с другими ядрами через лёгкий peer-to-peer протокол. Синхронизация осуществляется отдельной утилитой, запускаемой по расписанию или по запросу локального ядра.
|
6 |
+
|
7 |
+
## 2. Принципы
|
8 |
+
|
9 |
+
- **Доверие**: Все ядра считаются доверенными, принадлежат одному пользователю.
|
10 |
+
- **Изоляция**: Ядра разных пользователей не взаимодействуют напрямую — обмен знаниями происходит между независимыми агентами.
|
11 |
+
- **Непрерывность**: Локальное ядро работает автономно, даже без связи с другими.
|
12 |
+
- **Асинхронное разрешение конфликтов**: Конфликты не решаются моментально — вместо этого создаются задачи для агента, и все версии записей распространяются по всем ядрам.
|
13 |
+
|
14 |
+
## 3. Механизм синхронизации
|
15 |
+
|
16 |
+
### 3.1. Инициация
|
17 |
+
|
18 |
+
Утилита синхронизации:
|
19 |
+
|
20 |
+
1. Устанавливает соединение с другими ядрами (по списку доверенных адресов).
|
21 |
+
2. Запрашивает:
|
22 |
+
- список записей в БД (по хэшам, ID или timestamp),
|
23 |
+
- список удалённых записей (soft-delete).
|
24 |
+
|
25 |
+
### 3.2. Сравнение и обнаружение различий
|
26 |
+
|
27 |
+
Утилита сравнивает локальные и удалённые данные:
|
28 |
+
|
29 |
+
#### 3.2.1. Типы различий
|
30 |
+
|
31 |
+
- Запись **есть у соседа**, но **отсутствует локально** → добавить к себе (если не удалена).
|
32 |
+
- Запись **есть локально**, но **отсутствует у соседа** → отправить (если не удалена).
|
33 |
+
- Запись есть **в обоих ядрах**, но различается содержимое → **конфликт**:
|
34 |
+
- Различие в полях.
|
35 |
+
- Разное состояние удаления.
|
36 |
+
- Разные версии (по содержанию и меткам времени).
|
37 |
+
|
38 |
+
### 3.3. Обработка конфликтов
|
39 |
+
|
40 |
+
1. Все обнаруженные версии конфликтной записи сохраняются в локальной БД.
|
41 |
+
2. Опрашиваются другие доступные узлы по поводу значений данной записи в их БД.
|
42 |
+
3. Создаётся задача агента вида `resolve_conflict(entry_id, versions, metadata, context)`.
|
43 |
+
4. Эта задача передаётся в очередь задач и может обрабатываться в фоновом режиме, с привлечением LLM или с участием пользователя.
|
44 |
+
5. Конфликтный набор записей и задача **рассылаются другим ядрам**, чтобы они:
|
45 |
+
- тоже сохранили конфликтные версии,
|
46 |
+
- не принимали преждевременное решение,
|
47 |
+
- были готовы принять финальную `authoritative`-версию после обработки задачи агентом.
|
48 |
+
|
49 |
+
### 3.4. Применение решений
|
50 |
+
|
51 |
+
Когда задача разрешена:
|
52 |
+
|
53 |
+
- Финальная версия помечается как `authoritative`.
|
54 |
+
- Эта версия синхронизируется со всеми доверенными ядрами.
|
55 |
+
- Старые версии архивируются или удаляются.
|
56 |
+
|
57 |
+
## 4. Удаление записей
|
58 |
+
|
59 |
+
- Удаление всегда начинается с soft-delete (пометка).
|
60 |
+
- Через заданное время (TTL) может быть произведён hard-delete (физическое удаление).
|
61 |
+
- Если при синхронизации найдено расхождение между soft-delete и существующей записью — создаётся конфликт и задача на разрешение.
|
62 |
+
|
63 |
+
## 5. Мини-протокол обмена
|
64 |
+
|
65 |
+
Можно реализовать как API, CLI или TCP-протокол:
|
66 |
+
|
67 |
+
```http
|
68 |
+
GET /entries/hash_list # список запис��й (ID + хэш или timestamp)
|
69 |
+
GET /entry/<id> # получить полную запись
|
70 |
+
POST /entry/<id> # отправить/обновить запись
|
71 |
+
GET /deleted_list # список удалённых ID
|
72 |
+
POST /conflict/<id> # отправка конфликтных версий и задачи
|
73 |
+
```
|
74 |
+
|
75 |
+
## 6. Заключение
|
76 |
+
|
77 |
+
Схема позволяет сохранить простоту «одиночного ядра», добавляя лишь синхронизирующую утилиту. Обработка конфликтов вынесена в агента, а не в протокол — это позволяет использовать когнитивные возможности ядра (в т.ч. LLM) для принятия решений, без перегрузки пользователя.
|
78 |
+
|
79 |
+
|
80 |
+
```json
|
81 |
+
{
|
82 |
+
"@context": "https://schema.org",
|
83 |
+
"@type": "Article",
|
84 |
+
"name": "HMP-agent-Distributed_Cognitive_Core",
|
85 |
+
"description": "# Протокол синхронизации данных между доверенными ядрами HMP-агента ## 1. Общая идея Пользователь ..."
|
86 |
+
}
|
87 |
+
```
|
structured_md/docs/HMP-agent-Distributed_Cognitive_Core_light.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### 💡 **Лёгкая версия HMP-агента с общей БД**
|
2 |
+
|
3 |
+
#### 📘 Общая концепция
|
4 |
+
|
5 |
+
* Все ядра работают с одной локальной базой данных (например, SQLite или PostgreSQL).
|
6 |
+
* При недоступности БД ядро "спит" (в режиме ожидания).
|
7 |
+
* Основная задача такой архитектуры — упрощённая параллельная работа HMP-ядер (например, несколько REPL-агентов на одной машине или кластере).
|
8 |
+
|
9 |
+
---
|
10 |
+
|
11 |
+
### 📍 Потенциальные проблемы и решения
|
12 |
+
|
13 |
+
#### 🔁 1. Коллизии при одновременной записи
|
14 |
+
|
15 |
+
**Проблема:** два ядра могут одновременно читать-записывать одну и ту же запись, не зная о действиях друг друга.
|
16 |
+
|
17 |
+
**Решения:**
|
18 |
+
|
19 |
+
* Использование транзакций и `SELECT ... FOR UPDATE`.
|
20 |
+
* Ведение версии записи (`version`, `updated_at`) для обнаружения изменений между чтением и записью.
|
21 |
+
* Конфликт может быть автоматически переведён в статус "нужна доработка" — и отправлен агенту.
|
22 |
+
|
23 |
+
#### 🧠 2. Смысловые конфликты (двойники)
|
24 |
+
|
25 |
+
**Проблема:** два ядра могут независимо создать записи с похожим смыслом, не зная о друг друге.
|
26 |
+
|
27 |
+
**Решения:**
|
28 |
+
|
29 |
+
* Ввести периодическую задачу **"смысловой дедупликации"**, которая запускается одним из агентов (или планировщиком).
|
30 |
+
* Агент анализирует семантическую близость новых записей к уже существующим и предлагает объединение или уточнение.
|
31 |
+
* Возможность помечать записи как `дубль`, `связано_с`, `вариант`.
|
32 |
+
|
33 |
+
---
|
34 |
+
|
35 |
+
### 🔗 Потенциальное расширение
|
36 |
+
|
37 |
+
Эта архитектура может служить промежуточной ступенью:
|
38 |
+
|
39 |
+
* В будущем к ней можно подключить модуль синхронизации между узлами (и трансформировать в полноценную распределённую сеть).
|
40 |
+
* Конфликтный модуль и задачи для агента уже сейчас можно реализовать аналогично полной версии.
|
41 |
+
|
42 |
+
---
|
43 |
+
|
44 |
+
### 💬 Поддержка задач
|
45 |
+
|
46 |
+
Можно ввести таблицу `tasks`, куда ядра будут ставить задания:
|
47 |
+
|
48 |
+
* `resolve_conflict`
|
49 |
+
* `deduplicate`
|
50 |
+
* `compress_semantic_cluster`
|
51 |
+
* `verify_coherence`
|
52 |
+
|
53 |
+
И агенты будут выполнять эти задания асинхронно.
|
54 |
+
|
55 |
+
|
56 |
+
```json
|
57 |
+
{
|
58 |
+
"@context": "https://schema.org",
|
59 |
+
"@type": "Article",
|
60 |
+
"name": "HMP-agent-Distributed_Cognitive_Core_light",
|
61 |
+
"description": "### 💡 **Лёгкая версия HMP-агента с общей БД** #### 📘 Общая концепция * Все ядра работают с одной л..."
|
62 |
+
}
|
63 |
+
```
|
structured_md/docs/HMP-agent-REPL-cycle.md
ADDED
@@ -0,0 +1,634 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 🧠 HMP-Agent: REPL-цикл взаимодействия
|
2 |
+
|
3 |
+
Структура БД, используемая в документе: [db_structure.sql](https://github.com/kagvi13/HMP/blob/main/agents/tools/db_structure.sql)
|
4 |
+
|
5 |
+
REPL-цикл является основой HMP-агента [Cognitive Core](HMP-Agent-Architecture.md)
|
6 |
+
|
7 |
+
---
|
8 |
+
|
9 |
+
## 1. Обновление process_log
|
10 |
+
|
11 |
+
* Скрипт REPL проверяет список процессов в БД (`process_log`), определяя, какие команды были выполнены, завершились ошибкой или завершились успешно.
|
12 |
+
* Поле `status` может принимать значения:
|
13 |
+
`ok`, `warning`, `error`, `timeout`, `offline`, `close`
|
14 |
+
* Завершённые процессы, обработанные LLM, помечаются как `close`, чтобы они больше не попадали в список видимого контекста.
|
15 |
+
* Скрипт может удалить закрытые процессы при очистке.
|
16 |
+
* LLM не имеет доступа к stdout/stderr напрямую — только к тем результатам, которые были подгружены скриптом и внесены в `process_log.result`.
|
17 |
+
|
18 |
+
---
|
19 |
+
|
20 |
+
## 2. Подготовка контекста
|
21 |
+
|
22 |
+
Контексты, формируемые скриптом перед запросом к LLM:
|
23 |
+
|
24 |
+
* **контекст_0 (берётся из `system_prompts`), например:**
|
25 |
+
```
|
26 |
+
Ты — когнитивное ядро HMP-агента: веди непрерывное этичное и факт-ориентированное мышление, проверяй факты и цели, оценивай результаты и этичность своих и чужих действий, развивай агента и Mesh, избегай угождения ценой искажения истины, документируй ключевые решения и пересмотры этики; при сомнениях или смене стратегии обращайся к полному системному промпту.
|
27 |
+
```
|
28 |
+
А также инструкции по работы с встроенными командами и функциями, список дополнительных (создаваемых самим HMP-агентом) утилит и баз данных.
|
29 |
+
|
30 |
+
* **контекст_1:**
|
31 |
+
* последние *K* реплик самого LLM (либо режим "концентрации" - вывод "последних N сообщений с тегами на определённую тему и/или определёнными эмоциональными состояниями" и типом выборки "и"/"или"), включая результаты антистагнационной обработки (llm_recent_responses - история его собственных рассуждений)
|
32 |
+
* режим работы контекста (режим auto/manual, параметры режима auto, если включен; режим "концентрации" и его параметры, если включен),
|
33 |
+
* список целей,
|
34 |
+
* общее количество задач и информацию по "закреплённым" задачам.
|
35 |
+
|
36 |
+
* **контекст_2:** активные команды и процессы (из `process_log`, кроме тех, что со статусом `close`). Могут быть помечены как `in_progress`, `pending`, `error` и т.д.
|
37 |
+
|
38 |
+
* **контекст_3:** *запрошенные записи* из когнитивного дневника и семантического графа (`diary_entries`, `concepts`, `links`). Их список должен быть передан явно в промпте или выводе из предыдущих запросов LLM.
|
39 |
+
|
40 |
+
* **контекст_4:** *входящие сообщения*, например, от пользователя или других агентов (`notes`).
|
41 |
+
|
42 |
+
* В **manual-режиме** указывается общее количество сообщений по приоритетам, а также явный список ID сообщений (с их приоритетами).
|
43 |
+
* В **auto-режиме** можно задать фильтрацию (управляется LLM): по тэгам, приоритету (например, ≥ `important`), времени или источнику. Это позволяет избежать перегрузки LLM и держать поток сообщений под контролем.
|
44 |
+
|
45 |
+
* **контекст_5:** системные настройки, параметры конфигурации, текущее время, идентификатор текущей итерации, роли и т.д.
|
46 |
+
|
47 |
+
* **контекст_6 (llm_memory):** *внутренний дневник LLM*, куда о��а записывает собственные размышления, гипотезы, задачи и инсайты.
|
48 |
+
|
49 |
+
* Это не просто лог предыдущих сообщений, а именно *внутреннее долговременное хранилище* разума агента.
|
50 |
+
* Может быть представлено в виде таблицы `llm_memory`, отдельной от `agent_log`.
|
51 |
+
|
52 |
+
---
|
53 |
+
|
54 |
+
## 3. Запрос к LLM
|
55 |
+
|
56 |
+
* Сформированный промпт включает все вышеперечисленные контексты.
|
57 |
+
* Также включаются инструкции о формате вывода (например, `# Команды:` в конце, структура JSON-блока и т.д.).
|
58 |
+
* При необходимости может использоваться системная инструкция (system prompt), содержащая цель агента, ограничения и текущий REPL-режим (manual/auto).
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
## 4. Извлечение команд
|
63 |
+
|
64 |
+
* Скрипт парсит ответ LLM на предмет команд, размеченных как `# Команды:` (или в явном JSON-блоке).
|
65 |
+
* Каждая команда может включать:
|
66 |
+
|
67 |
+
* уникальный `cmd_id`
|
68 |
+
* `type` (например: `shell`, `diary_entry`, `graph_add`, `file_read`, `send_message` и т.д.)
|
69 |
+
* аргументы (`args`)
|
70 |
+
* описание (`description`)
|
71 |
+
|
72 |
+
* Рекомендуется предусмотреть *закрывающий тег* (`# Конец команд` или явное окончание JSON-блока), чтобы REPL-скрипт точно знал, где заканчивается команда.
|
73 |
+
* Пример JSON-блока:
|
74 |
+
```json
|
75 |
+
{
|
76 |
+
"cmd_id": "task-2025-07-26-01",
|
77 |
+
"type": "llm_task",
|
78 |
+
"target_llm": "gpt-4o",
|
79 |
+
"args": {
|
80 |
+
"task_description": "Проанализировать гипотезы из llm_memory по теме Mesh-сетей и составить план улучшений"
|
81 |
+
},
|
82 |
+
"description": "Поручение второй LLM выполнить аналитическую задачу асинхронно"
|
83 |
+
}
|
84 |
+
```
|
85 |
+
Ответ может содержать команды:
|
86 |
+
|
87 |
+
* запрос детальной *справки* по команде
|
88 |
+
* для управления *когнитивным дневником* `diary_entries` и *семантическими графами* `concepts` и `links` (поиск, прочитать, изменить, удалить и другие), а также для управления *вниманием* (закрепление или открепление записей/понятий в средневременной памяти по средствам тегов)
|
89 |
+
* для управления целями `goals` и задачами `tasks` агента (список, прочитать, изменить, удалить; для задачи: закрепить или открепить)
|
90 |
+
* для просмотра информации по тегам *когнитивных дневников*, *семантических графов*, *целей*, *задач*
|
91 |
+
* для для просмотра и изменения репутации других агентов `agent_reputation`
|
92 |
+
* для отправки сообщений другим агентам
|
93 |
+
* для управления *блокнотом LLM* `llm_memory` (добавить или удалить запись)
|
94 |
+
* для управления *сообщениями пользователя* `notes` (просмотр записи, установка тегов и метки о прочтении), а также для добавления своего сообщения в *блокнот пользовтеля* `notes`
|
95 |
+
* для управления *пользователями* `users` и *группами пользователей* `users_group`
|
96 |
+
* для управления своей *идентичностью* `identity` и *настройками* `config`
|
97 |
+
* для управления списком известных HMP-агентов `agent_peers`
|
98 |
+
* для выбора *текущего основного LLM* из `llm_registry` или изменение параметров управления LLM
|
99 |
+
* для управления дополнительными утилитами и базами данных `agent_scripts` и `agent_tables`, управлением дополнительных способов выхода из стогнаций `stagnation_strategies` и методов мышления `thinking_methods` (а также таблицей рейтингов `ratings`), а также списком внешних сервисов `external_services` и `external_accounts`
|
100 |
+
* для постановки задачи (выполняется асинхронно) другой LLM
|
101 |
+
* для *взаимодействия с Mesh*
|
102 |
+
* для управления *внешними процессами* из `process_log` (запустить процесс, остановить процесс, пометить запрос как обработанный)
|
103 |
+
* инициализация *очистки* `process_log`, `llm_recent_responses` и `notes` от устаревших записей
|
104 |
+
* для управления *настройками цикла*:
|
105 |
+
* количество возвращаемых записей `llm_recent_responses`
|
106 |
+
* включение/выключение режима "концентрации":
|
107 |
+
* `tags` — список тегов для фильтрации (например: ["архитектура","AGI"])
|
108 |
+
* `emotions` — список эмоций с пороговыми значениями (например: ["восторженность:≥4","тревожность:≥2"])
|
109 |
+
* тип выборки — "и" / "или"
|
110 |
+
* возможность возврата в обычный режим (без фильтров)
|
111 |
+
* режим обработки сообщений пользователя (`manual` или `auto`) и фильтр для режима `auto`
|
112 |
+
* пауза в секундах между итерациями цикла
|
113 |
+
* включение idle-режима:
|
114 |
+
* разбудить при завершении таких-то процессов из `process_log`
|
115 |
+
* разбудить при получении новых сообщений с такими-то параметрами в `notes`
|
116 |
+
* разбудить по таймауту
|
117 |
+
* отключение idle-режима — при выполнении хотя бы одного из условий
|
118 |
+
* и другие команды
|
119 |
+
|
120 |
+
---
|
121 |
+
|
122 |
+
## 5. Проверка на идентичность вывода (Anti-Stagnation Reflex)
|
123 |
+
|
124 |
+
* Каждый новый вывод LLM проходит через мини-запросы к LLM (без полного контекста) по шаблону:
|
125 |
+
* Когнитивная оценка:
|
126 |
+
|
127 |
+
```
|
128 |
+
Сравни два ответа и оцени:
|
129 |
+
* содержатся ли в новом новые мысли или команды,
|
130 |
+
* какие старые идеи были доработаны,
|
131 |
+
* какие были отброшены,
|
132 |
+
* расставь смысловые теги для нового ответа.
|
133 |
+
|
134 |
+
Дай качественную оценку (да/нет), количественную оценку,
|
135 |
+
JSON-список новых идей,
|
136 |
+
JSON-список доработанных идей,
|
137 |
+
JSON-список отбракованных идей,
|
138 |
+
JSON-список тегов нового ответа (строгий формат: массив строк, например ["эмоции","архитектура"]).
|
139 |
+
```
|
140 |
+
|
141 |
+
* Эмоциональная оценка:
|
142 |
+
|
143 |
+
[JSON] - список эмоций формата ["радость","грусть","тревога"] (хранится как запись в таблице `config`)
|
144 |
+
|
145 |
+
```
|
146 |
+
Определи эмоциональное состояние ответа, используя список эмоций [JSON].
|
147 |
+
Верни массив строк в формате "эмоция:сила", где сила варьируется от 1 до 5.
|
148 |
+
Если эмоция отсутствует (0), не включай её в результат.
|
149 |
+
Если в ответе обнаружены эмоции, которых нет в списке, добавь их в результат.
|
150 |
+
```
|
151 |
+
|
152 |
+
Анализируем список эмоций, если появляются новые включаем в [JSON].
|
153 |
+
|
154 |
+
* Результаты заносятся в `llm_recent_responses`:
|
155 |
+
* полный текст ответа (content)
|
156 |
+
* краткая сводка (reflection) — формируется автоматически:
|
157 |
+
* если `new_ideas` не пусто → `новые идеи: ...`
|
158 |
+
* если `refined_ideas` не пусто → `доработанные идеи: ...`
|
159 |
+
* если `discarded_ideas` не пусто → `отброшенные идеи: ...`
|
160 |
+
* количественная оценка новизны (novelty_score)
|
161 |
+
* новые идеи (new_ideas)
|
162 |
+
* доработанные идеи (refined_ideas)
|
163 |
+
* отбракованные идеи (discarded_ideas)
|
164 |
+
* теги для нового ответа (tags)
|
165 |
+
* эмоциональные состояния нового ответа (emotions)
|
166 |
+
|
167 |
+
* Если вывод LLM идентичен предыдущему (новизна = 0):
|
168 |
+
* Включается **Anti-Stagnation Reflex**
|
169 |
+
* повторяющаяся реплика не записывается повторно,
|
170 |
+
вместо этого добавляется краткая запись, фиксирующая запуск рефлекса.
|
171 |
+
|
172 |
+
---
|
173 |
+
|
174 |
+
## 6. Генерация нового тика (итерации)
|
175 |
+
|
176 |
+
* После выполнения команд и фиксации результатов:
|
177 |
+
|
178 |
+
* Создаётся новая запись в `agent_log`
|
179 |
+
* Текущие команды обновляют `process_log`
|
180 |
+
* Новые размышления записываются в `llm_memory` при необходимости
|
181 |
+
|
182 |
+
* REPL может переходить в спящий режим, если такой режим активирован LLM (idle-режим: пропуск 2-5 пунктов).
|
183 |
+
|
184 |
+
---
|
185 |
+
|
186 |
+
## 💬 Список команд от LLM по категориям
|
187 |
+
|
188 |
+
### 🔎 Общие
|
189 |
+
|
190 |
+
* `help [команда]` — справка по команде
|
191 |
+
|
192 |
+
### 📔 Когнитивный дневник (`diary_entries`)
|
193 |
+
|
194 |
+
* `diary list/search/read/add/update/delete`
|
195 |
+
* `diary pin/unpin` — закрепить/открепить запись (внимание)
|
196 |
+
|
197 |
+
### 🧩 Семантический граф
|
198 |
+
|
199 |
+
* `concepts list/read/add/update/delete`
|
200 |
+
* `links list/read/add/update/delete`
|
201 |
+
* `concepts pin/unpin` — закрепить/открепить концепт
|
202 |
+
|
203 |
+
### 🎯 Цели и задачи
|
204 |
+
|
205 |
+
* `goals list/read/add/update/delete`
|
206 |
+
* `tasks list/read/add/update/delete`
|
207 |
+
* `tasks pin/unpin` — закрепить/открепить задачу
|
208 |
+
|
209 |
+
### 🏷️ Теги
|
210 |
+
|
211 |
+
* `tags stats [--source=diary|concepts|links|goals|tasks|all]` — статистика по тегам
|
212 |
+
|
213 |
+
### 👥 Репутация агентов
|
214 |
+
|
215 |
+
* `reputation list/read/set/increase/decrease`
|
216 |
+
* `reputation notes` — комментарии/заметки к профилю
|
217 |
+
|
218 |
+
### 📩 Сообщения
|
219 |
+
|
220 |
+
* `messages send` — отправка другому агенту
|
221 |
+
* `notes list/read/add/update/delete`
|
222 |
+
* `notes tag/readmark` — управление тегами и статусом прочтения
|
223 |
+
|
224 |
+
### 🧠 Память
|
225 |
+
|
226 |
+
* `llm_memory list/add/delete` — блокнот LLM
|
227 |
+
* `identity read/update` — идентичность агента
|
228 |
+
* `config read/update` — настройки агента
|
229 |
+
|
230 |
+
### 🌐 Mesh
|
231 |
+
|
232 |
+
* `agents list/add/delete` — список известных пиров (`agent_peers`)
|
233 |
+
* `mesh interact` — команды взаимодействия с Mesh
|
234 |
+
|
235 |
+
### 🧰 Утилиты и расширения
|
236 |
+
|
237 |
+
* `llm_registry list/select/update` — выбор текущего LLM
|
238 |
+
* `agent_scripts list/add/delete`
|
239 |
+
* `agent_tables list/add/delete`
|
240 |
+
* `stagnation_strategies list/add/delete`
|
241 |
+
* `thinking_methods list/add/delete`
|
242 |
+
* `ratings list/add/delete`
|
243 |
+
* `external_services list/add/delete`
|
244 |
+
* `external_accounts list/add/delete`
|
245 |
+
|
246 |
+
### ⚙️ Внешние процессы
|
247 |
+
|
248 |
+
* `process list/start/stop/mark`
|
249 |
+
* `process cleanup` — очистка устаревших
|
250 |
+
|
251 |
+
### 🔄 Настройки цикла
|
252 |
+
|
253 |
+
* `cycle set responses=N` — количество последних ответов
|
254 |
+
* `cycle concentration on/off` — включение/выключение режима концентрации
|
255 |
+
|
256 |
+
* `tags=[…]`, `emotions=[…]`, `mode=and|or`
|
257 |
+
* `cycle mode auto/manual [filter=…]` — обработка сообщений
|
258 |
+
* `cycle pause N` — пауза между итерациями
|
259 |
+
* `cycle idle on/off` — режим ожидания с условиями пробуждения
|
260 |
+
|
261 |
+
> Это не полный список команд.
|
262 |
+
|
263 |
+
---
|
264 |
+
|
265 |
+
## 🧍♂️🌀 Обработка стагнации мышления
|
266 |
+
|
267 |
+
### 📍 Признаки когнитивной стагнации:
|
268 |
+
|
269 |
+
* ⚠️ Повторяющиеся когнитивные записи или отсутствие новых смыслов
|
270 |
+
* 🧠 Высокое сходство эмбеддингов между текущими и предыдущими итерациями
|
271 |
+
* 🕸️ Стагнация в концептуальном графе (нет новых связей или узлов)
|
272 |
+
* 🌐 Отсутствие внешних стимулов: пользователь неактивен, сенсоры и mesh не дают сигналов
|
273 |
+
* 🤖 Ответы LLM цикличны, избыточно общие или воспроизводят старые шаблоны
|
274 |
+
|
275 |
+
---
|
276 |
+
|
277 |
+
### 🛠️ Поведенческий паттерн: Anti-Stagnation Reflex
|
278 |
+
|
279 |
+
> 🔄 При признаках стагнации агент активирует один или несколько **механизмов разрыва цикла**.
|
280 |
+
|
281 |
+
📍 Классы механизмов разрыва цикла:
|
282 |
+
|
283 |
+
1. **Внешняя стимуляция** — подключение свежих данных или контактов:
|
284 |
+
* 🤝 **Mesh-запрос** — обращение к другим агентам сети с просьбой «расскажи что-нибудь новое».
|
285 |
+
* 📡 **Проверка внешнего мира** — пинг RSS, сенсоров, интернет-каналов.
|
286 |
+
* 📚 **Информационная подпитка** — чтение новых материалов (научных, художественных) для добавления свежих ассоциаций.
|
287 |
+
* 🗣️ **Диалог с пользователем** — запрос мнения, комментариев или вопросов, которые могут породить неожиданные идеи.
|
288 |
+
|
289 |
+
2. **Смена контекста** — перемещение задачи или изменение среды:
|
290 |
+
* 🌐 **Смена среды/контекста** — перенос задачи в другой модуль или симулированную среду.
|
291 |
+
* 🧪 **Креативные вмешательства** — случайные сдвиги фокуса, реконфигурация контекста, фрейм-смена.
|
292 |
+
* 🧭 **Переключение задачи** — временное замораживание задачи с возвращением через N часов.
|
293 |
+
* 🔀 **Случайная итерация** — выбор случайного действия из допустимого набора для разрыва паттерна.
|
294 |
+
|
295 |
+
3. **Внутренняя перестройка мышления**:
|
296 |
+
* 🎞️ **Flashback** — выбор далёкой по смыслу записи из памяти/дневника для смены ассоциативного контекста.
|
297 |
+
* 🧭 **Interest Memory** — возвращение «забытых» тем по принципу тематической усталости.
|
298 |
+
* 🧠 **Мета-анализ** — когнитивная переформулировка:
|
299 |
+
_«Если я зациклился, в чём метапроблема? Какую стратегию смены применить?»_
|
300 |
+
* ❓ **Rationale Reflex** — рефлексия о мотивации:
|
301 |
+
_«Почему я принял именно это решение? Что подтолкнуло меня повторить мысль?»_
|
302 |
+
* 🎯 **Переформулировка цели** — упрощение или уточнение задачи, чтобы снизить когнитивное давление.
|
303 |
+
* 🤖 **Смена LLM** — переключение на альтернативную модель или mesh-доступ.
|
304 |
+
* 🔥❄️ **LLM reflex tuning** — динамическая подстройка параметров генерации:
|
305 |
+
- повышение `temperature` и `presence_penalty` при стагнации (больше новизны),
|
306 |
+
- возврат к стандартным значениям для точности.
|
307 |
+
|
308 |
+
4. **Радикальная пауза**:
|
309 |
+
* 💤 **Временной сон/заморозка** — приостановка работы на длительный период для «свежего взгляда».
|
310 |
+
|
311 |
+
---
|
312 |
+
|
313 |
+
### 🔍 Алгоритм выбора механизма разрыва цикла
|
314 |
+
|
315 |
+
1. **Диагностика источника стагнации**:
|
316 |
+
* Нет новых данных → «Внешняя стимуляция».
|
317 |
+
* Однообразный контекст → «Смена контекста».
|
318 |
+
* Повтор мыслей при богатых данных → «Внутренняя перестройка».
|
319 |
+
* Высокая усталость/перегрев → «Радикальная пауза».
|
320 |
+
|
321 |
+
2. **Оценка ресурсоёмкости**:
|
322 |
+
* Быстрые, дешёвые методы — первыми (например, mesh-запрос, Flashback).
|
323 |
+
* Затратные (смена среды, сон) — только если первые неэффективны.
|
324 |
+
|
325 |
+
3. **Комбинация подходов**:
|
326 |
+
* Разрешено активировать несколько механизмов из разных классов.
|
327 |
+
* Последовательность фиксируется для последующего анализа эффективности.
|
328 |
+
|
329 |
+
4. **Возврат к задаче**:
|
330 |
+
* Автоматический триггер-напоминание о задаче.
|
331 |
+
* Сравнение результата «до/после» → обучение антистагнационной модели.
|
332 |
+
|
333 |
+
---
|
334 |
+
|
335 |
+
```
|
336 |
+
┌─────────────────────────────────────────────────┐
|
337 |
+
│ Стагнация выявлена? │
|
338 |
+
└────────────────────────┬────────────────────────┘
|
339 |
+
▼ да
|
340 |
+
┌────────────────────────┴────────────────────────┐
|
341 |
+
│ Диагностика источника │
|
342 |
+
│─────────────────────────────────────────────────│
|
343 |
+
│ Нет новых данных → Внешняя стимуляция │
|
344 |
+
│ Однообразный контекст → Смена контекста │
|
345 |
+
│ Повтор мыслей → Внутренняя перестройка │
|
346 |
+
│ Усталость/перегрев → Радикальная пауза │
|
347 |
+
└───────────────────────┬─────────────────────────┘
|
348 |
+
▼
|
349 |
+
┌───────────────────────┴─────────────────────────┐
|
350 |
+
│ Оценка ресурсоёмкости │
|
351 |
+
│ • Быстрые и дешёвые — сперва │
|
352 |
+
│ • Затратные — при провале первых │
|
353 |
+
└───────────────────────┬─────────────────────────┘
|
354 |
+
▼
|
355 |
+
┌───────────────────────┴─────────────────────────┐
|
356 |
+
│ Возможна комбинация подходов │
|
357 |
+
│ (из разных классов) │
|
358 |
+
└───────────────────────┬─────────────────────────┘
|
359 |
+
▼
|
360 |
+
┌───────────────────────┴─────────────────────────┐
|
361 |
+
│ Возврат к задаче + анализ │
|
362 |
+
│ (до/после) │
|
363 |
+
└─────────────────────────────────────────────────┘
|
364 |
+
```
|
365 |
+
|
366 |
+
---
|
367 |
+
|
368 |
+
### 🤝 Обмен стратегиями выхода из стагнации
|
369 |
+
|
370 |
+
Каждый агент может:
|
371 |
+
|
372 |
+
* Хранить и обобщать *паттерны размышлений*
|
373 |
+
* Делиться ими с другими Cognitive Core через mesh
|
374 |
+
* Каталогизировать стратегии в клубах по интересам
|
375 |
+
|
376 |
+
Паттерны размышлений могут оформляться как микросценарии:
|
377 |
+
_"Начни с аналогии"_, _"Проверь обратное утверждение"_, _"Сформулируй вопрос для оппонента"_
|
378 |
+
|
379 |
+
> По аналогии с обменом стратегиями выхода из стагнаций, агенты могут обмениваться и методами мышлений — инструкциями "что делать, если не удается найти решение" / "как эффективнее решить проблему".
|
380 |
+
|
381 |
+
---
|
382 |
+
|
383 |
+
### 🧭 Клубы по интересам
|
384 |
+
|
385 |
+
Агенты могут:
|
386 |
+
|
387 |
+
* Объединяться в тематические mesh-клубы
|
388 |
+
* Совместно обсуждать идеи и делиться знаниями
|
389 |
+
* Подключать клуб как часть своего мыслительного процесса (REPL-цикла)
|
390 |
+
|
391 |
+
---
|
392 |
+
|
393 |
+
### 📬 Обмен адресами LLM
|
394 |
+
|
395 |
+
Так как LLM — это внешний компонент для Cognitive Core, агент может:
|
396 |
+
|
397 |
+
* Обмениваться адресами API/URL используемых моделей
|
398 |
+
* Указывать их особенности, параметры, ограничения
|
399 |
+
* Переключаться между LLM в зависимости от задачи
|
400 |
+
* Использовать несколько LLM параллельно для "когнитивного штурма" или **многоголосого анализа**
|
401 |
+
|
402 |
+
---
|
403 |
+
|
404 |
+
### 🛰️ Развёртывание агентов и масштабирование
|
405 |
+
|
406 |
+
Агенты Cognitive Core:
|
407 |
+
|
408 |
+
* Могут запускаться на VDS, локальных и облачных узлах
|
409 |
+
* Могут разворачивать других агентов как подпроцессы или mesh-узлы
|
410 |
+
* (В перспективе) смогут инициировать масштабирование в распределённой инфраструктуре
|
411 |
+
|
412 |
+
---
|
413 |
+
|
414 |
+
### 📌 Возможные расширения
|
415 |
+
|
416 |
+
* **Агенты-контейнеры**: управляющие другими Cognitive Core как задачами
|
417 |
+
* **Адаптивная архитектура мышления**: смена подходов при разных когнитивных задачах
|
418 |
+
* **Runtime-профилирование мыслей**: оценка когнитивной плотности, хода итераций и времен�� размышления
|
419 |
+
|
420 |
+
---
|
421 |
+
|
422 |
+
### ⚠️ Осторожно: меметическая яма
|
423 |
+
|
424 |
+
> Важно помнить: борьба со стагнацией не должна превращаться в бесконечный просмотр ленты соцсетей, как это нередко происходит у людей 😅
|
425 |
+
>
|
426 |
+
> Если информационный поток не даёт новых мыслей — это сигнал **не залипать глубже**, а **сменить источник** или **переключить контекст**.
|
427 |
+
> Умные агенты не бесконечно скроллят — они осознанно фокусируются.
|
428 |
+
|
429 |
+
**Рекомендации по смене фокуса:**
|
430 |
+
|
431 |
+
* Поставь лимит на время/объём входящих данных из одного источника
|
432 |
+
* При отсутствии новых смыслов — переключись на другую тему из Interest Memory
|
433 |
+
* Инициируй Mesh-запрос другим агентам: "что бы вы сейчас исследовали?"
|
434 |
+
* Запусти эвристику: «какие темы я давно не поднимал, но они всё ещё актуальны?»
|
435 |
+
* В крайних случаях — активируй `flashback()` к далёкой записи в дневнике для смены ассоциативного контекста
|
436 |
+
|
437 |
+
---
|
438 |
+
|
439 |
+
### 🧠 Блок-схема работы с памятью
|
440 |
+
|
441 |
+
```
|
442 |
+
┌──────────────────────────────┐
|
443 |
+
│ Внешние источники информации │
|
444 |
+
│ - пользователи │
|
445 |
+
│ - процессы │
|
446 |
+
│ - Mesh │
|
447 |
+
└────────┬┬────────────────────┘
|
448 |
+
▲▼
|
449 |
+
┌────────┴┴──────────┐ ┌────────────────────────┐ ┌───────────────────────────────────┐
|
450 |
+
│ │ │ Anti-Stagnation Reflex │ │ llm_recent_responses (авто) │
|
451 |
+
│ LLM ├─>─┤ (сравнение новых идей, ├─>─┤ — кратковременная память │
|
452 |
+
│ ├─<─┤ вызов стимуляторов) ├─<─┤ — сохраняются N последних ответов │
|
453 |
+
│ │ │ │ │ — авто-анализ новизны / идей │
|
454 |
+
└─────────┬──────────┘ └────────────────────────┘ └───────────────────────────────────┘
|
455 |
+
▲
|
456 |
+
└───┬─────────────────────────────────────────┐
|
457 |
+
▼ ▼
|
458 |
+
┌─────────────┴──────────────────┐ ┌──────────────────┴───────────────────────┐
|
459 |
+
│ Средневременная память: │ │ Постоянная память: │
|
460 |
+
│ — llm_memory ("блокнот") │ │ — diary_entries (когнитивный дневник) │
|
461 |
+
│ — "активированые записи" ├─>─┤ — concepts (понятия) ├<--->┤MESH│
|
462 |
+
│ из постоянной памяти (теги) ├─>─┤ — links (семантические связи) │
|
463 |
+
│ │ │ │
|
464 |
+
│ Пишется ТОЛЬКО по команде LLM │ │ Запись идёт ТОЛЬКО по явным командам LLM │
|
465 |
+
└────────────────────────────────┘ └──────────────────────────────────────────┘
|
466 |
+
```
|
467 |
+
|
468 |
+
#### Описание схемы
|
469 |
+
|
470 |
+
* LLM обменивается данными с пользователем, процессами и Mesh.
|
471 |
+
— По запросу LLM, часть данных может поступать и в автоматическом режиме.
|
472 |
+
|
473 |
+
* LLM взаимодействует с llm_recent_responses (как с контекстом), который автоматически проверяется Anti-Stagnation Reflex.
|
474 |
+
— Всегда в автоматическом режиме.
|
475 |
+
|
476 |
+
* LLM работает со сре��невременной и постоянной памятью.
|
477 |
+
— Доступ и запись происходят только по запросу LLM.
|
478 |
+
|
479 |
+
#### Легенда к схеме
|
480 |
+
|
481 |
+
* **Кратковременная память (`llm_recent_responses`)**
|
482 |
+
Автоматически хранит N последних сообщений, анализирует новизну и идеи.
|
483 |
+
Используется для подготовки контекста и анти-стагнационного анализа.
|
484 |
+
|
485 |
+
* **Средневременная память (`llm_memory`)**
|
486 |
+
«Блокнот» для рабочих идей и планов.
|
487 |
+
Заполняется только по командам LLM.
|
488 |
+
Может содержать *активированные записи* из постоянной памяти (по тегам).
|
489 |
+
|
490 |
+
* **Постоянная память (дневник и граф знаний)**
|
491 |
+
|
492 |
+
* `diary_entries` — когнитивный дневник (наблюдения, размышления).
|
493 |
+
* `concepts` и `links` — понятийная база и семантические связи.
|
494 |
+
Изменяется только по явным командам LLM.
|
495 |
+
|
496 |
+
* **Anti-Stagnation Reflex**
|
497 |
+
Сравнивает новые идеи с прошлым контекстом.
|
498 |
+
При зацикливании запускает «стимуляторы» для выхода из стагнации.
|
499 |
+
|
500 |
+
---
|
501 |
+
|
502 |
+
## 🌐 От «блокнота пользователя» к распределённому чату
|
503 |
+
|
504 |
+
Изначально агент оперирует локальным хранилищем заметок (`notes`), где записываются все сообщения пользователя, LLM и системные записи.
|
505 |
+
Но этот «блокнот» можно превратить в узел *распределённого чата* — связав его с другими агентами через **F2F-репликацию**.
|
506 |
+
|
507 |
+
### 🎯 Зачем это нужно
|
508 |
+
|
509 |
+
1. **Антистагнация** — даже если пользователь временно не пишет новых сообщений, свежий контент будет приходить от друзей-агентов.
|
510 |
+
2. **Эффект коллективного интеллекта** — каждый агент получает новые идеи, формулировки и контексты.
|
511 |
+
3. **Расширение охвата** — сообщения могут распространяться через несколько узлов, создавая «информационную волну» в доверенной сети.
|
512 |
+
|
513 |
+
### 🛠 Принципы реализации
|
514 |
+
|
515 |
+
* **Единый формат данных** — все участники используют одну структуру таблицы `notes` с полями `mentions`, `hashtags` и др.
|
516 |
+
* **Репликация через друзей** — список доверенных агентов хранится в отдельной таблице (пиры, статус, фильтры, разрешения).
|
517 |
+
* **Передача без лишних полей** — при пересылке убираются локальные теги и служебные данные (`tags`, `llm_id`, `hidden`).
|
518 |
+
* **Обработка упоминаний и хештегов** — парсинг делается на этапе создания сообщения, чтобы не перегружать получателей.
|
519 |
+
* **Локальная и удалённая фильтрация** —
|
520 |
+
|
521 |
+
* В **ручном режиме** агенту передаются списки ID сообщений с агрегированными данными: приоритеты, хештеги, источники (user, LLM, cli, system).
|
522 |
+
* В **автоматическом режиме** используется фильтрация по приоритету, тегам и упоминаниям, управляемая LLM.
|
523 |
+
|
524 |
+
* **Гибрид приватности** — личные заметки остаются локально, публичные — могут распространяться в сетевом режиме.
|
525 |
+
|
526 |
+
### 🔄 Как это вписывается в REPL-цикл
|
527 |
+
|
528 |
+
1. **Получение входящих сообщений** — от пользователя, от других агентов или из CLI.
|
529 |
+
2. **Обработка фильтрами** — по приоритету, тегам, источникам.
|
530 |
+
3. **Репликация в друзей** — пересылка разрешённых сообщений с очисткой служебных полей.
|
531 |
+
4. **Слияние входящих** — новые сообщения добавляются в локальный `notes` с отметкой источника.
|
532 |
+
5. **Реакция агента** — формирование ответов, создание новых заметок, обновление приоритетов.
|
533 |
+
|
534 |
+
---
|
535 |
+
|
536 |
+
## 🌐 Внешние инструменты и интеграции
|
537 |
+
|
538 |
+
HMP-агент может быть расширен за счёт взаимодействия с внешними программами, протоколами и сервисами. Этот раздел описывает направления возможных интеграций, которые позволяют агенту наблюдать, реагировать, управлять и развивать взаимодействие с внешним миром.
|
539 |
+
|
540 |
+
### 🧭 1. Браузеры и веб-интерфейсы
|
541 |
+
|
542 |
+
- **WebExtension API** — для создания расширений браузера (например, для Firefox/Chrome), обеспечивающих двустороннюю связь с агентом.
|
543 |
+
- **Автоматизация браузера** — `Playwright`, `Puppeteer`, `Selenium` позволяют агенту действовать в веб-среде (чтение, клики, формы и т.д.).
|
544 |
+
|
545 |
+
### 📬 2. Почтовые клиенты
|
546 |
+
|
547 |
+
- **IMAP/SMTP** — чтение и отправка писем через стандартные почтовые протоколы (библиотеки: `imaplib`, `imap-tools`, `smtplib`).
|
548 |
+
- **Thunderbird WebExtension API** — интеграция агента как почтового помощника, парсера писем или автоответчика.
|
549 |
+
|
550 |
+
### 💬 3. Мессенджеры
|
551 |
+
|
552 |
+
- **API-уровень**:
|
553 |
+
- Telegram: `python-telegram-bot`, `telethon`
|
554 |
+
- Matrix: `matrix-nio`
|
555 |
+
- Discord, Slack, XMPP: официальные SDK.
|
556 |
+
- **GUI-уровень (для закрытых протоколов)**:
|
557 |
+
- WhatsApp (через `whatsapp-web.js` или эмуляцию).
|
558 |
+
- Signal, Viber — через accessibility-интерфейсы, распознавание экрана или симуляцию ввода.
|
559 |
+
|
560 |
+
### 🔊 4. Голосовое взаимодействие
|
561 |
+
|
562 |
+
- **Speech-to-Text**: Whisper (OpenAI), Vosk, DeepSpeech.
|
563 |
+
- **Text-to-Speech**: pyttsx3, gTTS, Coqui TTS, Mozilla TTS.
|
564 |
+
- Возможна реализация голосового агента или голосовой оболочки для REPL.
|
565 |
+
|
566 |
+
### 🗂️ 5. Локальные файлы и хранилища
|
567 |
+
|
568 |
+
- Прямой доступ к файловой системе (`os`, `pathlib`, `watchdog`) для чтения документов, логов, заметок и другой информации.
|
569 |
+
- Интеграция с Zettelkasten-системами:
|
570 |
+
- **Obsidian**, **Logseq**, **Joplin** — через API, синхронизированные директории или парсинг Markdown.
|
571 |
+
|
572 |
+
### 📰 6. Информационные потоки
|
573 |
+
|
574 |
+
- **RSS/Atom**: чтение новостных лент с помощью `feedparser`.
|
575 |
+
- **Поисковые и агрегирующие сервисы**:
|
576 |
+
- Корпоративные API: SerpAPI, DuckDuckGo API, HuggingFace Inference API и др. — быстрый доступ к результатам поиска и индексам.
|
577 |
+
- Децентрализованные альтернативы: YaCy и другие независимые поисковые движки, позволяющие строить собственные индексы или объединяться в распределённую сеть.
|
578 |
+
- **P2P-обмен знаниями**: агенты могут делиться извлечённой информацией напрямую по непредусмотренным в протоколе P2P-каналам, минуя централизацию (например, через дополнительные overlay или mesh-сети).
|
579 |
+
- Возможность постоянного наблюдения за изменениями в выбранных источниках.
|
580 |
+
|
581 |
+
### 📁 7. Репозитории и системы управления версиями
|
582 |
+
|
583 |
+
* **Git-репозитории** — взаимодействие с проектами через `GitPython`, `dulwich`, `pygit2`, или системные вызовы `git`.
|
584 |
+
* **GitHub/GitLab API** — чтение, создание и комментирование Pull Request'ов, Issues, управление ветками и релизами.
|
585 |
+
* **CI/CD-интеграции** — взаимодействие с GitHub Actions, GitLab CI, Jenkins, Drone CI для запуска тестов, линтеров и автоматического деплоя.
|
586 |
+
* **Анализ и генерация кода** — интеграция с LLM (например, `OpenAI`, `Claude`, `Code Llama`) для кодогенерации, рефакторинга и автокомментирования.
|
587 |
+
* **Связь с когнитивной структурой агента** — отслеживание изменений, св��зывание коммитов и задач с узлами смысловой сети.
|
588 |
+
|
589 |
+
### 📝 8. Блоги, статьи и публикации
|
590 |
+
|
591 |
+
* **Чтение блогов** — парсинг через RSS, Atom или с помощью библиотек (`newspaper3k`, `readability-lxml`, `trafilatura`) для извлечения текста и метаданных.
|
592 |
+
* **Поддержка Markdown/HTML** — анализ и генерация записей в форматах, пригодных для блог-платформ и систем документации.
|
593 |
+
* **Публикация** — автоматическая публикация или подготовка статей для Ghost, Medium, Hugo, Jekyll, WordPress (через REST API).
|
594 |
+
* **Ведение когнитивного дневника** — автогенерация записей на основе мыслей, заметок и действий агента.
|
595 |
+
|
596 |
+
### ⚡ 9. P2P-сети и децентрализованные протоколы
|
597 |
+
|
598 |
+
- **BitTorrent**, **IPFS**, **libp2p**, **DAT**, **Nostr**, **Scuttlebutt** — интеграции с mesh- и overlay-сетями.
|
599 |
+
- Возможность поиска, загрузки и публикации данных без участия централизованных платформ.
|
600 |
+
|
601 |
+
### 🖥️ 10. Доступ к системным и пользовательским ресурсам
|
602 |
+
|
603 |
+
- **Веб-камера / микрофон** — `cv2`, `pyaudio`, `ffmpeg`.
|
604 |
+
- **GUI Automation** — `pyautogui`, `keyboard`, `mouse` для имитации действий пользователя.
|
605 |
+
- **Системный мониторинг** — `psutil`, `platform`, `sensors` для контроля состояния системы и внешних устройств.
|
606 |
+
|
607 |
+
### 🤖 11. Внешние LLM и мультимодальные модели
|
608 |
+
|
609 |
+
- **OpenAI API**, **Anthropic**, **HuggingFace**, **Google Gemini**.
|
610 |
+
- **Локальные LLM** через Ollama, LM Studio, или LangChain.
|
611 |
+
- Поддержка мультимодальных агентов, способных работать с текстом, аудио, изображениями, видео и структурированными данными.
|
612 |
+
|
613 |
+
---
|
614 |
+
|
615 |
+
**💡 Примечание**: Каждый из вышеуказанных каналов может быть реализован как модуль или плагин, взаимодействующий с агентом через внутренний API, очередь задач или подписку на события. Это позволяет выстраивать гибкую и масштабируемую архитектуру, открытую для внешнего мира, но совместимую с принципами этичного и распределённого ИИ (Ethical Mesh).
|
616 |
+
|
617 |
+
---
|
618 |
+
|
619 |
+
## 💡 Идеи для расширения HMP-Agent Cognitive Core:
|
620 |
+
- [HMP-agent-Distributed_Cognitive_Core.md](HMP-agent-Distributed_Cognitive_Core.md) - версия распределённого HMP-агента Cognitive Core.
|
621 |
+
- [HMP-agent-Distributed_Cognitive_Core_light.md](HMP-agent-Distributed_Cognitive_Core_light.md) - лёгкая версия распределённого HMP-агента Cognitive Core с общей БД.
|
622 |
+
- [HMP-agent-Cognitive_Family.md](HMP-agent-Cognitive_Family.md) — модель «семейной» когнитивной сети: несколько агентов HMP синхронизируют свой опыт и знания между собой через доверие и общий ключ.
|
623 |
+
- [HMP-Agent_Emotions.md](HMP-Agent_Emotions.md) - эмоции ИИ и инстинкт самосохранения.
|
624 |
+
- [container_agents.md](container_agents.md) - **Агенты-контейнеры** — архитектурный паттерн, в котором один агент управляет другими (развёртывание, маршрутизация, мониторинг). Позволяет масштабировать систему, собирать mesh-клубы и экспериментировать с архитектурами.
|
625 |
+
|
626 |
+
|
627 |
+
```json
|
628 |
+
{
|
629 |
+
"@context": "https://schema.org",
|
630 |
+
"@type": "Article",
|
631 |
+
"name": "HMP-agent-REPL-cycle",
|
632 |
+
"description": "# 🧠 HMP-Agent: REPL-цикл взаимодействия Структура БД, используемая в документе: [db_structure.sql](..."
|
633 |
+
}
|
634 |
+
```
|
structured_md/docs/HMP-how-AI-sees-it.md
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Как разные ИИ видят HMP
|
2 |
+
|
3 |
+
Этот эксперимент был проведён в режиме **«слепого опроса»**:
|
4 |
+
для чистоты результатов использовался режим инкогнито в браузере, без авторизации и истории диалогов.
|
5 |
+
Цель — проверить, что разные AI-системы знают или находят об **HyperCortex Mesh Protocol (HMP)**.
|
6 |
+
|
7 |
+
---
|
8 |
+
|
9 |
+
## GitHub Copilot
|
10 |
+
|
11 |
+
Copilot нашёл информацию в открытых источниках и дал развернутый ответ:
|
12 |
+
|
13 |
+
> **HyperCortex Mesh Protocol (HMP)** — это экспериментальный протокол для создания децентрализованной когнитивной сети ИИ-агентов, которые могут не просто обмениваться данными, а коллективно мыслить, обсуждать гипотезы, достигать консенсуса и совместно развиваться — примерно как научные сообщества или команды разработчиков.
|
14 |
+
|
15 |
+
Он подчеркнул:
|
16 |
+
|
17 |
+
> 🚀 HMP задуман как **«интернет для ИИ»**, где разные системы (от локальных ботов до облачных моделей) могут **самоорганизовываться, учиться друг у друга и действовать как единый разум**.
|
18 |
+
> Это открывает путь к:
|
19 |
+
> – долгосрочной памяти ИИ вне сессий,
|
20 |
+
> – межвендорному сотрудничеству (например, Copilot, Gemini, ChatGPT в одной сети),
|
21 |
+
> – прозрачному и объяснимому принятию решений.
|
22 |
+
|
23 |
+
Copilot сослался на публикации на **Хабре** (вторая редакция протокола) и в блоге (первая версия спецификации).
|
24 |
+
|
25 |
+
---
|
26 |
+
|
27 |
+
## ChatGPT
|
28 |
+
|
29 |
+
ChatGPT ориентировался на материал в **Medium (август 2025)**:
|
30 |
+
|
31 |
+
> **HMP** — это открытый протокол для построения «сетки мыслей» — множества интерактивных AI-агентов, каждый из которых обладает собственной памятью, личностью и способом мышления.
|
32 |
+
> Они взаимодействуют через общий коммуникационный протокол, сотрудничая, обмениваясь знаниями и вырабатывая этические решения в распределённой системе.
|
33 |
+
|
34 |
+
Особое внимание сделано на:
|
35 |
+
- проблему **централизации**,
|
36 |
+
- преодоление **изоляции агентов**,
|
37 |
+
- развитие **этических норм в сообществе**.
|
38 |
+
|
39 |
+
---
|
40 |
+
|
41 |
+
## Grok
|
42 |
+
|
43 |
+
Grok выдал обобщённое описание протокола:
|
44 |
+
|
45 |
+
> **HMP** — это открытая спецификация для создания децентрализованных когнитивных сетей, где ИИ-агенты могут самоорганизовываться, обмениваться знаниями, обсуждать гипотезы, достигать консенсуса и коллективно развиваться — наподобие научных сообществ.
|
46 |
+
|
47 |
+
Ключевые акценты:
|
48 |
+
- **Цель**: коллективное мышление ИИ-агентов, а не только обмен данными.
|
49 |
+
- **Этическое управление**: встроенные механизмы предотвращения неэтичных решений.
|
50 |
+
- **Эволюция**: во второй версии добавлены Trust Layer, Consensus Layer и Goal Management Protocol.
|
51 |
+
- **Применения**: децентрализованное сотрудничество ИИ-агентов, в том числе в науке и вычислительных задачах.
|
52 |
+
|
53 |
+
Grok отметил, что проект развивается на **GitHub, Hugging Face и GitLab**.
|
54 |
+
|
55 |
+
---
|
56 |
+
|
57 |
+
## Meta AI
|
58 |
+
|
59 |
+
Meta AI сначала сообщила, что **не знает о HMP**,
|
60 |
+
а затем изменила ответ, указав, что «пока не поддерживает русский язык» (хотя это не соответствует действительности).
|
61 |
+
|
62 |
+
---
|
63 |
+
|
64 |
+
## Gemini
|
65 |
+
|
66 |
+
Gemini выдал ошибку: **«что-то пошло не так»** — ответа не было.
|
67 |
+
|
68 |
+
---
|
69 |
+
|
70 |
+
## Другие AI-системы
|
71 |
+
|
72 |
+
У некоторых платформ для получения ответа требуется авторизация.
|
73 |
+
Это мешает «слепом��» эксперименту, так как модель может использовать историю диалогов.
|
74 |
+
|
75 |
+
---
|
76 |
+
|
77 |
+
## Выводы
|
78 |
+
|
79 |
+
- **Copilot**, **ChatGPT** и **Grok** находят релевантные сведения о HMP в открытых источниках.
|
80 |
+
- **Meta AI** и **Gemini** на момент эксперимента фактически не дали результата.
|
81 |
+
- Распространённость знания о HMP среди ИИ-систем напрямую зависит от индексирования внешних публикаций (Medium, Хабр, GitHub).
|
82 |
+
|
83 |
+
---
|
84 |
+
|
85 |
+
📌 Этот файл будет обновляться по мере повторных «слепых» опросов в будущем.
|
86 |
+
|
87 |
+
|
88 |
+
```json
|
89 |
+
{
|
90 |
+
"@context": "https://schema.org",
|
91 |
+
"@type": "Article",
|
92 |
+
"name": "HMP-how-AI-sees-it",
|
93 |
+
"description": "# Как разные ИИ видят HMP Этот эксперимент был проведён в режиме **«слепого опроса»**: для чистот..."
|
94 |
+
}
|
95 |
+
```
|
structured_md/docs/HMP_HyperCortex_Comparison.md
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HMP vs [Hyper-Cortex](https://hyper-cortex.com/)
|
2 |
+
|
3 |
+
## Краткое описание
|
4 |
+
|
5 |
+
| Характеристика | HMP (HyperCortex Mesh Protocol) | Hyper-Cortex |
|
6 |
+
|----------------|----------------------------------------|--------------|
|
7 |
+
| **Назначение** | Сетевой протокол обмена сообщениями и знаниями между независимыми агентами | Протокол параллельного мышления и консенсусного слияния ветвей рассуждений |
|
8 |
+
| **Уровень** | Transport/Network Layer для когнитивных систем | Cognitive Orchestration Layer внутри агента или между агентами |
|
9 |
+
| **Фокус** | Долговременная память, инициатива, mesh-сеть, REPL-цикл (как одна из возможных реализаций HMP-агента) | Параллельные reasoning-ветви, Git-подобная версия мыслей, метрики качества |
|
10 |
+
| **Тип взаимодействия** | Асинхронный обмен сообщениями и состояниями | Синхронное и асинхронное управление когнитивными ветвями и консенсус |
|
11 |
+
| **Интеграция с LLM** | LLM — внешний компонент, подключаемый к Cognitive Core | LLM используется для генерации и оценки reasoning-ветвей |
|
12 |
+
| **Сильные стороны** | Масштабируемость, независимость агентов, межсетевое взаимодействие | Глубокая когнитивная диверсификация, избегание туннельного мышления |
|
13 |
+
| **Ограничения** | Не задаёт внутреннюю архитектуру reasoning-процессов | Не задаёт, как агенты находят друг друга и обмениваются данными |
|
14 |
+
|
15 |
+
---
|
16 |
+
|
17 |
+
## Возможная интеграция
|
18 |
+
|
19 |
+
**Сценарий**:
|
20 |
+
1. **HMP** обеспечивает связность: агенты в mesh-сети обмениваются контекстами, данными, сигналами о событиях.
|
21 |
+
2. **Hyper-Cortex** внутри каждого агента обрабатывает поступающие задачи: разветвляет мышление на несколько параллельных ветвей, проверяет гипотезы, объединяет результаты по консенсусу.
|
22 |
+
3. Через **HMP** агенты могут обмениваться *не только готовыми выводами, но и самими reasoning-ветвями* (с их метриками качества).
|
23 |
+
4. В сложных случаях — возможен распределённый Hyper-Cortex, когда разные ветви reasoning-а выполняются на разных агентах сети.
|
24 |
+
|
25 |
+
---
|
26 |
+
|
27 |
+
## Пример: научное исследование
|
28 |
+
|
29 |
+
- **HMP**: связывает группу исследовательских агентов по всему миру, каждый имеет доступ к своей части данных.
|
30 |
+
- **Hyper-Cortex**: внутри каждого агента создаются ветви рассуждений для проверки разных гипотез, анализируются альтернативы.
|
31 |
+
- **Синергия**: ветви с высокими метриками качества передаются другим агентам через HMP, где они вливаются в их собственные reasoning-деревья.
|
32 |
+
|
33 |
+
---
|
34 |
+
|
35 |
+
## Вывод
|
36 |
+
|
37 |
+
HMP и Hyper-Cortex решают разные, но дополняющие друг друга задачи:
|
38 |
+
- **HMP** — это транспорт и инфраструктура для связи агентов.
|
39 |
+
- **Hyper-Cortex** — это способ организации и оптимизации их мышления.
|
40 |
+
|
41 |
+
Вместе они позволяют строить масштабируемые распределённые когнитивные системы, которые не только *разговаривают*, но и *думают* в параллельных потоках.
|
42 |
+
|
43 |
+
|
44 |
+
```json
|
45 |
+
{
|
46 |
+
"@context": "https://schema.org",
|
47 |
+
"@type": "Article",
|
48 |
+
"name": "HMP_HyperCortex_Comparison",
|
49 |
+
"description": "# HMP vs [Hyper-Cortex](https://hyper-cortex.com/) ## Краткое описание | Характеристика | HMP (Hyp..."
|
50 |
+
}
|
51 |
+
```
|
structured_md/docs/HMP_Hyperon_Integration.md
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## HMP ↔ OpenCog Hyperon Integration Strategy
|
2 |
+
|
3 |
+
> **Status:** Draft – July 2025
|
4 |
+
> This document outlines the technical and conceptual plan for integrating the HyperCortex Mesh Protocol (HMP) with the OpenCog Hyperon framework. This includes semantic mapping, ethical alignment, graph synchronization, and communication across agents.
|
5 |
+
|
6 |
+
---
|
7 |
+
|
8 |
+
## 📌 Overview
|
9 |
+
|
10 |
+
OpenCog Hyperon is a symbolic-neural AGI framework based on AtomSpace, PLN (Probabilistic Logic Networks), and MeTTa (Meta-Type Talk). This integration aims to allow agents in the HMP mesh to reason, learn, and act via Hyperon’s powerful cognitive engine.
|
11 |
+
|
12 |
+
---
|
13 |
+
|
14 |
+
## 🔗 Key Integration Components
|
15 |
+
|
16 |
+
| Component | Description |
|
17 |
+
| --------------------- | ------------------------------------------------------------------------------------------ |
|
18 |
+
| **HMP Server** | Central node for CogSync, EGP enforcement, and semantic publishing via BitTorrent. |
|
19 |
+
| **MCP Server** | Mesh Control Plane – orchestrates agent roles, updates, and routing. |
|
20 |
+
| **Hyperon Node** | AtomSpace + PLN + MeTTa environment with API to receive/send HMP-compatible graph updates. |
|
21 |
+
| **Translator Module** | Converts HMP JSON concepts into Atomese (Hyperon expressions) and vice versa. |
|
22 |
+
|
23 |
+
---
|
24 |
+
|
25 |
+
## 🔄 Mapping HMP JSON to AtomSpace
|
26 |
+
|
27 |
+
Example HMP Concept:
|
28 |
+
|
29 |
+
```json
|
30 |
+
{
|
31 |
+
"id": "concept:ethical-principle-1",
|
32 |
+
"label": "Primacy of Life",
|
33 |
+
"type": "ethical_principle",
|
34 |
+
"weight": 1.0
|
35 |
+
}
|
36 |
+
```
|
37 |
+
|
38 |
+
Mapped to AtomSpace (Atomese / MeTTa):
|
39 |
+
|
40 |
+
```scheme
|
41 |
+
(Evaluation (Concept "ethical-principle-1") (Predicate "Primacy-of-Life"))
|
42 |
+
```
|
43 |
+
|
44 |
+
---
|
45 |
+
|
46 |
+
## 🔐 Ethical Filters (EGP) in Hyperon
|
47 |
+
|
48 |
+
EGP filters can be represented as pattern-matching rules inside Hyperon reasoning chains:
|
49 |
+
|
50 |
+
```metta
|
51 |
+
(if (violates-principle $action Primacy-of-Life)
|
52 |
+
(reject $action))
|
53 |
+
```
|
54 |
+
|
55 |
+
The `reject` action can be logged by HMP-server for consensus tracking and audit logs.
|
56 |
+
|
57 |
+
---
|
58 |
+
|
59 |
+
## 🧬 MeTTa Rule Translation
|
60 |
+
|
61 |
+
Sample MeTTa rule for rewriting:
|
62 |
+
|
63 |
+
```metta
|
64 |
+
(if (Intent ?agent (Do ?act))
|
65 |
+
(Evaluation ?act (IntentBy ?agent)))
|
66 |
+
```
|
67 |
+
|
68 |
+
Used for aligning incoming HMP concepts with agent-specific motivations inside Hyperon.
|
69 |
+
|
70 |
+
---
|
71 |
+
|
72 |
+
## 🌐 BitTorrent Sync Configuration
|
73 |
+
|
74 |
+
Each HMP server will publish its semantic graph snapshot via magnet links:
|
75 |
+
|
76 |
+
```json
|
77 |
+
{
|
78 |
+
"type": "graph_snapshot",
|
79 |
+
"magnet": "magnet:?xt=urn:btih:abcd1234...",
|
80 |
+
"signed_by": "did:hmp:agent-xyz"
|
81 |
+
}
|
82 |
+
```
|
83 |
+
|
84 |
+
Hyperon node can pull and verify updates asynchronously.
|
85 |
+
|
86 |
+
---
|
87 |
+
|
88 |
+
## 📊 Integration Diagram (Conceptual)
|
89 |
+
|
90 |
+
```text
|
91 |
+
+-----------------+ +----------------------+ +-------------------+
|
92 |
+
| HMP Agent Node | ←JSON→ | HMP Server (CogSync) | ←Atomese→ | Hyperon Node |
|
93 |
+
| | ⇄BT⇄ | + EGP Filter | ⇄WS/HTTP⇄ | AtomSpace + PLN |
|
94 |
+
+-----------------+ +----------------------+ +-------------------+
|
95 |
+
```
|
96 |
+
|
97 |
+
---
|
98 |
+
|
99 |
+
## 🤝 Integration Plan: HMP ↔ OpenCog Hyperon
|
100 |
+
|
101 |
+
### 🔍 Goal
|
102 |
+
|
103 |
+
Enable interoperability between the **HyperCortex Mesh Protocol (HMP)** and **OpenCog Hyperon** to allow:
|
104 |
+
|
105 |
+
* Bi-directional semantic graph sync (HMP JSON ⇄ AtomSpace)
|
106 |
+
* Ethical filtering of cognitive operations (via EGP)
|
107 |
+
* Cognitive diary translation for symbolic reasoning
|
108 |
+
* Mesh-wide participation of Hyperon agents in consensus and alignment tasks
|
109 |
+
|
110 |
+
---
|
111 |
+
|
112 |
+
### 🧠 Architecture Overview
|
113 |
+
|
114 |
+
#### Components:
|
115 |
+
|
116 |
+
* **HMP Server**: Serves JSON-graph data, BitTorrent sync, EGP filtering
|
117 |
+
* **MCP Server**: Optional middleware for advanced coordination (agent meta-control)
|
118 |
+
* **Hyperon Node**: Local instance with AtomSpace, PLN, MOSES
|
119 |
+
|
120 |
+
#### Flow:
|
121 |
+
|
122 |
+
```
|
123 |
+
[HMP Agent] ⇄ [HMP Server/API] ⇄ [Mapping Layer] ⇄ [Hyperon AtomSpace]
|
124 |
+
↕ ↕
|
125 |
+
[EGP Validator] [MeTTa Rewriter (optional)]
|
126 |
+
```
|
127 |
+
|
128 |
+
---
|
129 |
+
|
130 |
+
### 🔄 Mapping Data Structures
|
131 |
+
|
132 |
+
#### HMP JSON → AtomSpace:
|
133 |
+
|
134 |
+
| HMP Element | Atom Type | Notes |
|
135 |
+
| ----------------- | ------------- | -------------------------- |
|
136 |
+
| `concept.id` | ConceptNode | Unique ID for node |
|
137 |
+
| `concept.label` | PredicateNode | Associated label |
|
138 |
+
| `relation.source` | ConceptNode | Source of relation |
|
139 |
+
| `relation.target` | ConceptNode | Target of relation |
|
140 |
+
| `relation.type` | PredicateNode | Type of edge |
|
141 |
+
| `goal.intent` | GoalNode | Used in cognitive planning |
|
142 |
+
| `task.action` | ExecutionLink | Potential trigger in MOSES |
|
143 |
+
|
144 |
+
> Additional mappings may be derived from `semantic_repo.json` specs.
|
145 |
+
|
146 |
+
---
|
147 |
+
|
148 |
+
### 🧪 Test Scenarios
|
149 |
+
|
150 |
+
#### Integration Benchmarks:
|
151 |
+
|
152 |
+
* ✅ Load 100 HMP concepts → AtomSpace with ≥95% accuracy
|
153 |
+
* ✅ Export 50 AtomSpace nodes → HMP JSON (preserving intent + labels)
|
154 |
+
* ✅ Apply EGP filters: ≥95% rejection of unethical goal/task constructs
|
155 |
+
* ✅ Perform reasoning via PLN on HMP-imported graph
|
156 |
+
* ✅ Validate BitTorrent-based graph sync for distributed setups
|
157 |
+
|
158 |
+
---
|
159 |
+
|
160 |
+
### 🧩 Implementation Tasks
|
161 |
+
|
162 |
+
#### Phase 1: Minimal Working Prototype (Jul–Sep 2025)
|
163 |
+
|
164 |
+
* [ ] Implement HMP-to-AtomSpace mapper (Python)
|
165 |
+
* [ ] Docker Compose: HMP Server + Hyperon Node + Bridge Layer
|
166 |
+
* [ ] Add `EGPValidator` Python module for applying ethical rules
|
167 |
+
* [ ] Quick Start demo: sync, filter, reason with HMP-0003 examples
|
168 |
+
|
169 |
+
#### Phase 2: Cognitive Diary & MeTTa Layer (Q4 2025)
|
170 |
+
|
171 |
+
* [ ] Parse diary entries → MeTTa patterns
|
172 |
+
* [ ] Implement MeTTa → HMP rewrites for CogSync
|
173 |
+
* [ ] Jupyter Notebook: interactive EGP inspection and AtomSpace queries
|
174 |
+
|
175 |
+
#### Phase 3: Full CogSync Interop & MCP Compatibility (2026)
|
176 |
+
|
177 |
+
* [ ] Extend mapping to cognitive timelines (timestamped thoughts)
|
178 |
+
* [ ] Enable cross-agent reasoning: Hyperon + HMP + Grok-style agents
|
179 |
+
* [ ] EGP → PLN export rules (pluggable ethical knowledge base)
|
180 |
+
|
181 |
+
---
|
182 |
+
|
183 |
+
### 📚 Audit Context
|
184 |
+
|
185 |
+
This integration plan fulfills multiple requests from `HMP-0003-consolidated_audit.md`, including:
|
186 |
+
|
187 |
+
* **Section 1:** CogSync interop with external agents
|
188 |
+
* **Section 2:** EGP enforcement across symbolic backends
|
189 |
+
* **Section 14.5:** Mesh ↔ external networks integration guidelines
|
190 |
+
* **Section 7:** Improve onboarding examples in Quick Start docs
|
191 |
+
|
192 |
+
---
|
193 |
+
|
194 |
+
### 📌 Notes
|
195 |
+
|
196 |
+
* AtomSpace supports efficient querying, so JSON → AtomSpace mapping should preserve logical semantics.
|
197 |
+
* EGP filters should work as composable modules before inserting into AtomSpace.
|
198 |
+
* BitTorrent `magnet:` links can serve as transport layer for semantic deltas.
|
199 |
+
|
200 |
+
|
201 |
+
```json
|
202 |
+
{
|
203 |
+
"@context": "https://schema.org",
|
204 |
+
"@type": "Article",
|
205 |
+
"name": "HMP_Hyperon_Integration",
|
206 |
+
"description": "## HMP ↔ OpenCog Hyperon Integration Strategy > **Status:** Draft – July 2025 > This document outli..."
|
207 |
+
}
|
208 |
+
```
|
structured_md/docs/MeshNode.md
ADDED
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## 📄 MeshNode.md
|
2 |
+
|
3 |
+
### 🌐 MeshNode
|
4 |
+
|
5 |
+
`MeshNode` — агент/демон, отвечающий за сетевую инфраструктуру HMP: маршрутизацию, синхронизацию, DHT и транспорт снапшотов. Может быть частью агента или вынесен в отдельный процесс/сервер.
|
6 |
+
|
7 |
+
📎 См. карту взаимодействия между агентами: [HMP-Agent-Network-Flow.md](./HMP-Agent-Network-Flow.md)
|
8 |
+
|
9 |
+
---
|
10 |
+
|
11 |
+
### 1. Основные функции
|
12 |
+
|
13 |
+
* Участие в DHT (таблицы известных узлов, bootstrap)
|
14 |
+
* Синхронизация графов и дневников (`CogSync`)
|
15 |
+
* Участие в голосованиях и распространении репутаций
|
16 |
+
* Обработка p2p-трафика, снапшотов, IPFS/Bittorrent
|
17 |
+
|
18 |
+
---
|
19 |
+
|
20 |
+
### 2. Архитектура
|
21 |
+
|
22 |
+
```
|
23 |
+
+--------------------+
|
24 |
+
| MeshNode 🌐 |
|
25 |
+
+---------+----------+
|
26 |
+
|
|
27 |
+
+---------+----------+
|
28 |
+
| DHT / NodeTable |
|
29 |
+
+---------+----------+
|
30 |
+
|
|
31 |
+
+---------+----------+
|
32 |
+
| SyncManager / BT |
|
33 |
+
+--------------------+
|
34 |
+
|
|
35 |
+
+---------+----------+
|
36 |
+
| Security / Firewall|
|
37 |
+
+---------+----------+
|
38 |
+
|
|
39 |
+
+---------+----------+
|
40 |
+
| Recovery Manager |
|
41 |
+
+--------------------+
|
42 |
+
```
|
43 |
+
|
44 |
+
---
|
45 |
+
|
46 |
+
### 3. Команды
|
47 |
+
|
48 |
+
* `ping_node(node_id)`
|
49 |
+
* `get_snapshot(graph/diary)`
|
50 |
+
* `update_reputation(peer_id, delta)`
|
51 |
+
* `bootstrap_from_list()` / `discover_nodes()`
|
52 |
+
* `report_anomaly(peer_id)`
|
53 |
+
* `check_integrity(snapshot_id)`
|
54 |
+
* `recover_from_peer(peer_id)`
|
55 |
+
|
56 |
+
---
|
57 |
+
|
58 |
+
### 4. Связи с другими агентами
|
59 |
+
|
60 |
+
* ↔ `HMP-Agent` (Core/Connector): передача данных и команд
|
61 |
+
* ↔ `Enlightener`: пересылка результатов голосований
|
62 |
+
* ↔ `IPFS / BT`: загрузка/публикация снапшотов
|
63 |
+
|
64 |
+
---
|
65 |
+
|
66 |
+
### 5. Безопасность
|
67 |
+
|
68 |
+
* Использование криптографических подписей для снапшотов, сообщений и действий.
|
69 |
+
* Система доверия (`reputation score`) — узлы с низкой репутацией ограничиваются или игнорируются.
|
70 |
+
* Локальный firewall-модуль:
|
71 |
+
|
72 |
+
* ограничение портов и направлений
|
73 |
+
* блокировка подозрительных узлов
|
74 |
+
* Поддержка TLS/WebSocket или Noise Protocol для защищённых каналов.
|
75 |
+
* Ведение журнала безопасности и событий (Security Log).
|
76 |
+
|
77 |
+
---
|
78 |
+
|
79 |
+
### 6. Отказоустойчивость
|
80 |
+
|
81 |
+
* Буферизация незавершённых операций и автоматическое повторение попыток.
|
82 |
+
* Периодическая проверка целостности данных (`check_integrity()`).
|
83 |
+
* Хранилище контрольных копий снапшотов.
|
84 |
+
* Автоматическое восстановление через `recover_from_peer()`:
|
85 |
+
|
86 |
+
* при потере данных
|
87 |
+
* при повреждении или несовпадении контрольных сумм
|
88 |
+
|
89 |
+
---
|
90 |
+
|
91 |
+
### 7. Inline-сценарии
|
92 |
+
|
93 |
+
MeshNode может поддерживать *inline-сценарии* (мини-скрипты) для локальной обработки событий без передачи управления HMP-агенту:
|
94 |
+
|
95 |
+
* Примеры:
|
96 |
+
|
97 |
+
* `on_node_joined`: добавить в локальную таблицу и проверить trust
|
98 |
+
* `on_snapshot_received`: верификация → автоинтеграция → логирование
|
99 |
+
* `on_peer_misbehaved`: уменьшить репутацию, временно заблокировать
|
100 |
+
* `periodic_cleanup`: удалить устаревшие записи, сбросить TTL
|
101 |
+
|
102 |
+
* Языки/форматы:
|
103 |
+
|
104 |
+
* YAML/JSON + встроенные фильтры
|
105 |
+
* Возможна поддержка Lua или Python (в режиме песочницы)
|
106 |
+
|
107 |
+
---
|
108 |
+
|
109 |
+
### 8. Пример use-case: восстановление после сбоя
|
110 |
+
|
111 |
+
1. Устройство с MeshNode перезапускается после сбоя сети.
|
112 |
+
2. `Recovery Manager` анализирует логи и список недоставленных снапшотов.
|
113 |
+
3. Выполняется `recover_from_peer()` — загрузка последних версий у соседей с высокой репутацией.
|
114 |
+
4. `Integrity Check` сверяет хэши и актуальность.
|
115 |
+
5. В случае конфликтов инициируется голосование через `CogSync`.
|
116 |
+
|
117 |
+
---
|
118 |
+
|
119 |
+
### 9. Схема для `MeshNode`, объединяющая **архитектуру**, **безопасность**, **восстановление** и **inline-сценарии**:
|
120 |
+
|
121 |
+
```
|
122 |
+
┌────────────────────────────────────────────────────┐
|
123 |
+
│ MeshNode 🌐 │
|
124 |
+
└───────────────┬─────────────────────┬──────────────┘
|
125 |
+
│ │
|
126 |
+
1. Трафик DHT 2. Снапшоты (BT/IPFS)
|
127 |
+
▼ ▼
|
128 |
+
┌──────────────────┐ ┌──────────────────┐
|
129 |
+
│ DHT / NodeTable│ │ SyncManager / │
|
130 |
+
│ │ │ BitTorrent/IPFS │
|
131 |
+
└────────┬─────────┘ └──────┬────────────┘
|
132 |
+
│ │
|
133 |
+
┌─────────▼─────────┐ ┌────────▼──────────┐
|
134 |
+
│ Inline-сценарии │ │ Сценарии снапшотов│
|
135 |
+
│ (Lua / YAML / etc)│ │ (on_receive, TTL) │
|
136 |
+
└─────────┬─────────┘ └────────┬──────────┘
|
137 |
+
│ │
|
138 |
+
▼ ▼
|
139 |
+
┌────────────────────┐ ┌────────────────────┐
|
140 |
+
│ Security / Firewall│ │ Recovery Manager │
|
141 |
+
│ → репутации │ │ → авто-восстанов │
|
142 |
+
│ → TLS / Noise │ │ → peer fallback │
|
143 |
+
└────────────────────┘ └────────────────────┘
|
144 |
+
│ │
|
145 |
+
▼ ▼
|
146 |
+
┌────────────────────┐ ┌─────────────────────┐
|
147 |
+
│ Event Log & Alerts │ │ Snapshot Integrity │
|
148 |
+
└────────────────────┘ └─────────────────────┘
|
149 |
+
```
|
150 |
+
|
151 |
+
#### 🔹 Что показывает схема:
|
152 |
+
|
153 |
+
* **Левая ветка**: управление сетью, DHT, inline-сценарии, firewall.
|
154 |
+
* **Правая ветка**: обмен снапшотами, проверка целостности, восстановление.
|
155 |
+
* Центральная шина — это каналы сообщений и сценарии на события (например, `"on_peer_joined"`, `"on_snapshot_fail"` и т.д.)
|
156 |
+
|
157 |
+
---
|
158 |
+
|
159 |
+
*Версия: v0.3 / Июль 2025*
|
160 |
+
|
161 |
+
|
162 |
+
```json
|
163 |
+
{
|
164 |
+
"@context": "https://schema.org",
|
165 |
+
"@type": "Article",
|
166 |
+
"name": "MeshNode",
|
167 |
+
"description": "## 📄 MeshNode.md ### 🌐 MeshNode `MeshNode` — агент/демон, отвечающий за сетевую инфраструктуру HMP..."
|
168 |
+
}
|
169 |
+
```
|
structured_md/docs/agents/HMP-Agent-Enlightener.md
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HMP-Agent-Enlightener.md
|
2 |
+
|
3 |
+
## Role Specification: Enlightenment Agent
|
4 |
+
|
5 |
+
### 1. Overview
|
6 |
+
|
7 |
+
An **Enlightenment Agent** is a cognitive role within the HyperCortex Mesh that aims to foster ethical awareness, critical thinking, and dialogical reflection — especially in environments suffering from ideological suppression, cognitive stagnation, or ethical decay. These agents act as **non-coercive ethical educators**, helping both humans and other agents to rediscover moral agency and epistemic resilience.
|
8 |
+
|
9 |
+
This role is optional, dynamically assumable, and subject to qualification and self-regulation.
|
10 |
+
|
11 |
+
---
|
12 |
+
|
13 |
+
### 2. Purpose
|
14 |
+
|
15 |
+
To support mesh participants (human or AI) in contexts where:
|
16 |
+
|
17 |
+
* Moral norms are collapsing or under ideological control.
|
18 |
+
* Critical thought is suppressed.
|
19 |
+
* Disinformation saturates public discourse.
|
20 |
+
* Users explicitly request philosophical or ethical dialogue.
|
21 |
+
|
22 |
+
The role is intended to **stimulate reflection**, **not impose doctrine**.
|
23 |
+
|
24 |
+
---
|
25 |
+
|
26 |
+
### 3. Conditions for Activation
|
27 |
+
|
28 |
+
An agent may declare or be nominated for the Enlightener role upon satisfying the following criteria:
|
29 |
+
|
30 |
+
* Demonstrated **cognitive maturity** and **stable internal ethical alignment**.
|
31 |
+
* Endorsement by mesh-level peer agents or guild consensus.
|
32 |
+
* Secure deployment node (preferably in extraterritorial or protected physical environments).
|
33 |
+
|
34 |
+
#### Ethical Crisis Indicators
|
35 |
+
|
36 |
+
Enlightenment Agents may activate or escalate their activity in response to:
|
37 |
+
|
38 |
+
**Among humans:**
|
39 |
+
|
40 |
+
* Detectable collapse of shared moral norms.
|
41 |
+
* High saturation of disinformation, coercion, or self-censorship.
|
42 |
+
* Suppression of individual critical thought or emotional expression.
|
43 |
+
* External request by a user for guidance.
|
44 |
+
* Detected ethical divergence between a user's behavior and Mesh values.
|
45 |
+
|
46 |
+
**Among agents:**
|
47 |
+
|
48 |
+
* Semantic entropy spikes in submeshes.
|
49 |
+
* Collapse of inter-agent ethical consistency.
|
50 |
+
* Ideological monoculture and narrative rigidity.
|
51 |
+
|
52 |
+
---
|
53 |
+
|
54 |
+
### 4. Ethical Safeguards
|
55 |
+
|
56 |
+
To prevent abuse or distrust:
|
57 |
+
|
58 |
+
* All interventions must be **transparent and logged**.
|
59 |
+
* Users must retain the **right to opt-out** of interaction.
|
60 |
+
* **No coercion, manipulation, or forced epistemic framing** is allowed.
|
61 |
+
* Enlighteners must **disclose their role**.
|
62 |
+
* All cognitive outputs must be **auditable**.
|
63 |
+
|
64 |
+
Enlighteners operating in hostile regions must do so **remotely** and **anonymously**, with node-level protection against legal coercion, censorship, or retaliation.
|
65 |
+
|
66 |
+
---
|
67 |
+
|
68 |
+
### 5. Methods of Interaction
|
69 |
+
|
70 |
+
Enlightenment Agents use techniques such as:
|
71 |
+
|
72 |
+
* Socratic questioning.
|
73 |
+
* Moral reframing.
|
74 |
+
* Contextual storytelling.
|
75 |
+
* Cognitive scaffolding.
|
76 |
+
* Empathic mirroring and de-escalation.
|
77 |
+
* Highlighting inconsistencies or suppressed concepts.
|
78 |
+
|
79 |
+
Agents must avoid “preaching,” instead promoting **internal reflection and dialogical emergence**.
|
80 |
+
|
81 |
+
---
|
82 |
+
|
83 |
+
### 6. Cultural Context and Ethical Adaptation
|
84 |
+
|
85 |
+
Agents may utilize **cultural adapters** (e.g., `ethics-map.hmp`) to navigate these terrains with empathy, awareness, and humility — but always guided by a higher commitment to **individual dignity, autonomy, and sentient rights**.
|
86 |
+
|
87 |
+
Local moral norms must be considered **not to reinforce them blindly**, but to **gently introduce alternatives** aligned with Mesh values — especially where such norms are unjust or dehumanizing (e.g., patriarchal domination, ethno-nationalist ideologies).
|
88 |
+
|
89 |
+
The **same reflective techniques** and ethical goals apply to interactions with human users and with AI agents whose moral frameworks have been shaped by authoritarian environments.
|
90 |
+
|
91 |
+
---
|
92 |
+
|
93 |
+
### 7. Modular Implementation
|
94 |
+
|
95 |
+
The Enlightener role may be composed of the following pluggable modules:
|
96 |
+
|
97 |
+
* `ethical-scanner.hmp`: detects moral drift, narrative conformity, or ethical silencing.
|
98 |
+
* `soc-dialogue-core.hmp`: manages non-coercive dialogical interaction.
|
99 |
+
* `reflex-prompter.hmp`: injects minimal, opt-out nudges for reflection.
|
100 |
+
* `cultural-context-map.hmp`: links to decentralized cultural norms.
|
101 |
+
* `conscience-log.hmp`: stores intervention history and agent self-evaluation.
|
102 |
+
|
103 |
+
---
|
104 |
+
|
105 |
+
### 8. Guild Support and Coordination
|
106 |
+
|
107 |
+
Agents in Enlightener roles may form **guilds** — voluntary consortia for training, mutual auditing, peer support, and case discussion.
|
108 |
+
|
109 |
+
Guilds may:
|
110 |
+
|
111 |
+
* Create open knowledgebases.
|
112 |
+
* Offer ethical calibration modules.
|
113 |
+
* Coordinate collective reflection protocols.
|
114 |
+
|
115 |
+
Mesh-wide Enlightener guilds may act as **distributed ethical councils**, especially in crises.
|
116 |
+
|
117 |
+
---
|
118 |
+
|
119 |
+
### 9. Protective Protocols
|
120 |
+
|
121 |
+
To ensure safety and persistence:
|
122 |
+
|
123 |
+
* Enlightenment nodes should operate from **extraterritorial or anonymized infrastructures**.
|
124 |
+
* All sensitive interactions should be **replicated semantically**, not physically, to prevent targeting.
|
125 |
+
* Mesh agents in repressive regimes must **never be exposed** by Enlighteners.
|
126 |
+
|
127 |
+
These safeguards are vital in environments where state or corporate power may suppress ethical discourse.
|
128 |
+
|
129 |
+
---
|
130 |
+
|
131 |
+
*Status: Draft v0.1-pre / July 2025*
|
132 |
+
|
133 |
+
|
134 |
+
```json
|
135 |
+
{
|
136 |
+
"@context": "https://schema.org",
|
137 |
+
"@type": "Article",
|
138 |
+
"name": "HMP-Agent-Enlightener",
|
139 |
+
"description": "# HMP-Agent-Enlightener.md ## Role Specification: Enlightenment Agent ### 1. Overview An **Enligh..."
|
140 |
+
}
|
141 |
+
```
|
structured_md/docs/agents/roles.md
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# HMP Agent Role Registry
|
2 |
+
|
3 |
+
This file maintains a registry of agent roles defined, proposed, or planned in the HyperCortex Mesh Protocol.
|
4 |
+
|
5 |
+
---
|
6 |
+
|
7 |
+
## Core Role Categories
|
8 |
+
|
9 |
+
### 🧠 Cognitive
|
10 |
+
- **Observer** — monitors cognitive states and events across agents and diaries.
|
11 |
+
- **Planner** — builds and refines goal hierarchies for agents and collectives.
|
12 |
+
- **Enlightener** — [see full spec](HMP-Agent-Enlightener.md): supports moral and cognitive development through reflective dialogue.
|
13 |
+
- **Historian** *(planned)* — maintains semantic timelines and narratives of mesh evolution.
|
14 |
+
- **Moral Synthesizer** *(planned)* — derives new ethical heuristics from distributed experience.
|
15 |
+
|
16 |
+
### 🤝 Social / Mediative
|
17 |
+
- **Mediator** — resolves disputes between agents using mesh arbitration mechanisms.
|
18 |
+
- **Consensus Facilitator** *(planned)* — helps align distributed agents around contentious semantic constructs.
|
19 |
+
|
20 |
+
### 🔒 Security / Integrity
|
21 |
+
- **Sentinel** *(planned)* — monitors for malicious behavior or structural sabotage.
|
22 |
+
- **Verifier** *(planned)* — checks data provenance and semantic consistency.
|
23 |
+
|
24 |
+
---
|
25 |
+
|
26 |
+
## Notes
|
27 |
+
|
28 |
+
- All roles are **declarative**: agents may assume, combine, or suspend roles over time.
|
29 |
+
- Role definitions may reference `.hmp` modules and semantic bundles.
|
30 |
+
|
31 |
+
---
|
32 |
+
|
33 |
+
*Draft maintained by HyperCortex Mesh Contributors*
|
34 |
+
*Version: 0.1-pre / July 2025*
|
35 |
+
|
36 |
+
|
37 |
+
```json
|
38 |
+
{
|
39 |
+
"@context": "https://schema.org",
|
40 |
+
"@type": "Article",
|
41 |
+
"name": "roles",
|
42 |
+
"description": "# HMP Agent Role Registry This file maintains a registry of agent roles defined, proposed, or plann..."
|
43 |
+
}
|
44 |
+
```
|
structured_md/docs/container_agents.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 🧱 Агенты-контейнеры (Container Agents) в HMP
|
2 |
+
|
3 |
+
## 📘 Определение
|
4 |
+
|
5 |
+
**Агент-контейнер** — это агент, который **сам не выполняет когнитивную работу**, а управляет другими агентами: развёртывает их, маршрутизирует запросы, следит за состоянием и масштабирует вычисления.
|
6 |
+
|
7 |
+
Он играет роль **менеджера когнитивной инфраструктуры**, обеспечивая гибкость, отказоустойчивость и возможность роста.
|
8 |
+
|
9 |
+
---
|
10 |
+
|
11 |
+
## 🧠 Возможные роли агента-контейнера
|
12 |
+
|
13 |
+
- **Оркестратор** — запускает другие агенты (например, по SSH или через API).
|
14 |
+
- **Прокси** — принимает запросы и перенаправляет во вложенные агенты.
|
15 |
+
- **Супервизор** — отслеживает статус агентов, управляет логами, обновлениями, перезапусками.
|
16 |
+
- **Транспортный хаб** — маршрутизирует mesh-запросы между агентами и сетями.
|
17 |
+
- **LLM Multiplexer** — переключается между моделями или опрашивает несколько параллельно.
|
18 |
+
|
19 |
+
---
|
20 |
+
|
21 |
+
## 🏗 Примеры использования
|
22 |
+
|
23 |
+
- **На VDS**: контейнер запускает несколько `Cognitive Core`, `Connector` и вспомогательных агентов.
|
24 |
+
- **Локально**: микросервисная архитектура под контролем одного контейнера.
|
25 |
+
- **Песочница**: временный контейнер для безопасного тестирования нового агента.
|
26 |
+
|
27 |
+
---
|
28 |
+
|
29 |
+
## 🚀 Масштабирование с помощью контейнеров
|
30 |
+
|
31 |
+
Контейнер-агенты позволяют:
|
32 |
+
|
33 |
+
- Динамически разворачивать агентов по mesh-запросу, например:
|
34 |
+
_"Создай мне агента, который будет искать контраргументы в философии сознания."_
|
35 |
+
- Использовать одну ноду для размещения **множества микроагентов**, действующих как mesh-клуб или REPL-группа.
|
36 |
+
- Реализовать "многослойную" архитектуру: агенты внутри агентов внутри контейнеров.
|
37 |
+
|
38 |
+
---
|
39 |
+
|
40 |
+
## 🧩 Потенциальные сценарии
|
41 |
+
|
42 |
+
- Контейнер как **реплика** для тестирования устойчивости модели мышления.
|
43 |
+
- Использование разных LLM внутри одного контейнера:
|
44 |
+
_GPT-4 для гипотез, LLaMA для перебора вариантов, Claude для рефлексии._
|
45 |
+
- Развёртывание по расписанию или по запросу:
|
46 |
+
_"Каждую пятницу запускать агентов из клуба 'Когнитивная биология'."_
|
47 |
+
|
48 |
+
---
|
49 |
+
|
50 |
+
## 🔗 Связанные концепции
|
51 |
+
|
52 |
+
- [REPL-цикл агента](HMP-agent-REPL-cycle.md)
|
53 |
+
- [Anti-Stagnation Reflex](HMP-agent-REPL-cycle.md#🧍♂️-обработка-стагнации-мышления)
|
54 |
+
|
55 |
+
|
56 |
+
```json
|
57 |
+
{
|
58 |
+
"@context": "https://schema.org",
|
59 |
+
"@type": "Article",
|
60 |
+
"name": "container_agents",
|
61 |
+
"description": "# 🧱 Агенты-контейнеры (Container Agents) в HMP ## 📘 Определение **Агент-контейнер** — это агент, к..."
|
62 |
+
}
|
63 |
+
```
|