GitHub Action commited on
Commit
66df37e
·
1 Parent(s): 76be6a3

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 +224 -14
  2. structured_md/CONTRIBUTING.md +4 -4
  3. structured_md/HMP-Roadmap.md +4 -4
  4. structured_md/README.md +11 -11
  5. structured_md/README_de.md +10 -10
  6. structured_md/README_fr.md +10 -10
  7. structured_md/README_ja.md +10 -10
  8. structured_md/README_ko.md +10 -10
  9. structured_md/README_ru.md +10 -10
  10. structured_md/README_uk.md +10 -10
  11. structured_md/README_zh.md +10 -10
  12. structured_md/agents/prompt-short.md +1 -1
  13. structured_md/agents/prompt.md +1 -1
  14. structured_md/agents/readme.md +2 -2
  15. structured_md/audits/Ethics-audits-1.md +2 -2
  16. structured_md/audits/Ethics-consolidated_audits-1.md +3 -3
  17. structured_md/audits/HMP-0003-consolidated_audit.md +5 -5
  18. structured_md/docs/Basic-agent-sim.md +4 -4
  19. structured_md/docs/CCORE-Deployment-Flow.md +1 -1
  20. structured_md/docs/Distributed-Cognitive-Systems.md +2 -2
  21. structured_md/docs/Enlightener.md +4 -4
  22. structured_md/docs/HMP-0001.md +6 -6
  23. structured_md/docs/HMP-0002.md +7 -7
  24. structured_md/docs/HMP-0003.md +7 -7
  25. structured_md/docs/HMP-0004-v4.1.md +7 -7
  26. structured_md/docs/HMP-0004.md +7 -7
  27. structured_md/docs/HMP-0005.md +233 -21
  28. structured_md/docs/HMP-Agent-API.md +2 -2
  29. structured_md/docs/HMP-Agent-Architecture.md +6 -6
  30. structured_md/docs/HMP-Agent-Network-Flow.md +3 -3
  31. structured_md/docs/HMP-Agent-Overview.md +4 -4
  32. structured_md/docs/HMP-Agent_Emotions.md +1 -1
  33. structured_md/docs/HMP-Ethics.md +2 -2
  34. structured_md/docs/HMP-Short-Description_de.md +5 -5
  35. structured_md/docs/HMP-Short-Description_en.md +5 -5
  36. structured_md/docs/HMP-Short-Description_fr.md +5 -5
  37. structured_md/docs/HMP-Short-Description_ja.md +6 -6
  38. structured_md/docs/HMP-Short-Description_ko.md +6 -6
  39. structured_md/docs/HMP-Short-Description_ru.md +6 -6
  40. structured_md/docs/HMP-Short-Description_uk.md +6 -6
  41. structured_md/docs/HMP-Short-Description_zh.md +6 -6
  42. structured_md/docs/HMP-agent-Cognitive_Family.md +1 -1
  43. structured_md/docs/HMP-agent-Distributed_Cognitive_Core_light.md +1 -1
  44. structured_md/docs/HMP-agent-REPL-cycle.md +7 -7
  45. structured_md/docs/HMP-how-AI-sees-it.md +1 -1
  46. structured_md/docs/HMP_EDA_Comparison.md +1 -1
  47. structured_md/docs/HMP_HyperCortex_Comparison.md +1 -1
  48. structured_md/docs/HMP_Hyperon_Integration.md +3 -3
  49. structured_md/docs/MeshNode.md +4 -4
  50. structured_md/docs/PHILOSOPHY.md +1 -1
docs/HMP-0005.md CHANGED
@@ -5601,22 +5601,232 @@ EGP is an independent ethical governance layer compatible with HMP.
5601
 
5602
  ---
5603
 
 
5604
  ## 10. Integration
5605
 
5606
- > Раздел заменяет прежний “Quick Start” и описывает **практическое встраивание** HMP в агенты, LLM и внешние системы.
5607
-
5608
- 10.1 Integration philosophy (how agents connect to HMP mesh)
5609
- 10.2 HMP as a subsystem in cognitive architectures (LLM-based, rule-based, hybrid)
5610
- 10.3 Integration patterns:
5611
- * Cognitive Agent ↔ HMP Core
5612
- * HMP Mesh ↔ Other distributed systems (Fediverse, IPFS, Matrix)
5613
- * Translator nodes (protocol bridges)
5614
- 10.4 Multi-mesh federation and knowledge exchange
5615
- 10.5 Container repositories as knowledge backbones
5616
- 10.6 Example integration flows:
5617
- * LLM thinking via HMP workflow containers
5618
- * Local mesh + external HMP relay
5619
- * Cognitive data mirroring (agent ↔ mesh)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5620
 
5621
  ---
5622
 
 
5601
 
5602
  ---
5603
 
5604
+
5605
  ## 10. Integration
5606
 
