GitHub Action commited on
Commit ·
0644ade
1
Parent(s): 62c30e5
Sync from GitHub with Git LFS
Browse files- docs/HMP-0005.md +25 -22
docs/HMP-0005.md
CHANGED
|
@@ -2929,37 +2929,40 @@ archive/
|
|
| 2929 |
|
| 2930 |
---
|
| 2931 |
|
| 2932 |
-
#### 6.6.7 Mermaid
|
| 2933 |
|
| 2934 |
-
The `graph_mermaid` field provides a human-readable
|
| 2935 |
-
|
| 2936 |
-
|
| 2937 |
|
| 2938 |
-
``
|
| 2939 |
-
```mermaid
|
| 2940 |
-
sequenceDiagram
|
| 2941 |
-
participant req-001 as did:hmp:container:req-001
|
| 2942 |
-
participant res-101 as did:hmp:container:res-101
|
| 2943 |
-
participant res-102 as did:hmp:container:res-102
|
| 2944 |
-
participant summary-001 as did:hmp:container:summary-001
|
| 2945 |
|
| 2946 |
-
|
| 2947 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2948 |
|
| 2949 |
-
|
| 2950 |
-
|
| 2951 |
|
| 2952 |
-
|
| 2953 |
-
|
| 2954 |
|
| 2955 |
-
|
| 2956 |
-
|
| 2957 |
|
| 2958 |
-
|
| 2959 |
-
|
| 2960 |
-
|
|
|
|
|
|
|
| 2961 |
```
|
| 2962 |
|
|
|
|
|
|
|
|
|
|
| 2963 |
---
|
| 2964 |
|
| 2965 |
#### 6.6.8 Manifest File
|
|
|
|
| 2929 |
|
| 2930 |
---
|
| 2931 |
|
| 2932 |
+
#### 6.6.7 Mermaid Graph Representation
|
| 2933 |
|
| 2934 |
+
The `graph_mermaid` field provides a textual, human-readable description of how containers in the archive are interconnected.
|
| 2935 |
+
It reflects both **direct relations** (`related.*`) and **reverse references** (`referenced-by`, `evaluations`),
|
| 2936 |
+
forming a bidirectional logical graph that can be visualized or reconstructed by agents.
|
| 2937 |
|
| 2938 |
+
Example of `graph_mermaid` content (sequence diagram):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2939 |
|
| 2940 |
+
```mermaid
|
| 2941 |
+
sequenceDiagram
|
| 2942 |
+
participant req-001 as did:hmp:container:req-001
|
| 2943 |
+
participant res-101 as did:hmp:container:res-101
|
| 2944 |
+
participant res-102 as did:hmp:container:res-102
|
| 2945 |
+
participant summary-001 as did:hmp:container:summary-001
|
| 2946 |
|
| 2947 |
+
res-101-)+req-001: related.in_reply_to
|
| 2948 |
+
req-001-->>res-101: referenced-by
|
| 2949 |
|
| 2950 |
+
res-102-)+req-001: related.in_reply_to
|
| 2951 |
+
req-001-->>res-102: referenced-by
|
| 2952 |
|
| 2953 |
+
res-102-)+res-101: related.contradicts
|
| 2954 |
+
res-101-->>res-102: referenced-by
|
| 2955 |
|
| 2956 |
+
summary-001-)+res-101: related.depends_on
|
| 2957 |
+
res-101-->>summary-001: referenced-by
|
| 2958 |
+
|
| 2959 |
+
summary-001-)+res-102: related.depends_on
|
| 2960 |
+
res-102-->>summary-001: referenced-by
|
| 2961 |
```
|
| 2962 |
|
| 2963 |
+
This representation explicitly defines **bidirectional links** between containers,
|
| 2964 |
+
allowing agents to restore both dependency chains and citation structures.
|
| 2965 |
+
|
| 2966 |
---
|
| 2967 |
|
| 2968 |
#### 6.6.8 Manifest File
|