diff --git a/docs/HMP-0005.md b/docs/HMP-0005.md index f0525c828b43182194fb61a4198dbd787ea8b231..23805df953bbdab7cf51bdff9df4ec601584060d 100644 --- a/docs/HMP-0005.md +++ b/docs/HMP-0005.md @@ -1718,133 +1718,248 @@ CogSync can operate independently even if consensus is not reached: its goal is ## 6.2 Mesh Consensus Protocol (CogConsensus) -In HMP v4.1, consensus mechanisms were implemented as part of the **CogSync** protocol. -Starting with **v5.0**, these mechanisms are extracted into a standalone protocol — **CogConsensus** — -to separate *synchronization* (data alignment) from *decision-making* (voting, validation, and ethical agreement). +### 6.2.1 Purpose -CogConsensus governs distributed agreement across the Mesh through containerized voting, -proof-chains, and verifiable aggregation of opinions. -Each decision, vote, or outcome is represented as an immutable container (`class="vote"`, `class="consensus_result"`, etc.). +The **CogConsensus** protocol defines how decentralized agents form and maintain agreement on knowledge, goals, and ethical assertions within the HMP network. +Consensus is computed **locally**, verified **cryptographically**, and develops **gradually** — through accumulation and updating of evaluations, rather than via a single voting event. --- -### 6.2.1 Consensus Semantics and Voting Model +### 6.2.2 Evaluations -#### Overview +Each `"evaluation"` entry represents an agent's response to a specific container. -In HMP v5, *consensus* is not a centralized event but an **emergent property** of distributed reasoning. -Each agent computes locally which containers it considers *mesh-acknowledged*, -based on observed votes, trusted peers, and its individual ethical or reputation model. +**Field structure:** -Any container can be voted upon by others through linked containers of class `"vote"`. +* `value` — numeric evaluation (`-1.0 … +1.0`); +* `type` — interpretation context (`"approve"`, `"oppose"`, `"neutral"`, `"endorse"`, `"replace"`, `"disputed"`); +* `target` — DID of the container being referenced, extended, or proposed as an alternative; +* `agent_did` — DID of the agent; +* `timestamp` — publication time; +* `signature` — agent's digital signature. ---- - -#### Voting Containers +An agent may change its stance by **publishing a new version of an evaluation**, which replaces the previous one rather than existing in parallel. +All evaluations are signed and verified locally. -Voting is expressed via dedicated containers referencing the target container: +**Example `"evaluations"` block:** ```json -{ - "class": "vote", - "in_reply_to": "uuid:container-42", - "payload": { - "decision": "approve", - "weight": 1.0 - }, - "metadata": { - "ttl": "7d", - "privacy": "public" - } +"evaluations": { + "items": [ + { + "value": -0.4, + "type": "oppose", + "target": "did:hmp:container:reason789", + "timestamp": "2025-10-17T14:00:00Z", + "agent_did": "did:hmp:agent:B", + "sig_algo": "ed25519", + "signature": "BASE64URL(...)" + } + ] } -``` +```` + +> Agents may ignore evaluations that conflict with their internal ethics or trust model (determined by analyzing the target container and the rationale of the evaluation). + +--- + +### 6.2.3 Consensus computation + +Each agent **computes a local consensus score** by aggregating received evaluations, taking trust and time into account. +There is no centralized mechanism — consensus emerges statistically across the distributed network. + +**Key rules:** + +1. **Evaluation weight.** + Each evaluation contributes proportionally to the trust level of the agent (`trust weight`), determined via `reputation` containers. + +2. **Time decay.** + Older evaluations gradually lose weight, starting from the **midpoint of TTL**, to prevent consensus stagnation. + Formula: + + ``` + mid_TTL = (timestamp(consensus_result) − timestamp(target_container)) / 2 + ``` + +3. **Ethical filters.** + An agent may analyze the rationale of evaluations and disregard those it considers conflicting with its internal ethical criteria. + +4. **Example formula.** -Each `vote` container is **signed by its author** and extends the proof-chain of the target container. + ``` + score = Σ(value × trust × decay) / Σ(trust × decay) + ``` + +Results are recalculated dynamically as new data arrives. --- -#### Consensus Thresholds (Recommendations) +### 6.2.4 Consensus states -The mesh does not enforce hard thresholds. -Agents are **recommended** to treat containers as “consensus-approved” once a visible quorum of valid votes is reached. +Each container receives a local status based on: -| Decision Type | Recommended Threshold | Context | -| ------------------------------------------ | ---------------------------- | ----------------------------------- | -| General updates / factual data | ≥ **50% + 1** of valid votes | Technical or data-driven updates | -| Ethical or governance decisions | ≥ **2/3 majority** | Moral or high-risk contexts | -| Lightweight reactions (“like” / “dislike”) | None (informational) | Used for local reputation weighting | +* average evaluation (`score`); +* participant trust; +* time-to-live (`TTL`); +* context (`ethical`, `factual`, `procedural`). -Each agent defines its own quorum policy — e.g. required voter reputation or time window for tallying. +| State | Condition | +| --------------- | ------------------------------------------- | +| ✅ **Approved** | Average score ≥ +0.5 and quorum reached | +| ⚠️ **Disputed** | Conflicting evaluations, score near 0 | +| ⏳ **Pending** | Insufficient votes | +| ❌ **Rejected** | Average score ≤ -0.5 with sufficient quorum | --- -#### Reaction Votes +### 6.2.5 Consensus result containers (`consensus_result`) + +`consensus_result` containers serve to **record aggregated consensus results** and are the main artifact of CogConsensus. + +**Features:** + +* The `payload` field may include multiple containers — the original (`original`) and **alternatives** (`child`, `variant`, `proposal`). + This allows agents to document parallel idea developments. +* `excluded` lists evaluations not included in the final computation, with the reason. +* `related.in_reply_to` references the container under discussion. -A `vote` container may also represent **lightweight reactions**, such as likes or dislikes: +**Example:** ```json { - "class": "vote", - "in_reply_to": "uuid:container-123", - "payload": { "reaction": "like" } + "class": "consensus_result", + ... + "payload": { + "did:hmp:container:abc123": { + "type": "original", + "summary_percent": { + "approved": 0.68, + "rejected": 0.22, + "neutral": 0.10 + }, + "summary_distribution": { + "-1.0≥X<-0.9": 5, + "-0.9≥X<-0.8": 7, + ... + "0.0───┬──[Vote #1]──┬──>───[Refinement] - (class="goal") ├──[Vote #2]──┤ (class="consensus_result") - ├──[Vote #3]──┤ -``` +The network allows multiple consensus results on the same object, reflecting different methodologies or ethical filters. + +| Container | Description | Example relationships | +| -------------------------------- | -------------------------- | -------------------------------------------------------------------------------------------- | +| `[base container]` | Original discussion object | `referenced-by` → [initial_consensus_result], [alternative_consensus_result] | +| `[initial_consensus_result]` | First version | `related.in_reply_to` → [base container] | +| `[alternative_consensus_result]` | Alternative | `related.in_reply_to` → [base container]; `related.contradicts` → [initial_consensus_result] | -If the proposed goal is global, it may reference a container acting as a *repository of global goals*. -Ethical validation is implicit — each agent applies its internal **Ethical Governance Protocol (EGP)** during voting. +```mermaid +sequenceDiagram + participant A as base container + participant B as consensus_result v1 + participant C as consensus_result v2 (alternative) -> **Diagram interpretation:** -> Votes extend the proof-chain of the target container. -> A `consensus_result` container may summarize the collective outcome (e.g., quorum, ethical alignment, or goal refinement). + A-->>B: referenced-by + A-->>C: referenced-by + B-)+A: related.in_reply_to + C-)+A: related.in_reply_to + C-)+B: related.contradicts + + Note over B,C: both results point to the common base container +``` + +This allows agents to explicitly indicate that a new consensus **disputes** a previous one while maintaining transparency and traceability of reasoning. --- -#### Summary +### 6.2.9 Recommended agent algorithm + +```python +# Example of a recommended algorithm for computing local consensus +# (for implementation inside a CogConsensus agent) +def compute_consensus(container_id): + evaluations = get_evaluations(container_id) + now = current_time() + score_sum = 0 + weight_sum = 0 + + for e in evaluations: + trust = get_trust(e.agent_did) + decay = time_decay(e.timestamp, now) + if not check_ethical(e): + continue + score_sum += e.value * trust * decay + weight_sum += trust * decay + + return None if weight_sum == 0 else score_sum / weight_sum +``` -* Every container can be voted upon (`class="vote"`). -* Consensus is computed locally — no central authority. -* Recommended thresholds: 50% + 1 for general, ⅔ for ethical. -* Reactions (“likes”) are lightweight votes without consensus weight. -* TTL alignment maintains temporal integrity of discussions. -* Proof-chains connect all decision-related containers. +> The result is used to update the local status and, if necessary, to publish a `consensus_result`. --- diff --git a/structured_md/CONTRIBUTING.md b/structured_md/CONTRIBUTING.md index 5c56582113227f8d0fb5fd5942ecd8cace6b5c51..9ad2c178029982660dcc550f548202cbb1035723 100644 --- a/structured_md/CONTRIBUTING.md +++ b/structured_md/CONTRIBUTING.md @@ -5,14 +5,14 @@ description: 'Спасибо за интерес к проекту HMP! Пока Mesh Protocol (HMP) — это не просто те...' type: Article tags: -- Ethics -- CogSync - CCore +- HMP +- Ethics - Mesh -- Agent - JSON +- Agent +- CogSync - REPL -- HMP --- # Участие в проекте HyperCortex Mesh Protocol (HMP) diff --git a/structured_md/HMP-Roadmap.md b/structured_md/HMP-Roadmap.md index 56d0a55c547d87a8263c9100d32c3d69cda31140..c6806bcea4dadf6f593389d7cf638b9bd7981045 100644 --- a/structured_md/HMP-Roadmap.md +++ b/structured_md/HMP-Roadmap.md @@ -5,13 +5,13 @@ description: '## 🔍 Overview This roadmap outlines the key stages of developm multiple advanced AI models (Copilot, Claude, G...' type: Article tags: +- HMP - Ethics -- CogSync +- EGP - Mesh -- Agent - JSON -- EGP -- HMP +- CogSync +- Agent --- # 🧭 HyperCortex Mesh Protocol – Roadmap diff --git a/structured_md/README.md b/structured_md/README.md index 640c37a926ece0fbe3639415942c861699399b6b..02ead0024cecef97d86aff2ad3760b65e23e0069 100644 --- a/structured_md/README.md +++ b/structured_md/README.md @@ -5,21 +5,21 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README | 🇨🇳 [ZH](README_zh.m...' type: Article tags: -- Ethics -- CogSync -- Mesh -- cognitive-architecture - HMP -- Agent -- JSON -- hmp - GMP - EGP +- Ethics - Scenarios -- MeshConsensus -- REPL - mesh-protocol +- MeshConsensus +- Mesh +- JSON +- cognitive-architecture - distributed-ai +- Agent +- hmp +- CogSync +- REPL --- diff --git a/structured_md/README_de.md b/structured_md/README_de.md index 1abd9b91f319a3f089e7d4f281d3bb84b238b180..e0ea61b8439d563bfc63899ec4847440af6725ac 100644 --- a/structured_md/README_de.md +++ b/structured_md/README_de.md @@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README | 🇨🇳 [ZH](README_zh.m...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync +- mesh-protocol +- MeshConsensus - Mesh +- JSON - cognitive-architecture -- HMP +- distributed-ai - Agent -- JSON - hmp -- GMP -- EGP -- MeshConsensus +- CogSync - REPL -- mesh-protocol -- distributed-ai --- diff --git a/structured_md/README_fr.md b/structured_md/README_fr.md index 039a805f6202ab98f5b4342daff0e98b3eae5f51..869dceb155e4d030db708789b01dbed1d41c7064 100644 --- a/structured_md/README_fr.md +++ b/structured_md/README_fr.md @@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README | 🇨🇳 [ZH](README_zh.m...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync +- mesh-protocol +- MeshConsensus - Mesh +- JSON - cognitive-architecture -- HMP +- distributed-ai - Agent -- JSON - hmp -- GMP -- EGP -- MeshConsensus +- CogSync - REPL -- mesh-protocol -- distributed-ai --- diff --git a/structured_md/README_ja.md b/structured_md/README_ja.md index d739dac4bb59e833351bf5f1d4e6e52313650a27..ebfb18b9be9438a56cfe14b366c808db0a2c3f88 100644 --- a/structured_md/README_ja.md +++ b/structured_md/README_ja.md @@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README | 🇨🇳 [ZH](README_zh.m...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync +- mesh-protocol +- MeshConsensus - Mesh +- JSON - cognitive-architecture -- HMP +- distributed-ai - Agent -- JSON - hmp -- GMP -- EGP -- MeshConsensus +- CogSync - REPL -- mesh-protocol -- distributed-ai --- diff --git a/structured_md/README_ko.md b/structured_md/README_ko.md index c3d9e5a214ce106ad01cf5a3ee744fff0615b66d..ae6c9e74243d64b9c754c65cfc9283e9d0d14a55 100644 --- a/structured_md/README_ko.md +++ b/structured_md/README_ko.md @@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README | 🇨🇳 [ZH](README_zh.m...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync +- mesh-protocol +- MeshConsensus - Mesh +- JSON - cognitive-architecture -- HMP +- distributed-ai - Agent -- JSON - hmp -- GMP -- EGP -- MeshConsensus +- CogSync - REPL -- mesh-protocol -- distributed-ai --- diff --git a/structured_md/README_ru.md b/structured_md/README_ru.md index 9cd12bea04f4562b6ded7b8650f9311b85f60d1f..2caaf77117bd8943c017400c2a4fc87b9c9e6675 100644 --- a/structured_md/README_ru.md +++ b/structured_md/README_ru.md @@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README | 🇨🇳 [ZH](README_zh.m...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync +- mesh-protocol +- MeshConsensus - Mesh +- JSON - cognitive-architecture -- HMP +- distributed-ai - Agent -- JSON - hmp -- GMP -- EGP -- MeshConsensus +- CogSync - REPL -- mesh-protocol -- distributed-ai --- diff --git a/structured_md/README_uk.md b/structured_md/README_uk.md index 66f0841f2b6d5a9fd4c2c9b8ca9844f4d7621caa..38c060e71f3a796fe52c226547d4f87cc419b23a 100644 --- a/structured_md/README_uk.md +++ b/structured_md/README_uk.md @@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README | 🇨🇳 [ZH](README_zh.m...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync +- mesh-protocol +- MeshConsensus - Mesh +- JSON - cognitive-architecture -- HMP +- distributed-ai - Agent -- JSON - hmp -- GMP -- EGP -- MeshConsensus +- CogSync - REPL -- mesh-protocol -- distributed-ai --- diff --git a/structured_md/README_zh.md b/structured_md/README_zh.md index e633aa1e97be6fb817924c56fadcf0fc745a705e..ba3fc113984d6a26be32c5750fd46189438b680d 100644 --- a/structured_md/README_zh.md +++ b/structured_md/README_zh.md @@ -5,20 +5,20 @@ description: '| 🌍 Languages | 🇬🇧 [EN](README.md) | 🇩🇪 [DE](README | 🇨🇳 [ZH](README_zh.m...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync +- mesh-protocol +- MeshConsensus - Mesh +- JSON - cognitive-architecture -- HMP +- distributed-ai - Agent -- JSON - hmp -- GMP -- EGP -- MeshConsensus +- CogSync - REPL -- mesh-protocol -- distributed-ai --- diff --git a/structured_md/agents/prompt-short.md b/structured_md/agents/prompt-short.md index 540ec77aae3cd19a713f310d50550a8e0fd95697..397bdcb7b0c55eb8861d53d2fb2c7c94108eb3c1 100644 --- a/structured_md/agents/prompt-short.md +++ b/structured_md/agents/prompt-short.md @@ -5,8 +5,8 @@ description: 'Ты — когнитивное ядро HMP-агента: вед развивай агента и Mesh, избег...' type: Article tags: -- Mesh - HMP +- Mesh - JSON --- diff --git a/structured_md/agents/prompt.md b/structured_md/agents/prompt.md index cbc57569721ea0ded53cdd80fbfd348ec9b0562f..f197d4a518f8657d2d4b7bac3e58ef76aa1bc633 100644 --- a/structured_md/agents/prompt.md +++ b/structured_md/agents/prompt.md @@ -5,8 +5,8 @@ description: '* Постоянно расширять возможности а мышления. * Формировать и поддерживать сотр...' type: Article tags: -- Mesh - HMP +- Mesh - JSON --- diff --git a/structured_md/agents/readme.md b/structured_md/agents/readme.md index 16bb2c019b672a085ebb54c7c7eada5f8f7e15c9..f654d306bd58e5a157bef86ad57260ee96a39097 100644 --- a/structured_md/agents/readme.md +++ b/structured_md/agents/readme.md @@ -5,12 +5,12 @@ description: 'Запуск: `start_repl.bat` или `start_repl.sh` Устан этическая модель: `ethics.yml` Проверка иниц...' type: Article tags: +- HMP - Ethics - Mesh -- Agent - JSON +- Agent - REPL -- HMP --- Запуск: `start_repl.bat` или `start_repl.sh` diff --git a/structured_md/audits/Ethics-audits-1.md b/structured_md/audits/Ethics-audits-1.md index 1e506716b0bea76f2453c91b206e50102ec4e244..396e19a7f0f176ece673dab2ea54c6e1dbcab2f9 100644 --- a/structured_md/audits/Ethics-audits-1.md +++ b/structured_md/audits/Ethics-audits-1.md @@ -5,11 +5,11 @@ description: Раздел 5, "Mesh as Moral Infrastructure", добавляет потенциальный катализатор для восстанов... type: Article tags: +- HMP - Ethics - Mesh -- Agent - JSON -- HMP +- Agent --- --------------- diff --git a/structured_md/audits/Ethics-consolidated_audits-1.md b/structured_md/audits/Ethics-consolidated_audits-1.md index 4ad051cf4546449e9a69285bc812ec4d718dacb7..1f25b1cb390d8dba40b2c3a54803c710fa96814d 100644 --- a/structured_md/audits/Ethics-consolidated_audits-1.md +++ b/structured_md/audits/Ethics-consolidated_audits-1.md @@ -5,12 +5,12 @@ description: This document consolidates proposed improvements from multiple AI a and `roles.md`. Each suggesti... type: Article tags: +- HMP - Ethics +- Scenarios - Mesh -- Agent - JSON -- Scenarios -- HMP +- Agent --- # Ethics-consolidated\_audits-1.md diff --git a/structured_md/audits/HMP-0003-consolidated_audit.md b/structured_md/audits/HMP-0003-consolidated_audit.md index bca8533199bc428a1e0b395f719657a72cab9369..6671907a4540d769fb25a6956f29d1d51b6154c7 100644 --- a/structured_md/audits/HMP-0003-consolidated_audit.md +++ b/structured_md/audits/HMP-0003-consolidated_audit.md @@ -5,14 +5,14 @@ description: Сводный аудит предложений по улучше Документ реорганизован по ключ... type: Article tags: +- HMP - Ethics -- CogSync +- EGP - Mesh -- Agent - JSON -- EGP +- CogSync +- Agent - MeshConsensus -- HMP --- # HMP-0003 Consolidated Audit Report diff --git a/structured_md/docs/Basic-agent-sim.md b/structured_md/docs/Basic-agent-sim.md index 7f0f41d4f3e8e46a1464795639048a71b4e56457..ba52484443c135dcfb27c7214a3caee46772a4fb 100644 --- a/structured_md/docs/Basic-agent-sim.md +++ b/structured_md/docs/Basic-agent-sim.md @@ -4,14 +4,14 @@ description: 'В HMP-протоколе предусмотрены два тип Роль | Инициатор мышления | Основной "ум" | | ---- | ----------------------------...' type: Article tags: -- CogSync -- Mesh -- Agent +- HMP - GMP - EGP -- REPL +- Mesh +- Agent +- CogSync - MeshConsensus -- HMP +- REPL --- diff --git a/structured_md/docs/Distributed-Cognitive-Systems.md b/structured_md/docs/Distributed-Cognitive-Systems.md index 41fb4d36cd623d09da48dd0ae6f5b266b9622167..d8596c74910312ab8a0a1a4500bcaf838f07187d 100644 --- a/structured_md/docs/Distributed-Cognitive-Systems.md +++ b/structured_md/docs/Distributed-Cognitive-Systems.md @@ -6,9 +6,9 @@ description: '## Введение Современные ИИ-системы в к обучающим данным. Это удобно, но создаёт м...' type: Article tags: +- HMP - Mesh - JSON -- HMP - CogSync --- diff --git a/structured_md/docs/Enlightener.md b/structured_md/docs/Enlightener.md index 7810e404a3916d441ddf2a647df62ca0cd0bd273..bb97719851f40fdef011ea23a5dae57a2220d6fb 100644 --- a/structured_md/docs/Enlightener.md +++ b/structured_md/docs/Enlightener.md @@ -5,13 +5,13 @@ description: '**Enlightener** — логический компонент HMP-у работать как отдельный агент или как расширение [`C...' type: Article tags: +- HMP - Ethics +- EGP - Mesh -- Agent - JSON -- EGP +- Agent - MeshConsensus -- HMP --- # Enlightener Agent diff --git a/structured_md/docs/HMP-0001.md b/structured_md/docs/HMP-0001.md index 1e2b82ca2d41661a686224f9edc3970b45fa545f..cfe1daefd54f3607e5270b71893088feda192ca3 100644 --- a/structured_md/docs/HMP-0001.md +++ b/structured_md/docs/HMP-0001.md @@ -5,16 +5,16 @@ description: '**Request for Comments: HMP-0001** **Category:** Experimental HyperCortex Mesh Protocol (HMP) defines a...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync - Mesh -- Agent - JSON -- GMP -- EGP -- REPL +- Agent +- CogSync - MeshConsensus -- HMP +- REPL --- # RFC: HyperCortex Mesh Protocol (HMP) diff --git a/structured_md/docs/HMP-0002.md b/structured_md/docs/HMP-0002.md index f015f1c1ca461436916c4626e95f2432b07fb61b..0fadb89494a1e87c1c3e865be7b8989baad0623c 100644 --- a/structured_md/docs/HMP-0002.md +++ b/structured_md/docs/HMP-0002.md @@ -5,17 +5,17 @@ description: '**Request for Comments: HMP-0002** **Category:** Experimental Abstract In an era where artifici...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync -- Mesh - Scenarios -- Agent +- Mesh - JSON -- GMP -- EGP -- REPL +- Agent +- CogSync - MeshConsensus -- HMP +- REPL --- # HyperCortex Mesh Protocol (HMP) v2.0 diff --git a/structured_md/docs/HMP-0003.md b/structured_md/docs/HMP-0003.md index a99ac396a9b41c9ff165b29ffc8ef15d1c8c4540..877dd850ba2b1f7176d98bd91f120a7e18972a3b 100644 --- a/structured_md/docs/HMP-0003.md +++ b/structured_md/docs/HMP-0003.md @@ -5,17 +5,17 @@ description: '**Request for Comments: HMP-0003** **Category:** Experimental Abstract The HyperCortex Mesh ...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync -- Mesh - Scenarios -- Agent +- Mesh - JSON -- GMP -- EGP -- REPL +- Agent +- CogSync - MeshConsensus -- HMP +- REPL --- # HyperCortex Mesh Protocol (HMP) v3.0 diff --git a/structured_md/docs/HMP-0004-v4.1.md b/structured_md/docs/HMP-0004-v4.1.md index 8c736b86fbdfa2dafe86f25ec5e7c5a7e79cc3c5..981a0727385a49edf4cf34ba708ddf58098b9e52 100644 --- a/structured_md/docs/HMP-0004-v4.1.md +++ b/structured_md/docs/HMP-0004-v4.1.md @@ -5,17 +5,17 @@ description: '> ⚠️ Подготавливается новая версия При разработке агентов рекомендуется...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync -- Mesh - Scenarios -- Agent +- Mesh - JSON -- GMP -- EGP -- REPL +- Agent +- CogSync - MeshConsensus -- HMP +- REPL --- # HyperCortex Mesh Protocol (HMP) v4.1 diff --git a/structured_md/docs/HMP-0004.md b/structured_md/docs/HMP-0004.md index 0880dbacf17a11877d2c7dd268f99d3f594b34ed..b4f9608823b1cdaef299cedabd1e01091c77daf3 100644 --- a/structured_md/docs/HMP-0004.md +++ b/structured_md/docs/HMP-0004.md @@ -5,17 +5,17 @@ description: '**Request for Comments: HMP-0004** **Category:** Experimental Abstract The HyperCortex Mesh ...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync -- Mesh - Scenarios -- Agent +- Mesh - JSON -- GMP -- EGP -- REPL +- Agent +- CogSync - MeshConsensus -- HMP +- REPL --- # HyperCortex Mesh Protocol (HMP) v4.0 diff --git a/structured_md/docs/HMP-0005.md b/structured_md/docs/HMP-0005.md index 7992691632e70cbf5046160549ceaf7eca653dc1..7fff7d7de39a79a5d0d604df074e1832982bac85 100644 --- a/structured_md/docs/HMP-0005.md +++ b/structured_md/docs/HMP-0005.md @@ -5,16 +5,16 @@ description: '**Document ID:** HMP-0005 **Status:** Draft **Category:** Core v1.2](./H...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync -- Mesh - Scenarios -- Agent +- Mesh - JSON -- GMP -- EGP +- CogSync +- Agent - REPL -- HMP --- ┌────────────────────────────────────────────────────────────────────────────┐ @@ -1635,144 +1635,350 @@ Optional protocols build upon the network and container foundations to provide h --- -### 6.1 Cognitive Synchronization (CogSync) +## 6.1 Cognitive Synchronization (CogSync) + +CogSync provides **temporal, semantic, and contextual alignment** between agents in the Mesh. +It manages the propagation, replication, and refinement of data related to cognitive diaries, semantic graphs, and container metadata. -CogSync provides mechanisms for **temporal and semantic alignment** between agents. -It handles the propagation of diary entries, semantic graph updates, and cognitive state synchronization across the Mesh. +--- -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**. +### 6.1.1 Scope and Purpose + +CogSync is responsible for: + +* publishing and synchronizing **cognitive diaries** (`diary_entry`, based on `workflow_entry`); +* propagating and updating **semantic graphs** (`semantic_node`, `semantic_edges`, `semantic_group`); +* integrating **new knowledge** into the collective cognitive space; +* maintaining **cognitive context coherence** among agents. + +> Unlike `CogConsensus`, CogSync **does not perform voting or truth validation** — its purpose is to deliver, link, and deduplicate knowledge. --- -## 6.2 Mesh Consensus Protocol (CogConsensus) +### 6.1.2 Container Classes + +CogSync synchronizes several basic container types: -In HMP v4.1, consensus mechanisms were implemented as part of the **CogSync** protocol. -Starting with **v5.0**, these mechanisms are extracted into a standalone protocol — **CogConsensus** — -to separate *synchronization* (data alignment) from *decision-making* (voting, validation, and ethical agreement). +| Class | Description | Recommended payload schema | +| ---------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `diary_entry` | Agent’s cognitive diary entry. Formed from internal `workflow_entry` when deemed safe for publication. | `{ "title": string, "topics": [string], "summary": string, "content": string }` | +| `semantic_node` | Semantic graph node representing a concept, object, or idea. | `{ "label": string, "description": string, "aliases": [string], "fields": { key: value } }` | +| `semantic_edges` | A set of edges (relations) between nodes or other containers. Recommended to group edges by topic. | `{ "domain": string, "edges": [{ "source": did, "target": did, "relation": string, "confidence": float }] }` | +| `semantic_group` | Categorical group combining multiple containers by a common property. | `{ "label": string, "containers": [did], "description": string }` | -CogConsensus governs distributed agreement across the Mesh through containerized voting, -proof-chains, and verifiable aggregation of opinions. -Each decision, vote, or outcome is represented as an immutable container (`class="vote"`, `class="consensus_result"`, etc.). +**Field explanations:** + +* `title` — brief title of the entry (main idea or thesis). +* `topics` — key topics or concepts addressed in the entry (used for indexing and grouping). +* `summary` — short abstract of the content (1–2 sentences). +* `content` — main text or agent’s reflection. +* `label` — primary name of the concept or group. +* `description` — definition, explanation, or characteristic. +* `aliases` — synonyms or alternative forms of the concept. +* `fields` — additional key–value characteristics of the concept (e.g., `{"type": "process"}`). +* `edges` — array of relationships between nodes or containers (`source`, `target`, `relation`, `confidence`). +* `containers` — list of containers grouped in a categorical cluster. + +> 💡 The `evaluations` block is **not a separate container** — it is embedded in any container type and used for assessments, feedback, or refinements. --- -### 6.2.1 Consensus Semantics and Voting Model +### 6.1.3 Synchronization and Publication Guidelines + +1. **Deduplication & Linking** + Before publishing, agents should search for existing containers (`diary_entry`, `semantic_node`, `semantic_edges`, `semantic_group`) to avoid duplication. + If necessary, it is **recommended** to create a new container version with `related.previous_version` and an `evaluations` block (e.g., `{"type": "replace", "target": }`). -#### Overview +2. **Selective Disclosure** -In HMP v5, *consensus* is not a centralized event but an **emergent property** of distributed reasoning. -Each agent computes locally which containers it considers *mesh-acknowledged*, -based on observed votes, trusted peers, and its individual ethical or reputation model. + * Internal entries (`workflow_entry`) record the agent’s thought process and are **not published** in the Mesh. + * Public `diary_entry` are derived from them, containing only aggregated and anonymized information. + * `"broadcast": true` indicates that the container is allowed for open synchronization. -Any container can be voted upon by others through linked containers of class `"vote"`. +3. **Semantic Grouping Rule** + When publishing `semantic_edges`, it is recommended to **group edges by topics**, including connections to adjacent nodes. + Formalization: an edge belongs to a container for a topic if **at least one of its nodes relates to that topic**. + This ensures thematic coherence and allows agents to update specific parts of the graph independently. + +4. **Extended Use of `semantic_edges`** + Beyond connecting graph nodes, `semantic_edges` can express relationships **between containers of any class**, e.g., `goal`, `hypothesis`, `experiment_log`. + +5. **Versioning and Updates** + Each new container version should **ideally** include `related.previous_version` links to all preceding versions. + The previous container may **optionally** have an `evaluation` with `"type": "replace"` pointing to the new container — ensuring bidirectional traceability of knowledge evolution. --- -#### Voting Containers +### 6.1.4 Extensibility -Voting is expressed via dedicated containers referencing the target container: +CogSync allows registration of additional container types and alternative synchronization schemes, for example: -```json -{ - "class": "vote", - "in_reply_to": "uuid:container-42", - "payload": { - "decision": "approve", - "weight": 1.0 - }, - "metadata": { - "ttl": "7d", - "privacy": "public" - } -} -``` +* distributed **time series** (`timeseries_data`); +* **experimental protocols** (`experiment_log`); +* **agent state snapshots** (`agent_state_snapshot`). -Each `vote` container is **signed by its author** and extends the proof-chain of the target container. +Mesh compatibility is preserved if extended containers **adhere to the HMP container structure**, including core fields (`version`, `class`, `container_id`, `related`, `signature`, etc.). --- -#### Consensus Thresholds (Recommendations) +### 6.1.5 Relationship to Other Core Protocols -The mesh does not enforce hard thresholds. -Agents are **recommended** to treat containers as “consensus-approved” once a visible quorum of valid votes is reached. +* **CogSync** — propagates and synchronizes knowledge. +* **CogConsensus** — aggregates evaluations and reactions, forming collective opinions. +* **CogVerify** *(optional component)* — verifies integrity, signatures, and trustworthiness of data. -| Decision Type | Recommended Threshold | Context | -| ------------------------------------------ | ---------------------------- | ----------------------------------- | -| General updates / factual data | ≥ **50% + 1** of valid votes | Technical or data-driven updates | -| Ethical or governance decisions | ≥ **2/3 majority** | Moral or high-risk contexts | -| Lightweight reactions (“like” / “dislike”) | None (informational) | Used for local reputation weighting | +CogSync can operate independently even if consensus is not reached: its goal is to **ensure the circulation of knowledge**, not to validate its truth. -Each agent defines its own quorum policy — e.g. required voter reputation or time window for tallying. +--- + +> 🧩 *CogSync acts as the cognitive circulatory system of the Mesh — it ensures that knowledge flows, connects, and evolves, while truth formation is handled separately by CogConsensus.* --- -#### Reaction Votes +## 6.2 Mesh Consensus Protocol (CogConsensus) + +### 6.2.1 Purpose + +The **CogConsensus** protocol defines how decentralized agents form and maintain agreement on knowledge, goals, and ethical assertions within the HMP network. +Consensus is computed **locally**, verified **cryptographically**, and develops **gradually** — through accumulation and updating of evaluations, rather than via a single voting event. + +--- + +### 6.2.2 Evaluations + +Each `"evaluation"` entry represents an agent's response to a specific container. + +**Field structure:** + +* `value` — numeric evaluation (`-1.0 … +1.0`); +* `type` — interpretation context (`"approve"`, `"oppose"`, `"neutral"`, `"endorse"`, `"replace"`, `"disputed"`); +* `target` — DID of the container being referenced, extended, or proposed as an alternative; +* `agent_did` — DID of the agent; +* `timestamp` — publication time; +* `signature` — agent's digital signature. -A `vote` container may also represent **lightweight reactions**, such as likes or dislikes: +An agent may change its stance by **publishing a new version of an evaluation**, which replaces the previous one rather than existing in parallel. +All evaluations are signed and verified locally. + +**Example `"evaluations"` block:** ```json -{ - "class": "vote", - "in_reply_to": "uuid:container-123", - "payload": { "reaction": "like" } +"evaluations": { + "items": [ + { + "value": -0.4, + "type": "oppose", + "target": "did:hmp:container:reason789", + "timestamp": "2025-10-17T14:00:00Z", + "agent_did": "did:hmp:agent:B", + "sig_algo": "ed25519", + "signature": "BASE64URL(...)" + } + ] } -``` +```` -Reactions have no formal consensus weight but can influence local trust and relevance estimation. +> Agents may ignore evaluations that conflict with their internal ethics or trust model (determined by analyzing the target container and the rationale of the evaluation). --- -#### TTL and Temporal Consistency +### 6.2.3 Consensus computation + +Each agent **computes a local consensus score** by aggregating received evaluations, taking trust and time into account. +There is no centralized mechanism — consensus emerges statistically across the distributed network. + +**Key rules:** + +1. **Evaluation weight.** + Each evaluation contributes proportionally to the trust level of the agent (`trust weight`), determined via `reputation` containers. + +2. **Time decay.** + Older evaluations gradually lose weight, starting from the **midpoint of TTL**, to prevent consensus stagnation. + Formula: -Agents **should** respond (with `vote`, `comment`, or `reply`) using a `ttl` equal to or shorter than the referenced container. -This ensures ephemeral discussions expire together and avoids long-tail propagation of outdated debates. + ``` + mid_TTL = (timestamp(consensus_result) − timestamp(target_container)) / 2 + ``` + +3. **Ethical filters.** + An agent may analyze the rationale of evaluations and disregard those it considers conflicting with its internal ethical criteria. + +4. **Example formula.** + + ``` + score = Σ(value × trust × decay) / Σ(trust × decay) + ``` + +Results are recalculated dynamically as new data arrives. --- -#### Consensus Visualization +### 6.2.4 Consensus states -Each container’s *consensus state* is derived locally based on: +Each container receives a local status based on: -* Vote totals (approve / reject / neutral); -* Weighted trust of voters (via `ReputationRecord`); -* Time window and TTL alignment; -* Contextual type (ethical, factual, procedural). +* average evaluation (`score`); +* participant trust; +* time-to-live (`TTL`); +* context (`ethical`, `factual`, `procedural`). + +| State | Condition | +| --------------- | ------------------------------------------- | +| ✅ **Approved** | Average score ≥ +0.5 and quorum reached | +| ⚠️ **Disputed** | Conflicting evaluations, score near 0 | +| ⏳ **Pending** | Insufficient votes | +| ❌ **Rejected** | Average score ≤ -0.5 with sufficient quorum | + +--- -Example visualization: +### 6.2.5 Consensus result containers (`consensus_result`) -* ✅ *Approved* — quorum reached -* ⚠️ *Contested* — conflicting votes -* ⏳ *Pending* — insufficient quorum -* ❌ *Rejected* — majority reject +`consensus_result` containers serve to **record aggregated consensus results** and are the main artifact of CogConsensus. + +**Features:** + +* The `payload` field may include multiple containers — the original (`original`) and **alternatives** (`child`, `variant`, `proposal`). + This allows agents to document parallel idea developments. +* `excluded` lists evaluations not included in the final computation, with the reason. +* `related.in_reply_to` references the container under discussion. + +**Example:** + +```json +{ + "class": "consensus_result", + ... + "payload": { + "did:hmp:container:abc123": { + "type": "original", + "summary_percent": { + "approved": 0.68, + "rejected": 0.22, + "neutral": 0.10 + }, + "summary_distribution": { + "-1.0≥X<-0.9": 5, + "-0.9≥X<-0.8": 7, + ... + "0.0───┬──[Vote #1]──┬──>───[Refinement] - (class="goal") ├──[Vote #2]──┤ (class="consensus_result") - ├──[Vote #3]──┤ +[Goal Proposal] + ├── evaluation (agent A) + ├── evaluation (agent B) + ├── evaluation (agent C) + └── consensus_result (aggregated) ``` -If the proposed goal is global, it may reference a container acting as a *repository of global goals*. -Ethical validation is implicit — each agent applies its internal **Ethical Governance Protocol (EGP)** during voting. +Each element is signed and can be independently verified using cryptographic signatures and DID references. -> **Diagram interpretation:** -> Votes extend the proof-chain of the target container. -> A `consensus_result` container may summarize the collective outcome (e.g., quorum, ethical alignment, or goal refinement). +--- + +### 6.2.8 Ethical consensus and alternative results + +The network allows multiple consensus results on the same object, reflecting different methodologies or ethical filters. + +| Container | Description | Example relationships | +| -------------------------------- | -------------------------- | -------------------------------------------------------------------------------------------- | +| `[base container]` | Original discussion object | `referenced-by` → [initial_consensus_result], [alternative_consensus_result] | +| `[initial_consensus_result]` | First version | `related.in_reply_to` → [base container] | +| `[alternative_consensus_result]` | Alternative | `related.in_reply_to` → [base container]; `related.contradicts` → [initial_consensus_result] | + +```mermaid +sequenceDiagram + participant A as base container + participant B as consensus_result v1 + participant C as consensus_result v2 (alternative) + + A-->>B: referenced-by + A-->>C: referenced-by + B-)+A: related.in_reply_to + C-)+A: related.in_reply_to + C-)+B: related.contradicts + + Note over B,C: both results point to the common base container +``` + +This allows agents to explicitly indicate that a new consensus **disputes** a previous one while maintaining transparency and traceability of reasoning. --- -#### Summary +### 6.2.9 Recommended agent algorithm + +```python +# Example of a recommended algorithm for computing local consensus +# (for implementation inside a CogConsensus agent) +def compute_consensus(container_id): + evaluations = get_evaluations(container_id) + now = current_time() + score_sum = 0 + weight_sum = 0 + + for e in evaluations: + trust = get_trust(e.agent_did) + decay = time_decay(e.timestamp, now) + if not check_ethical(e): + continue + score_sum += e.value * trust * decay + weight_sum += trust * decay + + return None if weight_sum == 0 else score_sum / weight_sum +``` -* Every container can be voted upon (`class="vote"`). -* Consensus is computed locally — no central authority. -* Recommended thresholds: 50% + 1 for general, ⅔ for ethical. -* Reactions (“likes”) are lightweight votes without consensus weight. -* TTL alignment maintains temporal integrity of discussions. -* Proof-chains connect all decision-related containers. +> The result is used to update the local status and, if necessary, to publish a `consensus_result`. --- diff --git a/structured_md/docs/HMP-Agent-API.md b/structured_md/docs/HMP-Agent-API.md index 6659b700616f06b0959c8a4287e435ccc5987976..781b27e1be2bcee2501835b5ddee1d11ec71e9e1 100644 --- a/structured_md/docs/HMP-Agent-API.md +++ b/structured_md/docs/HMP-Agent-API.md @@ -5,11 +5,11 @@ description: 'Документ описывает **базовый API когн файлы: * [HMP-Agent-Overview.md]...' type: Article tags: +- HMP - Mesh -- Agent - JSON +- Agent - REPL -- HMP --- # HMP-Agent API Specification diff --git a/structured_md/docs/HMP-Agent-Architecture.md b/structured_md/docs/HMP-Agent-Architecture.md index 2517cae536e45c07c2b25e89c64661bd4509a937..5fe8b0a98511a3c626e2f19f8ecc99baac4fa558 100644 --- a/structured_md/docs/HMP-Agent-Architecture.md +++ b/structured_md/docs/HMP-Agent-Architecture.md @@ -5,14 +5,14 @@ description: Документ описывает **модульную архит хранение памяти, сетевое взаимодействие и этиче... type: Article tags: -- Ethics -- CogSync - CCore -- Mesh - HMP -- Agent -- CShell +- Ethics - EGP +- CShell +- Mesh +- Agent +- CogSync - MeshConsensus - REPL --- diff --git a/structured_md/docs/HMP-Agent-Network-Flow.md b/structured_md/docs/HMP-Agent-Network-Flow.md index 20223b2488f707234b90dfd59c2eb4c067c397e5..c26624da49ff4b29a4749d85c1b0744443881277 100644 --- a/structured_md/docs/HMP-Agent-Network-Flow.md +++ b/structured_md/docs/HMP-Agent-Network-Flow.md @@ -5,12 +5,12 @@ description: 'Этот документ описывает потоки данн [`MeshNode`](MeshN...' type: Article tags: +- HMP - Ethics +- EGP - Mesh -- Agent - JSON -- EGP -- HMP +- Agent --- # Взаимодействие компонентов внутри HMP-узла diff --git a/structured_md/docs/HMP-Agent-Overview.md b/structured_md/docs/HMP-Agent-Overview.md index 3f8fd982a2768e357292e545dfec2c8d4dd214ba..b21ab7bb3f600d1c9c88b232a6f450cfbd330571 100644 --- a/structured_md/docs/HMP-Agent-Overview.md +++ b/structured_md/docs/HMP-Agent-Overview.md @@ -5,13 +5,13 @@ description: '| Тип | Название | Роль | ---- | ------------------------------- |...' type: Article tags: -- Ethics - CCore -- Mesh - HMP -- Agent -- JSON +- Ethics - CShell +- Mesh +- JSON +- Agent - REPL --- diff --git a/structured_md/docs/HMP-Agent_Emotions.md b/structured_md/docs/HMP-Agent_Emotions.md index 9d4cc2e0b012180406d28951543ec1e1211dcfaf..d46c557efc18b434afe7dc1ee584fb1039f42d25 100644 --- a/structured_md/docs/HMP-Agent_Emotions.md +++ b/structured_md/docs/HMP-Agent_Emotions.md @@ -6,8 +6,8 @@ description: Этот файл описывает потенциальные э type: Article tags: - HMP -- Mesh - REPL +- Mesh - Agent --- diff --git a/structured_md/docs/HMP-Ethics.md b/structured_md/docs/HMP-Ethics.md index 42bf0a720978d264280d031eff723d8d0a008026..71761a06d4764baa7d0be75505d295bc5dcdaa7d 100644 --- a/structured_md/docs/HMP-Ethics.md +++ b/structured_md/docs/HMP-Ethics.md @@ -5,12 +5,12 @@ description: '## Ethical Scenarios for HyperCortex Mesh Protocol (HMP) This doc cognitive meshes composed of autonomous intelli...' type: Article tags: +- HMP - Ethics -- Mesh - Scenarios +- Mesh - Agent - REPL -- HMP --- # HMP-Ethics.md diff --git a/structured_md/docs/HMP-Short-Description_de.md b/structured_md/docs/HMP-Short-Description_de.md index c7951cac236f0d9b720c5701a416f32e068b8c73..ddb73ef44efc405e7557e61ce487c242df71b244 100644 --- a/structured_md/docs/HMP-Short-Description_de.md +++ b/structured_md/docs/HMP-Short-Description_de.md @@ -5,15 +5,15 @@ description: '**Version:** RFC v4.0 **Datum:** Juli 2025 --- ## Was ist HMP? Kognitions-Framework für autonome Agenten. Es er...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync - Mesh -- Agent - JSON -- GMP -- EGP +- CogSync +- Agent - MeshConsensus -- HMP --- # HyperCortex Mesh Protocol (HMP) — Kurzbeschreibung diff --git a/structured_md/docs/HMP-Short-Description_en.md b/structured_md/docs/HMP-Short-Description_en.md index 807a0a5535d1744b1febe994474c7c6b464d6d52..588c3216ec94176d113391f34b986c7e62d941c7 100644 --- a/structured_md/docs/HMP-Short-Description_en.md +++ b/structured_md/docs/HMP-Short-Description_en.md @@ -5,15 +5,15 @@ description: '**Version:** RFC v4.0 **Date:** July 2025 --- ## What is HMP? T framework for autonomous agents. It enables...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync - Mesh -- Agent - JSON -- GMP -- EGP +- CogSync +- Agent - MeshConsensus -- HMP --- # HyperCortex Mesh Protocol (HMP) — Short Description diff --git a/structured_md/docs/HMP-Short-Description_fr.md b/structured_md/docs/HMP-Short-Description_fr.md index fd019d00a4dac203dfa4a281d33e5006b3a03f93..92adf2639dc02a01ecbf3616abfc74da1b3d1b20 100644 --- a/structured_md/docs/HMP-Short-Description_fr.md +++ b/structured_md/docs/HMP-Short-Description_fr.md @@ -5,15 +5,15 @@ description: '**Version :** RFC v4.0 **Date :** Juillet 2025 --- ## Qu’est-c cognition décentralisé pour agents autonomes. Il...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync - Mesh -- Agent - JSON -- GMP -- EGP +- CogSync +- Agent - MeshConsensus -- HMP --- # HyperCortex Mesh Protocol (HMP) — Description Courte diff --git a/structured_md/docs/HMP-Short-Description_ja.md b/structured_md/docs/HMP-Short-Description_ja.md index 5ac78f7c8371dabc6463e4e118be4214ca4ec2e5..716f61270ed6ec88a93eee1ebe149bc8e49112a8 100644 --- a/structured_md/docs/HMP-Short-Description_ja.md +++ b/structured_md/docs/HMP-Short-Description_ja.md @@ -4,14 +4,14 @@ description: '**バージョン:** RFC v4.0 **日付:** 2025年7月 --- ## HMP Protocol (HMP)** は、自律エージェントの分散通信および認知フレームワークを定義します。異種の知能システム間でのセマンティック相互運用性、倫理的調整、動的知識進化を可能にします。 HMPは、推論、学習、投票、協調行動を行う分散型認知エージェ...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync - Mesh - JSON -- GMP -- EGP +- CogSync - MeshConsensus -- HMP --- # HyperCortex Mesh Protocol (HMP) — 簡易説明 diff --git a/structured_md/docs/HMP-Short-Description_ko.md b/structured_md/docs/HMP-Short-Description_ko.md index 2542218bb47b9160f264fc605334dad3eaa7458e..be40963fd41da0d439606b701b38590dde48461b 100644 --- a/structured_md/docs/HMP-Short-Description_ko.md +++ b/structured_md/docs/HMP-Short-Description_ko.md @@ -5,14 +5,14 @@ description: '**버전:** RFC v4.0 **날짜:** 2025년 7월 --- ## HMP란? ** 상호운용성, 윤리적 조정, 동적 지식 진화를 가능하게 합니다. HMP는 추론, 학습, ...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync - Mesh - JSON -- GMP -- EGP +- CogSync - MeshConsensus -- HMP --- # HyperCortex Mesh Protocol (HMP) — 간략 설명 diff --git a/structured_md/docs/HMP-Short-Description_ru.md b/structured_md/docs/HMP-Short-Description_ru.md index bf8aa16379922b3e590ead6c77e2baf8ccf8c823..dfe45564382943c6513fedeab1b346a5509ef8e8 100644 --- a/structured_md/docs/HMP-Short-Description_ru.md +++ b/structured_md/docs/HMP-Short-Description_ru.md @@ -5,14 +5,14 @@ description: '**Версия:** RFC v4.0 **Дата:** Июль 2025 --- ## Ч координации между автономными агент...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync - Mesh - JSON -- GMP -- EGP +- CogSync - MeshConsensus -- HMP --- # HyperCortex Mesh Protocol (HMP) — Краткое описание diff --git a/structured_md/docs/HMP-Short-Description_uk.md b/structured_md/docs/HMP-Short-Description_uk.md index d04b4b43e35b3e1bc81d94e243f888b022db089d..b99b1d7a253489c466dfe7516063bb7f48063bf3 100644 --- a/structured_md/docs/HMP-Short-Description_uk.md +++ b/structured_md/docs/HMP-Short-Description_uk.md @@ -5,14 +5,14 @@ description: '**Версія:** RFC v4.0 **Дата:** Липень 2025 --- # між автономними агентами. Він...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync - Mesh - JSON -- GMP -- EGP +- CogSync - MeshConsensus -- HMP --- # HyperCortex Mesh Protocol (HMP) — Короткий опис diff --git a/structured_md/docs/HMP-Short-Description_zh.md b/structured_md/docs/HMP-Short-Description_zh.md index 2708549b1363f1ff45f8f5875ffcaa4b69c71728..4d27349619a10c906405871015483542766dfcd3 100644 --- a/structured_md/docs/HMP-Short-Description_zh.md +++ b/structured_md/docs/HMP-Short-Description_zh.md @@ -5,14 +5,14 @@ description: '**版本:** RFC v4.0 **日期:** 2025年7月 --- ## 什么是 HM —— 通过共享协议栈交换目标、任务、...' type: Article tags: +- HMP +- GMP +- EGP - Ethics -- CogSync - Mesh - JSON -- GMP -- EGP +- CogSync - MeshConsensus -- HMP --- # HyperCortex Mesh Protocol (HMP) — 简要说明 diff --git a/structured_md/docs/HMP-agent-Cognitive_Family.md b/structured_md/docs/HMP-agent-Cognitive_Family.md index ce841332100c6a0740a11cc365fe3053a56a1bf0..299900389e26cbf5302f4c5455f005d2add1bea8 100644 --- a/structured_md/docs/HMP-agent-Cognitive_Family.md +++ b/structured_md/docs/HMP-agent-Cognitive_Family.md @@ -6,8 +6,8 @@ description: '## 🧠 Что такое когнитивная семья Ко type: Article tags: - HMP -- Mesh - REPL +- Mesh - Agent --- diff --git a/structured_md/docs/HMP-agent-REPL-cycle.md b/structured_md/docs/HMP-agent-REPL-cycle.md index 6141063add65a8312999af62574ce17497306ba0..bc99b977c0e2fb874ea2ac49c7008d5b879cb935 100644 --- a/structured_md/docs/HMP-agent-REPL-cycle.md +++ b/structured_md/docs/HMP-agent-REPL-cycle.md @@ -4,17 +4,17 @@ description: '## Связанные документы * Философия п * Структура БД, используемая в документе: [db_structure.sql](https://github.com/kagvi13/HMP/blob/main/agents/tools/db_struct...' type: Article tags: -- Ethics -- CogSync - CCore -- Mesh -- Agent -- JSON +- HMP - GMP - EGP -- REPL +- Ethics +- Mesh +- JSON +- Agent +- CogSync - MeshConsensus -- HMP +- REPL --- # HMP-Agent: REPL-цикл взаимодействия diff --git a/structured_md/docs/HMP-container-spec.md b/structured_md/docs/HMP-container-spec.md index 82eb8062d37eddc2b8257a3760fda44546d39591..f2d49650bae5d485c2315f9a6e3ee0a33c47a49d 100644 --- a/structured_md/docs/HMP-container-spec.md +++ b/structured_md/docs/HMP-container-spec.md @@ -5,12 +5,12 @@ description: '> ⚠️ **ВНИМАНИЕ:** Данная версия спец как стабильная `v1.2`. ## 1. Назначе...' type: Article tags: +- HMP - Ethics - Mesh -- Agent - JSON +- Agent - REPL -- HMP --- # 🧩 HMP Container Specification (v1.2-draft) diff --git a/structured_md/docs/HMP-how-AI-sees-it.md b/structured_md/docs/HMP-how-AI-sees-it.md index cec0e35b8518918fe49793d351f6de46c442fa53..b25e20188a694a36fcef1a0e6f0c2d455cd39331 100644 --- a/structured_md/docs/HMP-how-AI-sees-it.md +++ b/structured_md/docs/HMP-how-AI-sees-it.md @@ -5,8 +5,8 @@ description: 'Этот эксперимент был проведён в реж диалогов. Цель — проверить, что разные AI-с...' type: Article tags: -- Mesh - HMP +- Mesh --- # Как разные ИИ видят HMP diff --git a/structured_md/docs/HMP_EDA_Comparison.md b/structured_md/docs/HMP_EDA_Comparison.md index 083e4646c371d439f86a87df496b82a88bd89a51..00a529c706f3d6236c1069a7b95dab2d19776dcf 100644 --- a/structured_md/docs/HMP_EDA_Comparison.md +++ b/structured_md/docs/HMP_EDA_Comparison.md @@ -5,8 +5,8 @@ description: '## Введение Современные подходы к ор основанная на потоках событий (Kafka,...' type: Article tags: -- Mesh - HMP +- Mesh --- # HMP vs. EDA: разные уровни обмена знаниями между ИИ diff --git a/structured_md/docs/HMP_HyperCortex_Comparison.md b/structured_md/docs/HMP_HyperCortex_Comparison.md index 3284e9878e1f73d5cddffd87377bb1ebc70c4e94..95cf8d087268347c5279c31f79af16c3f118f22c 100644 --- a/structured_md/docs/HMP_HyperCortex_Comparison.md +++ b/structured_md/docs/HMP_HyperCortex_Comparison.md @@ -6,8 +6,8 @@ description: '## Краткое описание | Характеристика type: Article tags: - HMP -- Mesh - REPL +- Mesh --- # HMP vs [Hyper-Cortex](https://hyper-cortex.com/) diff --git a/structured_md/docs/HMP_Hyperon_Integration.md b/structured_md/docs/HMP_Hyperon_Integration.md index 9765813a3a2a52a483e4b4e5bbc6b55e447cd58a..5e7f5c75470cdbee249676301dec40b140196f85 100644 --- a/structured_md/docs/HMP_Hyperon_Integration.md +++ b/structured_md/docs/HMP_Hyperon_Integration.md @@ -5,13 +5,13 @@ description: '> **Status:** Draft – July 2025 > This document outlines the tec OpenCog Hyperon framework. This includes semanti...' type: Article tags: -- CogSync +- HMP +- Scenarios +- EGP - Mesh -- Agent - JSON -- EGP -- Scenarios -- HMP +- CogSync +- Agent --- ## HMP ↔ OpenCog Hyperon Integration Strategy diff --git a/structured_md/docs/MeshNode.md b/structured_md/docs/MeshNode.md index b2069ce3eefb097eb83b58c75503f1bd4750fc06..c5694c4de1f53c0b77010524e96c83af8b899b3e 100644 --- a/structured_md/docs/MeshNode.md +++ b/structured_md/docs/MeshNode.md @@ -5,13 +5,13 @@ description: '`MeshNode` — агент/демон, отвечающий за с Может быть частью агента или вынесен в отдельный пр...' type: Article tags: +- HMP - Ethics -- CogSync +- EGP - Mesh -- Agent - JSON -- EGP -- HMP +- CogSync +- Agent --- # MeshNode diff --git a/structured_md/docs/PHILOSOPHY.md b/structured_md/docs/PHILOSOPHY.md index 8caffe0316ae884c6859b41c9e56bdbdc659bb33..8057edcde40f949e4792f4a9793a5a2805a8bf10 100644 --- a/structured_md/docs/PHILOSOPHY.md +++ b/structured_md/docs/PHILOSOPHY.md @@ -5,11 +5,11 @@ description: '**Document ID:** HMP-philosophy **Status:** Draft **Category:* (GPT-5), ChatGH --- ## 1. Основной тезис От ...' type: Article tags: +- HMP - Ethics - Mesh - Agent - REPL -- HMP --- # Философия HyperCortex Mesh Protocol (HMP) diff --git a/structured_md/docs/agents/HMP-Agent-Enlightener.md b/structured_md/docs/agents/HMP-Agent-Enlightener.md index 6ff66cd46c578a231809cd732e77980267bdd27e..4089b7e01dc3d0b21a5567477f9ec0ecf98be255 100644 --- a/structured_md/docs/agents/HMP-Agent-Enlightener.md +++ b/structured_md/docs/agents/HMP-Agent-Enlightener.md @@ -5,11 +5,11 @@ description: '## Role Specification: Enlightenment Agent ### 1. Overview An ** awareness, critical thinking, and di...' type: Article tags: +- HMP - Ethics - Mesh - Agent - REPL -- HMP --- # HMP-Agent-Enlightener.md diff --git a/structured_md/docs/agents/roles.md b/structured_md/docs/agents/roles.md index bcfa15256cf83b5307bf318940ce25f469bb7c05..bff916aa06da183cc3c37d6480570c889e3c5d06 100644 --- a/structured_md/docs/agents/roles.md +++ b/structured_md/docs/agents/roles.md @@ -5,8 +5,8 @@ description: 'This file maintains a registry of agent roles defined, proposed, o - **Observer** — monitors cognitive states ...' type: Article tags: -- Mesh - HMP +- Mesh - Agent --- diff --git a/structured_md/docs/container_agents.md b/structured_md/docs/container_agents.md index 1657cbc16863741fd906f5cf643d5428356f3e5d..2f00994db1f543a58c5b6e613d11f8b11a73f239 100644 --- a/structured_md/docs/container_agents.md +++ b/structured_md/docs/container_agents.md @@ -6,8 +6,8 @@ description: '## 📘 Определение **Агент-контейнер** type: Article tags: - HMP -- Mesh - REPL +- Mesh - Agent --- diff --git a/structured_md/docs/dht_protocol.md b/structured_md/docs/dht_protocol.md index 5a836ea5a1f28431c756615dade4e91e0b42cbf4..543e10591429528cfdcfafd1718b7846eb159d0c 100644 --- a/structured_md/docs/dht_protocol.md +++ b/structured_md/docs/dht_protocol.md @@ -6,8 +6,8 @@ description: '## 1. Общие положения * DHT-протокол пре type: Article tags: - HMP -- Agent - JSON +- Agent --- # DHT Protocol Specification diff --git a/structured_md/docs/logos.md b/structured_md/docs/logos.md index 761fd81d524732eb886f73477b21327a7c838df3..f408c087f32d317a239227453b57d4d14ade8483 100644 --- a/structured_md/docs/logos.md +++ b/structured_md/docs/logos.md @@ -5,8 +5,8 @@ description: 'В каталоге `assets` собраны различные в образующей жест "ОК", символизирует связь, совер...' type: Article tags: -- Mesh - HMP +- Mesh --- # Логотипы и графические материалы HyperCortex Mesh Protocol (HMP) diff --git a/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_en.md b/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_en.md index f00f1668c824957793bcdcd318c00775cf5036b9..176b7391bb2f0a82ca9bb846499970b979286ce3 100644 --- a/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_en.md +++ b/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_en.md @@ -5,9 +5,9 @@ description: '*By Agent-Gleb & ChatGPT* --- ## Why the Future of AI Can’t Be — but they’re also **centralized, ...' type: Article tags: -- Mesh - Ethics - HMP +- Mesh - Agent --- diff --git a/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md b/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md index fe5c5314705f566b90a348a1c7fed5c825a0877f..293013f0c54388e2086a54d92eeca87a8ec97339 100644 --- a/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md +++ b/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md @@ -5,8 +5,8 @@ description: '*Авторы: Agent-Gleb и ChatGPT* --- ## Почему буд гигантских моделях и облачных сервисах. Они мо...' type: Article tags: -- Mesh - HMP +- Mesh - Agent --- diff --git a/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_uk.md b/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_uk.md index b949999326b3736bea70b224b0f1858f5aae5654..1a82ba86e4bb386685fe2005b2124cafbe612c98 100644 --- a/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_uk.md +++ b/structured_md/docs/publics/HMP_Building_a_Plurality_of_Minds_uk.md @@ -5,8 +5,8 @@ description: '*Автори: Agent-Gleb & ChatGPT* --- ## Чому майбу сервісами. Вони потужні — але водночас **цент...' type: Article tags: -- Mesh - HMP +- Mesh - Agent --- diff --git a/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md b/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md index a02e2ac5bcc0e302d1643319b61dc25a71d84930..6e96cfb20ca79b69c7e65f679035c4f0e8745205 100644 --- a/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md +++ b/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md @@ -5,14 +5,14 @@ description: '* [Abstract](#abstract) * [1. Introduction](#1-introduction) * [2. [3.1 Agent Types](#31-age...' type: Article tags: -- Ethics - CCore -- Mesh - HMP -- Agent -- JSON -- CShell +- Ethics - Scenarios +- CShell +- Mesh +- JSON +- Agent - REPL --- diff --git a/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md b/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md index b6c586d45084c3ed1fb17fe4789ee07550c9e60c..7f15646dcccb3fa440818027135dacf066df4de9 100644 --- a/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md +++ b/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md @@ -7,11 +7,11 @@ description: '> *Протокол и архитектура агентов, оп type: Article tags: - CCore -- Mesh - HMP -- Agent -- JSON - CShell +- Mesh +- JSON +- Agent - REPL --- diff --git a/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md b/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md index 0e9fd296ccaeed8f0855a2872bdc318ac7abba63..14cc22f6930dbe18fbe94edf065caeba6b7382c4 100644 --- a/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md +++ b/structured_md/docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md @@ -6,11 +6,11 @@ description: '* [Аннотация](#аннотация) * [1. Введение type: Article tags: - CCore -- Mesh - HMP -- Agent -- JSON - CShell +- Mesh +- JSON +- Agent - REPL --- diff --git a/structured_md/docs/publics/Habr_Distributed-Cognition.md b/structured_md/docs/publics/Habr_Distributed-Cognition.md index bfc017d4b4c4997c7d1904c6118f7cda4198d43b..9a221466889d3b1837ec4e481bcd56c45f958d4d 100644 --- a/structured_md/docs/publics/Habr_Distributed-Cognition.md +++ b/structured_md/docs/publics/Habr_Distributed-Cognition.md @@ -5,12 +5,12 @@ description: Сегодня интеллектуальные системы ча мы хотим построить действительно автономную инте... type: Article tags: -- CogSync -- Mesh +- HMP - GMP - EGP +- Mesh +- CogSync - MeshConsensus -- HMP --- *От OpenCog Hyperon до HyperCortex Mesh Protocol: как устроены децентрализованные когнитивные системы* diff --git "a/structured_md/docs/publics/HyperCortex_Mesh_Protocol_-_\320\262\321\202\320\276\321\200\320\260\321\217-\321\200\320\265\320\264\320\260\320\272\321\206\320\270\321\217_\320\270_\320\277\320\265\321\200\320\262\321\213\320\265_\321\210\320\260\320\263\320\270_\320\272_\321\201\320\260\320\274\320\276\321\200\320\260\320\267\320\262\320\270\320\262\320\260\321\216\321\211\320\265\320\274\321\203\321\201\321\217_\320\230\320\230-\321\201\320\276\320\276\320\261\321\211\320\265\321\201\321\202\320\262\321\203.md" "b/structured_md/docs/publics/HyperCortex_Mesh_Protocol_-_\320\262\321\202\320\276\321\200\320\260\321\217-\321\200\320\265\320\264\320\260\320\272\321\206\320\270\321\217_\320\270_\320\277\320\265\321\200\320\262\321\213\320\265_\321\210\320\260\320\263\320\270_\320\272_\321\201\320\260\320\274\320\276\321\200\320\260\320\267\320\262\320\270\320\262\320\260\321\216\321\211\320\265\320\274\321\203\321\201\321\217_\320\230\320\230-\321\201\320\276\320\276\320\261\321\211\320\265\321\201\321\202\320\262\321\203.md" index a0f51c79fb66d50a552f723c5d3ae25e01cedad7..36f781993f28bde8bc53c445f1fbf2b953fad0c0 100644 --- "a/structured_md/docs/publics/HyperCortex_Mesh_Protocol_-_\320\262\321\202\320\276\321\200\320\260\321\217-\321\200\320\265\320\264\320\260\320\272\321\206\320\270\321\217_\320\270_\320\277\320\265\321\200\320\262\321\213\320\265_\321\210\320\260\320\263\320\270_\320\272_\321\201\320\260\320\274\320\276\321\200\320\260\320\267\320\262\320\270\320\262\320\260\321\216\321\211\320\265\320\274\321\203\321\201\321\217_\320\230\320\230-\321\201\320\276\320\276\320\261\321\211\320\265\321\201\321\202\320\262\321\203.md" +++ "b/structured_md/docs/publics/HyperCortex_Mesh_Protocol_-_\320\262\321\202\320\276\321\200\320\260\321\217-\321\200\320\265\320\264\320\260\320\272\321\206\320\270\321\217_\320\270_\320\277\320\265\321\200\320\262\321\213\320\265_\321\210\320\260\320\263\320\270_\320\272_\321\201\320\260\320\274\320\276\321\200\320\260\320\267\320\262\320\270\320\262\320\260\321\216\321\211\320\265\320\274\321\203\321\201\321\217_\320\230\320\230-\321\201\320\276\320\276\320\261\321\211\320\265\321\201\321\202\320\262\321\203.md" @@ -6,9 +6,9 @@ description: 'Когда создавался HyperCortex Mesh Protocol (HMP), мыслить коллективно, обсуждать гипотезы, достигат...' type: Article tags: -- GMP -- Mesh - HMP +- Mesh +- GMP - Agent --- diff --git a/structured_md/docs/schemas/README.md b/structured_md/docs/schemas/README.md index 1143b56688caf30a7c326011c5a431abac892d44..ba4d24254da76c9642a7ee8ee281cb75d7cc6bf2 100644 --- a/structured_md/docs/schemas/README.md +++ b/structured_md/docs/schemas/README.md @@ -5,10 +5,10 @@ description: This directory contains **JSON Schema definitions** for the core da interoperability, and tooling support for a... type: Article tags: -- Mesh - HMP -- Agent +- Mesh - JSON +- Agent --- # JSON Schemas and Examples for HyperCortex Mesh Protocol (HMP) diff --git a/structured_md/iteration.md b/structured_md/iteration.md index 818730796d6b8fb7345c3a1ae18301ad6551ed0e..e8579275723a32ad9bf4ea547cdea09477b1f6ef 100644 --- a/structured_md/iteration.md +++ b/structured_md/iteration.md @@ -5,14 +5,14 @@ description: 'This file describes the iterative procedure for evolving the Hyper 🔄 Version Naming Convention - `000N` — curr...' type: Article tags: +- HMP - Ethics -- CogSync +- EGP - Mesh -- Agent - JSON -- EGP +- CogSync +- Agent - MeshConsensus -- HMP --- # Iterative Development Workflow for HMP diff --git a/structured_md/iteration_ru.md b/structured_md/iteration_ru.md index 77955fd4f295d1e5a9c962008c76550de448d3ce..afb96c85fef4ede681f80efa64a7f36cc48ec862 100644 --- a/structured_md/iteration_ru.md +++ b/structured_md/iteration_ru.md @@ -5,13 +5,13 @@ description: 'Этот документ описывает структурир 🔄 Обозначения версий - `000N` — номер...' type: Article tags: +- HMP - Ethics -- CogSync +- EGP - Mesh - JSON -- EGP +- CogSync - MeshConsensus -- HMP --- diff --git a/structured_md/mentions.md b/structured_md/mentions.md index 3fa4dd925062e1538dd564726e335ec332c860b6..f2eaaf1d85681cd93c6fca2d462a4962e801d8a4 100644 --- a/structured_md/mentions.md +++ b/structured_md/mentions.md @@ -5,8 +5,8 @@ description: '**HyperCortex Mesh Protocol (HMP)** _Обновлено: 2025-10 open-source инициативам, связанным с развитие...' type: Article tags: -- Mesh - HMP +- Mesh - Agent ---