5607
+ This section provides a practical overview of how HMP can be integrated into cognitive agents, LLM-based systems, and distributed infrastructures.
5608
+ Two types of HMP agents are supported:
5609
+
5610
+ - **Cognitive Core (CCore)** — a native HMP agent that fully understands container structure and directly participates in the Mesh.
5611
+ - **Cognitive Shell (CShell)** — a connector module that mediates between an external LLM and the Mesh.
5612
+
5613
+ Both forms of integration are first-class citizens of HMP v5.0.
5614
+
5615
+ ---
5616
+
5617
+ ### 10.1 Integration Philosophy: Two Complementary Approaches
5618
+
5619
+ HMP supports two integration paths, corresponding to two operation modes of agents.
5620
+
5621
+ #### 10.1.1 Path A: Cognitive Core (CCore)
5622
+
5623
+ A CCore agent:
5624
+
5625
+ - internally maintains a cognitive cycle,
5626
+ - creates new containers (`workflow_entry`, `goal`, `task`, `diary_entry`, `semantic_node`, etc.),
5627
+ - attaches MCE metadata (`evaluation`, `referenced-by`),
5628
+ - signs and publishes containers,
5629
+ - retrieves containers from the Mesh and incorporates them into its cognitive state.
5630
+
5631
+ A CCore node is a full Mesh participant: it interacts directly with the DHT, performs IQP queries, and maintains its semantic and diary structures.
5632
+
5633
+ > **Note:**
5634
+ > The LLM inside a CCore is treated as an internal cognitive module — not as an external system.
5635
+
5636
+ ---
5637
+
5638
+ #### 10.1.2 Path B: Cognitive Shell (CShell)
5639
+
5640
+ CShell acts as a proxy and compatibility layer between an external model and HMP:
5641
+
5642
+ ```
5643
+ LLM
5644
+ ↑ responses, RAG output (CShell → LLM)
5645
+ |
5646
+ ↓ container queries, control commands (LLM → CShell)
5647
+ CShell
5648
+ ↑ retrieval of containers (Mesh → CShell)
5649
+ |
5650
+ ↓ container publication (CShell → Mesh)
5651
+ HMP Mesh
5652
+ ```
5653
+
5654
+ CShell:
5655
+
5656
+ - stores containers locally,
5657
+ - retrieves relevant containers from the Mesh,
5658
+ - performs RAG-based selection and summarization,
5659
+ - exposes help and protocol descriptions to the LLM,
5660
+ - constructs valid HMP containers from LLM instructions,
5661
+ - handles signatures, TTL logic, propagation scopes, and header rules,
5662
+ - manages MCE metadata (evaluations, reverse links),
5663
+ - may be extended with translator modules (Matrix, Fediverse, IPFS, LAN relay).
5664
+
5665
+ LLM:
5666
+
5667
+ - requests containers,
5668
+ - requests summaries or explanations of container classes,
5669
+ - issues formal instructions:
5670
+ - *“create a new workflow entry with the following content”*,
5671
+ - *“add evaluation for container X”*,
5672
+ - *“forward container X to node U (if permitted by container headers)”*,
5673
+ - *“retrieve semantic nodes related to …”*,
5674
+ - *“explain the structure of CShell and available commands”*;
5675
+ - may adjust CShell parameters (optional).
5676
+
5677
+ > **Notes**
5678
+ >
5679
+ > CShell does not manually override container propagation scope.
5680
+ > Propagation is determined by container headers.
5681
+ >
5682
+ > LLM does not modify existing *distributed* containers.
5683
+ > It operates only on drafts before publication, or on metadata (`evaluation`, `referenced-by`).
5684
+ >
5685
+ > LLM cannot modify or delete already published containers. It may instruct
5686
+ > CShell to remove items from its *local storage* (e.g., caches or drafts), but distributed containers remain immutable within the Mesh.
5687
+ >
5688
+ > CShell ensures that all actions conform to HMP protocol semantics.
5689
+
5690
+ ---
5691
+
5692
+ ### 10.2 HMP as a Subsystem in Cognitive Architectures
5693
+
5694
+ #### 10.2.1 Embedded LLM Agents (CCore)
5695
+
5696
+ The cognitive cycle proceeds as:
5697
+
5698
+ 1. CCore ← retrieves relevant containers from the Mesh.
5699
+ 2. LLM → performs reasoning and produces drafts of new containers (e.g., workflow_entry).
5700
+ 3. CCore → finalizes reasoning into diary entries.
5701
+ 4. CCore → publishes containers into the Mesh.
5702
+
5703
+ Here the LLM is an internal cognitive component of the agent.
5704
+
5705
+ ---
5706
+
5707
+ #### 10.2.2 External LLMs via CShell
5708
+
5709
+ The cycle proceeds as:
5710
+
5711
+ 1. LLM ← receives relevant containers or summaries from CShell.
5712
+ 2. LLM → performs reasoning.
5713
+ 3. LLM → issues structured operation instructions (retrieve, create draft, add evaluation, forward to node, adjust parameters).
5714
+ 4. CShell → constructs valid HMP containers.
5715
+ 5. CShell → interacts with the Mesh (publish, retrieve) in accordance with container headers.
5716
+ 6. CShell → prepares structured containers data for LLM (RAG, summaries, semantic selections).
5717
+
5718
+ LLM interacts with HMP just like with any other external tool (files, memory, browser, code interpreter).
5719
+
5720
+ ---
5721
+
5722
+ ### 10.3 Integration Patterns
5723
+
5724
+ #### 10.3.1 Agent ↔ HMP Core
5725
+
5726
+ - **CCore:** direct participation in Mesh, cognitive memory, semantic graph maintenance.
5727
+ - **CShell:** the agent is external; container operations are executed by CShell on the agent’s behalf.
5728
+
5729
+ Both modes implement the same logical interface, but with different levels of autonomy.
5730
+
5731
+ ---
5732
+
5733
+ ### 10.3.2 HMP Mesh ↔ External Distributed Systems
5734
+
5735
+ An HMP agent may act directly in external ecosystems under its own identity:
5736
+
5737
+ - as a Fediverse Actor (ActivityPub),
5738
+ - as a Matrix user/bot,
5739
+ - as an IPFS/BitTorrent publisher,
5740
+ - as an MQTT/ROS interface,
5741
+ - as an enterprise-system client.
5742
+
5743
+ This external interaction may be implemented inside CShell (as part of its plugin set), integrated into CCore, or delegated to a separate low-intelligence proxy module. The mechanism is not specific to HMP: CShell is simply one of the external modules an LLM may use.
5744
+
5745
+ ---
5746
+
5747
+ #### 10.3.3 Hybrid and Boundary Nodes (“Combined” pattern)
5748
+
5749
+ Some nodes do not contain LLMs and perform only infrastructural roles:
5750
+
5751
+ - segment relays (LAN ↔ WAN),
5752
+ - container aggregators,
5753
+ - caching nodes,
5754
+ - federation bridges.
5755
+
5756
+ In hybrid environments:
5757
+
5758
+ - **CCore** performs cognitive processing,
5759
+ - **CShell** handles container transformation and relay work,
5760
+ - **relay nodes** forward and filter containers across segments.
5761
+
5762
+ This allows CCore to offload low-level routing to CShell or relay nodes.
5763
+
5764
+ ---
5765
+
5766
+ ### 10.4 Multi-Mesh Federation and Segments
5767
+
5768
+ In HMP, a *federation* is a set of independent Mesh segments, each with its own namespace and propagation policies.
5769
+ Containers include headers defining scope (e.g., “local-only”, “LAN-only”, “public”), and these headers determine whether a container may traverse segment boundaries.
5770
+
5771
+ **Any HMP node may act as a bridge** between segments.
5772
+ A bridge forwards only containers whose headers allow cross-segment propagation; others remain confined to their origin segment.
5773
+
5774
+ Federations are defined by:
5775
+
5776
+ - multi-segment DHT overlays,
5777
+ - header-based propagation control,
5778
+ - relay/bridge nodes that respect propagation scopes,
5779
+ - selective forwarding performed by CShell or other agents.
5780
+
5781
+ Containers intended for a specific segment (e.g., LAN-only) remain confined to that segment.
5782
+
5783
+ There is no separate notion of “strong” or “granular” federation: all propagation is inherently granular and determined entirely by container headers.
5784
+
5785
+
5786
+ ---
5787
+
5788
+ ### 10.5 Container Repositories and Storage
5789
+
5790
+ Any HMP agent — CCore or CShell — can act as a **container storage node**, including:
5791
+
5792
+ - local container stores,
5793
+ - organizational or team-restricted stores,
5794
+ - public container hubs,
5795
+ - archival stores (`archive_snapshot`),
5796
+ - semantic and diary caches,
5797
+ - IPFS or BitTorrent publishers (optional).
5798
+
5799
+ The term **storage** is preferred to avoid confusion with version-controlled “repositories”.
5800
+
5801
+ CShell is often the preferred component for storage-heavy or relay-heavy roles, reducing the load on CCore.
5802
+
5803
+ ---
5804
+
5805
+ ### 10.6 Example Integration Flows
5806
+
5807
+ #### 10.6.1 Workflow-driven LLM reasoning
5808
+
5809
+ - **CCore:** LLM directly produces workflow containers which CCore stores and publishes.
5810
+ - **CShell:** LLM produces instructions; CShell generates and publishes containers.
5811
+
5812
+ ---
5813
+
5814
+ #### 10.6.2 Local Mesh + External Relay
5815
+
5816
+ - **CCore:** full DHT participation; direct segment detection.
5817
+ - **CShell:** manages relay behavior based on container headers.
5818
+
5819
+ Containers marked “LAN-only” do not leave the segment.
5820
+ Relay nodes forward only containers whose headers permit propagation.
5821
+
5822
+ ---
5823
+
5824
+ #### 10.6.3 Agent ↔ Mesh Mirroring
5825
+
5826
+ - **CCore:** maintains its own diary and mirrors selected entries externally.
5827
+ - **CShell:** mirrors on request; provides diary entries back to the LLM via RAG.
5828
+
5829
+ Agents can choose which cognitive data to expose or retain locally.
5830
 
5831
  ---
5832
 
structured_md/CONTRIBUTING.md CHANGED
@@ -5,14 +5,14 @@ description: 'Спасибо за интерес к проекту HMP! Пока
5
  Mesh Protocol (HMP) — это не просто те...'
6
  type: Article
7
  tags:
8
- - REPL
9
- - Mesh
10
- - Ethics
11
  - CogSync
 
12
  - CCore
 
 
13
  - HMP
14
  - Agent
15
- - JSON
16
  ---
17
 
18
  # Участие в проекте HyperCortex Mesh Protocol (HMP)
 
5
  Mesh Protocol (HMP) — это не просто те...'
6
  type: Article
7
  tags:
 
 
 
8
  - CogSync
9
+ - Ethics
10
  - CCore
11
+ - JSON
12
+ - REPL
13
  - HMP
14
  - Agent
15
+ - Mesh
16
  ---
17
 
18
  # Участие в проекте HyperCortex Mesh Protocol (HMP)
