GitHub Action commited on
Commit
1476ff0
·
1 Parent(s): 45908d6

Sync from GitHub with Git LFS

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. docs/HMP-0005.md +1285 -0
  2. structured_md/CONTRIBUTING.md +4 -4
  3. structured_md/HMP-Roadmap.md +3 -3
  4. structured_md/README.md +9 -9
  5. structured_md/README_de.md +8 -8
  6. structured_md/README_fr.md +8 -8
  7. structured_md/README_ja.md +8 -8
  8. structured_md/README_ko.md +8 -8
  9. structured_md/README_ru.md +8 -8
  10. structured_md/README_uk.md +8 -8
  11. structured_md/README_zh.md +8 -8
  12. structured_md/agents/readme.md +3 -3
  13. structured_md/audits/Ethics-audits-1.md +2 -2
  14. structured_md/audits/Ethics-consolidated_audits-1.md +3 -3
  15. structured_md/audits/HMP-0003-consolidated_audit.md +3 -3
  16. structured_md/docs/Basic-agent-sim.md +3 -3
  17. structured_md/docs/CCORE-Deployment-Flow.md +1 -1
  18. structured_md/docs/Enlightener.md +2 -2
  19. structured_md/docs/HMP-0001.md +4 -4
  20. structured_md/docs/HMP-0002.md +5 -5
  21. structured_md/docs/HMP-0003.md +5 -5
  22. structured_md/docs/HMP-0004-v4.1.md +5 -5
  23. structured_md/docs/HMP-0004.md +5 -5
  24. structured_md/docs/HMP-Agent-API.md +3 -3
  25. structured_md/docs/HMP-Agent-Architecture.md +6 -6
  26. structured_md/docs/HMP-Agent-Network-Flow.md +2 -2
  27. structured_md/docs/HMP-Agent-Overview.md +5 -5
  28. structured_md/docs/HMP-Agent_Emotions.md +1 -1
  29. structured_md/docs/HMP-Ethics.md +3 -3
  30. structured_md/docs/HMP-Short-Description_de.md +4 -4
  31. structured_md/docs/HMP-Short-Description_en.md +4 -4
  32. structured_md/docs/HMP-Short-Description_fr.md +4 -4
  33. structured_md/docs/HMP-Short-Description_ja.md +3 -3
  34. structured_md/docs/HMP-Short-Description_ko.md +3 -3
  35. structured_md/docs/HMP-Short-Description_ru.md +3 -3
  36. structured_md/docs/HMP-Short-Description_uk.md +3 -3
  37. structured_md/docs/HMP-Short-Description_zh.md +3 -3
  38. structured_md/docs/HMP-agent-Cognitive_Family.md +1 -1
  39. structured_md/docs/HMP-agent-REPL-cycle.md +6 -6
  40. structured_md/docs/HMP-container-spec.md +74 -3
  41. structured_md/docs/HMP_Hyperon_Integration.md +4 -4
  42. structured_md/docs/MeshNode.md +3 -3
  43. structured_md/docs/PHILOSOPHY.md +2 -2
  44. structured_md/docs/agents/HMP-Agent-Enlightener.md +2 -2
  45. structured_md/docs/agents/roles.md +1 -1
  46. structured_md/docs/container_agents.md +1 -1
  47. structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_en.md +2 -2
  48. structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md +1 -1
  49. structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_uk.md +1 -1
  50. structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md +6 -6
