@mplp/schema 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +11 -0
  2. package/dist/index.d.ts +0 -11
  3. package/dist/index.js +7 -11
  4. package/package.json +23 -4
  5. package/schemas/common/common-types.schema.json +49 -49
  6. package/schemas/common/events.schema.json +66 -66
  7. package/schemas/common/identifiers.schema.json +13 -13
  8. package/schemas/common/learning-sample.schema.json +194 -194
  9. package/schemas/common/metadata.schema.json +113 -113
  10. package/schemas/common/trace-base.schema.json +43 -43
  11. package/schemas/events/mplp-event-core.schema.json +58 -58
  12. package/schemas/events/mplp-graph-update-event.schema.json +58 -58
  13. package/schemas/events/mplp-map-event.schema.json +147 -147
  14. package/schemas/events/mplp-pipeline-stage-event.schema.json +56 -56
  15. package/schemas/events/mplp-runtime-execution-event.schema.json +58 -58
  16. package/schemas/events/mplp-sa-event.schema.json +109 -109
  17. package/schemas/integration/mplp-ci-event.schema.json +130 -130
  18. package/schemas/integration/mplp-file-update-event.schema.json +70 -70
  19. package/schemas/integration/mplp-git-event.schema.json +98 -98
  20. package/schemas/integration/mplp-tool-event.schema.json +83 -83
  21. package/schemas/invariants/integration-invariants.yaml +12 -8
  22. package/schemas/invariants/learning-invariants.yaml +12 -8
  23. package/schemas/invariants/map-invariants.yaml +12 -8
  24. package/schemas/invariants/observability-invariants.yaml +12 -8
  25. package/schemas/invariants/sa-invariants.yaml +12 -8
  26. package/schemas/learning/mplp-learning-sample-core.schema.json +94 -94
  27. package/schemas/learning/mplp-learning-sample-delta.schema.json +137 -137
  28. package/schemas/learning/mplp-learning-sample-intent.schema.json +119 -119
  29. package/schemas/mplp-collab.schema.json +243 -243
  30. package/schemas/mplp-confirm.schema.json +226 -226
  31. package/schemas/mplp-context.schema.json +246 -246
  32. package/schemas/mplp-core.schema.json +183 -183
  33. package/schemas/mplp-dialog.schema.json +198 -198
  34. package/schemas/mplp-extension.schema.json +179 -179
  35. package/schemas/mplp-network.schema.json +230 -230
  36. package/schemas/mplp-plan.schema.json +193 -193
  37. package/schemas/mplp-role.schema.json +139 -139
  38. package/schemas/mplp-trace.schema.json +216 -216