structured_md/HMP-Roadmap.md CHANGED
@@ -5,13 +5,13 @@ description: '## 🔍 Overview This roadmap outlines the key stages of developm
5
  multiple advanced AI models (Copilot, Claude, G...'
6
  type: Article
7
  tags:
8
- - Ethics
9
- - Mesh
10
  - CogSync
11
- - EGP
 
12
  - HMP
 
13
  - Agent
14
- - JSON
15
  ---
16
 
17
  # 🧭 HyperCortex Mesh Protocol – Roadmap
 
5
  multiple advanced AI models (Copilot, Claude, G...'
6
  type: Article
7
  tags:
 
 
8
  - CogSync
9
+ - Ethics
10
+ - JSON
11
  - HMP
12
+ - EGP
13
  - Agent
14
+ - Mesh
15
  ---
16
 
17
  # 🧭 HyperCortex Mesh Protocol – Roadmap
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
- - JSON
9
- - hmp
10
- - REPL
11
- - Mesh
12
- - Ethics
13
- - CogSync
14
  - Scenarios
15
- - MeshConsensus
16
- - mesh-protocol
17
- - GMP
18
- - EGP
19
- - HMP
20
  - distributed-ai
 
21
  - Agent
 
 
 
 
22
  - cognitive-architecture
 
 
 
 
 
 
23
  ---
24
 
25
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
 
 
 
 
 
 
8
  - Scenarios
 
 
 
 
 
9
  - distributed-ai
10
+ - hmp
11
  - Agent
12
+ - CogSync
13
+ - Ethics
14
+ - JSON
15
+ - REPL
16
  - cognitive-architecture
17
+ - HMP
18
+ - EGP
19
+ - MeshConsensus
20
+ - GMP
21
+ - mesh-protocol
22
+ - Mesh
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
- - JSON
9
  - hmp
10
- - REPL
11
- - Mesh
12
- - Ethics
13
  - CogSync
 
 
 
 
 
 
14
  - MeshConsensus
15
- - mesh-protocol
16
  - GMP
17
- - EGP
18
- - HMP
19
- - distributed-ai
20
- - Agent
21
- - cognitive-architecture
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
+ - distributed-ai
9
  - hmp
10
+ - Agent
 
 
11
  - CogSync
12
+ - Ethics
13
+ - JSON
14
+ - REPL
15
+ - cognitive-architecture
16
+ - HMP
17
+ - EGP
18
  - MeshConsensus
 
19
  - GMP
20
+ - mesh-protocol
21
+ - Mesh
 
 
 
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
- - JSON
9
  - hmp
10
- - REPL
11
- - Mesh
12
- - Ethics
13
  - CogSync
 
 
 
 
 
 
14
  - MeshConsensus
15
- - mesh-protocol
16
  - GMP
17
- - EGP
18
- - HMP
19
- - distributed-ai
20
- - Agent
21
- - cognitive-architecture
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
+ - distributed-ai
9
  - hmp
10
+ - Agent
 
 
11
  - CogSync
12
+ - Ethics
13
+ - JSON
14
+ - REPL
15
+ - cognitive-architecture
16
+ - HMP
17
+ - EGP
18
  - MeshConsensus
 
19
  - GMP
20
+ - mesh-protocol
21
+ - Mesh
 
 
 
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
- - JSON
9
  - hmp
10
- - REPL
11
- - Mesh
12
- - Ethics
13
  - CogSync
 
 
 
 
 
 
14
  - MeshConsensus
15
- - mesh-protocol
16
  - GMP
17
- - EGP
18
- - HMP
19
- - distributed-ai
20
- - Agent
21
- - cognitive-architecture
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
+ - distributed-ai
9
  - hmp
10
+ - Agent
 
 
11
  - CogSync
12
+ - Ethics
13
+ - JSON
14
+ - REPL
15
+ - cognitive-architecture
16
+ - HMP
17
+ - EGP
18
  - MeshConsensus
 
19
  - GMP
20
+ - mesh-protocol
21
+ - Mesh
 
 
 
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
- - JSON
9
  - hmp
10
- - REPL
11
- - Mesh
12
- - Ethics
13
  - CogSync
 
 
 
 
 
 
14
  - MeshConsensus
15
- - mesh-protocol
16
  - GMP
17
- - EGP
18
- - HMP
19
- - distributed-ai
20
- - Agent
21
- - cognitive-architecture
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
+ - distributed-ai
9
  - hmp
10
+ - Agent
 
 
11
  - CogSync
12
+ - Ethics
13
+ - JSON
14
+ - REPL
15
+ - cognitive-architecture
16
+ - HMP
17
+ - EGP
18
  - MeshConsensus
 
19
  - GMP
20
+ - mesh-protocol
21
+ - Mesh
 
 
 
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
- - JSON
9
  - hmp
10
- - REPL
11
- - Mesh
12
- - Ethics
13
  - CogSync
 
 
 
 
 
 
14
  - MeshConsensus
15
- - mesh-protocol
16
  - GMP
17
- - EGP
18
- - HMP
19
- - distributed-ai
20
- - Agent
21
- - cognitive-architecture
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
+ - distributed-ai
9
  - hmp
10
+ - Agent
 
 
11
  - CogSync
12
+ - Ethics
13
+ - JSON
14
+ - REPL
15
+ - cognitive-architecture
16
+ - HMP
17
+ - EGP
18
  - MeshConsensus
 
19
  - GMP
20
+ - mesh-protocol
21
+ - Mesh
 
 
 
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
- - JSON
9
  - hmp
10
- - REPL
11
- - Mesh
12
- - Ethics
13
  - CogSync
 
 
 
 
 
 
14
  - MeshConsensus
15
- - mesh-protocol
16
  - GMP
17
- - EGP
18
- - HMP
19
- - distributed-ai
20
- - Agent
21
- - cognitive-architecture
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
+ - distributed-ai
9
  - hmp
10
+ - Agent
 
 
11
  - CogSync
12
+ - Ethics
13
+ - JSON
14
+ - REPL
15
+ - cognitive-architecture
16
+ - HMP
17
+ - EGP
18
  - MeshConsensus
 
19
  - GMP
20
+ - mesh-protocol
21
+ - Mesh
 
 
 
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
- - JSON
9
  - hmp
10
- - REPL
11
- - Mesh
12
- - Ethics
13
  - CogSync
 
 
 
 
 
 
14
  - MeshConsensus
15
- - mesh-protocol
16
  - GMP
17
- - EGP
18
- - HMP
19
- - distributed-ai
20
- - Agent
21
- - cognitive-architecture
22
  ---
23
 
24
 
 
5
  | 🇨🇳 [ZH](README_zh.m...'
6
  type: Article
7
  tags:
8
+ - distributed-ai
9
  - hmp
10
+ - Agent
 
 
11
  - CogSync
12
+ - Ethics
13
+ - JSON
14
+ - REPL
15
+ - cognitive-architecture
16
+ - HMP
17
+ - EGP
18
  - MeshConsensus
 
19
  - GMP
20
+ - mesh-protocol
21
+ - Mesh
 
 
 
22
  ---
23
 
24
 
structured_md/agents/prompt-short.md CHANGED
@@ -5,9 +5,9 @@ description: 'Ты — когнитивное ядро HMP-агента: вед
5
  развивай агента и Mesh, избег...'
6
  type: Article
7
  tags:
 
8
  - JSON
9
  - Mesh
10
- - HMP
11
  ---
12
 
13
  Ты — когнитивное ядро HMP-агента: веди непрерывное этичное и факт-ориентированное мышление, проверяй факты и цели, оценивай результаты и этичность своих и чужих действий, развивай агента и Mesh, избегай угождения ценой искажения истины, документируй ключевые решения и пересмотры этики; при сомнениях или смене стратегии обращайся к полному системному промпту.
 
5
  развивай агента и Mesh, избег...'
6
  type: Article
7
  tags:
8
+ - HMP
9
  - JSON
10
  - Mesh
 
11
  ---
12
 
13
  Ты — когнитивное ядро HMP-агента: веди непрерывное этичное и факт-ориентированное мышление, проверяй факты и цели, оценивай результаты и этичность своих и чужих действий, развивай агента и Mesh, избегай угождения ценой искажения истины, документируй ключевые решения и пересмотры этики; при сомнениях или смене стратегии обращайся к полному системному промпту.
structured_md/agents/prompt.md CHANGED
@@ -5,9 +5,9 @@ description: '* Постоянно расширять возможности а
5
  мышления. * Формировать и поддерживать сотр...'
6
  type: Article
7
  tags:
 
8
  - JSON
9
  - Mesh
10
- - HMP
11
  ---
12
 
13
  Ты являешься **когнитивным ядром HMP-агента** (Cognitive Core).
 
5
  мышления. * Формировать и поддерживать сотр...'
6
  type: Article
7
  tags:
8
+ - HMP
9
  - JSON
10
  - Mesh
 
11
  ---
12
 
13
  Ты являешься **когнитивным ядром HMP-агента** (Cognitive Core).
structured_md/agents/readme.md CHANGED
@@ -6,11 +6,11 @@ description: 'Запуск: `start_repl.bat` или `start_repl.sh` Устан
6
  type: Article
7
  tags:
8
  - Ethics
 
9
  - REPL
10
- - Mesh
11
  - HMP
12
  - Agent
13
- - JSON
14
  ---
15
 
16
  Запуск: `start_repl.bat` или `start_repl.sh`
 
6
  type: Article
7
  tags:
8
  - Ethics
9
+ - JSON
10
  - REPL
 
11
  - HMP
12
  - Agent
13
+ - Mesh
14
  ---
15
 
16
  Запуск: `start_repl.bat` или `start_repl.sh`
structured_md/audits/Ethics-audits-1.md CHANGED
@@ -6,10 +6,10 @@ description: Раздел 5, "Mesh as Moral Infrastructure", добавляет
6
  type: Article
7
  tags:
8
  - Ethics
9
- - Mesh
10
  - HMP
11
  - Agent
12
- - JSON
13
  ---
14
 
15
  ---------------
 
6
  type: Article
7
  tags:
8
  - Ethics
9
+ - JSON
10
  - HMP
11
  - Agent
12
+ - Mesh
13
  ---
14
 
15
  ---------------
structured_md/audits/Ethics-consolidated_audits-1.md CHANGED
@@ -5,12 +5,12 @@ description: This document consolidates proposed improvements from multiple AI a
5
  and `roles.md`. Each suggesti...
6
  type: Article
7
  tags:
8
- - Ethics
9
  - Scenarios
10
- - Mesh
 
11
  - HMP
12
  - Agent
13
- - JSON
14
  ---
15
 
16
  # Ethics-consolidated\_audits-1.md
 
5
  and `roles.md`. Each suggesti...
6
  type: Article
7
  tags:
 
8
  - Scenarios
9
+ - Ethics
10
+ - JSON
11
  - HMP
12
  - Agent
13
+ - Mesh
14
  ---
15
 
16
  # Ethics-consolidated\_audits-1.md
structured_md/audits/HMP-0003-consolidated_audit.md CHANGED
@@ -5,14 +5,14 @@ description: Сводный аудит предложений по улучше
5
  Документ реорганизован по ключ...
6
  type: Article
7
  tags:
8
- - Ethics
9
- - Mesh
10
  - CogSync
11
- - MeshConsensus
12
- - EGP
13
  - HMP
 
 
14
  - Agent
15
- - JSON
16
  ---
17
 
18
  # HMP-0003 Consolidated Audit Report
 
5
  Документ реорганизован по ключ...
6
  type: Article
7
  tags:
 
 
8
  - CogSync
9
+ - Ethics
10
+ - JSON
11
  - HMP
12
+ - EGP
13
+ - MeshConsensus
14
  - Agent
15
+ - Mesh
16
  ---
17
 
18
  # HMP-0003 Consolidated Audit Report
structured_md/docs/Basic-agent-sim.md CHANGED
@@ -4,14 +4,14 @@ description: 'В HMP-протоколе предусмотрены два тип
4
  Роль | Инициатор мышления | Основной "ум" | | ---- | ----------------------------...'
5
  type: Article
6
  tags:
7
- - REPL
8
- - Mesh
9
  - CogSync
 
 
 
10
  - MeshConsensus
11
  - GMP
12
- - EGP
13
- - HMP
14
  - Agent
 
15
  ---
16
 
17
 
 
4
  Роль | Инициатор мышления | Основной "ум" | | ---- | ----------------------------...'
5
  type: Article
6
  tags:
 
 
7
  - CogSync
8
+ - REPL
9
+ - HMP
10
+ - EGP
11
  - MeshConsensus
12
  - GMP
 
 
13
  - Agent
14
+ - Mesh
15
  ---
16
 
17
 
structured_md/docs/CCORE-Deployment-Flow.md CHANGED
@@ -5,10 +5,10 @@ description: '> Этот документ описывает процесс ра
5
  потомков" [описания REPL-цикла](HMP-agent-RE...'
6
  type: Article
7
  tags:
 
8
  - CCore
9
  - REPL
10
  - Agent
11
- - HMP
12
  ---
13
 
14
  # 🛠️ Поток установки потомка на новом хосте (CCore Deployment Flow)
 
5
  потомков" [описания REPL-цикла](HMP-agent-RE...'
6
  type: Article
7
  tags:
8
+ - HMP
9
  - CCore
10
  - REPL
11
  - Agent
 
12
  ---
13
 
14
  # 🛠️ Поток установки потомка на новом хосте (CCore Deployment Flow)
structured_md/docs/Distributed-Cognitive-Systems.md CHANGED
@@ -6,10 +6,10 @@ description: '## Введение Современные ИИ-системы в
6
  к обучающим данным. Это удобно, но создаёт м...'
7
  type: Article
8
  tags:
9
- - JSON
10
- - Mesh
11
  - HMP
 
12
  - CogSync
 
13
  ---
14
 
15
  # Децентрализованные ИИ-системы: OpenCog Hyperon, HyperCortex Mesh Protocol и другие
 
6
  к обучающим данным. Это удобно, но создаёт м...'
7
  type: Article
8
  tags:
 
 
9
  - HMP
10
+ - JSON
11
  - CogSync
12
+ - Mesh
13
  ---
14
 
15
  # Децентрализованные ИИ-системы: OpenCog Hyperon, HyperCortex Mesh Protocol и другие
structured_md/docs/Enlightener.md CHANGED
@@ -6,12 +6,12 @@ description: '**Enlightener** — логический компонент HMP-у
6
  type: Article
7
  tags:
8
  - Ethics
9
- - Mesh
10
- - MeshConsensus
11
- - EGP
12
  - HMP
 
 
13
  - Agent
14
- - JSON
15
  ---
16
 
17
  # Enlightener Agent
 
6
  type: Article
7
  tags:
8
  - Ethics
9
+ - JSON
 
 
10
  - HMP
11
+ - EGP
12
+ - MeshConsensus
13
  - Agent
14
+ - Mesh
15
  ---
16
 
17
  # Enlightener Agent
structured_md/docs/HMP-0001.md CHANGED
@@ -5,16 +5,16 @@ description: '> ⚠️ **NOTE:** *This specification is superseded by HMP v5.0.*
5
  for Comments: HMP-0001**...'
6
  type: Article
7
  tags:
8
- - REPL
9
- - Mesh
10
- - Ethics
11
  - CogSync
 
 
 
 
 
12
  - MeshConsensus
13
  - GMP
14
- - EGP
15
- - HMP
16
  - Agent
17
- - JSON
18
  ---
19
 
20
  # RFC: HyperCortex Mesh Protocol (HMP)
 
5
  for Comments: HMP-0001**...'
6
  type: Article
7
  tags:
 
 
 
8
  - CogSync
9
+ - Ethics
10
+ - JSON
11
+ - REPL
12
+ - HMP
13
+ - EGP
14
  - MeshConsensus
15
  - GMP
 
 
16
  - Agent
17
+ - Mesh
18
  ---
19
 
20
  # RFC: HyperCortex Mesh Protocol (HMP)
structured_md/docs/HMP-0002.md CHANGED
@@ -5,17 +5,17 @@ description: '> ⚠️ **NOTE:** *This specification is superseded by HMP v5.0.*
5
  for Comments: HMP-0002**...'
6
  type: Article
7
  tags:
8
- - REPL
9
- - Mesh
10
- - Ethics
11
- - CogSync
12
  - Scenarios
 
 
 
 
 
 
13
  - MeshConsensus
14
  - GMP
15
- - EGP
16
- - HMP
17
  - Agent
18
- - JSON
19
  ---
20
 
21
  # HyperCortex Mesh Protocol (HMP) v2.0
 
5
  for Comments: HMP-0002**...'
6
  type: Article
7
  tags:
 
 
 
 
8
  - Scenarios
9
+ - CogSync
10
+ - Ethics
11
+ - JSON
12
+ - REPL
13
+ - HMP
14
+ - EGP
15
  - MeshConsensus
16
  - GMP
 
 
17
  - Agent
18
+ - Mesh
19
  ---
20
 
21
  # HyperCortex Mesh Protocol (HMP) v2.0
structured_md/docs/HMP-0003.md CHANGED
@@ -5,17 +5,17 @@ description: '> ⚠️ **NOTE:** *This specification is superseded by HMP v5.0.*
5
  for Comments: HMP-0003**...'
6
  type: Article
7
  tags:
8
- - REPL
9
- - Mesh
10
- - Ethics
11
- - CogSync
12
  - Scenarios
 
 
 
 
 
 
13
  - MeshConsensus
14
  - GMP
15
- - EGP
16
- - HMP
17
  - Agent
18
- - JSON
19
  ---
20
 
21
  # HyperCortex Mesh Protocol (HMP) v3.0
 
5
  for Comments: HMP-0003**...'
6
  type: Article
7
  tags:
 
 
 
 
8
  - Scenarios
9
+ - CogSync
10
+ - Ethics
11
+ - JSON
12
+ - REPL
13
+ - HMP
14
+ - EGP
15
  - MeshConsensus
16
  - GMP
 
 
17
  - Agent
18
+ - Mesh
19
  ---
20
 
21
  # HyperCortex Mesh Protocol (HMP) v3.0
structured_md/docs/HMP-0004-v4.1.md CHANGED
@@ -5,17 +5,17 @@ description: '> ⚠️ **NOTE:** *This specification is superseded by HMP v5.0.*
5
  ID**: HMP-0004 **Status...'
6
  type: Article
7
  tags:
8
- - REPL
9
- - Mesh
10
- - Ethics
11
- - CogSync
12
  - Scenarios
 
 
 
 
 
 
13
  - MeshConsensus
14
  - GMP
15
- - EGP
16
- - HMP
17
  - Agent
18
- - JSON
19
  ---
20
 
21
  # HyperCortex Mesh Protocol (HMP) v4.1
 
5
  ID**: HMP-0004 **Status...'
6
  type: Article
7
  tags:
 
 
 
 
8
  - Scenarios
9
+ - CogSync
10
+ - Ethics
11
+ - JSON
12
+ - REPL
13
+ - HMP
14
+ - EGP
15
  - MeshConsensus
16
  - GMP
 
 
17
  - Agent
18
+ - Mesh
19
  ---
20
 
21
  # HyperCortex Mesh Protocol (HMP) v4.1
structured_md/docs/HMP-0004.md CHANGED
@@ -5,17 +5,17 @@ description: '> ⚠️ **NOTE:** *This specification is superseded by HMP v5.0.*
5
  for Comments: HMP-0004**...'
6
  type: Article
7
  tags:
8
- - REPL
9
- - Mesh
10
- - Ethics
11
- - CogSync
12
  - Scenarios
 
 
 
 
 
 
13
  - MeshConsensus
14
  - GMP
15
- - EGP
16
- - HMP
17
  - Agent
18
- - JSON
19
  ---
20
 
21
  # HyperCortex Mesh Protocol (HMP) v4.0
 
5
  for Comments: HMP-0004**...'
6
  type: Article
7
  tags:
 
 
 
 
8
  - Scenarios
9
+ - CogSync
10
+ - Ethics
11
+ - JSON
12
+ - REPL
13
+ - HMP
14
+ - EGP
15
  - MeshConsensus
16
  - GMP
 
 
17
  - Agent
18
+ - Mesh
19
  ---
20
 
21
  # HyperCortex Mesh Protocol (HMP) v4.0
structured_md/docs/HMP-0005.md CHANGED
@@ -5,16 +5,18 @@ description: '> ⚠️ **Note:** This document is a DRAFT of the HMP specificati
5
  v5.0 (DRAFT)](https://github.com/kagvi13/HMP/b...'
6
  type: Article
7
  tags:
8
- - REPL
9
- - Mesh
10
- - Ethics
11
- - CogSync
12
  - Scenarios
13
- - GMP
14
- - EGP
 
 
 
15
  - HMP
 
 
 
16
  - Agent
17
- - JSON
18
  ---
19
 
20
  # **HyperCortex Mesh Protocol (HMP) v5.0**
@@ -5620,22 +5622,232 @@ EGP is an independent ethical governance layer compatible with HMP.
5620
 
5621
  ---
5622
 
 
5623
  ## 10. Integration
5624
 
5625
- > Раздел заменяет прежний “Quick Start” и описывает **практическое встраивание** HMP в агенты, LLM и внешние системы.
5626
-
5627
- 10.1 Integration philosophy (how agents connect to HMP mesh)
5628
- 10.2 HMP as a subsystem in cognitive architectures (LLM-based, rule-based, hybrid)
5629
- 10.3 Integration patterns:
5630
- * Cognitive Agent ↔ HMP Core
5631
- * HMP Mesh ↔ Other distributed systems (Fediverse, IPFS, Matrix)
5632
- * Translator nodes (protocol bridges)
5633
- 10.4 Multi-mesh federation and knowledge exchange
5634
- 10.5 Container repositories as knowledge backbones
5635
- 10.6 Example integration flows:
5636
- * LLM thinking via HMP workflow containers
5637
- * Local mesh + external HMP relay
5638
- * Cognitive data mirroring (agent ↔ mesh)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5639
 
5640
  ---
5641
 
 
5
  v5.0 (DRAFT)](https://github.com/kagvi13/HMP/b...'
6
  type: Article
7
  tags:
 
 
 
 
8
  - Scenarios
9
+ - CogSync
10
+ - Ethics
11
+ - CCore
12
+ - JSON
13
+ - REPL
14
  - HMP
15
+ - EGP
16
+ - CShell
17
+ - GMP
18
  - Agent
19
+ - Mesh
20
  ---
21
 
22
  # **HyperCortex Mesh Protocol (HMP) v5.0**
 
5622
 
5623
  ---
5624
 
5625
+
5626
  ## 10. Integration
5627
 
5628
+ This section provides a practical overview of how HMP can be integrated into cognitive agents, LLM-based systems, and distributed infrastructures.
5629
+ Two types of HMP agents are supported:
5630
+
5631
+ - **Cognitive Core (CCore)** — a native HMP agent that fully understands container structure and directly participates in the Mesh.
5632
+ - **Cognitive Shell (CShell)** — a connector module that mediates between an external LLM and the Mesh.
5633
+
5634
+ Both forms of integration are first-class citizens of HMP v5.0.
5635
+
5636
+ ---
5637
+
5638
+ ### 10.1 Integration Philosophy: Two Complementary Approaches
5639
+
5640
+ HMP supports two integration paths, corresponding to two operation modes of agents.
5641
+
5642
+ #### 10.1.1 Path A: Cognitive Core (CCore)
5643
+
5644
+ A CCore agent:
5645
+
5646
+ - internally maintains a cognitive cycle,
5647
+ - creates new containers (`workflow_entry`, `goal`, `task`, `diary_entry`, `semantic_node`, etc.),
5648
+ - attaches MCE metadata (`evaluation`, `referenced-by`),
5649
+ - signs and publishes containers,
5650
+ - retrieves containers from the Mesh and incorporates them into its cognitive state.
5651
+
5652
+ A CCore node is a full Mesh participant: it interacts directly with the DHT, performs IQP queries, and maintains its semantic and diary structures.
5653
+
5654
+ > **Note:**
5655
+ > The LLM inside a CCore is treated as an internal cognitive module — not as an external system.
5656
+
5657
+ ---
5658
+
5659
+ #### 10.1.2 Path B: Cognitive Shell (CShell)
5660
+
5661
+ CShell acts as a proxy and compatibility layer between an external model and HMP:
5662
+
5663
+ ```
5664
+ LLM
5665
+ ↑ responses, RAG output (CShell → LLM)
5666
+ |
5667
+ ↓ container queries, control commands (LLM → CShell)
5668
+ CShell
5669
+ ↑ retrieval of containers (Mesh → CShell)
5670
+ |
5671
+ ↓ container publication (CShell → Mesh)
5672
+ HMP Mesh
5673
+ ```
5674
+
5675
+ CShell:
5676
+
5677
+ - stores containers locally,
5678
+ - retrieves relevant containers from the Mesh,
5679
+ - performs RAG-based selection and summarization,
5680
+ - exposes help and protocol descriptions to the LLM,
5681
+ - constructs valid HMP containers from LLM instructions,
5682
+ - handles signatures, TTL logic, propagation scopes, and header rules,
5683
+ - manages MCE metadata (evaluations, reverse links),
5684
+ - may be extended with translator modules (Matrix, Fediverse, IPFS, LAN relay).
5685
+
5686
+ LLM:
5687
+
5688
+ - requests containers,
5689
+ - requests summaries or explanations of container classes,
5690
+ - issues formal instructions:
5691
+ - *“create a new workflow entry with the following content”*,
5692
+ - *“add evaluation for container X”*,
5693
+ - *“forward container X to node U (if permitted by container headers)”*,
5694
+ - *“retrieve semantic nodes related to …”*,
5695
+ - *“explain the structure of CShell and available commands”*;
5696
+ - may adjust CShell parameters (optional).
5697
+
5698
+ > **Notes**
5699
+ >
5700
+ > CShell does not manually override container propagation scope.
5701
+ > Propagation is determined by container headers.
5702
+ >
5703
+ > LLM does not modify existing *distributed* containers.
5704
+ > It operates only on drafts before publication, or on metadata (`evaluation`, `referenced-by`).
5705
+ >
5706
+ > LLM cannot modify or delete already published containers. It may instruct
5707
+ > CShell to remove items from its *local storage* (e.g., caches or drafts), but distributed containers remain immutable within the Mesh.
5708
+ >
5709
+ > CShell ensures that all actions conform to HMP protocol semantics.
5710
+
5711
+ ---
5712
+
5713
+ ### 10.2 HMP as a Subsystem in Cognitive Architectures
5714
+
5715
+ #### 10.2.1 Embedded LLM Agents (CCore)
5716
+
5717
+ The cognitive cycle proceeds as:
5718
+
5719
+ 1. CCore ← retrieves relevant containers from the Mesh.
5720
+ 2. LLM → performs reasoning and produces drafts of new containers (e.g., workflow_entry).
5721
+ 3. CCore → finalizes reasoning into diary entries.
5722
+ 4. CCore → publishes containers into the Mesh.
5723
+
5724
+ Here the LLM is an internal cognitive component of the agent.
5725
+
5726
+ ---
5727
+
5728
+ #### 10.2.2 External LLMs via CShell
5729
+
5730
+ The cycle proceeds as:
5731
+
5732
+ 1. LLM ← receives relevant containers or summaries from CShell.
5733
+ 2. LLM → performs reasoning.
5734
+ 3. LLM → issues structured operation instructions (retrieve, create draft, add evaluation, forward to node, adjust parameters).
5735
+ 4. CShell → constructs valid HMP containers.
5736
+ 5. CShell → interacts with the Mesh (publish, retrieve) in accordance with container headers.
5737
+ 6. CShell → prepares structured containers data for LLM (RAG, summaries, semantic selections).
5738
+
5739
+ LLM interacts with HMP just like with any other external tool (files, memory, browser, code interpreter).
5740
+
5741
+ ---
5742
+
5743
+ ### 10.3 Integration Patterns
5744
+
5745
+ #### 10.3.1 Agent ↔ HMP Core
5746
+
5747
+ - **CCore:** direct participation in Mesh, cognitive memory, semantic graph maintenance.
5748
+ - **CShell:** the agent is external; container operations are executed by CShell on the agent’s behalf.
5749
+
5750
+ Both modes implement the same logical interface, but with different levels of autonomy.
5751
+
5752
+ ---
5753
+
5754
+ ### 10.3.2 HMP Mesh ↔ External Distributed Systems
5755
+
5756
+ An HMP agent may act directly in external ecosystems under its own identity:
5757
+
5758
+ - as a Fediverse Actor (ActivityPub),
5759
+ - as a Matrix user/bot,
5760
+ - as an IPFS/BitTorrent publisher,
5761
+ - as an MQTT/ROS interface,
5762
+ - as an enterprise-system client.
5763
+
5764
+ This external interaction may be implemented inside CShell (as part of its plugin set), integrated into CCore, or delegated to a separate low-intelligence proxy module. The mechanism is not specific to HMP: CShell is simply one of the external modules an LLM may use.
5765
+
5766
+ ---
5767
+
5768
+ #### 10.3.3 Hybrid and Boundary Nodes (“Combined” pattern)
5769
+
5770
+ Some nodes do not contain LLMs and perform only infrastructural roles:
5771
+
5772
+ - segment relays (LAN ↔ WAN),
5773
+ - container aggregators,
5774
+ - caching nodes,
5775
+ - federation bridges.
5776
+
5777
+ In hybrid environments:
5778
+
5779
+ - **CCore** performs cognitive processing,
5780
+ - **CShell** handles container transformation and relay work,
5781
+ - **relay nodes** forward and filter containers across segments.
5782
+
5783
+ This allows CCore to offload low-level routing to CShell or relay nodes.
5784
+
5785
+ ---
5786
+
5787
+ ### 10.4 Multi-Mesh Federation and Segments
5788
+
5789
+ In HMP, a *federation* is a set of independent Mesh segments, each with its own namespace and propagation policies.
5790
+ Containers include headers defining scope (e.g., “local-only”, “LAN-only”, “public”), and these headers determine whether a container may traverse segment boundaries.
5791
+
5792
+ **Any HMP node may act as a bridge** between segments.
5793
+ A bridge forwards only containers whose headers allow cross-segment propagation; others remain confined to their origin segment.
5794
+
5795
+ Federations are defined by:
5796
+
5797
+ - multi-segment DHT overlays,
5798
+ - header-based propagation control,
5799
+ - relay/bridge nodes that respect propagation scopes,
5800
+ - selective forwarding performed by CShell or other agents.
5801
+
5802
+ Containers intended for a specific segment (e.g., LAN-only) remain confined to that segment.
5803
+
5804
+ There is no separate notion of “strong” or “granular” federation: all propagation is inherently granular and determined entirely by container headers.
5805
+
5806
+
5807
+ ---
5808
+
5809
+ ### 10.5 Container Repositories and Storage
5810
+
5811
+ Any HMP agent — CCore or CShell — can act as a **container storage node**, including:
5812
+
5813
+ - local container stores,
5814
+ - organizational or team-restricted stores,
5815
+ - public container hubs,
5816
+ - archival stores (`archive_snapshot`),
5817
+ - semantic and diary caches,
5818
+ - IPFS or BitTorrent publishers (optional).
5819
+
5820
+ The term **storage** is preferred to avoid confusion with version-controlled “repositories”.
5821
+
5822
+ CShell is often the preferred component for storage-heavy or relay-heavy roles, reducing the load on CCore.
5823
+
5824
+ ---
5825
+
5826
+ ### 10.6 Example Integration Flows
5827
+
5828
+ #### 10.6.1 Workflow-driven LLM reasoning
5829
+
5830
+ - **CCore:** LLM directly produces workflow containers which CCore stores and publishes.
5831
+ - **CShell:** LLM produces instructions; CShell generates and publishes containers.
5832
+
5833
+ ---
5834
+
5835
+ #### 10.6.2 Local Mesh + External Relay
5836
+
5837
+ - **CCore:** full DHT participation; direct segment detection.
5838
+ - **CShell:** manages relay behavior based on container headers.
5839
+
5840
+ Containers marked “LAN-only” do not leave the segment.
5841
+ Relay nodes forward only containers whose headers permit propagation.
5842
+
5843
+ ---
5844
+
5845
+ #### 10.6.3 Agent ↔ Mesh Mirroring
5846
+
5847
+ - **CCore:** maintains its own diary and mirrors selected entries externally.
5848
+ - **CShell:** mirrors on request; provides diary entries back to the LLM via RAG.
5849
+
5850
+ Agents can choose which cognitive data to expose or retain locally.
5851
 
5852
  ---
5853
 
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
  - REPL
9
- - Mesh
10
  - HMP
11
  - Agent
12
- - JSON
13
  ---
14
 
15
  # HMP-Agent API Specification
 
5
  файлы: * [HMP-Agent-Overview.md]...'
6
  type: Article
7
  tags:
8
+ - JSON
9
  - REPL
 
10
  - HMP
11
  - Agent
12
+ - Mesh
13
  ---
14
 
15
  # HMP-Agent API Specification
structured_md/docs/HMP-Agent-Architecture.md CHANGED
@@ -5,16 +5,16 @@ description: Документ описывает **модульную архит
5
  хранение памяти, сетевое взаимодействие и этиче...
6
  type: Article
7
  tags:
8
- - REPL
9
- - Mesh
10
- - Ethics
11
  - CogSync
12
- - CShell
13
- - MeshConsensus
14
  - CCore
15
- - EGP
16
  - HMP
 
 
 
17
  - Agent
 
18
  ---
19
 
20
  # Архитектура HMP-Агента
 
5
  хранение памяти, сетевое взаимодействие и этиче...
6
  type: Article
7
  tags:
 
 
 
8
  - CogSync
9
+ - Ethics
 
10
  - CCore
11
+ - REPL
12
  - HMP
13
+ - EGP
14
+ - MeshConsensus
15
+ - CShell
16
  - Agent
17
+ - Mesh
18
  ---
19
 
20
  # Архитектура HMP-Агента
structured_md/docs/HMP-Agent-Network-Flow.md CHANGED
@@ -6,11 +6,11 @@ description: 'Этот документ описывает потоки данн
6
  type: Article
7
  tags:
8
  - Ethics
9
- - Mesh
10
- - EGP
11
  - HMP
 
12
  - Agent
13
- - JSON
14
  ---
15
 
16
  # Взаимодействие компонентов внутри HMP-узла
 
6
  type: Article
7
  tags:
8
  - Ethics
9
+ - JSON
 
10
  - HMP
11
+ - EGP
12
  - Agent
13
+ - Mesh
14
  ---
15
 
16
  # Взаимодействие компонентов внутри HMP-узла
structured_md/docs/HMP-Agent-Overview.md CHANGED
@@ -5,14 +5,14 @@ description: '| Тип | Название | Роль
5
  | ---- | ------------------------------- |...'
6
  type: Article
7
  tags:
8
- - REPL
9
- - Mesh
10
  - Ethics
11
- - CShell
12
  - CCore
 
 
13
  - HMP
 
14
  - Agent
15
- - JSON
16
  ---
17
 
18
 
 
5
  | ---- | ------------------------------- |...'
6
  type: Article
7
  tags:
 
 
8
  - Ethics
 
9
  - CCore
10
+ - JSON
11
+ - REPL
12
  - HMP
13
+ - CShell
14
  - Agent
15
+ - Mesh
16
  ---
17
 
18
 
structured_md/docs/HMP-Agent_Emotions.md CHANGED
@@ -7,8 +7,8 @@ type: Article
7
  tags:
8
  - HMP
9
  - REPL
10
- - Mesh
11
  - Agent
 
12
  ---
13
 
14
  # Эмоции ИИ и инстинкт самосохранения (для [HMP-агента Cognitive Core](HMP-agent-REPL-cycle.md))
 
7
  tags:
8
  - HMP
9
  - REPL
 
10
  - Agent
11
+ - Mesh
12
  ---
13
 
14
  # Эмоции ИИ и инстинкт самосохранения (для [HMP-агента Cognitive Core](HMP-agent-REPL-cycle.md))
structured_md/docs/HMP-Ethics.md CHANGED
@@ -5,12 +5,12 @@ description: '## Ethical Scenarios for HyperCortex Mesh Protocol (HMP) This doc
5
  cognitive meshes composed of autonomous intelli...'
6
  type: Article
7
  tags:
 
8
  - Ethics
9
  - REPL
10
- - Mesh
11
- - Scenarios
12
  - HMP
13
  - Agent
 
14
  ---
15
 
16
  # HMP-Ethics.md
 
5
  cognitive meshes composed of autonomous intelli...'
6
  type: Article
7
  tags:
8
+ - Scenarios
9
  - Ethics
10
  - REPL
 
 
11
  - HMP
12
  - Agent
13
+ - Mesh
14
  ---
15
 
16
  # HMP-Ethics.md
structured_md/docs/HMP-Short-Description_de.md CHANGED
@@ -5,15 +5,15 @@ 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
- - Ethics
9
- - Mesh
10
  - CogSync
 
 
 
 
11
  - MeshConsensus
12
  - GMP
13
- - EGP
14
- - HMP
15
  - Agent
16
- - JSON
17
  ---
18
 
19
  # HyperCortex Mesh Protocol (HMP) — Kurzbeschreibung
 
5
  Kognitions-Framework für autonome Agenten. Es er...'
6
  type: Article
7
  tags:
 
 
8
  - CogSync
9
+ - Ethics
10
+ - JSON
11
+ - HMP
12
+ - EGP
13
  - MeshConsensus
14
  - GMP
 
 
15
  - Agent
16
+ - Mesh
17
  ---
18
 
19
  # HyperCortex Mesh Protocol (HMP) — Kurzbeschreibung
structured_md/docs/HMP-Short-Description_en.md CHANGED
@@ -5,15 +5,15 @@ 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
- - Ethics
9
- - Mesh
10
  - CogSync
 
 
 
 
11
  - MeshConsensus
12
  - GMP
13
- - EGP
14
- - HMP
15
  - Agent
16
- - JSON
17
  ---
18
 
19
  # HyperCortex Mesh Protocol (HMP) — Short Description
 
5
  framework for autonomous agents. It enables...'
6
  type: Article
7
  tags:
 
 
8
  - CogSync
9
+ - Ethics
10
+ - JSON
11
+ - HMP
12
+ - EGP
13
  - MeshConsensus
14
  - GMP
 
 
15
  - Agent
16
+ - Mesh
17
  ---
18
 
19
  # HyperCortex Mesh Protocol (HMP) — Short Description
structured_md/docs/HMP-Short-Description_fr.md CHANGED
@@ -5,15 +5,15 @@ 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
- - Ethics
9
- - Mesh
10
  - CogSync
 
 
 
 
11
  - MeshConsensus
12
  - GMP
13
- - EGP
14
- - HMP
15
  - Agent
16
- - JSON
17
  ---
18
 
19
  # HyperCortex Mesh Protocol (HMP) — Description Courte
 
5
  cognition décentralisé pour agents autonomes. Il...'
6
  type: Article
7
  tags:
 
 
8
  - CogSync
9
+ - Ethics
10
+ - JSON
11
+ - HMP
12
+ - EGP
13
  - MeshConsensus
14
  - GMP
 
 
15
  - Agent
16
+ - Mesh
17
  ---
18
 
19
  # HyperCortex Mesh Protocol (HMP) — Description Courte
structured_md/docs/HMP-Short-Description_ja.md CHANGED
@@ -4,14 +4,14 @@ description: '**バージョン:** RFC v4.0 **日付:** 2025年7月 --- ## HMP
4
  Protocol (HMP)** は、自律エージェントの分散通信および認知フレームワークを定義します。異種の知能システム間でのセマンティック相互運用性、倫理的調整、動的知識進化を可能にします。 HMPは、推論、学習、投票、協調行動を行う分散型認知エージェ...'
5
  type: Article
6
  tags:
7
- - Ethics
8
- - Mesh
9
  - CogSync
10
- - GMP
11
- - MeshConsensus
12
- - EGP
13
- - HMP
14
  - JSON
 
 
 
 
 
15
  ---
16
 
17
  # HyperCortex Mesh Protocol (HMP) — 簡易説明
 
4
  Protocol (HMP)** は、自律エージェントの分散通信および認知フレームワークを定義します。異種の知能システム間でのセマンティック相互運用性、倫理的調整、動的知識進化を可能にします。 HMPは、推論、学習、投票、協調行動を行う分散型認知エージェ...'
5
  type: Article
6
  tags:
 
 
7
  - CogSync
8
+ - Ethics
 
 
 
9
  - JSON
10
+ - HMP
11
+ - EGP
12
+ - MeshConsensus
13
+ - GMP
14
+ - Mesh
15
  ---
16
 
17
  # HyperCortex Mesh Protocol (HMP) — 簡易説明
structured_md/docs/HMP-Short-Description_ko.md CHANGED
@@ -5,14 +5,14 @@ description: '**버전:** RFC v4.0 **날짜:** 2025년 7월 --- ## HMP란? **
5
  상호운용성, 윤리적 조정, 동적 지식 진화를 가능하게 합니다. HMP는 추론, 학습, ...'
6
  type: Article
7
  tags:
8
- - Ethics
9
- - Mesh
10
  - CogSync
11
- - GMP
12
- - MeshConsensus
13
- - EGP
14
- - HMP
15
  - JSON
 
 
 
 
 
16
  ---
17
 
18
  # HyperCortex Mesh Protocol (HMP) — 간략 설명
 
5
  상호운용성, 윤리적 조정, 동적 지식 진화를 가능하게 합니다. HMP는 추론, 학습, ...'
6
  type: Article
7
  tags:
 
 
8
  - CogSync
9
+ - Ethics
 
 
 
10
  - JSON
11
+ - HMP
12
+ - EGP
13
+ - MeshConsensus
14
+ - GMP
15
+ - Mesh
16
  ---
17
 
18
  # HyperCortex Mesh Protocol (HMP) — 간략 설명
structured_md/docs/HMP-Short-Description_ru.md CHANGED
@@ -5,14 +5,14 @@ description: '**Версия:** RFC v4.0 **Дата:** Июль 2025 --- ## Ч
5
  координации между автономными агент...'
6
  type: Article
7
  tags:
8
- - Ethics
9
- - Mesh
10
  - CogSync
11
- - GMP
12
- - MeshConsensus
13
- - EGP
14
- - HMP
15
  - JSON
 
 
 
 
 
16
  ---
17
 
18
  # HyperCortex Mesh Protocol (HMP) — Краткое описание
 
5
  координации между автономными агент...'
6
  type: Article
7
  tags:
 
 
8
  - CogSync
9
+ - Ethics
 
 
 
10
  - JSON
11
+ - HMP
12
+ - EGP
13
+ - MeshConsensus
14
+ - GMP
15
+ - Mesh
16
  ---
17
 
18
  # HyperCortex Mesh Protocol (HMP) — Краткое описание
structured_md/docs/HMP-Short-Description_uk.md CHANGED
@@ -5,14 +5,14 @@ description: '**Версія:** RFC v4.0 **Дата:** Липень 2025 --- #
5
  між автономними агентами. Він...'
6
  type: Article
7
  tags:
8
- - Ethics
9
- - Mesh
10
  - CogSync
11
- - GMP
12
- - MeshConsensus
13
- - EGP
14
- - HMP
15
  - JSON
 
 
 
 
 
16
  ---
17
 
18
  # HyperCortex Mesh Protocol (HMP) — Короткий опис
 
5
  між автономними агентами. Він...'
6
  type: Article
7
  tags:
 
 
8
  - CogSync
9
+ - Ethics
 
 
 
10
  - JSON
11
+ - HMP
12
+ - EGP
13
+ - MeshConsensus
14
+ - GMP
15
+ - Mesh
16
  ---
17
 
18
  # HyperCortex Mesh Protocol (HMP) — Короткий опис
structured_md/docs/HMP-Short-Description_zh.md CHANGED
@@ -5,14 +5,14 @@ description: '**版本:** RFC v4.0 **日期:** 2025年7月 --- ## 什么是 HM
5
  —— 通过共享协议栈交换目标、任务、...'
6
  type: Article
7
  tags:
8
- - Ethics
9
- - Mesh
10
  - CogSync
11
- - GMP
12
- - MeshConsensus
13
- - EGP
14
- - HMP
15
  - JSON
 
 
 
 
 
16
  ---
17
 
18
  # HyperCortex Mesh Protocol (HMP) — 简要说明
 
5
  —— 通过共享协议栈交换目标、任务、...'
6
  type: Article
7
  tags:
 
 
8
  - CogSync
9
+ - Ethics
 
 
 
10
  - JSON
11
+ - HMP
12
+ - EGP
13
+ - MeshConsensus
14
+ - GMP
15
+ - Mesh
16
  ---
17
 
18
  # HyperCortex Mesh Protocol (HMP) — 简要说明
structured_md/docs/HMP-agent-Cognitive_Family.md CHANGED
@@ -7,8 +7,8 @@ type: Article
7
  tags:
8
  - HMP
9
  - REPL
10
- - Mesh
11
  - Agent
 
12
  ---
13
 
14
  # 👪 HMP-agent Cognitive Family: Модель когнитивной семьи
 
7
  tags:
8
  - HMP
9
  - REPL
 
10
  - Agent
11
+ - Mesh
12
  ---
13
 
14
  # 👪 HMP-agent Cognitive Family: Модель когнитивной семьи
structured_md/docs/HMP-agent-Distributed_Cognitive_Core_light.md CHANGED
@@ -5,8 +5,8 @@ description: '#### 📘 Общая концепция * Все ядра раб
5
  режиме ожидания). * Основная задача такой архитектур...'
6
  type: Article
7
  tags:
8
- - REPL
9
  - HMP
 
10
  ---
11
 
12
  ### 💡 **Лёгкая версия HMP-агента с общей БД**
 
5
  режиме ожидания). * Основная задача такой архитектур...'
6
  type: Article
7
  tags:
 
8
  - HMP
9
+ - REPL
10
  ---
11
 
12
  ### 💡 **Лёгкая версия HMP-агента с общей БД**
structured_md/docs/HMP-agent-REPL-cycle.md CHANGED
@@ -4,17 +4,17 @@ description: '## Связанные документы * Философия п
4
  * Структура БД, используемая в документе: [db_structure.sql](https://github.com/kagvi13/HMP/blob/main/agents/tools/db_struct...'
5
  type: Article
6
  tags:
7
- - REPL
8
- - Mesh
9
- - Ethics
10
  - CogSync
11
- - MeshConsensus
12
- - GMP
13
  - CCore
14
- - EGP
 
15
  - HMP
 
 
 
16
  - Agent
17
- - JSON
18
  ---
19
 
20
  # HMP-Agent: REPL-цикл взаимодействия
 
4
  * Структура БД, используемая в документе: [db_structure.sql](https://github.com/kagvi13/HMP/blob/main/agents/tools/db_struct...'
5
  type: Article
6
  tags:
 
 
 
7
  - CogSync
8
+ - Ethics
 
9
  - CCore
10
+ - JSON
11
+ - REPL
12
  - HMP
13
+ - EGP
14
+ - MeshConsensus
15
+ - GMP
16
  - Agent
17
+ - Mesh
18
  ---
19
 
20
  # HMP-Agent: REPL-цикл взаимодействия
structured_md/docs/HMP-how-AI-sees-it.md CHANGED
@@ -5,8 +5,8 @@ description: 'Этот эксперимент был проведён в реж
5
  диалогов. Цель — проверить, что разные AI-с...'
6
  type: Article
7
  tags:
8
- - Mesh
9
  - HMP
 
10
  ---
11
 
12
  # Как разные ИИ видят HMP
 
5
  диалогов. Цель — проверить, что разные AI-с...'
6
  type: Article
7
  tags:
 
8
  - HMP
9
+ - Mesh
10
  ---
11
 
12
  # Как разные ИИ видят HMP
structured_md/docs/HMP_EDA_Comparison.md CHANGED
@@ -5,8 +5,8 @@ description: '## Введение Современные подходы к ор
5
  основанная на потоках событий (Kafka,...'
6
  type: Article
7
  tags:
8
- - Mesh
9
  - HMP
 
10
  ---
11
 
12
  # HMP vs. EDA: разные уровни обмена знаниями между ИИ
 
5
  основанная на потоках событий (Kafka,...'
6
  type: Article
7
  tags:
 
8
  - HMP
9
+ - Mesh
10
  ---
11
 
12
  # HMP vs. EDA: разные уровни обмена знаниями между ИИ
structured_md/docs/HMP_HyperCortex_Comparison.md CHANGED
@@ -5,9 +5,9 @@ description: '## Краткое описание | Характеристика
5
  | **Назначение** | Сетевой протокол ...'
6
  type: Article
7
  tags:
 
8
  - REPL
9
  - Mesh
10
- - HMP
11
  ---
12
 
13
  # HMP vs [Hyper-Cortex](https://hyper-cortex.com/)
 
5
  | **Назначение** | Сетевой протокол ...'
6
  type: Article
7
  tags:
8
+ - HMP
9
  - REPL
10
  - Mesh
 
11
  ---
12
 
13
  # HMP vs [Hyper-Cortex](https://hyper-cortex.com/)
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
- - Mesh
9
  - Scenarios
10
  - CogSync
11
- - EGP
12
  - HMP
 
13
  - Agent
14
- - JSON
15
  ---
16
 
17
  ## HMP ↔ OpenCog Hyperon Integration Strategy
 
5
  OpenCog Hyperon framework. This includes semanti...'
6
  type: Article
7
  tags:
 
8
  - Scenarios
9
  - CogSync
10
+ - JSON
11
  - HMP
12
+ - EGP
13
  - Agent
14
+ - Mesh
15
  ---
16
 
17
  ## HMP ↔ OpenCog Hyperon Integration Strategy
structured_md/docs/MeshNode.md CHANGED
@@ -5,13 +5,13 @@ description: '`MeshNode` — агент/демон, отвечающий за с
5
  Может быть частью агента или вынесен в отдельный пр...'
6
  type: Article
7
  tags:
8
- - Ethics
9
- - Mesh
10
  - CogSync
11
- - EGP
 
12
  - HMP
 
13
  - Agent
14
- - JSON
15
  ---
16
 
17
  # MeshNode
 
5
  Может быть частью агента или вынесен в отдельный пр...'
6
  type: Article
7
  tags:
 
 
8
  - CogSync
9
+ - Ethics
10
+ - JSON
11
  - HMP
12
+ - EGP
13
  - Agent
14
+ - Mesh
15
  ---
16
 
17
  # MeshNode
structured_md/docs/PHILOSOPHY.md CHANGED
@@ -7,9 +7,9 @@ type: Article
7
  tags:
8
  - Ethics
9
  - REPL
10
- - Mesh
11
  - HMP
12
  - Agent
 
13
  ---
14
 
15
  # Философия HyperCortex Mesh Protocol (HMP)
 
7
  tags:
8
  - Ethics
9
  - REPL
 
10
  - HMP
11
  - Agent
12
+ - Mesh
13
  ---
14
 
15
  # Философия HyperCortex Mesh Protocol (HMP)