@mplp/schema 1.0.1 → 1.0.3

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 +61 -0
  2. package/dist/index.d.ts +0 -11
  3. package/dist/index.js +7 -11
  4. package/package.json +24 -5
  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,198 +1,198 @@
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-dialog.schema.json",
5
- "title": "MPLP Dialog Module – Core Protocol v1.0",
6
- "description": "Dialog Module Core Protocol: Describes the dialog interaction semantics in multi-agent systems, adopting Minimal Protocol Format aligned with OpenAI/Anthropic standards.",
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
- "dialog_id": {
38
- "$ref": "common/identifiers.schema.json",
39
- "description": "[PROTOCOL-CORE] Global unique identifier for the Dialog."
40
- },
41
- "context_id": {
42
- "$ref": "common/identifiers.schema.json",
43
- "description": "[PROTOCOL-CORE] Associated Context ID."
44
- },
45
- "thread_id": {
46
- "$ref": "common/identifiers.schema.json",
47
- "description": "[PROTOCOL-CORE] Dialog thread ID (for multi-turn dialog grouping)."
48
- },
49
- "status": {
50
- "type": "string",
51
- "description": "[PROTOCOL-CORE] Dialog status.",
52
- "enum": [
53
- "active",
54
- "paused",
55
- "completed",
56
- "cancelled"
57
- ]
58
- },
59
- "messages": {
60
- "type": "array",
61
- "description": "[PROTOCOL-CORE] Dialog message list (Minimal Protocol Format).",
62
- "items": {
63
- "$ref": "#/$defs/dialog_message_core"
64
- }
65
- },
66
- "started_at": {
67
- "type": "string",
68
- "format": "date-time",
69
- "description": "[PROTOCOL-CORE] Dialog start time (ISO 8601)."
70
- },
71
- "ended_at": {
72
- "type": "string",
73
- "format": "date-time",
74
- "description": "[PROTOCOL-CORE] Dialog end time (ISO 8601)."
75
- },
76
- "trace": {
77
- "$ref": "common/trace-base.schema.json",
78
- "description": "[PROTOCOL-CORE] Audit trace reference associated with this dialog."
79
- },
80
- "events": {
81
- "type": "array",
82
- "description": "[PROTOCOL-CORE] List of key events directly related to this dialog.",
83
- "items": {
84
- "$ref": "common/events.schema.json"
85
- }
86
- }
87
- },
88
- "required": [
89
- "meta",
90
- "dialog_id",
91
- "context_id",
92
- "status",
93
- "messages"
94
- ],
95
- "$defs": {
96
- "dialog_core_properties": {
97
- "type": "object",
98
- "properties": {
99
- "meta": {
100
- "$ref": "common/metadata.schema.json",
101
- "description": "[PROTOCOL-CORE] MPLP protocol and schema metadata."
102
- },
103
- "dialog_id": {
104
- "$ref": "common/identifiers.schema.json",
105
- "description": "[PROTOCOL-CORE] Global unique identifier for the Dialog."
106
- },
107
- "context_id": {
108
- "$ref": "common/identifiers.schema.json",
109
- "description": "[PROTOCOL-CORE] Associated Context ID."
110
- },
111
- "thread_id": {
112
- "$ref": "common/identifiers.schema.json",
113
- "description": "[PROTOCOL-CORE] Dialog thread ID (for multi-turn dialog grouping)."
114
- },
115
- "status": {
116
- "type": "string",
117
- "description": "[PROTOCOL-CORE] Dialog status.",
118
- "enum": [
119
- "active",
120
- "paused",
121
- "completed",
122
- "cancelled"
123
- ]
124
- },
125
- "messages": {
126
- "type": "array",
127
- "description": "[PROTOCOL-CORE] Dialog message list (Minimal Protocol Format).",
128
- "items": {
129
- "$ref": "#/$defs/dialog_message_core"
130
- }
131
- },
132
- "started_at": {
133
- "type": "string",
134
- "format": "date-time",
135
- "description": "[PROTOCOL-CORE] Dialog start time (ISO 8601)."
136
- },
137
- "ended_at": {
138
- "type": "string",
139
- "format": "date-time",
140
- "description": "[PROTOCOL-CORE] Dialog end time (ISO 8601)."
141
- },
142
- "trace": {
143
- "$ref": "common/trace-base.schema.json",
144
- "description": "[PROTOCOL-CORE] Audit trace reference associated with this dialog."
145
- },
146
- "events": {
147
- "type": "array",
148
- "description": "[PROTOCOL-CORE] List of key events directly related to this dialog.",
149
- "items": {
150
- "$ref": "common/events.schema.json"
151
- }
152
- }
153
- },
154
- "required": [
155
- "meta",
156
- "dialog_id",
157
- "context_id",
158
- "status",
159
- "messages"
160
- ]
161
- },
162
- "dialog_message_core": {
163
- "type": "object",
164
- "description": "Minimal Protocol Format - Aligned with OpenAI/Anthropic standards",
165
- "additionalProperties": false,
166
- "properties": {
167
- "role": {
168
- "type": "string",
169
- "description": "Message sender role.",
170
- "enum": [
171
- "user",
172
- "assistant",
173
- "system",
174
- "agent"
175
- ]
176
- },
177
- "content": {
178
- "type": "string",
179
- "description": "Message content (plain text)."
180
- },
181
- "timestamp": {
182
- "type": "string",
183
- "format": "date-time",
184
- "description": "Message timestamp (ISO 8601)."
185
- },
186
- "event": {
187
- "$ref": "common/events.schema.json",
188
- "description": "Optional L1 Event reference (for deep integration with Trace module)."
189
- }
190
- },
191
- "required": [
192
- "role",
193
- "content",
194
- "timestamp"
195
- ]
196
- }
197
- }
198
- }
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-dialog.schema.json",
5
+ "title": "MPLP Dialog Module – Core Protocol v1.0",
6
+ "description": "Dialog Module Core Protocol: Describes the dialog interaction semantics in multi-agent systems, adopting Minimal Protocol Format aligned with OpenAI/Anthropic standards.",
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
+ "dialog_id": {
38
+ "$ref": "common/identifiers.schema.json",
39
+ "description": "[PROTOCOL-CORE] Global unique identifier for the Dialog."
40
+ },
41
+ "context_id": {
42
+ "$ref": "common/identifiers.schema.json",
43
+ "description": "[PROTOCOL-CORE] Associated Context ID."
44
+ },
45
+ "thread_id": {
46
+ "$ref": "common/identifiers.schema.json",
47
+ "description": "[PROTOCOL-CORE] Dialog thread ID (for multi-turn dialog grouping)."
48
+ },
49
+ "status": {
50
+ "type": "string",
51
+ "description": "[PROTOCOL-CORE] Dialog status.",
52
+ "enum": [
53
+ "active",
54
+ "paused",
55
+ "completed",
56
+ "cancelled"
57
+ ]
58
+ },
59
+ "messages": {
60
+ "type": "array",
61
+ "description": "[PROTOCOL-CORE] Dialog message list (Minimal Protocol Format).",
62
+ "items": {
63
+ "$ref": "#/$defs/dialog_message_core"
64
+ }
65
+ },
66
+ "started_at": {
67
+ "type": "string",
68
+ "format": "date-time",
69
+ "description": "[PROTOCOL-CORE] Dialog start time (ISO 8601)."
70
+ },
71
+ "ended_at": {
72
+ "type": "string",
73
+ "format": "date-time",
74
+ "description": "[PROTOCOL-CORE] Dialog end time (ISO 8601)."
75
+ },
76
+ "trace": {
77
+ "$ref": "common/trace-base.schema.json",
78
+ "description": "[PROTOCOL-CORE] Audit trace reference associated with this dialog."
79
+ },
80
+ "events": {
81
+ "type": "array",
82
+ "description": "[PROTOCOL-CORE] List of key events directly related to this dialog.",
83
+ "items": {
84
+ "$ref": "common/events.schema.json"
85
+ }
86
+ }
87
+ },
88
+ "required": [
89
+ "meta",
90
+ "dialog_id",
91
+ "context_id",
92
+ "status",
93
+ "messages"
94
+ ],
95
+ "$defs": {
96
+ "dialog_core_properties": {
97
+ "type": "object",
98
+ "properties": {
99
+ "meta": {
100
+ "$ref": "common/metadata.schema.json",
101
+ "description": "[PROTOCOL-CORE] MPLP protocol and schema metadata."
102
+ },
103
+ "dialog_id": {
104
+ "$ref": "common/identifiers.schema.json",
105
+ "description": "[PROTOCOL-CORE] Global unique identifier for the Dialog."
106
+ },
107
+ "context_id": {
108
+ "$ref": "common/identifiers.schema.json",
109
+ "description": "[PROTOCOL-CORE] Associated Context ID."
110
+ },
111
+ "thread_id": {
112
+ "$ref": "common/identifiers.schema.json",
113
+ "description": "[PROTOCOL-CORE] Dialog thread ID (for multi-turn dialog grouping)."
114
+ },
115
+ "status": {
116
+ "type": "string",
117
+ "description": "[PROTOCOL-CORE] Dialog status.",
118
+ "enum": [
119
+ "active",
120
+ "paused",
121
+ "completed",
122
+ "cancelled"
123
+ ]
124
+ },
125
+ "messages": {
126
+ "type": "array",
127
+ "description": "[PROTOCOL-CORE] Dialog message list (Minimal Protocol Format).",
128
+ "items": {
129
+ "$ref": "#/$defs/dialog_message_core"
130
+ }
131
+ },
132
+ "started_at": {
133
+ "type": "string",
134
+ "format": "date-time",
135
+ "description": "[PROTOCOL-CORE] Dialog start time (ISO 8601)."
136
+ },
137
+ "ended_at": {
138
+ "type": "string",
139
+ "format": "date-time",
140
+ "description": "[PROTOCOL-CORE] Dialog end time (ISO 8601)."
141
+ },
142
+ "trace": {
143
+ "$ref": "common/trace-base.schema.json",
144
+ "description": "[PROTOCOL-CORE] Audit trace reference associated with this dialog."
145
+ },
146
+ "events": {
147
+ "type": "array",
148
+ "description": "[PROTOCOL-CORE] List of key events directly related to this dialog.",
149
+ "items": {
150
+ "$ref": "common/events.schema.json"
151
+ }
152
+ }
153
+ },
154
+ "required": [
155
+ "meta",
156
+ "dialog_id",
157
+ "context_id",
158
+ "status",
159
+ "messages"
160
+ ]
161
+ },
162
+ "dialog_message_core": {
163
+ "type": "object",
164
+ "description": "Minimal Protocol Format - Aligned with OpenAI/Anthropic standards",
165
+ "additionalProperties": false,
166
+ "properties": {
167
+ "role": {
168
+ "type": "string",
169
+ "description": "Message sender role.",
170
+ "enum": [
171
+ "user",
172
+ "assistant",
173
+ "system",
174
+ "agent"
175
+ ]
176
+ },
177
+ "content": {
178
+ "type": "string",
179
+ "description": "Message content (plain text)."
180
+ },
181
+ "timestamp": {
182
+ "type": "string",
183
+ "format": "date-time",
184
+ "description": "Message timestamp (ISO 8601)."
185
+ },
186
+ "event": {
187
+ "$ref": "common/events.schema.json",
188
+ "description": "Optional L1 Event reference (for deep integration with Trace module)."
189
+ }
190
+ },
191
+ "required": [
192
+ "role",
193
+ "content",
194
+ "timestamp"
195
+ ]
196
+ }
197
+ }
198
+ }