@@ -1,230 +1,230 @@
1
- {
2
- "$comment": "MPLP Protocol v1.0.0 — Frozen Specification\nFreeze Date: 2025-12-03\nStatus: FROZEN (no breaking changes permitted)\nGovernance: MPLP Protocol Governance Committee (MPGC)\nCopyright: © 2025 邦士(北京)网络科技有限公司\nLicense: Apache-2.0\nAny normative change requires a new protocol version.",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "https://schemas.mplp.dev/v1.0/mplp-network.schema.json",
5
- "title": "MPLP Network Module – Core Protocol v1.0",
6
- "description": "Network Module Core Protocol: Describes the minimal required semantics (Core Profile) for the topology and node collection of a multi-agent collaboration network.",
7
- "type": "object",
8
- "additionalProperties": false,
9
- "properties": {
10
- "meta": {
11
- "$ref": "common/metadata.schema.json",
12
- "description": "[PROTOCOL-CORE] MPLP protocol and schema metadata."
13
- },
14
- "governance": {
15
- "type": "object",
16
- "description": "[PROTOCOL-CORE] Governance metadata for lifecycle management, truth domain authority, and locking status.",
17
- "properties": {
18
- "lifecyclePhase": {
19
- "type": "string",
20
- "description": "Current phase in the lifecycle fence (e.g., 'design', 'implementation', 'review')."
21
- },
22
- "truthDomain": {
23
- "type": "string",
24
- "description": "The truth domain this object belongs to (e.g., 'requirements', 'architecture')."
25
- },
26
- "locked": {
27
- "type": "boolean",
28
- "description": "If true, this object cannot be modified except by specific governance overrides."
29
- },
30
- "lastConfirmRef": {
31
- "$ref": "common/common-types.schema.json#/definitions/Ref",
32
- "description": "Reference to the last Confirm decision that validated this state."
33
- }
34
- },
35
- "additionalProperties": false
36
- },
37
- "network_id": {
38
- "$ref": "common/identifiers.schema.json",
39
- "description": "[PROTOCOL-CORE] Global unique identifier for the network."
40
- },
41
- "context_id": {
42
- "$ref": "common/identifiers.schema.json",
43
- "description": "[PROTOCOL-CORE] Identifier of the Context this network belongs to."
44
- },
45
- "name": {
46
- "type": "string",
47
- "minLength": 1,
48
- "description": "[PROTOCOL-CORE] Network name."
49
- },
50
- "description": {
51
- "type": "string",
52
- "description": "[PROTOCOL-CORE] Brief description of the network."
53
- },
54
- "topology_type": {
55
- "type": "string",
56
- "description": "[PROTOCOL-CORE] Network topology type.",
57
- "enum": [
58
- "single_node",
59
- "hub_spoke",
60
- "mesh",
61
- "hierarchical",
62
- "hybrid",
63
- "other"
64
- ]
65
- },
66
- "status": {
67
- "type": "string",
68
- "description": "[PROTOCOL-CORE] Network lifecycle status.",
69
- "enum": [
70
- "draft",
71
- "provisioning",
72
- "active",
73
- "degraded",
74
- "maintenance",
75
- "retired"
76
- ]
77
- },
78
- "nodes": {
79
- "type": "array",
80
- "description": "[PROTOCOL-CORE] Collection of core nodes in the network.",
81
- "items": {
82
- "$ref": "#/$defs/network_node_core"
83
- }
84
- },
85
- "trace": {
86
- "$ref": "common/trace-base.schema.json",
87
- "description": "[PROTOCOL-CORE] Trace reference associated with this network."
88
- },
89
- "events": {
90
- "type": "array",
91
- "description": "[PROTOCOL-CORE] List of key events related to this network.",
92
- "items": {
93
- "$ref": "common/events.schema.json"
94
- }
95
- }
96
- },
97
- "required": [
98
- "meta",
99
- "network_id",
100
- "context_id",
101
- "name",
102
- "topology_type",
103
- "status"
104
- ],
105
- "$defs": {
106
- "network_core_properties": {
107
- "type": "object",
108
- "properties": {
109
- "meta": {
110
- "$ref": "common/metadata.schema.json",
111
- "description": "[PROTOCOL-CORE] MPLP protocol and schema metadata."
112
- },
113
- "network_id": {
114
- "$ref": "common/identifiers.schema.json",
115
- "description": "[PROTOCOL-CORE] Global unique identifier for the network."
116
- },
117
- "context_id": {
118
- "$ref": "common/identifiers.schema.json",
119
- "description": "[PROTOCOL-CORE] Identifier of the Context this network belongs to."
120
- },
121
- "name": {
122
- "type": "string",
123
- "minLength": 1,
124
- "description": "[PROTOCOL-CORE] Network name."
125
- },
126
- "description": {
127
- "type": "string",
128
- "description": "[PROTOCOL-CORE] Brief description of the network."
129
- },
130
- "topology_type": {
131
- "type": "string",
132
- "description": "[PROTOCOL-CORE] Network topology type.",
133
- "enum": [
134
- "single_node",
135
- "hub_spoke",
136
- "mesh",
137
- "hierarchical",
138
- "hybrid",
139
- "other"
140
- ]
141
- },
142
- "status": {
143
- "type": "string",
144
- "description": "[PROTOCOL-CORE] Network lifecycle status.",
145
- "enum": [
146
- "draft",
147
- "provisioning",
148
- "active",
149
- "degraded",
150
- "maintenance",
151
- "retired"
152
- ]
153
- },
154
- "nodes": {
155
- "type": "array",
156
- "description": "[PROTOCOL-CORE] Collection of core nodes in the network.",
157
- "items": {
158
- "$ref": "#/$defs/network_node_core"
159
- }
160
- },
161
- "trace": {
162
- "$ref": "common/trace-base.schema.json",
163
- "description": "[PROTOCOL-CORE] Trace reference associated with this network."
164
- },
165
- "events": {
166
- "type": "array",
167
- "description": "[PROTOCOL-CORE] List of key events related to this network.",
168
- "items": {
169
- "$ref": "common/events.schema.json"
170
- }
171
- }
172
- },
173
- "required": [
174
- "meta",
175
- "network_id",
176
- "context_id",
177
- "name",
178
- "topology_type",
179
- "status"
180
- ]
181
- },
182
- "network_node_core": {
183
- "type": "object",
184
- "description": "[PROTOCOL-CORE] Minimal required semantics for a network node.",
185
- "additionalProperties": false,
186
- "properties": {
187
- "node_id": {
188
- "$ref": "common/identifiers.schema.json",
189
- "description": "[PROTOCOL-CORE] Node identifier."
190
- },
191
- "name": {
192
- "type": "string",
193
- "description": "[PROTOCOL-CORE] Node name."
194
- },
195
- "kind": {
196
- "type": "string",
197
- "description": "[PROTOCOL-CORE] Node type.",
198
- "enum": [
199
- "agent",
200
- "service",
201
- "database",
202
- "queue",
203
- "external",
204
- "other"
205
- ]
206
- },
207
- "role_id": {
208
- "type": "string",
209
- "description": "[PROTOCOL-CORE] Role identifier corresponding to this node (should correspond to role_id in Role module)."
210
- },
211
- "status": {
212
- "type": "string",
213
- "description": "[PROTOCOL-CORE] Current status of the node.",
214
- "enum": [
215
- "active",
216
- "inactive",
217
- "degraded",
218
- "unreachable",
219
- "retired"
220
- ]
221
- }
222
- },
223
- "required": [
224
- "node_id",
225
- "kind",
226
- "status"
227
- ]
228
- }
229
- }
230
- }
1
+ {
2
+ "$comment": "MPLP Protocol v1.0.0 — Frozen Specification\nFreeze Date: 2025-12-03\nStatus: FROZEN (no breaking changes permitted)\nGovernance: MPLP Protocol Governance Committee (MPGC)\nCopyright: © 2025 邦士(北京)网络科技有限公司\nLicense: Apache-2.0\nAny normative change requires a new protocol version.",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "https://schemas.mplp.dev/v1.0/mplp-network.schema.json",
5
+ "title": "MPLP Network Module – Core Protocol v1.0",
6
+ "description": "Network Module Core Protocol: Describes the minimal required semantics (Core Profile) for the topology and node collection of a multi-agent collaboration network.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "meta": {
11
+ "$ref": "common/metadata.schema.json",
12
+ "description": "[PROTOCOL-CORE] MPLP protocol and schema metadata."
13
+ },
14
+ "governance": {
15
+ "type": "object",
16
+ "description": "[PROTOCOL-CORE] Governance metadata for lifecycle management, truth domain authority, and locking status.",
17
+ "properties": {
18
+ "lifecyclePhase": {
19
+ "type": "string",
20
+ "description": "Current phase in the lifecycle fence (e.g., 'design', 'implementation', 'review')."
21
+ },
22
+ "truthDomain": {
23
+ "type": "string",
24
+ "description": "The truth domain this object belongs to (e.g., 'requirements', 'architecture')."
25
+ },
26
+ "locked": {
27
+ "type": "boolean",
28
+ "description": "If true, this object cannot be modified except by specific governance overrides."
29
+ },
30
+ "lastConfirmRef": {
31
+ "$ref": "common/common-types.schema.json#/definitions/Ref",
32
+ "description": "Reference to the last Confirm decision that validated this state."
33
+ }
34
+ },
35
+ "additionalProperties": false
36
+ },
37
+ "network_id": {
38
+ "$ref": "common/identifiers.schema.json",
39
+ "description": "[PROTOCOL-CORE] Global unique identifier for the network."
40
+ },
41
+ "context_id": {
42
+ "$ref": "common/identifiers.schema.json",
43
+ "description": "[PROTOCOL-CORE] Identifier of the Context this network belongs to."
44
+ },
45
+ "name": {
46
+ "type": "string",
47
+ "minLength": 1,
48
+ "description": "[PROTOCOL-CORE] Network name."
49
+ },
50
+ "description": {
51
+ "type": "string",
52
+ "description": "[PROTOCOL-CORE] Brief description of the network."
53
+ },
54
+ "topology_type": {
55
+ "type": "string",
56
+ "description": "[PROTOCOL-CORE] Network topology type.",
57
+ "enum": [
58
+ "single_node",
59
+ "hub_spoke",
60
+ "mesh",
61
+ "hierarchical",
62
+ "hybrid",
63
+ "other"
64
+ ]
65
+ },
66
+ "status": {
67
+ "type": "string",
68
+ "description": "[PROTOCOL-CORE] Network lifecycle status.",
69
+ "enum": [
70
+ "draft",
71
+ "provisioning",
72
+ "active",
73
+ "degraded",
74
+ "maintenance",
75
+ "retired"
76
+ ]
77
+ },
78
+ "nodes": {
79
+ "type": "array",
80
+ "description": "[PROTOCOL-CORE] Collection of core nodes in the network.",
81
+ "items": {
82
+ "$ref": "#/$defs/network_node_core"
83
+ }
84
+ },
85
+ "trace": {
86
+ "$ref": "common/trace-base.schema.json",
87
+ "description": "[PROTOCOL-CORE] Trace reference associated with this network."
88
+ },
89
+ "events": {
90
+ "type": "array",
91
+ "description": "[PROTOCOL-CORE] List of key events related to this network.",
92
+ "items": {
93
+ "$ref": "common/events.schema.json"
94
+ }
95
+ }
96
+ },
97
+ "required": [
98
+ "meta",
99
+ "network_id",
100
+ "context_id",
101
+ "name",
102
+ "topology_type",
103
+ "status"
104
+ ],
105
+ "$defs": {
106
+ "network_core_properties": {
107
+ "type": "object",
108
+ "properties": {
109
+ "meta": {
110
+ "$ref": "common/metadata.schema.json",
111
+ "description": "[PROTOCOL-CORE] MPLP protocol and schema metadata."
112
+ },
113
+ "network_id": {
114
+ "$ref": "common/identifiers.schema.json",
115
+ "description": "[PROTOCOL-CORE] Global unique identifier for the network."
116
+ },
117
+ "context_id": {
118
+ "$ref": "common/identifiers.schema.json",
119
+ "description": "[PROTOCOL-CORE] Identifier of the Context this network belongs to."
120
+ },
121
+ "name": {
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "description": "[PROTOCOL-CORE] Network name."
125
+ },
126
+ "description": {
127
+ "type": "string",
128
+ "description": "[PROTOCOL-CORE] Brief description of the network."
129
+ },
130
+ "topology_type": {
131
+ "type": "string",
132
+ "description": "[PROTOCOL-CORE] Network topology type.",
133
+ "enum": [
134
+ "single_node",
135
+ "hub_spoke",
136
+ "mesh",
137
+ "hierarchical",
138
+ "hybrid",
139
+ "other"
140
+ ]
141
+ },
142
+ "status": {
143
+ "type": "string",
144
+ "description": "[PROTOCOL-CORE] Network lifecycle status.",
145
+ "enum": [
146
+ "draft",
147
+ "provisioning",
148
+ "active",
149
+ "degraded",
150
+ "maintenance",
151
+ "retired"
152
+ ]
153
+ },
154
+ "nodes": {
155
+ "type": "array",
156
+ "description": "[PROTOCOL-CORE] Collection of core nodes in the network.",
157
+ "items": {
158
+ "$ref": "#/$defs/network_node_core"
159
+ }
160
+ },
161
+ "trace": {
162
+ "$ref": "common/trace-base.schema.json",
163
+ "description": "[PROTOCOL-CORE] Trace reference associated with this network."
164
+ },
165
+ "events": {
166
+ "type": "array",
167
+ "description": "[PROTOCOL-CORE] List of key events related to this network.",
168
+ "items": {
169
+ "$ref": "common/events.schema.json"
170
+ }
171
+ }
172
+ },
173
+ "required": [
174
+ "meta",
175
+ "network_id",
176
+ "context_id",
177
+ "name",
178
+ "topology_type",
179
+ "status"
180
+ ]
181
+ },
182
+ "network_node_core": {
183
+ "type": "object",
184
+ "description": "[PROTOCOL-CORE] Minimal required semantics for a network node.",
185
+ "additionalProperties": false,
186
+ "properties": {
187
+ "node_id": {
188
+ "$ref": "common/identifiers.schema.json",
189
+ "description": "[PROTOCOL-CORE] Node identifier."
190
+ },
191
+ "name": {
192
+ "type": "string",
193
+ "description": "[PROTOCOL-CORE] Node name."
194
+ },
195
+ "kind": {
196
+ "type": "string",
197
+ "description": "[PROTOCOL-CORE] Node type.",
198
+ "enum": [
199
+ "agent",
200
+ "service",
201
+ "database",
202
+ "queue",
203
+ "external",
204
+ "other"
205
+ ]
206
+ },
207
+ "role_id": {
208
+ "type": "string",
209
+ "description": "[PROTOCOL-CORE] Role identifier corresponding to this node (should correspond to role_id in Role module)."
210
+ },
211
+ "status": {
212
+ "type": "string",
213
+ "description": "[PROTOCOL-CORE] Current status of the node.",
214
+ "enum": [
215
+ "active",
216
+ "inactive",
217
+ "degraded",
218
+ "unreachable",
219
+ "retired"
220
+ ]
221
+ }
222
+ },
223
+ "required": [
224
+ "node_id",
225
+ "kind",
226
+ "status"
227
+ ]
228
+ }
229
+ }
230
+ }