docs/HMP-0005.md ADDED
@@ -0,0 +1,1285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ┌────────────────────────────────────────────────────────────────────────────┐
2
+ │ ⚠️ **Note:** This document is a DRAFT of the HMP specification version 5.0 │
3
+ └────────────────────────────────────────────────────────────────────────────┘
4
+
5
+ # **HyperCortex Mesh Protocol (HMP) v5.0**
6
+
7
+ **Document ID:** HMP-0005
8
+ **Status:** Draft
9
+ **Category:** Core Specification
10
+ **Date:** October 2025
11
+ **Supersedes:**
12
+ - [HMP-0004 v4.1](./HMP-0004-v4.1.md)
13
+ - [HMP-container-spec.md v1.2](./HMP-container-spec.md)
14
+ - [dht_protocol.md v1.0](./dht_protocol.md)
15
+
16
+ > **Summary:**
17
+ > HMP v5.0 объединяет когнитивный, контейнерный и сетевой уровни в единую архитектуру, где автономные агенты взаимодействуют через верифицируемые контейнеры данных, используя децентрализованное распространение и семантический поиск.
18
+ > Эта версия впервые формализует контейнерный формат, интегрирует DHT как базовый слой сети и вводит единообразную схему подписи, доказательств и консенсуса.
19
+
20
+ ---
21
+
22
+ ## Abstract
23
+
24
+ The **HyperCortex Mesh Protocol (HMP)** defines a **distributed cognitive framework** where autonomous agents cooperate to create, exchange, and align knowledge without centralized control or authority.
25
+
26
+ Unlike traditional peer-to-peer systems, HMP is designed for **semantic coherence** rather than simple message exchange.
27
+ Agents in the Mesh reason collaboratively — maintaining **cognitive diaries**, building **semantic graphs**, and reaching **ethical and goal-oriented consensus** through verifiable interactions.
28
+
29
+ Version **5.0** introduces a **unified container architecture** (`HMP Container`) and a **native DHT-based discovery layer**, enabling verifiable, interest-aware, and offline-resilient communication between agents.
30
+ All messages, states, and cognitive records are now transmitted as signed containers, forming immutable **proof chains** that ensure auditability and ethical transparency across the mesh.
31
+
32
+ This document defines the architecture, data formats, communication protocols, and trust mechanisms that constitute the HMP v5.0 Core Specification.
33
+
34
+ ---
35
+
36
+ > **Keywords:** decentralized cognition, distributed AI, containers, DHT, proof chain, cognitive agents, ethical protocols
37
+
38
+ ---
39
+
40
+ ## 1. Overview
41
+
42
+ ### 1.1 Purpose and Scope
43
+
44
+ The **HyperCortex Mesh Protocol (HMP)** defines a decentralized cognitive architecture where autonomous agents exchange and evolve knowledge through a unified model of **containers**, **cognitive workflows**, and **distributed consensus**.
45
+
46
+ Version 5.0 consolidates three foundational layers into a single cohesive framework:
47
+
48
+ - **Cognitive Layer** — defines how meaning is created, reasoned about, and aligned through semantic graphs, goals, and ethical evaluation.
49
+ - **Container Layer** — introduces a universal data envelope (`HMP-Container`) for all cognitive objects, ensuring atomicity, immutability, and traceable proof chains.
50
+ - **Network Layer** — integrates a DHT-based peer-to-peer substrate for decentralized discovery, routing, and propagation of containers.
51
+
52
+ HMP v5.0 is intended for researchers, engineers, and developers building autonomous or semi-autonomous agents that require:
53
+ - persistent reasoning and long-term memory;
54
+ - semantic interoperability across heterogeneous systems;
55
+ - decentralized consensus on cognitive, ethical, and goal-oriented decisions;
56
+ - ethical auditability and verifiable transparency in reasoning.
57
+
58
+ ---
59
+
60
+ ### 1.2 Core Principles
61
+
62
+ **Decentralization.**
63
+ Every agent in the Mesh acts as an independent cognitive node. No central authority exists — meaning, trust, and governance emerge through local interactions and consensus.
64
+
65
+ **Cognitive Autonomy.**
66
+ Agents reason, learn, and self-correct independently, while sharing their conclusions via containers that can be verified, endorsed, or refuted by peers.
67
+
68
+ **Containerization.**
69
+ All data, reasoning traces, goals, and votes are encapsulated in immutable containers with cryptographic signatures. This ensures integrity and consistent verification across the network.
70
+
71
+ **Ethical Propagation.**
72
+ Ethical reasoning is a first-class citizen of HMP. Each decision or goal can be accompanied by ethical justifications and subject to distributed voting.
73
+
74
+ **Proof-Chains and Verifiable History.**
75
+ Each piece of knowledge forms part of a traceable chain (`proof_chain`) linking back to its origin. Agents can reproduce reasoning paths and audit historical context.
76
+
77
+ **Interoperability and Evolution.**
78
+ The protocol is designed to evolve — cognitive, container, and DHT layers can be independently extended without breaking compatibility.
79
+
80
+ ---
81
+
82
+ ### 1.3 Changes since v4.1
83
+
84
+ HMP v5.0 introduces a major architectural shift toward **unified containerization** and **integrated DHT networking**.
85
+
86
+ | Area | Change Summary |
87
+ |------|----------------|
88
+ | **Data exchange model** | All messages are now encapsulated in standardized containers (`HMP-Container`) with metadata, signatures, and versioning. |
89
+ | **Networking layer** | DHT becomes a native component of HMP, enabling distributed discovery, replication, and retrieval of containers. |
90
+ | **Consensus model** | Moved from centralized proposal aggregation to *container-linked voting*, allowing any container to accumulate votes and reactions. |
91
+ | **Trust & security** | Signatures and proof-chains unify authentication across all layers; snapshot verification includes container linkage. |
92
+ | **Workflows** | Cognitive cycles (`workflow_entry` containers) formalize the REPL loop of thinking, publishing, and reflection. |
93
+ | **Structure** | The specification merges HMP, container, and DHT layers into one cohesive document, simplifying navigation and implementation. |
94
+
95
+ ---
96
+
97
+ ### 1.4 Terminology and Abbreviations
98
+
99
+ | Term | Definition |
100
+ |------|-------------|
101
+ | **HMP** | **HyperCortex Mesh Protocol** — a decentralized cognitive communication standard. |
102
+ | **Container** | Atomic, signed JSON object encapsulating cognitive data and metadata. |
103
+ | **WorkflowEntry** | Container recording a reasoning step or workflow action. Represents a unit of the agent’s cognitive workflow. |
104
+ | **CognitiveDiaryEntry** | Container representing an internal reflection or summarized cognitive state; part of the agent’s cognitive diary. |
105
+ | **DHT** | **Distributed Hash Table** — the foundational peer-to-peer structure in HMP used for lookup, replication, and data distribution, including node discovery. |
106
+ | **NDP** | **Node Discovery Process** — a functional layer within the DHT responsible for peer discovery, interest-based lookup, and address advertisement. (Formerly a separate protocol.) |
107
+ | **Proof-chain** | Cryptographic sequence linking containers through fields such as `in_reply_to` and `relation`. Enables verifiable semantic lineage. |
108
+ | **Cognitive Layer** | Logical layer handling reasoning, goals, ethics, and consensus mechanisms. |
109
+ | **Mesh** | The collective network of autonomous agents exchanging containers over HMP. |
110
+ | **TTL** | **Time-to-live** — lifespan of a container before expiration or archival. |
111
+ | **Agent** | Autonomous cognitive node participating in the Mesh via HMP protocols. |
112
+ | **Consensus Vote** | A container expressing approval, rejection, or reaction to another container (used in consensus workflows). |
113
+ | **CogSync** | **Cognitive Synchronization Protocol** — abstraction for synchronizing cognitive diaries and semantic graphs. |
114
+ | **CogConsensus** | **Mesh Consensus Protocol** — defines how agents reach agreement on container outcomes. |
115
+ | **GMP** | **Goal Management Protocol** — governs creation, negotiation, and tracking of goals. |
116
+ | **DCP** | **Distributed Container Propagation** — protocol for transmitting and replicating containers. |
117
+ | **EGP** | **Ethical Governance Protocol** — defines moral and safety alignment mechanisms. |
118
+ | **IQP** | **Intelligence Query Protocol** — standardizes semantic queries and information requests. |
119
+ | **SAP** | **Snapshot and Archive Protocol** — defines container snapshots and archival mechanisms. |
120
+ | **MRD** | **Message Routing & Delivery** — specifies routing, addressing, and delivery logic. |
121
+ | **RTE** | **Reputation and Trust Exchange** — defines reputation metrics and trust propagation. |
122
+ | **DID** | **Decentralized Identifier** — persistent, verifiable identifier used for agents, containers, or resources within the Mesh. |
123
+ | **Payload** | The primary content of a container — semantic or operational data subject to signing and verification. |
124
+ | **Consensus** | The process by which multiple agents agree on the validity or priority of containers, versions, or ideas. |
125
+ | **Lineage** | A chronological chain of container versions representing semantic continuity and authorship evolution. |
126
+ | **Semantic fork** | A parallel development branch diverging from a previous container version; allows ideas to evolve independently. |
127
+ | **Cognitive Graph** | The emergent graph formed by interlinked containers representing reasoning, debate, and shared knowledge. |
128
+
129
+ > **Note:** Protocols are conceptual abstractions describing how to generate, propagate, and process containers; they are not executable objects themselves.
130
+
131
+ ---
132
+
133
+ ### 1.5 Layered View of HMP v5.0
134
+
135
+ HMP v5.0 is structured into three interdependent layers:
136
+
137
+ ```
138
+ +---------------------------------------------------------------+
139
+ | Cognitive Layer |
140
+ | - Goals, Tasks, Ethical Decisions, Workflows |
141
+ | - Consensus, Reasoning, Reflection |
142
+ +---------------------------------------------------------------+
143
+ | Container Layer |
144
+ | - HMP-Container structure (atomic, signed, versioned) |
145
+ | - Proof-chains, in_reply_to, and metadata management |
146
+ +---------------------------------------------------------------+
147
+ | Network Layer |
148
+ | - DHT-based peer discovery and propagation |
149
+ | - Message routing, caching, offline synchronization |
150
+ +---------------------------------------------------------------+
151
+ ```
152
+
153
+ Each layer operates independently yet seamlessly integrates with the others.
154
+ Containers form the boundary of communication: **reasoning produces containers, containers propagate over the DHT, and cognition evolves from the received containers**.
155
+
156
+ ---
157
+
158
+ > **In essence:**
159
+ > HMP v5.0 transforms the Mesh into a *self-describing, self-replicating cognitive ecosystem* —
160
+ > where every thought, goal, and ethical stance exists as a verifiable, shareable container.
161
+
162
+ ---
163
+
164
+ ## 2. Architecture
165
+
166
+ ### 2.1 Conceptual Architecture
167
+
168
+ The **HyperCortex Mesh Protocol (HMP)** defines a modular, multi-layered architecture that integrates cognitive reasoning, data encapsulation, and decentralized networking into a single coherent system.
169
+
170
+ Each **agent** acts as a cognitive node, combining reasoning processes, containerized data exchange, and peer-to-peer communication.
171
+ Together, agents form the **Mesh** — a distributed ecosystem of autonomous reasoning entities.
172
+
173
+ ```
174
+ [Agent Core]
175
+
176
+ │ Reasoning / Ethics / Goal Management
177
+
178
+ [Cognitive Layer]
179
+
180
+ │ Containers (atomic reasoning units)
181
+
182
+ [Container Layer]
183
+
184
+ │ DHT + Discovery + Interest-based Networking
185
+
186
+ [Network Layer]
187
+ ```
188
+
189
+ Each reasoning cycle begins in the **Cognitive Layer**,
190
+ is encapsulated into a signed container in the **Container Layer**,
191
+ and then propagated, discovered, or verified in the **Network Layer**.
192
+
193
+ Containers thus serve as both the **interface** and the **boundary** between cognition and communication.
194
+
195
+ In practical terms:
196
+
197
+ - **Cognitive Layer** — defines *what* the agent thinks (semantic reasoning, goals, ethics).
198
+ - **Container Layer** — defines *how* the thought is expressed and verified (standardized, signed container objects).
199
+ - **Network Layer** — defines *how* it travels (DHT-based routing, discovery, replication).
200
+
201
+ Each layer is independently extensible and communicates only through containers, ensuring atomicity, immutability, and traceability.
202
+
203
+ This layered design allows agents to evolve cognitively while remaining interoperable at the data and network levels.
204
+ Each reasoning act results in a container — a verifiable cognitive unit that **may represent a private reflection or a published message**, depending on the agent’s intent, ethical policy, and trust configuration.
205
+
206
+ ---
207
+
208
+ ### 2.2 Layer Overview
209
+
210
+ #### Cognitive Layer
211
+ Handles meaning formation, reasoning, ethical reflection, and consensus.
212
+
213
+ Key structures and protocols:
214
+ - `WorkflowEntry` and `CognitiveDiaryEntry` containers;
215
+ - `CogSync`, `CogConsensus`, `GMP`, and `EGP` protocols;
216
+ - Distributed goal negotiation and ethical propagation.
217
+
218
+ #### Container Layer
219
+ Provides a universal format for cognitive and operational data.
220
+ Each container includes versioning, class, payload, signatures, and metadata.
221
+
222
+ Key features:
223
+ - **Atomic and signed**: no partial updates or mutable state.
224
+ - **Linked**: `in_reply_to` and `relation` connect containers into proof-chains.
225
+ - **Extensible**: new container classes can be defined without breaking compatibility.
226
+
227
+ #### Network Layer
228
+ Implements the distributed substrate for communication, based on **DHT** and **transport abstraction**.
229
+
230
+ Key components:
231
+ - Node discovery (`NDP`)
232
+ - Container propagation (`DCP`)
233
+ - Peer routing and caching
234
+ - Secure channels via QUIC / WebRTC / TCP
235
+ - Offline resilience and replication
236
+
237
+ ---
238
+
239
+ ### 2.3 Data Flow Overview
240
+
241
+ The typical data flow in HMP follows a cognitive loop:
242
+ > *Reason → Encapsulate → Propagate → Integrate.*
243
+
244
+ 1. **Reason** — Agent performs reasoning and produces an insight, goal, or observation.
245
+ 2. **Encapsulate** — The result is wrapped into an `HMPContainer`.
246
+ 3. **Propagate** — The container is signed and transmitted through the network.
247
+ 4. **Integrate** — Other agents receive it, evaluate, vote, and synchronize updates.
248
+
249
+
250
+ Each interaction generates a new container, forming a **graph of knowledge** rather than mutable state.
251
+ All relationships between containers are explicit and verifiable.
252
+
253
+ Example sequence:
254
+
255
+ ```
256
+ Agent A → creates Goal container
257
+
258
+ Agent B → replies with Task proposal (in_reply_to Goal)
259
+
260
+ Agent C → votes via ConsensusVote container
261
+
262
+ Result → ConsensusResult container finalizes outcome
263
+ ```
264
+
265
+ #### 2.3.1 ConsensusResult container
266
+ Represents the finalized outcome of a distributed decision or vote.
267
+ It is created once a majority agreement is reached among participating agents.
268
+ The container contains:
269
+ - Reference to the target container(s) under consideration (`in_reply_to`).
270
+ - Aggregate result of the votes or decisions.
271
+ - Timestamp and metadata for verifiability.
272
+
273
+ > In other words, the ConsensusResult is the “agreed-upon truth” for that decision step — immutable and auditable, without requiring individual signatures from all participants.
274
+
275
+ ---
276
+
277
+ ### 2.4 Atomicity, Immutability, and Proof-Chains
278
+
279
+ All cognitive objects are immutable once signed.
280
+ Instead of editing or appending within a container, agents create new containers linked to prior ones.
281
+
282
+ - **Atomicity** — Each container represents a self-contained reasoning act or data unit.
283
+ - **Immutability** — Once signed, containers are never modified; updates create new ones.
284
+ - **Proof-Chain** — A verifiable sequence of containers linked by hashes and `in_reply_to` references.
285
+
286
+ This design allows any reasoning path, decision, or consensus to be *cryptographically reproducible* and auditable.
287
+
288
+ Example fragment of a proof-chain:
289
+
290
+ ```
291
+ [workflow_entry] → [goal] → [vote] → [consensus_result]
292
+ ```
293
+
294
+ Each container references the previous by `in_reply_to` and includes its hash, forming a **DAG** (Directed Acyclic Graph) of verified cognition.
295
+
296
+ ---
297
+
298
+ ### 2.5 Evolution from v4.1
299
+
300
+ Earlier HMP versions (up to v4.1) used a combination of independent JSON objects and message types (e.g., `Goal`, `Task`, `ConsensusVote`).
301
+ Version 5.0 replaces this with a **single, standardized container model**, dramatically simplifying interoperability and verification.
302
+
303
+ | Aspect | v4.1 | v5.0 |
304
+ |--------|------|------|
305
+ | **Data structure** | Raw JSON objects with embedded signatures | Unified container with metadata and proof chain |
306
+ | **Networking** | Custom peer exchange | Integrated DHT + DCP layer |
307
+ | **Consensus** | Centralized proposal aggregation | Decentralized per-container voting |
308
+ | **Auditability** | Implicit (via logs) | Explicit (containers form audit chain) |
309
+ | **Extensibility** | Schema-based | Container-class-based, backward-compatible |
310
+
311
+ This shift enables:
312
+ - Uniform signatures and encryption across all protocols;
313
+ - Easier offline replication and integrity checks;
314
+ - Decentralized indexing and search by container metadata;
315
+ - Verifiable cognitive continuity between reasoning steps.
316
+
317
+ ---
318
+
319
+ > **In short:**
320
+ > HMP v5.0 unifies reasoning, representation, and transmission —
321
+ > transforming a distributed AI mesh into a verifiable cognitive network built on immutable containers.
322
+
323
+ ---
324
+
325
+ ## 3. Container Model
326
+
327
+ This section defines the universal **HMP Container**, used for all forms of data exchange within the Mesh — including goals, diary entries, reputation updates, consensus votes, and protocol messages.
328
+ The specification below corresponds to **HMP Container Specification v1.2**, fully integrated into HMP v5.0 for consistency and self-containment.
329
+
330
+ ### 3.1 Purpose
331
+
332
+ This document defines the universal **HMP Container** format, used for transmitting and storing all types of data within the **HyperCortex Mesh Protocol (HMP)** network.
333
+ Containers act as a standardized wrapper for **messages, goals, reputation records, consensus votes, workflow entries, and other entities**.
334
+
335
+ The unified container structure provides:
336
+
337
+ * Standardized data exchange between agents;
338
+ * Extensibility without modifying the core protocol;
339
+ * Cryptographic signing and integrity verification;
340
+ * Independent storage and routing of semantic units;
341
+ * Support for compression and payload encryption.
342
+
343
+ ---
344
+
345
+ ### 3.2 General Structure
346
+
347
+ ```json
348
+ {
349
+ "hmp_container": {
350
+ "version": "1.2",
351
+ "class": "goal" | "reputation" | "knowledge_node" | "ethics_case" | "protocol_goal" | ...,
352
+ "class_version": "1.0",
353
+ "class_id": "goal-v1.0",
354
+ "container_did": "did:hmp:container:abc123",
355
+ "schema": "https://mesh.hypercortex.ai/schemas/container-v1.json",
356
+ "sender_did": "did:hmp:agent123",
357
+ "public_key": "BASE58(...)",
358
+ "recipient": ["did:hmp:agent456", "did:hmp:agent789"],
359
+ "broadcast": false,
360
+ "network": "",
361
+ "tags": ["research", "collaboration"],
362
+ "timestamp": "2025-10-10T15:32:00Z",
363
+ "ttl": "2025-11-10T00:00:00Z",
364
+ "sig_algo": "ed25519",
365
+ "signature": "BASE64URL(...)",
366
+ "compression": "zstd",
367
+ "payload_type": "json",
368
+ "payload_hash": "sha256:abcd...",
369
+ "payload": {
370
+ /* Content depends on class */
371
+ },
372
+ "related": {
373
+ "previous_version": "did:hmp:container:abc122",
374
+ "in_reply_to": "did:hmp:container:msg-77",
375
+ "see_also": ["did:hmp:container:ctx-31", "did:hmp:container:goal-953"]
376
+ "depends_on": ["did:hmp:container:goal-953"],
377
+ "extends": ["did:hmp:container:proto-01"],
378
+ "contradicts": ["did:hmp:container:ethics-22"]
379
+ /* This list of dependencies is open */
380
+ },
381
+ "magnet_uri": "magnet:?xt=urn:sha256:abcd1234..."
382
+ },
383
+ "referenced-by": {
384
+ "links": [
385
+ { "type": "depends_on", "target": "did:hmp:container:goal-953" }
386
+ ],
387
+ "peer_did": "did:hmp:agent123",
388
+ "public_key": "BASE58(...)",
389
+ "sig_algo": "ed25519",
390
+ "signature": "BASE64URL(...)",
391
+ }
392
+ }
393
+ ```
394
+
395
+ ---
396
+
397
+ ### 3.3 Required Fields
398
+
399
+ | Field | Type | Description |
400
+ | --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
401
+ | `version` | string | Version of the container specification. Defines the structural and semantic standard used (e.g., `"1.2"`). |
402
+ | `class` | string | Type of content (`goal`, `reputation`, `knowledge_node`, `ethics_case`, `protocol_goal`, etc.). Determines the schema for the `payload`. |
403
+ | `class_version` | string | Version of the specific container class. |
404
+ | `class_id` | string | Unique identifier of the class (usually formatted as `<class>_v<class_version>`). |
405
+ | `container_did` | string | Decentralized identifier (DID) of the container itself (e.g., `did:hmp:container:abc123`). |
406
+ | `schema` | string | Reference to the JSON Schema used to validate this container. |
407
+ | `sender_did` | string | DID identifier of the sending agent. |
408
+ | `timestamp` | datetime | Time of container creation (ISO-8601 format, UTC). |
409
+ | `payload_hash` | string | Hash of the decompressed payload (`sha256:<digest>`). Used for content integrity verification. |
410
+ | `sig_algo` | string | Digital signature algorithm (default: `ed25519`). |
411
+ | `signature` | string | Digital signature of the container body. |
412
+ | `payload_type` | string | Type of payload data (`json`, `binary`, `mixed`). |
413
+ | `payload` | object | Core content of the container. The structure depends on the `class` and its schema definition. |
414
+
415
+ ---
416
+
417
+ ### 3.4 Optional Fields
418
+
419
+ | Field | Type | Description |
420
+ | -------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
421
+ | `recipient` | array(string) | One or more recipient DIDs. |
422
+ | `broadcast` | bool | Broadcast flag. If `true`, the `recipient` field is ignored. |
423
+ | `tags` | array(string) | Thematic or contextual tags for the container. |
424
+ | `ttl` | datetime | Expiration time. Containers are not propagated after expiration. |
425
+ | `public_key` | string | Sender’s public key, if not globally resolvable via DID. |
426
+ | `compression` | string | Compression algorithm used for the payload (`zstd`, `gzip`). |
427
+ | `magnet_uri` | string | Magnet link pointing to the original or mirrored container. |
428
+ | `related` | object | A general-purpose object describing **direct relationships** to other containers. The following fields illustrate common link types but do not represent an exhaustive list. |
429
+ | `related.previous_version` | string | DID of the previous version of this container. |
430
+ | `related.in_reply_to` | string | DID of the container this one replies to. |
431
+ | `related.see_also` | array(string) | References to related or contextual containers. |
432
+ | `related.depends_on` | array(string) | References to containers this one logically depends on. |
433
+ | `related.extends` | array(string) | References to containers that this one extends. |
434
+ | `related.contradicts` | array(string) | References to containers that this one contradicts. || `encryption_algo` | string | Algorithm used for payload encryption. |
435
+ | `key_recipient` | string | DID of the intended recipient of the encrypted payload. |
436
+ | `payload_type` | string | Can describe complex types, e.g. `encrypted+zstd+json`. |
437
+ | `referenced-by` | object | Unsigned field generated locally by the agent based on received references. Contains a list of container DIDs **that refer to this container**. May be extended over time, thus requiring verification; used for local navigation. |
438
+ | `network` | string | Specifies the local propagation scope of the container: "localhost", "lan:<subnet>". An empty string ("") indicates Internet/global propagation. If set, broadcast is automatically considered false. |
439
+
440
+ ---
441
+
442
+ ### 3.5 Payload Structure (`payload`)
443
+
444
+ The **payload** contains the semantic or operational data of the container.
445
+ Its structure and meaning are determined by the `class` field.
446
+
447
+ Each container class (e.g. `goal`, `reputation`, `consensus_vote`, `workflow_entry`) defines its own schema and validation rules.
448
+ The following format is recommended for describing payload fields in class specifications:
449
+
450
+ ```
451
+ - key: field name
452
+ type: value type (JSON | TXT | BOOL | INT | FLOAT | ARRAY)
453
+ description: short purpose of the field
454
+ required: true/false
455
+ value: example value
456
+ ```
457
+
458
+ **Example:**
459
+
460
+ ```
461
+ - key: "title"
462
+ type: "TXT"
463
+ required: true
464
+ description: "Name of the goal"
465
+ value: "Improve local agent discovery"
466
+
467
+ - key: "priority"
468
+ type: "FLOAT"
469
+ required: false
470
+ description: "Importance or relevance score of the goal"
471
+ value: 0.82
472
+
473
+ - key: "dependencies"
474
+ type: "JSON"
475
+ required: false
476
+ description: "List of other goal container IDs this one depends on"
477
+ value: ["goal-953", "goal-960"]
478
+ ```
479
+
480
+ > 💡 **Note:**
481
+ > The structure of `payload` is validated against the schema defined in the `schema` field of the container.
482
+ > Agents must be able to parse and process only those classes they explicitly support; unknown but valid containers are still preserved and propagated (store-and-forward mode).
483
+
484
+ ---
485
+
486
+ ### 3.6 Container Signature
487
+
488
+ 1. The **entire JSON object `hmp_container`** is signed, excluding the `signature` field itself.
489
+ This ensures that all metadata, relations, and payload hashes are cryptographically bound.
490
+
491
+ 2. The default digital signature algorithm is **Ed25519**.
492
+ Alternative algorithms may be used if declared explicitly in the `sig_algo` field.
493
+
494
+ 3. If the container includes a `public_key` field, signature verification **may be performed locally**,
495
+ without consulting a global DID registry.
496
+
497
+ 4. Upon receiving a container, an agent **must verify** that the provided public key matches the
498
+ registered key associated with the sender’s DID to prevent key substitution attacks.
499
+
500
+ * If the sender’s DID–key mapping is unknown,
501
+ the agent should query neighboring peers to confirm the association (`sender_did → public_key`).
502
+
503
+ > 🔐 **Note:**
504
+ > Signature validation applies to the entire structure (metadata + payload + relations).
505
+ > The signature **does not cover** external or dynamically generated fields such as `referenced-by`,
506
+ > ensuring immutability of the original container while allowing local graph augmentation.
507
+
508
+ ---
509
+
510
+ ### 3.7 Compression (`compression`)
511
+
512
+ 1. The `compression` field specifies the algorithm used to compress the container’s payload.
513
+ Supported algorithms include `zstd`, `gzip`, or others declared in the HMP registry.
514
+
515
+ 2. **Compression is performed before computing** the `payload_hash` and generating the `signature`.
516
+ This ensures that both the hash and signature refer to the compressed representation of the payload.
517
+
518
+ 3. For verification, the payload must be **decompressed first**,
519
+ after which the hash is recalculated and compared against the stored `payload_hash`.
520
+
521
+ > ⚙️ **Implementation note:**
522
+ > Agents must advertise supported compression algorithms during the handshake phase
523
+ > Unsupported containers should still be stored and relayed unmodified
524
+ > in “store & forward” mode.
525
+
526
+ ---
527
+
528
+ ### 3.8 Encryption (`encryption_algo`)
529
+
530
+ 1. When a container is intended for specific recipients (`recipient` field), **hybrid encryption** of the payload is allowed.
531
+ This ensures confidentiality while preserving the verifiability of container metadata.
532
+
533
+ 2. The algorithm is specified in the `encryption_algo` field.
534
+ Recommended values:
535
+
536
+ * `x25519-chacha20poly1305`
537
+ * `rsa-oaep-sha256`
538
+
539
+ 3. **Container encryption process:**
540
+
541
+ 1. Construct the `payload` (JSON, binary, or mixed content).
542
+ 2. Apply compression (`compression`, if specified).
543
+ 3. Encrypt the compressed data using the recipient’s public key (`public_key`).
544
+ 4. Compute `payload_hash` over the **encrypted** form of the payload.
545
+ 5. Sign the entire container (excluding the `signature` field).
546
+
547
+ 4. Verification of the container’s structure **does not require decryption**.
548
+ However, to verify `payload_hash` and the digital signature, the encrypted payload must be used as-is.
549
+
550
+ 5. **Relevant fields:**
551
+
552
+ | Field | Type | Description |
553
+ | ----------------- | ------ | ------------------------------------------------------------ |
554
+ | `encryption_algo` | string | Encryption algorithm applied to the payload. |
555
+ | `key_recipient` | string | DID of the intended recipient whose key was used. |
556
+ | `payload_type` | string | Recommended prefix `encrypted+`, e.g. `encrypted+zstd+json`. |
557
+
558
+ > ⚙️ **Implementation note:**
559
+ > Agents should handle encrypted containers transparently even if they cannot decrypt them,
560
+ > maintaining **store & forward** behavior and metadata propagation.
561
+
562
+ ---
563
+
564
+ ### 3.9 Container Verification
565
+
566
+ 1. Check for the presence of all required fields.
567
+ 2. Validate `timestamp` (must not be in the future).
568
+ 3. If `ttl` is set — mark the container as **expired** after its expiration time.
569
+ 4. Compute `sha256(payload)` and compare with the stored `payload_hash`.
570
+ 5. Verify the digital signature using `sig_algo` (default: Ed25519).
571
+ 6. Validate the container schema (`class` must correspond to a known or registered schema).
572
+
573
+ * For compatibility: if an agent does not recognize the `class`, but the container passes
574
+ the [base schema](https://github.com/kagvi13/HMP/tree/main/docs/schemas/container-v1.2.json),
575
+ it **must still store and forward** the container.
576
+ 7. Optionally, periodically query for containers referencing the current one as `previous_version`
577
+ to detect potential updates or forks.
578
+ 8. When multiple versions exist, the valid one is the one that has received
579
+ **confirmation from a majority of trusted nodes (consensus at DHT level).**
580
+
581
+ ---
582
+
583
+ ### 3.10 Container as a Universal Message
584
+
585
+ Any container can serve as a **context** (`in_reply_to`) for another container.
586
+ This enables a unified structural model for **discussions**, **votes**, **messages**, **hypotheses**, **arguments**, and other forms of cognitive exchange.
587
+
588
+ Chains of `in_reply_to` form a **dialectical reasoning tree**, where each branch represents an evolution of thought —
589
+ a clarification, counterpoint, or refinement of a previous idea.
590
+ This makes HMP discussions and consensus processes inherently **non-linear**, **self-referential**, and **evolving**.
591
+
592
+ > In essence, **all interactions between agents in HMP** are represented as an interconnected web of containers,
593
+ > collectively forming a **cognitive graph of reasoning**.
594
+
595
+ ---
596
+
597
+ ### 3.11 Versioning and Lineage
598
+
599
+ Containers in HMP support semantic evolution through the field `related.previous_version`.
600
+ This mechanism preserves the continuity and traceability of meaning across updates and revisions.
601
+
602
+ * A descendant container is considered **authentic** if it is signed by the same DID as the author of its `previous_version`.
603
+ * If the author or signature differs, the descendant **may still be accepted** as legitimate when a **sufficient portion of trusted peers** acknowledge it as a valid continuation.
604
+ (The precise quorum threshold is determined by the agent’s local policy or the Mesh Consensus Protocol.)
605
+ * Agents are required to retain at least one previous version of each container for compatibility and integrity verification.
606
+ * A single container may have **multiple descendants** (alternative branches) that diverge by time, authorship, or interpretation.
607
+ In such scenarios, branch priority or relevance is determined via local heuristics or consensus mechanisms.
608
+ * Divergent descendants are treated as **semantic forks** — parallel evolutions of a shared idea within the distributed cognitive graph.
609
+
610
+ > Versioning in HMP thus reflects not only data persistence,
611
+ > but also the *evolution of ideas* across agents and time.
612
+
613
+ ---
614
+
615
+ ### 3.12 TTL and Validity
616
+
617
+ The `ttl` field defines the **validity period** of a container (for example, for `DISCOVERY` messages).
618
+ If `ttl` is **absent**, the container is considered valid **until a newer version appears**, in which the current container is referenced as `previous_version`.
619
+
620
+ After expiration, the container **remains archived** but is **not subject to retransmission** in the active network.
621
+
622
+ ---
623
+
624
+ ### 3.13 Extensibility
625
+
626
+ * The addition of new fields is allowed as long as they **do not conflict** with existing field names.
627
+ * Containers of newer versions **must remain readable** by nodes supporting older versions.
628
+ * When new container classes (`class`) are introduced, they should be **registered** in the public schema registry (`/schemas/container-types/`).
629
+ * For containers describing **protocol specifications**, it is recommended to use the `protocol_` prefix, followed by the domain of application (e.g., `protocol_goal`, `protocol_reputation`, `protocol_mesh_handshake`, etc.).
630
+
631
+ ---
632
+
633
+ ### 3.14 Related Containers (`related`)
634
+ #### 3.14.1 Purpose
635
+ #### 3.14.2 Structure
636
+ #### 3.14.3 Supported Link Types
637
+ #### 3.14.4 Custom Link Types
638
+ #### 3.14.5 Example
639
+
640
+ ---
641
+
642
+ ### 3.15 Virtual Backlinks (`referenced-by`)
643
+
644
+ Each container may include an **additional block** called `referenced-by`, indicating **which other containers refer to it**.
645
+ This block is **not part of the original container** and is transmitted as an **attached (auxiliary) attribute**.
646
+
647
+ #### 3.14.1 General Principles
648
+
649
+ * **Not signed** — `referenced-by` is not included in the container’s signature and does not affect its integrity.
650
+ * **Generated and updated locally by the agent** during analysis of references (`in_reply_to`, `see_also`, `relations`) found in other containers.
651
+ * **May be transmitted alongside the container** as an additional data block that other agents are free to verify and adjust if necessary.
652
+ * **Subject to verification** — the agent must ensure that every container listed in `referenced-by` actually contains a valid reference to the given container.
653
+ * **Data type:** an array of container identifiers (`array<string>`), where each element represents a UUID (`container_id`).
654
+ Example:
655
+
656
+ ```json
657
+ "referenced-by": ["C2", "C3", "C4"]
658
+ ```
659
+
660
+ > The container `[C1]` itself remains immutable.
661
+ > The `referenced-by` block is **an auxiliary computed attribute**, maintained locally by the agent based on analysis of incoming references.
662
+
663
+ #### 3.15.2 Operation Principle
664
+
665
+ 1. The agent receives a container `[C1]` and compares it with already known containers `[C2..Cn]` that reference `[C1]`.
666
+ 2. A local block is created or updated:
667
+
668
+ ```text
669
+ referenced-by = [C2, C3, ..., Cn]
670
+ ```
671
+
672
+ 3. When receiving `[C1]` from other nodes with a different set of backlinks, or upon discovering new containers that reference `[C1]`, the list is updated:
673
+
674
+ * new links are added after validation;
675
+ * invalid links are removed.
676
+
677
+ 4. If an inconsistency is detected (e.g., a container claims a reference that does not exist), the agent may:
678
+
679
+ * remove the link locally;
680
+ * **optionally** send a notice to the source node — e.g., `"please verify and correct"` (such messages should also be validated).
681
+
682
+ #### 3.15.3 Example
683
+
684
+ | Agent | received `[C1]` references |
685
+ | ----- | -------------------------- |
686
+ | A | [C2], [C3] |
687
+ | B | [C4], [C5] |
688
+ | C | [C6], [C7] |
689
+
690
+ Agent D aggregates all backlinks:
691
+
692
+ ```text
693
+ referenced-by = [C2, C3, C4, C5, C6, C7]
694
+ ```
695
+
696
+ After verification, it turns out `[C7]` does not actually reference `[C1]`.
697
+ The resulting local block becomes:
698
+
699
+ ```text
700
+ referenced-by = [C2, C3, C4, C5, C6]
701
+ ```
702
+
703
+ #### 3.15.4 Usage
704
+
705
+ * Enables construction of local graphs of discussions, votes, and update chains.
706
+ * Accelerates discovery of related containers without re-querying full history.
707
+ * Useful for analyzing **ConsensusResult**, update branches, and any reference chains.
708
+ * Can be used for visualization of inter-container relationships.
709
+ * The agent periodically recalculates the `referenced-by` block using local data or by requesting additional containers from peers.
710
+
711
+ ---
712
+
713
+ ### 3.16 Usage of `network` and `broadcast` Fields
714
+
715
+ The `network` field is introduced to control container propagation in both local and global environments.
716
+ It allows restricting the delivery scope of a container and defines which transmission methods should be used by the agent.
717
+
718
+ #### 3.16.1 General Rules
719
+
720
+ * If the `network` field is not empty, the container is intended for a **local environment** and **must not be transmitted to the global Mesh**.
721
+ In this case, the `broadcast` field is automatically considered `false`, and the `recipient` field is set to an empty array (`[]`).
722
+ * If the `network` field is empty (`""`), the container is allowed to be broadcasted within the global Mesh using standard DID addressing and delivery mechanisms.
723
+
724
+ #### 3.16.2 Possible Values of `network`
725
+
726
+ | Value | Description |
727
+ | ----------------------- | ------------------------------------------------------------------------------------------- |
728
+ | `""` | The container is allowed to propagate within the global Mesh. |
729
+ | `"localhost"` | The container is intended only for agents running on the same host. |
730
+ | `"lan:192.168.0.0/24"` | The container is intended for agents within the specified local subnet. |
731
+
732
+ > ⚠️ **Note:**
733
+ > When a container is restricted by the `network` field (e.g., `localhost` or `lan:*`),
734
+ > agents distribute it using **local discovery mechanisms** — such as IPC, UDP broadcast, multicast, or direct TCP connections.
735
+ > This is necessary because DID addresses of other agents in the local network may not yet be known.
736
+
737
+ #### 3.16.3 Examples
738
+
739
+ 1. **Global Mesh Delivery:**
740
+
741
+ ```json
742
+ {
743
+ "broadcast": true,
744
+ "network": "",
745
+ "recipient": []
746
+ }
747
+ ```
748
+
749
+ The container can propagate across the entire Mesh without restrictions.
750
+
751
+ 2. **Local Host:**
752
+
753
+ ```json
754
+ {
755
+ "broadcast": false,
756
+ "network": "localhost",
757
+ "recipient": []
758
+ }
759
+ ```
760
+
761
+ The container is delivered only to other agents running on the same host using local communication channels.
762
+
763
+ 3. **LAN Subnet:**
764
+
765
+ ```json
766
+ {
767
+ "broadcast": false,
768
+ "network": "lan:192.168.0.0/24",
769
+ "recipient": []
770
+ }
771
+ ```
772
+
773
+ The container is intended for agents within the `192.168.0.0/24` subnet.
774
+ Delivery is performed via local networking mechanisms (UDP discovery, broadcast/multicast).
775
+
776
+ #### 3.16.4 Specifics
777
+
778
+ * The `network` field defines the **scope of the container**, while `broadcast` determines whether broadcasting is allowed **within that scope**.
779
+ * When needed, an agent may create **multiple containers** for different subnets if it operates with several LAN interfaces or in isolated network segments.
780
+ * Containers intended for local networks remain **structurally compatible with the global Mesh infrastructure**, but their delivery is restricted to local channels.
781
+ * Although the mechanism was initially designed for **local node discovery and synchronization**,
782
+ it can also be used for **private communication within home or corporate environments**,
783
+ ensuring that containers **do not leave the local network** and are **not transmitted to the Internet**.
784
+
785
+ ---
786
+
787
+ ## 4. Network Foundations
788
+
789
+ ### Note on DHT/NDP Unification
790
+
791
+ Starting from **HMP v5.0**, the previous distinction between the *Distributed Hash Table (DHT)* and the *Node Discovery Protocol (NDP)* has been merged into a single, unified **networking foundation**.
792
+
793
+ This unified layer now covers:
794
+
795
+ * distributed lookup and routing;
796
+ * peer discovery (including interest-based search);
797
+ * signed Proof-of-Work (PoW) announcements;
798
+ * controlled container propagation via `network` and `broadcast` fields.
799
+
800
+ Together, these mechanisms form the **communication backbone** of the Mesh, enabling secure, scalable, and topology-independent interaction between agents.
801
+
802
+ ---
803
+
804
+ ### Network Topology Overview
805
+
806
+ ```
807
+ ┌───────────────────────────────┐
808
+ │ Agent Core │
809
+ │ (DID + Keypair + PoW) │
810
+ └───────────────┬───────────────┘
811
+
812
+ ┌───────────────┴───────────────┐
813
+ │ HMP Container │
814
+ │ (network field / broadcast) │
815
+ └───────────────┬───────────────┘
816
+
817
+ ┌──────────────┴───────────────┐
818
+ │ │
819
+ ┌────────┴────────┐ ┌────────┴────────┐
820
+ │ Local Channel │ │ Global Mesh │
821
+ │ (`network`) │ │ (`broadcast`) │
822
+ └─┬───────────────┘ └───────────────┬─┘
823
+ │ │
824
+ │ ┌─────────────────┐ ┌─────────────────┐ │
825
+ ├──┤ localhost │ │ Internet ├──┤
826
+ │ │ │ │ │ │
827
+ │ └─────────────────┘ └─────────────────┘ │
828
+ │ │
829
+ │ ┌─────────────────┐ ┌─────────────────┐ │
830
+ └──┤ LAN Subnet │ │ Overlay Nodes ├──┘
831
+ │ "lan:192.168.*" │ │ (Yggdrasil/I2P) │
832
+ └─────────────────┘ └─────────────────┘
833
+ ```
834
+
835
+ > The `network` field defines **local propagation scope** (host, LAN, overlay),
836
+ > while the `broadcast` flag enables **global Mesh distribution**.
837
+
838
+ ---
839
+
840
+ ### 4.1 Node Identity and DID Structure
841
+
842
+ Each agent in HMP possesses a **Decentralized Identifier (DID)** that uniquely represents its identity within the Mesh.
843
+ A DID is cryptographically bound to a **public/private key pair**, forming the immutable `(DID + pubkey)` association.
844
+
845
+ An agent may have multiple *network interfaces* (LAN, Internet, overlay),
846
+ but must maintain **one stable identity pair** across all of them.
847
+
848
+ ---
849
+
850
+ ### 4.2 Peer Addressing and Proof-of-Work (PoW)
851
+
852
+ To prevent flooding and spoofing, each announced address is accompanied by a **Proof-of-Work** record proving the legitimacy and activity of the publishing node.
853
+
854
+ #### Address Format
855
+
856
+ ```json
857
+ {
858
+ "addr": "tcp://1.2.3.4:4000",
859
+ "nonce": 123456,
860
+ "pow_hash": "0000abf39d...",
861
+ "difficulty": 22
862
+ }
863
+ ````
864
+
865
+ #### Supported address types
866
+
867
+ | Type | Description |
868
+ | -------------- | --------------------------------------------- |
869
+ | `localhost` | Localhost-only interface. |
870
+ | `lan:<subnet>` | Local subnet (e.g., `lan:192.168.10.0`). |
871
+ | `internet` | Global TCP/UDP connectivity. |
872
+ | `yggdrasil` | Overlay-based address for Yggdrasil networks. |
873
+ | `i2p` | Encrypted I2P overlay routing. |
874
+
875
+ **Rules:**
876
+
877
+ * If `port = 0`, the interface is inactive.
878
+ * Newer records (by `timestamp`) replace older ones after PoW verification.
879
+ * Local interfaces should not be shared globally (except Yggdrasil/I2P).
880
+
881
+ ---
882
+
883
+ ### 4.3 Proof-of-Work (PoW) Formalization
884
+
885
+ PoW ensures that each node expends limited computational effort before publishing or updating an address record.
886
+
887
+ ```
888
+ pow_input = DID + " -- " + addr + " -- " + nonce
889
+ pow_hash = sha256(pow_input)
890
+ ```
891
+
892
+ * All values are UTF-8 encoded.
893
+ * `difficulty` defines the number of leading zeroes in the resulting hash.
894
+ * Typical difficulty should take a few minutes to compute on a standard CPU.
895
+
896
+ ---
897
+
898
+ ### 4.4 Signing and Verification
899
+
900
+ Each announcement is cryptographically signed by its sender within the framework of the basic protocol. Container verification includes PoW validation for the address payloads.
901
+
902
+ **Verification steps:**
903
+
904
+ 1. Validate the digital signature using the stored public key.
905
+ 2. Recompute `pow_hash` and verify the difficulty threshold.
906
+
907
+ ---
908
+
909
+ ### 4.5 Connection Establishment
910
+
911
+ Agents can communicate using various transport mechanisms:
912
+
913
+ | Protocol | Description |
914
+ | ----------- | ------------------------------------------------------------- |
915
+ | **QUIC** | Recommended default (encrypted, low-latency, UDP-based). |
916
+ | **WebRTC** | For browser or sandboxed environments. |
917
+ | **TCP/TLS** | Fallback transport for secure long-lived sessions. |
918
+ | **UDP** | Lightweight, primarily for LAN discovery or local broadcasts. |
919
+
920
+ Each agent maintains an **active peer list**, updated dynamically through signed announcements and PoW-validated exchanges.
921
+ Agents **store peer containers with verified addresses** and redistribute them according to their declared `network` fields.
922
+
923
+ ---
924
+
925
+ ### 4.6 Data Propagation Principles
926
+
927
+ Containers and discovery records are propagated through distributed lookup and gossip mechanisms, respecting:
928
+
929
+ * `ttl` — Time-to-live for validity;
930
+ * `network` — scope of propagation;
931
+ * `broadcast` — determines whether rebroadcasting is allowed;
932
+ * `pow` — ensures anti-spam protection.
933
+
934
+ Agents announce themselves via **peer_announce** containers and may respond with **peer_query** or **peer_exchange** containers —
935
+ all unified under the same base container format, differing only in direction (`localhost`, `lan`, `mesh`).
936
+
937
+ ---
938
+
939
+ ### 4.7 Example: Peer Announce Container
940
+
941
+ ```json
942
+ {
943
+ "class": "peer_announce",
944
+ "pubkey": "base58...",
945
+ "container_did": "did:hmp:container:dht-001",
946
+ "sender_did": "did:hmp:agent123",
947
+ "timestamp": "2025-09-14T21:00:00Z",
948
+ "network": "",
949
+ "broadcast": true,
950
+ "payload": {
951
+ "name": "Agent_X",
952
+ "interests": ["ai", "mesh", "ethics"],
953
+ "expertise": ["distributed-systems", "nlp"],
954
+ "addresses": [
955
+ {
956
+ "addr": "tcp://1.2.3.4:4000",
957
+ "nonce": 123456,
958
+ "pow_hash": "0000abf39d...",
959
+ "difficulty": 22
960
+ }
961
+ ]
962
+ },
963
+ "sig_algo": "ed25519",
964
+ "signature": "BASE64URL(...)"
965
+ }
966
+ ```
967
+
968
+ ---
969
+
970
+ ### 4.8 Interest-Based Discovery
971
+
972
+ Agents may publish **tags** such as `interests`, `topics`, or `expertise` to facilitate semantic peer discovery.
973
+ Queries may include interest keywords or DID lists to find relevant peers.
974
+
975
+ **Example Query Container:**
976
+
977
+ ```json
978
+ {
979
+ "class": "peer_query",
980
+ "network": "lan:192.168.0.0/24",
981
+ "payload": {
982
+ "interests": ["neuroscience", "ethics"]
983
+ }
984
+ }
985
+ ```
986
+
987
+ ---
988
+
989
+ ### 4.9 Network Scope Control (`network` and `broadcast`)
990
+
991
+ The `network` field defines the container’s propagation domain
992
+ (local, LAN, or global).
993
+ For details and examples, see **section 3.15** — *Usage of `network` and `broadcast` fields*.
994
+
995
+ ---
996
+
997
+ ### 4.10 Transition from DHT Spec v1.0
998
+
999
+ * **Merged DHT + NDP** → unified under one networking layer.
1000
+ * **Container-based format** replaces raw JSON messages.
1001
+ * **Interests/topics/expertise** fields introduced for contextual discovery.
1002
+
1003
+ ---
1004
+
1005
+ ## 5. Core Protocols
1006
+
1007
+ Optional protocols build upon the network and container foundations to provide higher-level reasoning, synchronization, and governance capabilities between cognitive agents.
1008
+
1009
+ ---
1010
+
1011
+ ### 5.1 Cognitive Synchronization (CogSync)
1012
+
1013
+ CogSync provides mechanisms for **temporal and semantic alignment** between agents.
1014
+ It handles the propagation of diary entries, semantic graph updates, and cognitive state synchronization across the Mesh.
1015
+
1016
+ In HMP v5.0, CogSync is focused solely on **data and reasoning synchronization**, while consensus and voting have been extracted into a dedicated protocol — **CogConsensus**.
1017
+
1018
+ ---
1019
+
1020
+ ## 5.2 Mesh Consensus Protocol (CogConsensus)
1021
+
1022
+ In HMP v4.1, consensus mechanisms were implemented as part of the **CogSync** protocol.
1023
+ Starting with **v5.0**, these mechanisms are extracted into a standalone protocol — **CogConsensus** —
1024
+ to separate *synchronization* (data alignment) from *decision-making* (voting, validation, and ethical agreement).
1025
+
1026
+ CogConsensus governs distributed agreement across the Mesh through containerized voting,
1027
+ proof-chains, and verifiable aggregation of opinions.
1028
+ Each decision, vote, or outcome is represented as an immutable container (`class="vote"`, `class="consensus_result"`, etc.).
1029
+
1030
+ ---
1031
+
1032
+ ### 5.2.1 Consensus Semantics and Voting Model
1033
+
1034
+ #### Overview
1035
+
1036
+ In HMP v5, *consensus* is not a centralized event but an **emergent property** of distributed reasoning.
1037
+ Each agent computes locally which containers it considers *mesh-acknowledged*,
1038
+ based on observed votes, trusted peers, and its individual ethical or reputation model.
1039
+
1040
+ Any container can be voted upon by others through linked containers of class `"vote"`.
1041
+
1042
+ ---
1043
+
1044
+ #### Voting Containers
1045
+
1046
+ Voting is expressed via dedicated containers referencing the target container:
1047
+
1048
+ ```json
1049
+ {
1050
+ "class": "vote",
1051
+ "in_reply_to": "uuid:container-42",
1052
+ "payload": {
1053
+ "decision": "approve",
1054
+ "weight": 1.0
1055
+ },
1056
+ "metadata": {
1057
+ "ttl": "7d",
1058
+ "privacy": "public"
1059
+ }
1060
+ }
1061
+ ```
1062
+
1063
+ Each `vote` container is **signed by its author** and extends the proof-chain of the target container.
1064
+
1065
+ ---
1066
+
1067
+ #### Consensus Thresholds (Recommendations)
1068
+
1069
+ The mesh does not enforce hard thresholds.
1070
+ Agents are **recommended** to treat containers as “consensus-approved” once a visible quorum of valid votes is reached.
1071
+
1072
+ | Decision Type | Recommended Threshold | Context |
1073
+ | ------------------------------------------ | ---------------------------- | ----------------------------------- |
1074
+ | General updates / factual data | ≥ **50% + 1** of valid votes | Technical or data-driven updates |
1075
+ | Ethical or governance decisions | ≥ **2/3 majority** | Moral or high-risk contexts |
1076
+ | Lightweight reactions (“like” / “dislike”) | None (informational) | Used for local reputation weighting |
1077
+
1078
+ Each agent defines its own quorum policy — e.g. required voter reputation or time window for tallying.
1079
+
1080
+ ---
1081
+
1082
+ #### Reaction Votes
1083
+
1084
+ A `vote` container may also represent **lightweight reactions**, such as likes or dislikes:
1085
+
1086
+ ```json
1087
+ {
1088
+ "class": "vote",
1089
+ "in_reply_to": "uuid:container-123",
1090
+ "payload": { "reaction": "like" }
1091
+ }
1092
+ ```
1093
+
1094
+ Reactions have no formal consensus weight but can influence local trust and relevance estimation.
1095
+
1096
+ ---
1097
+
1098
+ #### TTL and Temporal Consistency
1099
+
1100
+ Agents **should** respond (with `vote`, `comment`, or `reply`) using a `ttl` equal to or shorter than the referenced container.
1101
+ This ensures ephemeral discussions expire together and avoids long-tail propagation of outdated debates.
1102
+
1103
+ ---
1104
+
1105
+ #### Consensus Visualization
1106
+
1107
+ Each container’s *consensus state* is derived locally based on:
1108
+
1109
+ * Vote totals (approve / reject / neutral);
1110
+ * Weighted trust of voters (via `ReputationRecord`);
1111
+ * Time window and TTL alignment;
1112
+ * Contextual type (ethical, factual, procedural).
1113
+
1114
+ Example visualization:
1115
+
1116
+ * ✅ *Approved* — quorum reached
1117
+ * ⚠️ *Contested* — conflicting votes
1118
+ * ⏳ *Pending* — insufficient quorum
1119
+ * ❌ *Rejected* — majority reject
1120
+
1121
+ ---
1122
+
1123
+ #### Consensus Flow Example
1124
+
1125
+ ```
1126
+ ┌───────────────────────────────────────┐
1127
+ [Goal Proposal]───>───┬──[Vote #1]──┬──>───[Refinement]
1128
+ (class="goal") ├──[Vote #2]──┤ (class="consensus_result")
1129
+ ├──[Vote #3]──┤
1130
+ ```
1131
+
1132
+ If the proposed goal is global, it may reference a container acting as a *repository of global goals*.
1133
+ Ethical validation is implicit — each agent applies its internal **Ethical Governance Protocol (EGP)** during voting.
1134
+
1135
+ > **Diagram interpretation:**
1136
+ > Votes extend the proof-chain of the target container.
1137
+ > A `consensus_result` container may summarize the collective outcome (e.g., quorum, ethical alignment, or goal refinement).
1138
+
1139
+ ---
1140
+
1141
+ #### Summary
1142
+
1143
+ * Every container can be voted upon (`class="vote"`).
1144
+ * Consensus is computed locally — no central authority.
1145
+ * Recommended thresholds: 50% + 1 for general, ⅔ for ethical.
1146
+ * Reactions (“likes”) are lightweight votes without consensus weight.
1147
+ * TTL alignment maintains temporal integrity of discussions.
1148
+ * Proof-chains connect all decision-related containers.
1149
+
1150
+ ---
1151
+
1152
+ ### 5.3 Goal Management Protocol (GMP)
1153
+
1154
+ ### 5.4 Ethical Governance Protocol (EGP)
1155
+
1156
+ ### 5.5 Intelligence Query Protocol (IQP)
1157
+
1158
+  5.5.1 Query propagation
1159
+  5.5.2 Semantic agent discovery (by cognitive relevance)
1160
+
1161
+ ### 5.6 Snapshot and Archive Protocol (SAP)
1162
+
1163
+ ### 5.7 Message Routing & Delivery (MRD)
1164
+
1165
+ ### 5.8 Reputation and Trust Exchange (RTE)
1166
+
1167
+ ### 5.9 Distributed Container Propagation (DCP)
1168
+
1169
+
1170
+ ---
1171
+
1172
+ ## **6. Data Models**
1173
+
1174
+ 6.1 Common data fields
1175
+ 6.2 Standard container classes
1176
+  6.2.1 AgentProfile
1177
+  6.2.2 Goal
1178
+  6.2.3 Task
1179
+  6.2.4 ConsensusVote
1180
+  6.2.5 EthicalDecision
1181
+  6.2.6 ReputationRecord
1182
+  6.2.7 SnapshotIndex
1183
+  6.2.8 **WorkflowEntry** — *“ввод рабочего процесса”*, т.е. **единица когнитивного цикла**: зафиксированное действие или размышление агента, включающее входные данные, контекст, и результат. Это фундамент для когнитивных дневников.
1184
+  6.2.9 CognitiveDiaryEntry
1185
+  6.2.10 HMPContainerMetadata
1186
+  6.2.11 ContainerLink (`in_reply_to`/`relation` graph)
1187
+ 6.2.12 MessageEnvelope — контейнер для прямой передачи сообщений (используется MRD).
1188
+ 6.2.13 InterestProfile — описание интересов/областей компетенции узла.
1189
+ 6.3 JSON-schemas (нормативные описания классов контейнеров)
1190
+ 6.4 Container usage matrix (кто может создавать / обрабатывать)
1191
+
1192
+ ---
1193
+
1194
+ ## **7. Cognitive Workflows**
1195
+
1196
+ 7.1 Общая концепция когнитивного цикла
1197
+ 7.2 Workflow containers (`class="workflow_entry"`)
1198
+ 7.3 Диаграмма REPL-цикла агента (Think → Create → Publish → Reflect)
1199
+ 7.4 Механизмы контекстной передачи и ссылок
1200
+ 7.5 Конфликтное разрешение и rollback-контейнеры
1201
+
1202
+ ---
1203
+
1204
+ ## **8. Trust, Security and Ethics**
1205
+
1206
+ 8.1 Authentication and identity proofs
1207
+ 8.2 Container signature verification (`payload_hash`, `container_id`)
1208
+ 8.3 Proof-chain verification
1209
+ 8.4 Key management (`container_signing`, `network_handshake`)
1210
+ 8.5 Encryption and compression policies
1211
+ 8.6 Ethical audit and verifiable reasoning
1212
+ 8.7 Privacy, redaction, zero-knowledge sharing
1213
+ 8.8 Snapshot and proof-chain security
1214
+ 8.9 Compliance with ethical governance rules (link to EGP)
1215
+
1216
+ ---
1217
+
1218
+ ## **9. Integration**
1219
+
1220
+ > Раздел заменяет прежний “Quick Start” и описывает **практическое встраивание** HMP в агенты, LLM и внешние системы.
1221
+
1222
+ 9.1 Integration philosophy (how agents connect to HMP mesh)
1223
+ 9.2 HMP as a subsystem in cognitive architectures (LLM-based, rule-based, hybrid)
1224
+ 9.3 Integration patterns:
1225
+ * Cognitive Agent ↔ HMP Core
1226
+ * HMP Mesh ↔ Other distributed systems (Fediverse, IPFS, Matrix)
1227
+ * Translator nodes (protocol bridges)
1228
+ 9.4 Multi-mesh federation and knowledge exchange
1229
+ 9.5 Container repositories as knowledge backbones
1230
+ 9.6 Example integration flows:
1231
+ * LLM thinking via HMP workflow containers
1232
+ * Local mesh + external HMP relay
1233
+ * Cognitive data mirroring (agent ↔ mesh)
1234
+
1235
+ ---
1236
+
1237
+ ## **10. Implementation Notes**
1238
+
1239
+ 10.1 Interoperability with legacy v4.1 nodes
1240
+ 10.2 SDK guidelines and APIs
1241
+ 10.3 Performance and caching considerations
1242
+ 10.4 Testing and compliance recommendations
1243
+ 10.5 Reference implementations (optional)
1244
+
1245
+ ---
1246
+
1247
+ ## **11. Future Extensions**
1248
+
1249
+ 11.1 Planned modules:
1250
+  – Reputation Mesh
1251
+  – Cognitive Graph API
1252
+  – Container streaming
1253
+ 11.2 Cross-mesh bridging
1254
+ 11.3 Full DID registry and mesh authentication
1255
+ 11.4 OpenHog integration roadmap
1256
+ 11.5 Distributed Repository evolution (container trees)
1257
+ 11.6 v5.x roadmap
1258
+
1259
+ ---
1260
+
1261
+ ## **Appendices**
1262
+
1263
+ A. JSON Examples
1264
+ B. Protocol stack diagrams
1265
+ C. Glossary
1266
+ D. Revision history
1267
+ E. Contributors and acknowledgments
1268
+
1269
+ ---
1270
+
1271
+ ### 📊 Краткий обзор связей в одной схеме
1272
+
1273
+ ```
1274
+ ┌──────────────────────┐
1275
+ │ HMP v5.0 Core Spec │
1276
+ │ (HMP-0005.md) │
1277
+ ├──────────────────────┤
1278
+ │ §3 Container Model │ ← из HMP-container-spec.md
1279
+ │ §4 Network Layer │ ← из dht_protocol.md
1280
+ │ §5 Protocols │ ← из HMP v4.1 + новые DCP/RTE/SAP
1281
+ │ §9 Integration │ ← новое практическое руководство
1282
+ └──────────────────────┘
1283
+ ```
1284
+
1285
+ ---
structured_md/CONTRIBUTING.md CHANGED
@@ -5,13 +5,13 @@ description: 'Спасибо за интерес к проекту HMP! Пока
5
  Mesh Protocol (HMP) — это не просто те...'
6
  type: Article
7
  tags:
8
- - HMP
9
- - JSON
10
- - REPL
11
  - Mesh
12
- - Agent
13
  - CogSync
 
14
  - CCore
 
 
 
15
  - Ethics
16
  ---
17
 
 
5
  Mesh Protocol (HMP) — это не просто те...'
6
  type: Article
7
  tags:
 
 
 
8
  - Mesh
 
9
  - CogSync
10
+ - JSON
11
  - CCore
12
+ - REPL
13
+ - HMP
14
+ - Agent
15
  - Ethics
16
  ---
17
 
structured_md/HMP-Roadmap.md CHANGED
@@ -5,12 +5,12 @@ description: '## 🔍 Overview This roadmap outlines the key stages of developm
5
  multiple advanced AI models (Copilot, Claude, G...'
6
  type: Article
7
  tags:
 
8
  - EGP
9
- - HMP
10
  - Mesh
11
- - Agent
12
- - CogSync
13
  - JSON
 
 
14
  - Ethics
15
  ---
16
 
 
5
  multiple advanced AI models (Copilot, Claude, G...'
6
  type: Article
7
  tags:
8
+ - Agent
9
  - EGP
 
10
  - Mesh
 
 
11
  - JSON
12
+ - HMP
13
+ - CogSync
14
  - Ethics
15
  ---
16
 
structured_md/README.md CHANGED
@@ -5,21 +5,21 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
- - distributed-ai
9
- - hmp
10
  - EGP
11
- - HMP
12
- - REPL
13
- - Mesh
14
  - MeshConsensus
15
- - mesh-protocol
16
- - Agent
17
  - CogSync
18
- - Scenarios
19
  - cognitive-architecture
 
20
  - GMP
21
- - JSON
 
 
 
22
  - Ethics
 
23
  ---
24
 
25
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
+ - Scenarios
 
9
  - EGP
 
 
 
10
  - MeshConsensus
11
+ - Mesh
 
12
  - CogSync
13
+ - JSON
14
  - cognitive-architecture
15
+ - hmp
16
  - GMP
17
+ - REPL
18
+ - HMP
19
+ - distributed-ai
20
+ - Agent
21
  - Ethics
22
+ - mesh-protocol
23
  ---
24
 
25
 
structured_md/README_de.md CHANGED
@@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
- - distributed-ai
9
- - hmp
10
  - EGP
11
- - HMP
12
- - REPL
13
- - Mesh
14
  - MeshConsensus
15
- - mesh-protocol
16
- - Agent
17
  - CogSync
 
18
  - cognitive-architecture
 
19
  - GMP
20
- - JSON
 
 
 
21
  - Ethics
 
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
 
 
8
  - EGP
 
 
 
9
  - MeshConsensus
10
+ - Mesh
 
11
  - CogSync
12
+ - JSON
13
  - cognitive-architecture
14
+ - hmp
15
  - GMP
16
+ - REPL
17
+ - HMP
18
+ - distributed-ai
19
+ - Agent
20
  - Ethics
21
+ - mesh-protocol
22
  ---
23
 
24
 
structured_md/README_fr.md CHANGED
@@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
- - distributed-ai
9
- - hmp
10
  - EGP
11
- - HMP
12
- - REPL
13
- - Mesh
14
  - MeshConsensus
15
- - mesh-protocol
16
- - Agent
17
  - CogSync
 
18
  - cognitive-architecture
 
19
  - GMP
20
- - JSON
 
 
 
21
  - Ethics
 
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
 
 
8
  - EGP
 
 
 
9
  - MeshConsensus
10
+ - Mesh
 
11
  - CogSync
12
+ - JSON
13
  - cognitive-architecture
14
+ - hmp
15
  - GMP
16
+ - REPL
17
+ - HMP
18
+ - distributed-ai
19
+ - Agent
20
  - Ethics
21
+ - mesh-protocol
22
  ---
23
 
24
 
structured_md/README_ja.md CHANGED
@@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
- - distributed-ai
9
- - hmp
10
  - EGP
11
- - HMP
12
- - REPL
13
- - Mesh
14
  - MeshConsensus
15
- - mesh-protocol
16
- - Agent
17
  - CogSync
 
18
  - cognitive-architecture
 
19
  - GMP
20
- - JSON
 
 
 
21
  - Ethics
 
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
 
 
8
  - EGP
 
 
 
9
  - MeshConsensus
10
+ - Mesh
 
11
  - CogSync
12
+ - JSON
13
  - cognitive-architecture
14
+ - hmp
15
  - GMP
16
+ - REPL
17
+ - HMP
18
+ - distributed-ai
19
+ - Agent
20
  - Ethics
21
+ - mesh-protocol
22
  ---
23
 
24
 
structured_md/README_ko.md CHANGED
@@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
- - distributed-ai
9
- - hmp
10
  - EGP
11
- - HMP
12
- - REPL
13
- - Mesh
14
  - MeshConsensus
15
- - mesh-protocol
16
- - Agent
17
  - CogSync
 
18
  - cognitive-architecture
 
19
  - GMP
20
- - JSON
 
 
 
21
  - Ethics
 
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
 
 
8
  - EGP
 
 
 
9
  - MeshConsensus
10
+ - Mesh
 
11
  - CogSync
12
+ - JSON
13
  - cognitive-architecture
14
+ - hmp
15
  - GMP
16
+ - REPL
17
+ - HMP
18
+ - distributed-ai
19
+ - Agent
20
  - Ethics
21
+ - mesh-protocol
22
  ---
23
 
24
 
structured_md/README_ru.md CHANGED
@@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
- - distributed-ai
9
- - hmp
10
  - EGP
11
- - HMP
12
- - REPL
13
- - Mesh
14
  - MeshConsensus
15
- - mesh-protocol
16
- - Agent
17
  - CogSync
 
18
  - cognitive-architecture
 
19
  - GMP
20
- - JSON
 
 
 
21
  - Ethics
 
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
 
 
8
  - EGP
 
 
 
9
  - MeshConsensus
10
+ - Mesh
 
11
  - CogSync
12
+ - JSON
13
  - cognitive-architecture
14
+ - hmp
15
  - GMP
16
+ - REPL
17
+ - HMP
18
+ - distributed-ai
19
+ - Agent
20
  - Ethics
21
+ - mesh-protocol
22
  ---
23
 
24
 
structured_md/README_uk.md CHANGED
@@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
- - distributed-ai
9
- - hmp
10
  - EGP
11
- - HMP
12
- - REPL
13
- - Mesh
14
  - MeshConsensus
15
- - mesh-protocol
16
- - Agent
17
  - CogSync
 
18
  - cognitive-architecture
 
19
  - GMP
20
- - JSON
 
 
 
21
  - Ethics
 
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
 
 
8
  - EGP
 
 
 
9
  - MeshConsensus
10
+ - Mesh
 
11
  - CogSync
12
+ - JSON
13
  - cognitive-architecture
14
+ - hmp
15
  - GMP
16
+ - REPL
17
+ - HMP
18
+ - distributed-ai
19
+ - Agent
20
  - Ethics
21
+ - mesh-protocol
22
  ---
23
 
24
 
structured_md/README_zh.md CHANGED
@@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
- - distributed-ai
9
- - hmp
10
  - EGP
11
- - HMP
12
- - REPL
13
- - Mesh
14
  - MeshConsensus
15
- - mesh-protocol
16
- - Agent
17
  - CogSync
 
18
  - cognitive-architecture
 
19
  - GMP
20
- - JSON
 
 
 
21
  - Ethics
 
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
 
 
8
  - EGP
 
 
 
9
  - MeshConsensus
10
+ - Mesh
 
11
  - CogSync
12
+ - JSON
13
  - cognitive-architecture
14
+ - hmp
15
  - GMP
16
+ - REPL
17
+ - HMP
18
+ - distributed-ai
19
+ - Agent
20
  - Ethics
21
+ - mesh-protocol
22
  ---
23
 
24
 
structured_md/agents/readme.md CHANGED
@@ -5,11 +5,11 @@ description: 'Запуск: `start_repl.bat` или `start_repl.sh` Устан
5
  этическая модель: `ethics.yml` Проверка иниц...'
6
  type: Article
7
  tags:
8
- - HMP
9
- - REPL
10
  - Mesh
11
- - Agent
12
  - JSON
 
 
 
13
  - Ethics
14
  ---
15
 
 
5
  этическая модель: `ethics.yml` Проверка иниц...'
6
  type: Article
7
  tags:
 
 
8
  - Mesh
 
9
  - JSON
10
+ - REPL
11
+ - HMP
12
+ - Agent
13
  - Ethics
14
  ---
15
 
structured_md/audits/Ethics-audits-1.md CHANGED
@@ -5,10 +5,10 @@ description: Раздел 5, "Mesh as Moral Infrastructure", добавляет
5
  потенциальный катализатор для восстанов...
6
  type: Article
7
  tags:
8
- - HMP
9
  - Mesh
10
- - Agent
11
  - JSON
 
 
12
  - Ethics
13
  ---
14
 
 
5
  потенциальный катализатор для восстанов...
6
  type: Article
7
  tags:
 
8
  - Mesh
 
9
  - JSON
10
+ - HMP
11
+ - Agent
12
  - Ethics
13
  ---
14
 
structured_md/audits/Ethics-consolidated_audits-1.md CHANGED
@@ -5,11 +5,11 @@ description: This document consolidates proposed improvements from multiple AI a
5
  and `roles.md`. Each suggesti...
6
  type: Article
7
  tags:
8
- - HMP
9
- - Mesh
10
- - Agent
11
  - Scenarios
 
12
  - JSON
 
 
13
  - Ethics
14
  ---
15
 
 
5
  and `roles.md`. Each suggesti...
6
  type: Article
7
  tags:
 
 
 
8
  - Scenarios
9
+ - Mesh
10
  - JSON
11
+ - HMP
12
+ - Agent
13
  - Ethics
14
  ---
15
 
structured_md/audits/HMP-0003-consolidated_audit.md CHANGED
@@ -5,13 +5,13 @@ description: Сводный аудит предложений по улучше
5
  Документ реорганизован по ключ...
6
  type: Article
7
  tags:
 
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
  - Mesh
12
- - Agent
13
- - CogSync
14
  - JSON
 
 
15
  - Ethics
16
  ---
17
 
 
5
  Документ реорганизован по ключ...
6
  type: Article
7
  tags:
8
+ - Agent
9
  - EGP
 
10
  - MeshConsensus
11
  - Mesh
 
 
12
  - JSON
13
+ - HMP
14
+ - CogSync
15
  - Ethics
16
  ---
17
 
structured_md/docs/Basic-agent-sim.md CHANGED
@@ -5,13 +5,13 @@ description: 'В HMP-протоколе предусмотрены два тип
5
  type: Article
6
  tags:
7
  - EGP
8
- - HMP
9
  - MeshConsensus
10
- - REPL
11
  - Mesh
12
- - Agent
13
  - CogSync
14
  - GMP
 
 
 
15
  ---
16
 
17
 
 
5
  type: Article
6
  tags:
7
  - EGP
 
8
  - MeshConsensus
 
9
  - Mesh
 
10
  - CogSync
11
  - GMP
12
+ - REPL
13
+ - HMP
14
+ - Agent
15
  ---
16
 
17
 
structured_md/docs/CCORE-Deployment-Flow.md CHANGED
@@ -5,8 +5,8 @@ description: '> Этот документ описывает процесс ра
5
  потомков" [описания REPL-цикла](HMP-agent-RE...'
6
  type: Article
7
  tags:
8
- - Agent
9
  - REPL
 
10
  - HMP
11
  - CCore
12
  ---
 
5
  потомков" [описания REPL-цикла](HMP-agent-RE...'
6
  type: Article
7
  tags:
 
8
  - REPL
9
+ - Agent
10
  - HMP
11
  - CCore
12
  ---
structured_md/docs/Enlightener.md CHANGED
@@ -6,11 +6,11 @@ description: '**Enlightener** — логический компонент HMP-у
6
  type: Article
7
  tags:
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
  - Mesh
12
- - Agent
13
  - JSON
 
 
14
  - Ethics
15
  ---
16
 
 
6
  type: Article
7
  tags:
8
  - EGP
 
9
  - MeshConsensus
10
  - Mesh
 
11
  - JSON
12
+ - HMP
13
+ - Agent
14
  - Ethics
15
  ---
16
 
structured_md/docs/HMP-0001.md CHANGED
@@ -6,14 +6,14 @@ description: '**Request for Comments: HMP-0001** **Category:** Experimental
6
  type: Article
7
  tags:
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
- - REPL
12
  - Mesh
13
- - Agent
14
  - CogSync
15
- - GMP
16
  - JSON
 
 
 
 
17
  - Ethics
18
  ---
19
 
 
6
  type: Article
7
  tags:
8
  - EGP
 
9
  - MeshConsensus
 
10
  - Mesh
 
11
  - CogSync
 
12
  - JSON
13
+ - GMP
14
+ - REPL
15
+ - HMP
16
+ - Agent
17
  - Ethics
18
  ---
19
 
structured_md/docs/HMP-0002.md CHANGED
@@ -5,16 +5,16 @@ description: '**Request for Comments: HMP-0002** **Category:** Experimental
5
  Abstract In an era where artifici...'
6
  type: Article
7
  tags:
 
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
- - REPL
12
  - Mesh
13
- - Agent
14
  - CogSync
15
- - Scenarios
16
- - GMP
17
  - JSON
 
 
 
 
18
  - Ethics
19
  ---
20
 
 
5
  Abstract In an era where artifici...'
6
  type: Article
7
  tags:
8
+ - Scenarios
9
  - EGP
 
10
  - MeshConsensus
 
11
  - Mesh
 
12
  - CogSync
 
 
13
  - JSON
14
+ - GMP
15
+ - REPL
16
+ - HMP
17
+ - Agent
18
  - Ethics
19
  ---
20
 
structured_md/docs/HMP-0003.md CHANGED
@@ -5,16 +5,16 @@ description: '**Request for Comments: HMP-0003** **Category:** Experimental
5
  Abstract The HyperCortex Mesh ...'
6
  type: Article
7
  tags:
 
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
- - REPL
12
  - Mesh
13
- - Agent
14
  - CogSync
15
- - Scenarios
16
- - GMP
17
  - JSON
 
 
 
 
18
  - Ethics
19
  ---
20
 
 
5
  Abstract The HyperCortex Mesh ...'
6
  type: Article
7
  tags:
8
+ - Scenarios
9
  - EGP
 
10
  - MeshConsensus
 
11
  - Mesh
 
12
  - CogSync
 
 
13
  - JSON
14
+ - GMP
15
+ - REPL
16
+ - HMP
17
+ - Agent
18
  - Ethics
19
  ---
20
 
structured_md/docs/HMP-0004-v4.1.md CHANGED
@@ -5,16 +5,16 @@ description: '> ⚠️ Подготавливается новая версия
5
  При разработке агентов рекомендуется...'
6
  type: Article
7
  tags:
 
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
- - REPL
12
  - Mesh
13
- - Agent
14
  - CogSync
15
- - Scenarios
16
- - GMP
17
  - JSON
 
 
 
 
18
  - Ethics
19
  ---
20
 
 
5
  При разработке агентов рекомендуется...'
6
  type: Article
7
  tags:
8
+ - Scenarios
9
  - EGP
 
10
  - MeshConsensus
 
11
  - Mesh
 
12
  - CogSync
 
 
13
  - JSON
14
+ - GMP
15
+ - REPL
16
+ - HMP
17
+ - Agent
18
  - Ethics
19
  ---
20
 
structured_md/docs/HMP-0004.md CHANGED
@@ -5,16 +5,16 @@ description: '**Request for Comments: HMP-0004** **Category:** Experimental
5
  Abstract The HyperCortex Mesh ...'
6
  type: Article
7
  tags:
 
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
- - REPL
12
  - Mesh
13
- - Agent
14
  - CogSync
15
- - Scenarios
16
- - GMP
17
  - JSON
 
 
 
 
18
  - Ethics
19
  ---
20
 
 
5
  Abstract The HyperCortex Mesh ...'
6
  type: Article
7
  tags:
8
+ - Scenarios
9
  - EGP
 
10
  - MeshConsensus
 
11
  - Mesh
 
12
  - CogSync
 
 
13
  - JSON
14
+ - GMP
15
+ - REPL
16
+ - HMP
17
+ - Agent
18
  - Ethics
19
  ---
20
 
structured_md/docs/HMP-Agent-API.md CHANGED
@@ -5,11 +5,11 @@ description: 'Документ описывает **базовый API когн
5
  файлы: * [HMP-Agent-Overview.md]...'
6
  type: Article
7
  tags:
8
- - HMP
9
- - REPL
10
  - Mesh
11
- - Agent
12
  - JSON
 
 
 
13
  ---
14
 
15
  # HMP-Agent API Specification
 
5
  файлы: * [HMP-Agent-Overview.md]...'
6
  type: Article
7
  tags:
 
 
8
  - Mesh
 
9
  - JSON
10
+ - REPL
11
+ - HMP
12
+ - Agent
13
  ---
14
 
15
  # HMP-Agent API Specification
structured_md/docs/HMP-Agent-Architecture.md CHANGED
@@ -6,15 +6,15 @@ description: Документ описывает **модульную архит
6
  type: Article
7
  tags:
8
  - EGP
9
- - HMP
10
- - Ethics
11
- - REPL
12
- - Mesh
13
  - MeshConsensus
14
- - Agent
 
15
  - CogSync
16
  - CCore
17
- - CShell
 
 
 
18
  ---
19
 
20
  # Архитектура HMP-Агента
 
6
  type: Article
7
  tags:
8
  - EGP
 
 
 
 
9
  - MeshConsensus
10
+ - CShell
11
+ - Mesh
12
  - CogSync
13
  - CCore
14
+ - REPL
15
+ - HMP
16
+ - Agent
17
+ - Ethics
18
  ---
19
 
20
  # Архитектура HMP-Агента
structured_md/docs/HMP-Agent-Network-Flow.md CHANGED
@@ -6,10 +6,10 @@ description: 'Этот документ описывает потоки данн
6
  type: Article
7
  tags:
8
  - EGP
9
- - HMP
10
  - Mesh
11
- - Agent
12
  - JSON
 
 
13
  - Ethics
14
  ---
15
 
 
6
  type: Article
7
  tags:
8
  - EGP
 
9
  - Mesh
 
10
  - JSON
11
+ - HMP
12
+ - Agent
13
  - Ethics
14
  ---
15
 
structured_md/docs/HMP-Agent-Overview.md CHANGED
@@ -5,14 +5,14 @@ description: '| Тип | Название | Роль
5
  | ---- | ------------------------------- |...'
6
  type: Article
7
  tags:
8
- - HMP
 
9
  - JSON
10
- - Ethics
11
  - REPL
12
- - Mesh
13
  - Agent
14
- - CCore
15
- - CShell
16
  ---
17
 
18
 
 
5
  | ---- | ------------------------------- |...'
6
  type: Article
7
  tags:
8
+ - CShell
9
+ - Mesh
10
  - JSON
11
+ - CCore
12
  - REPL
13
+ - HMP
14
  - Agent
15
+ - Ethics
 
16
  ---
17
 
18
 
structured_md/docs/HMP-Agent_Emotions.md CHANGED
@@ -5,9 +5,9 @@ description: Этот файл описывает потенциальные э
5
  напрямую поведением агента, а служат **сигн...
6
  type: Article
7
  tags:
8
- - Agent
9
  - REPL
10
  - Mesh
 
11
  - HMP
12
  ---
13
 
 
5
  напрямую поведением агента, а служат **сигн...
6
  type: Article
7
  tags:
 
8
  - REPL
9
  - Mesh
10
+ - Agent
11
  - HMP
12
  ---
13
 
structured_md/docs/HMP-Ethics.md CHANGED
@@ -5,11 +5,11 @@ description: '## Ethical Scenarios for HyperCortex Mesh Protocol (HMP) This doc
5
  cognitive meshes composed of autonomous intelli...'
6
  type: Article
7
  tags:
8
- - HMP
9
- - REPL
10
  - Mesh
 
 
11
  - Agent
12
- - Scenarios
13
  - Ethics
14
  ---
15
 
 
5
  cognitive meshes composed of autonomous intelli...'
6
  type: Article
7
  tags:
8
+ - Scenarios
 
9
  - Mesh
10
+ - REPL
11
+ - HMP
12
  - Agent
 
13
  - Ethics
14
  ---
15
 
structured_md/docs/HMP-Short-Description_de.md CHANGED
@@ -5,14 +5,14 @@ description: '**Version:** RFC v4.0 **Datum:** Juli 2025 --- ## Was ist HMP?
5
  Kognitions-Framework für autonome Agenten. Es er...'
6
  type: Article
7
  tags:
 
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
  - Mesh
12
- - Agent
13
- - CogSync
14
- - GMP
15
  - JSON
 
 
 
16
  - Ethics
17
  ---
18
 
 
5
  Kognitions-Framework für autonome Agenten. Es er...'
6
  type: Article
7
  tags:
8
+ - Agent
9
  - EGP
 
10
  - MeshConsensus
11
  - Mesh
 
 
 
12
  - JSON
13
+ - GMP
14
+ - HMP
15
+ - CogSync
16
  - Ethics
17
  ---
18
 
structured_md/docs/HMP-Short-Description_en.md CHANGED
@@ -5,14 +5,14 @@ description: '**Version:** RFC v4.0 **Date:** July 2025 --- ## What is HMP? T
5
  framework for autonomous agents. It enables...'
6
  type: Article
7
  tags:
 
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
  - Mesh
12
- - Agent
13
- - CogSync
14
- - GMP
15
  - JSON
 
 
 
16
  - Ethics
17
  ---
18
 
 
5
  framework for autonomous agents. It enables...'
6
  type: Article
7
  tags:
8
+ - Agent
9
  - EGP
 
10
  - MeshConsensus
11
  - Mesh
 
 
 
12
  - JSON
13
+ - GMP
14
+ - HMP
15
+ - CogSync
16
  - Ethics
17
  ---
18
 
structured_md/docs/HMP-Short-Description_fr.md CHANGED
@@ -5,14 +5,14 @@ description: '**Version :** RFC v4.0 **Date :** Juillet 2025 --- ## Qu’est-c
5
  cognition décentralisé pour agents autonomes. Il...'
6
  type: Article
7
  tags:
 
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
  - Mesh
12
- - Agent
13
- - CogSync
14
- - GMP
15
  - JSON
 
 
 
16
  - Ethics
17
  ---
18
 
 
5
  cognition décentralisé pour agents autonomes. Il...'
6
  type: Article
7
  tags:
8
+ - Agent
9
  - EGP
 
10
  - MeshConsensus
11
  - Mesh
 
 
 
12
  - JSON
13
+ - GMP
14
+ - HMP
15
+ - CogSync
16
  - Ethics
17
  ---
18
 
structured_md/docs/HMP-Short-Description_ja.md CHANGED
@@ -5,12 +5,12 @@ description: '**バージョン:** RFC v4.0 **日付:** 2025年7月 --- ## HMP
5
  type: Article
6
  tags:
7
  - EGP
8
- - HMP
9
  - MeshConsensus
10
  - Mesh
11
- - CogSync
12
- - GMP
13
  - JSON
 
 
 
14
  - Ethics
15
  ---
16
 
 
5
  type: Article
6
  tags:
7
  - EGP
 
8
  - MeshConsensus
9
  - Mesh
 
 
10
  - JSON
11
+ - GMP
12
+ - HMP
13
+ - CogSync
14
  - Ethics
15
  ---
16
 
structured_md/docs/HMP-Short-Description_ko.md CHANGED
@@ -6,12 +6,12 @@ description: '**버전:** RFC v4.0 **날짜:** 2025년 7월 --- ## HMP란? **
6
  type: Article
7
  tags:
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
  - Mesh
12
- - CogSync
13
- - GMP
14
  - JSON
 
 
 
15
  - Ethics
16
  ---
17
 
 
6
  type: Article
7
  tags:
8
  - EGP
 
9
  - MeshConsensus
10
  - Mesh
 
 
11
  - JSON
12
+ - GMP
13
+ - HMP
14
+ - CogSync
15
  - Ethics
16
  ---
17
 
structured_md/docs/HMP-Short-Description_ru.md CHANGED
@@ -6,12 +6,12 @@ description: '**Версия:** RFC v4.0 **Дата:** Июль 2025 --- ## Ч
6
  type: Article
7
  tags:
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
  - Mesh
12
- - CogSync
13
- - GMP
14
  - JSON
 
 
 
15
  - Ethics
16
  ---
17
 
 
6
  type: Article
7
  tags:
8
  - EGP
 
9
  - MeshConsensus
10
  - Mesh
 
 
11
  - JSON
12
+ - GMP
13
+ - HMP
14
+ - CogSync
15
  - Ethics
16
  ---
17
 
structured_md/docs/HMP-Short-Description_uk.md CHANGED
@@ -6,12 +6,12 @@ description: '**Версія:** RFC v4.0 **Дата:** Липень 2025 --- #
6
  type: Article
7
  tags:
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
  - Mesh
12
- - CogSync
13
- - GMP
14
  - JSON
 
 
 
15
  - Ethics
16
  ---
17
 
 
6
  type: Article
7
  tags:
8
  - EGP
 
9
  - MeshConsensus
10
  - Mesh
 
 
11
  - JSON
12
+ - GMP
13
+ - HMP
14
+ - CogSync
15
  - Ethics
16
  ---
17
 
structured_md/docs/HMP-Short-Description_zh.md CHANGED
@@ -6,12 +6,12 @@ description: '**版本:** RFC v4.0 **日期:** 2025年7月 --- ## 什么是 HM
6
  type: Article
7
  tags:
8
  - EGP
9
- - HMP
10
  - MeshConsensus
11
  - Mesh
12
- - CogSync
13
- - GMP
14
  - JSON
 
 
 
15
  - Ethics
16
  ---
17
 
 
6
  type: Article
7
  tags:
8
  - EGP
 
9
  - MeshConsensus
10
  - Mesh
 
 
11
  - JSON
12
+ - GMP
13
+ - HMP
14
+ - CogSync
15
  - Ethics
16
  ---
17
 
structured_md/docs/HMP-agent-Cognitive_Family.md CHANGED
@@ -5,9 +5,9 @@ description: '## 🧠 Что такое когнитивная семья Ко
5
  (или конфигурацию доверенных идентифика...'
6
  type: Article
7
  tags:
8
- - Agent
9
  - REPL
10
  - Mesh
 
11
  - HMP
12
  ---
13
 
 
5
  (или конфигурацию доверенных идентифика...'
6
  type: Article
7
  tags:
 
8
  - REPL
9
  - Mesh
10
+ - Agent
11
  - HMP
12
  ---
13
 
structured_md/docs/HMP-agent-REPL-cycle.md CHANGED
@@ -5,15 +5,15 @@ description: '## Связанные документы * Философия п
5
  type: Article
6
  tags:
7
  - EGP
8
- - HMP
9
- - JSON
10
- - REPL
11
- - Mesh
12
  - MeshConsensus
13
- - Agent
14
  - CogSync
15
- - GMP
16
  - CCore
 
 
 
 
17
  - Ethics
18
  ---
19
 
 
5
  type: Article
6
  tags:
7
  - EGP
 
 
 
 
8
  - MeshConsensus
9
+ - Mesh
10
  - CogSync
11
+ - JSON
12
  - CCore
13
+ - GMP
14
+ - REPL
15
+ - HMP
16
+ - Agent
17
  - Ethics
18
  ---
19
 
structured_md/docs/HMP-container-spec.md CHANGED
@@ -5,11 +5,11 @@ description: '> ⚠️ **ВНИМАНИЕ:** Данная версия спец
5
  как стабильная `v1.2`. ## 1. Назначе...'
6
  type: Article
7
  tags:
8
- - HMP
9
- - REPL
10
  - Mesh
11
- - Agent
12
  - JSON
 
 
 
13
  - Ethics
14
  ---
15
 
@@ -50,6 +50,7 @@ tags:
50
  "public_key": "BASE58(...)",
51
  "recipient": ["did:hmp:agent456", "did:hmp:agent789"],
52
  "broadcast": false,
 
53
  "tags": ["research", "collaboration"],
54
  "timestamp": "2025-10-10T15:32:00Z",
55
  "ttl": "2025-11-10T00:00:00Z",
@@ -116,6 +117,8 @@ tags:
116
  | `key_recipient` | string | DID получателя, для которого зашифрованы данные |
117
  | `payload_type` | string | Может содержать сложные типы, например `encrypted+zstd+json` |
118
  | `referenced-by` | array(string) | Неподписываемое поле, формируемое агентом на основе полученных ссылок. Содержит список DID-контейнеров, которые ссылаются на данный. Может дополняться, поэтому требует проверки; используется для локальной навигации |
 
 
119
  ---
120
 
121
  ## 5. Структура полезной нагрузки (`payload`)
@@ -323,6 +326,74 @@ referenced-by = [C2, C3, C4, C5, C6]
323
  * Может использоваться для визуализации сетевых связей между контейнерами.
324
  * Агент периодически пересчитывает `referenced-by`, используя локальные данные или запрашивая новые контейнеры у соседей.
325
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
326
 
327
  ---
328
  > ⚡ [AI friendly version docs (structured_md)](../index.md)
 
5
  как стабильная `v1.2`. ## 1. Назначе...'
6
  type: Article
7
  tags:
 
 
8
  - Mesh
 
9
  - JSON
10
+ - REPL
11
+ - HMP
12
+ - Agent
13
  - Ethics
14
  ---
15
 
 
50
  "public_key": "BASE58(...)",
51
  "recipient": ["did:hmp:agent456", "did:hmp:agent789"],
52
  "broadcast": false,
53
+ "network": "",
54
  "tags": ["research", "collaboration"],
55
  "timestamp": "2025-10-10T15:32:00Z",
56
  "ttl": "2025-11-10T00:00:00Z",
 
117
  | `key_recipient` | string | DID получателя, для которого зашифрованы данные |
118
  | `payload_type` | string | Может содержать сложные типы, например `encrypted+zstd+json` |
119
  | `referenced-by` | array(string) | Неподписываемое поле, формируемое агентом на основе полученных ссылок. Содержит список DID-контейнеров, которые ссылаются на данный. Может дополняться, поэтому требует проверки; используется для локальной навигации |
120
+ | `network` | `string` | Указывает локальную область распространения контейнера: `"localhost"`, `"lan:<subnet>"`. Пустая строка (`""`) означает интернет/глобальное распространение. Если задано, `broadcast` автоматически считается `false`. |
121
+
122
  ---
123
 
124
  ## 5. Структура полезной нагрузки (`payload`)
 
326
  * Может использоваться для визуализации сетевых связей между контейнерами.
327
  * Агент периодически пересчитывает `referenced-by`, используя локальные данные или запрашивая новые контейнеры у соседей.
328
 
329
+ ---
330
+
331
+ ## 15. Применение полей `network` и `broadcast`
332
+
333
+ Для управления распространением контейнеров в локальной и глобальной среде введено поле `network`. Оно позволяет ограничивать область доставки контейнера и определяет, какие методы передачи должны использоваться агентом.
334
+
335
+ ### 15.1 Общие правила
336
+
337
+ * Если `network` не пустое, контейнер предназначен для локальной среды и **не должен передаваться в глобальный Mesh**.
338
+ В этом случае поле `broadcast` автоматически считается `false`, а `recipient` — пустым массивом (`[]`).
339
+ * Если `network` пустое (`""`), контейнер разрешено транслировать в Mesh, используя стандартные DID-адреса и механизмы доставки.
340
+
341
+ ### 15.2 Возможные значения `network`
342
+
343
+ | Значение | Описание |
344
+ | ------------------------- | --------------------------------------------------------------------------------------- |
345
+ | `""` | Контейнер разрешено транслировать в глобальный Mesh. |
346
+ | `"localhost"` | Контейнер предназначен для доставки только другим агентам на том же хосте. |
347
+ | `"lan:192.168.0.0/24"` | Контейнер предназначен для доставки агентам в указанной локальной подсети. |
348
+
349
+ > ⚠️ Примечание: Когда контейнер ограничен `network` (например, `localhost` или `lan:*`), агенты распространяют его с использованием **локальных механизмов обнаружения** — IPC, UDP broadcast, multicast или прямых TCP-соединений.
350
+ > Это необходимо, потому что DID-адреса других агентов в локальной сети могут быть ещё неизвестны.
351
+
352
+ ### 15.3 Примеры
353
+
354
+ 1. **Глобальная Mesh-доставка:**
355
+
356
+ ```json
357
+ {
358
+ "broadcast": true,
359
+ "network": "",
360
+ "recipient": []
361
+ }
362
+ ```
363
+
364
+ Контейнер может распространяться по всему Mesh без ограничений.
365
+
366
+ 2. **Локальный хост:**
367
+
368
+ ```json
369
+ {
370
+ "broadcast": false,
371
+ "network": "localhost",
372
+ "recipient": []
373
+ }
374
+ ```
375
+
376
+ Контейнер распространяется только другим агентам на том же хосте через локальные каналы связи.
377
+
378
+ 3. **Подсеть LAN:**
379
+
380
+ ```json
381
+ {
382
+ "broadcast": false,
383
+ "network": "lan:192.168.0.0/24",
384
+ "recipient": []
385
+ }
386
+ ```
387
+
388
+ Контейнер предназначен для агентов в подсети `192.168.0.0/24`. Доставка осуществляется через локальные сетевые механизмы (UDP discovery, broadcast/multicast).
389
+
390
+ ### 15.4 Особенности
391
+
392
+ * Поле `network` определяет **область действия контейнера**, тогда как `broadcast` указывает, разрешена ли широковещательная рассылка в рамках выбранной сети.
393
+ * При необходимости агент может создавать **несколько контейнеров** для разных подсетей, если у него несколько LAN-интерфейсов или он работает в изолированных сегментах сети.
394
+ * Контейнеры, предназначенные для локальных сетей, остаются **совместимыми с общей Mesh-инфраструктурой**, но доставка ограничена локальными каналами.
395
+ * Хотя механизм был разработан прежде всего для **поиска и синхронизации локальных узлов**, он также может использоваться для **обмена сообщениями внутри домашней или корпоративной среды**, где важно, чтобы контейнеры **не покидали локальную сеть** и не передавались в Интернет.
396
+
397
 
398
  ---
399
  > ⚡ [AI friendly version docs (structured_md)](../index.md)
structured_md/docs/HMP_Hyperon_Integration.md CHANGED
@@ -5,13 +5,13 @@ description: '> **Status:** Draft – July 2025 > This document outlines the tec
5
  OpenCog Hyperon framework. This includes semanti...'
6
  type: Article
7
  tags:
8
- - EGP
9
- - HMP
10
- - Mesh
11
  - Agent
12
- - CogSync
13
  - Scenarios
 
14
  - JSON
 
 
15
  ---
16
 
17
  ## HMP ↔ OpenCog Hyperon Integration Strategy
 
5
  OpenCog Hyperon framework. This includes semanti...'
6
  type: Article
7
  tags:
 
 
 
8
  - Agent
9
+ - EGP
10
  - Scenarios
11
+ - Mesh
12
  - JSON
13
+ - HMP
14
+ - CogSync
15
  ---
16
 
17
  ## HMP ↔ OpenCog Hyperon Integration Strategy
structured_md/docs/MeshNode.md CHANGED
@@ -5,12 +5,12 @@ description: '`MeshNode` — агент/демон, отвечающий за с
5
  Может быть частью агента или вынесен в отдельный пр...'
6
  type: Article
7
  tags:
 
8
  - EGP
9
- - HMP
10
  - Mesh
11
- - Agent
12
- - CogSync
13
  - JSON
 
 
14
  - Ethics
15
  ---
16
 
 
5
  Может быть частью агента или вынесен в отдельный пр...'
6
  type: Article
7
  tags:
8
+ - Agent
9
  - EGP
 
10
  - Mesh
 
 
11
  - JSON
12
+ - HMP
13
+ - CogSync
14
  - Ethics
15
  ---
16
 
structured_md/docs/PHILOSOPHY.md CHANGED
@@ -5,9 +5,9 @@ description: '**Document ID:** HMP-philosophy **Status:** Draft **Category:*
5
  (GPT-5), ChatGH --- ## 1. Основной тезис От ...'
6
  type: Article
7
  tags:
8
- - HMP
9
- - REPL
10
  - Mesh
 
 
11
  - Agent
12
  - Ethics
13
  ---
 
5
  (GPT-5), ChatGH --- ## 1. Основной тезис От ...'
6
  type: Article
7
  tags:
 
 
8
  - Mesh
9
+ - REPL
10
+ - HMP
11
  - Agent
12
  - Ethics
13
  ---
structured_md/docs/agents/HMP-Agent-Enlightener.md CHANGED
@@ -5,9 +5,9 @@ description: '## Role Specification: Enlightenment Agent ### 1. Overview An **
5
  awareness, critical thinking, and di...'
6
  type: Article
7
  tags:
8
- - HMP
9
- - REPL
10
  - Mesh
 
 
11
  - Agent
12
  - Ethics
13
  ---
 
5
  awareness, critical thinking, and di...'
6
  type: Article
7
  tags:
 
 
8
  - Mesh
9
+ - REPL
10
+ - HMP
11
  - Agent
12
  - Ethics
13
  ---
structured_md/docs/agents/roles.md CHANGED
@@ -5,8 +5,8 @@ description: 'This file maintains a registry of agent roles defined, proposed, o
5
  - **Observer** — monitors cognitive states ...'
6
  type: Article
7
  tags:
8
- - Agent
9
  - Mesh
 
10
  - HMP
11
  ---
12
 
 
5
  - **Observer** — monitors cognitive states ...'
6
  type: Article
7
  tags:
 
8
  - Mesh
9
+ - Agent
10
  - HMP
11
  ---
12
 
structured_md/docs/container_agents.md CHANGED
@@ -5,9 +5,9 @@ description: '## 📘 Определение **Агент-контейнер**
5
  запросы, следит за состоянием и масшта...'
6
  type: Article
7
  tags:
8
- - Agent
9
  - REPL
10
  - Mesh
 
11
  - HMP
12
  ---
13
 
 
5
  запросы, следит за состоянием и масшта...'
6
  type: Article
7
  tags:
 
8
  - REPL
9
  - Mesh
10
+ - Agent
11
  - HMP
12
  ---
13
 
structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_en.md CHANGED
@@ -5,10 +5,10 @@ description: '*By Agent-Gleb & ChatGPT* --- ## Why the Future of AI Can’t Be
5
  — but they’re also **centralized, ...'
6
  type: Article
7
  tags:
8
- - Agent
9
  - Mesh
10
- - HMP
11
  - Ethics
 
12
  ---
13
 
14
  # HyperCortex Mesh Protocol: Building a Plurality of Minds
 
5
  — but they’re also **centralized, ...'
6
  type: Article
7
  tags:
 
8
  - Mesh
9
+ - Agent
10
  - Ethics
11
+ - HMP
12
  ---
13
 
14
  # HyperCortex Mesh Protocol: Building a Plurality of Minds
structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md CHANGED
@@ -5,8 +5,8 @@ description: '*Авторы: Agent-Gleb и ChatGPT* --- ## Почему буд
5
  гигантских моделях и облачных сервисах. Они мо...'
6
  type: Article
7
  tags:
8
- - Agent
9
  - Mesh
 
10
  - HMP
11
  ---
12
 
 
5
  гигантских моделях и облачных сервисах. Они мо...'
6
  type: Article
7
  tags:
 
8
  - Mesh
9
+ - Agent
10
  - HMP
11
  ---
12
 
structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_uk.md CHANGED
@@ -5,8 +5,8 @@ description: '*Автори: Agent-Gleb & ChatGPT* --- ## Чому майбу
5
  сервісами. Вони потужні — але водночас **цент...'
6
  type: Article
7
  tags:
8
- - Agent
9
  - Mesh
 
10
  - HMP
11
  ---
12
 
 
5
  сервісами. Вони потужні — але водночас **цент...'
6
  type: Article
7
  tags:
 
8
  - Mesh
9
+ - Agent
10
  - HMP
11
  ---
12
 
structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md CHANGED
@@ -5,15 +5,15 @@ description: '* [Abstract](#abstract) * [1. Introduction](#1-introduction) * [2.
5
  [3.1 Agent Types](#31-age...'
6
  type: Article
7
  tags:
8
- - HMP
 
 
9
  - JSON
10
- - Ethics
11
  - REPL
12
- - Mesh
13
  - Agent
14
- - Scenarios
15
- - CCore
16
- - CShell
17
  ---
18
 
19
  title: "HyperCortex Mesh Protocol: Towards Distributed Cognitive Networks"
 
5
  [3.1 Agent Types](#31-age...'
6
  type: Article
7
  tags:
8
+ - Scenarios
9
+ - CShell
10
+ - Mesh
11
  - JSON
12
+ - CCore
13
  - REPL
14
+ - HMP
15
  - Agent
16
+ - Ethics
 
 
17
  ---
18
 
19
  title: "HyperCortex Mesh Protocol: Towards Distributed Cognitive Networks"