@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,226 +1,226 @@
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-confirm.schema.json",
5
- "title": "MPLP Confirm Module – Core Protocol v1.0",
6
- "description": "Confirm Module Core Protocol: Describes the minimal required semantics (Core Profile) for approval requests and decision records.",
7
- "type": "object",
8
- "additionalProperties": false,
9
- "properties": {
10
- "meta": {
11
- "$ref": "common/metadata.schema.json",
12
- "description": "[PROTOCOL-CORE] MPLP protocol schema metadata (version, source, cross-cutting tags, etc.)."
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
- "confirm_id": {
38
- "$ref": "common/identifiers.schema.json",
39
- "description": "[PROTOCOL-CORE] Global unique identifier for the approval request."
40
- },
41
- "target_type": {
42
- "type": "string",
43
- "description": "[PROTOCOL-CORE] Approval target type (type of the resource being approved).",
44
- "enum": [
45
- "context",
46
- "plan",
47
- "trace",
48
- "extension",
49
- "other"
50
- ]
51
- },
52
- "target_id": {
53
- "$ref": "common/identifiers.schema.json",
54
- "description": "[PROTOCOL-CORE] Global unique identifier of the resource being approved."
55
- },
56
- "status": {
57
- "type": "string",
58
- "description": "[PROTOCOL-CORE] Current status of the approval request.",
59
- "enum": [
60
- "pending",
61
- "approved",
62
- "rejected",
63
- "cancelled"
64
- ]
65
- },
66
- "requested_by_role": {
67
- "type": "string",
68
- "description": "[PROTOCOL-CORE] Identifier of the role initiating the approval request (should correspond to role_id in Role module)."
69
- },
70
- "requested_at": {
71
- "type": "string",
72
- "format": "date-time",
73
- "description": "[PROTOCOL-CORE] Approval request creation time (ISO 8601)."
74
- },
75
- "reason": {
76
- "type": "string",
77
- "description": "[PROTOCOL-CORE] Reason for the request, for humans and Agents."
78
- },
79
- "decisions": {
80
- "type": "array",
81
- "description": "[PROTOCOL-CORE] List of decision records related to this Confirm request.",
82
- "items": {
83
- "$ref": "#/$defs/confirm_decision_core"
84
- }
85
- },
86
- "trace": {
87
- "$ref": "common/trace-base.schema.json",
88
- "description": "[PROTOCOL-CORE] Trace reference bound to this Confirm request (for cross-module tracing)."
89
- },
90
- "events": {
91
- "type": "array",
92
- "description": "[PROTOCOL-CORE] List of key events directly related to this Confirm request (creation, decision, cancellation, etc.).",
93
- "items": {
94
- "$ref": "common/events.schema.json"
95
- }
96
- }
97
- },
98
- "required": [
99
- "meta",
100
- "confirm_id",
101
- "target_type",
102
- "target_id",
103
- "status",
104
- "requested_by_role",
105
- "requested_at"
106
- ],
107
- "$defs": {
108
- "confirm_core_properties": {
109
- "type": "object",
110
- "properties": {
111
- "meta": {
112
- "$ref": "common/metadata.schema.json",
113
- "description": "[PROTOCOL-CORE] MPLP protocol schema metadata (version, source, cross-cutting tags, etc.)."
114
- },
115
- "confirm_id": {
116
- "$ref": "common/identifiers.schema.json",
117
- "description": "[PROTOCOL-CORE] Global unique identifier for the approval request."
118
- },
119
- "target_type": {
120
- "type": "string",
121
- "description": "[PROTOCOL-CORE] Approval target type (type of the resource being approved).",
122
- "enum": [
123
- "context",
124
- "plan",
125
- "trace",
126
- "extension",
127
- "other"
128
- ]
129
- },
130
- "target_id": {
131
- "$ref": "common/identifiers.schema.json",
132
- "description": "[PROTOCOL-CORE] Global unique identifier of the resource being approved."
133
- },
134
- "status": {
135
- "type": "string",
136
- "description": "[PROTOCOL-CORE] Current status of the approval request.",
137
- "enum": [
138
- "pending",
139
- "approved",
140
- "rejected",
141
- "cancelled"
142
- ]
143
- },
144
- "requested_by_role": {
145
- "type": "string",
146
- "description": "[PROTOCOL-CORE] Identifier of the role initiating the approval request (should correspond to role_id in Role module)."
147
- },
148
- "requested_at": {
149
- "type": "string",
150
- "format": "date-time",
151
- "description": "[PROTOCOL-CORE] Approval request creation time (ISO 8601)."
152
- },
153
- "reason": {
154
- "type": "string",
155
- "description": "[PROTOCOL-CORE] Reason for the request, for humans and Agents."
156
- },
157
- "decisions": {
158
- "type": "array",
159
- "description": "[PROTOCOL-CORE] List of decision records related to this Confirm request.",
160
- "items": {
161
- "$ref": "#/$defs/confirm_decision_core"
162
- }
163
- },
164
- "trace": {
165
- "$ref": "common/trace-base.schema.json",
166
- "description": "[PROTOCOL-CORE] Trace reference bound to this Confirm request (for cross-module tracing)."
167
- },
168
- "events": {
169
- "type": "array",
170
- "description": "[PROTOCOL-CORE] List of key events directly related to this Confirm request (creation, decision, cancellation, etc.).",
171
- "items": {
172
- "$ref": "common/events.schema.json"
173
- }
174
- }
175
- },
176
- "required": [
177
- "meta",
178
- "confirm_id",
179
- "target_type",
180
- "target_id",
181
- "status",
182
- "requested_by_role",
183
- "requested_at"
184
- ]
185
- },
186
- "confirm_decision_core": {
187
- "type": "object",
188
- "description": "[PROTOCOL-CORE] Minimal required semantics for a single approval decision record.",
189
- "additionalProperties": false,
190
- "properties": {
191
- "decision_id": {
192
- "$ref": "common/identifiers.schema.json",
193
- "description": "[PROTOCOL-CORE] Global unique identifier for the decision record."
194
- },
195
- "status": {
196
- "type": "string",
197
- "description": "[PROTOCOL-CORE] Decision result status.",
198
- "enum": [
199
- "approved",
200
- "rejected",
201
- "cancelled"
202
- ]
203
- },
204
- "decided_by_role": {
205
- "type": "string",
206
- "description": "[PROTOCOL-CORE] Identifier of the role making the decision (should correspond to role_id in Role module)."
207
- },
208
- "decided_at": {
209
- "type": "string",
210
- "format": "date-time",
211
- "description": "[PROTOCOL-CORE] Decision time (ISO 8601)."
212
- },
213
- "reason": {
214
- "type": "string",
215
- "description": "[PROTOCOL-CORE] Summary of the decision reason (optional)."
216
- }
217
- },
218
- "required": [
219
- "decision_id",
220
- "status",
221
- "decided_by_role",
222
- "decided_at"
223
- ]
224
- }
225
- }
226
- }
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-confirm.schema.json",
5
+ "title": "MPLP Confirm Module – Core Protocol v1.0",
6
+ "description": "Confirm Module Core Protocol: Describes the minimal required semantics (Core Profile) for approval requests and decision records.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "meta": {
11
+ "$ref": "common/metadata.schema.json",
12
+ "description": "[PROTOCOL-CORE] MPLP protocol schema metadata (version, source, cross-cutting tags, etc.)."
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
+ "confirm_id": {
38
+ "$ref": "common/identifiers.schema.json",
39
+ "description": "[PROTOCOL-CORE] Global unique identifier for the approval request."
40
+ },
41
+ "target_type": {
42
+ "type": "string",
43
+ "description": "[PROTOCOL-CORE] Approval target type (type of the resource being approved).",
44
+ "enum": [
45
+ "context",
46
+ "plan",
47
+ "trace",
48
+ "extension",
49
+ "other"
50
+ ]
51
+ },
52
+ "target_id": {
53
+ "$ref": "common/identifiers.schema.json",
54
+ "description": "[PROTOCOL-CORE] Global unique identifier of the resource being approved."
55
+ },
56
+ "status": {
57
+ "type": "string",
58
+ "description": "[PROTOCOL-CORE] Current status of the approval request.",
59
+ "enum": [
60
+ "pending",
61
+ "approved",
62
+ "rejected",
63
+ "cancelled"
64
+ ]
65
+ },
66
+ "requested_by_role": {
67
+ "type": "string",
68
+ "description": "[PROTOCOL-CORE] Identifier of the role initiating the approval request (should correspond to role_id in Role module)."
69
+ },
70
+ "requested_at": {
71
+ "type": "string",
72
+ "format": "date-time",
73
+ "description": "[PROTOCOL-CORE] Approval request creation time (ISO 8601)."
74
+ },
75
+ "reason": {
76
+ "type": "string",
77
+ "description": "[PROTOCOL-CORE] Reason for the request, for humans and Agents."
78
+ },
79
+ "decisions": {
80
+ "type": "array",
81
+ "description": "[PROTOCOL-CORE] List of decision records related to this Confirm request.",
82
+ "items": {
83
+ "$ref": "#/$defs/confirm_decision_core"
84
+ }
85
+ },
86
+ "trace": {
87
+ "$ref": "common/trace-base.schema.json",
88
+ "description": "[PROTOCOL-CORE] Trace reference bound to this Confirm request (for cross-module tracing)."
89
+ },
90
+ "events": {
91
+ "type": "array",
92
+ "description": "[PROTOCOL-CORE] List of key events directly related to this Confirm request (creation, decision, cancellation, etc.).",
93
+ "items": {
94
+ "$ref": "common/events.schema.json"
95
+ }
96
+ }
97
+ },
98
+ "required": [
99
+ "meta",
100
+ "confirm_id",
101
+ "target_type",
102
+ "target_id",
103
+ "status",
104
+ "requested_by_role",
105
+ "requested_at"
106
+ ],
107
+ "$defs": {
108
+ "confirm_core_properties": {
109
+ "type": "object",
110
+ "properties": {
111
+ "meta": {
112
+ "$ref": "common/metadata.schema.json",
113
+ "description": "[PROTOCOL-CORE] MPLP protocol schema metadata (version, source, cross-cutting tags, etc.)."
114
+ },
115
+ "confirm_id": {
116
+ "$ref": "common/identifiers.schema.json",
117
+ "description": "[PROTOCOL-CORE] Global unique identifier for the approval request."
118
+ },
119
+ "target_type": {
120
+ "type": "string",
121
+ "description": "[PROTOCOL-CORE] Approval target type (type of the resource being approved).",
122
+ "enum": [
123
+ "context",
124
+ "plan",
125
+ "trace",
126
+ "extension",
127
+ "other"
128
+ ]
129
+ },
130
+ "target_id": {
131
+ "$ref": "common/identifiers.schema.json",
132
+ "description": "[PROTOCOL-CORE] Global unique identifier of the resource being approved."
133
+ },
134
+ "status": {
135
+ "type": "string",
136
+ "description": "[PROTOCOL-CORE] Current status of the approval request.",
137
+ "enum": [
138
+ "pending",
139
+ "approved",
140
+ "rejected",
141
+ "cancelled"
142
+ ]
143
+ },
144
+ "requested_by_role": {
145
+ "type": "string",
146
+ "description": "[PROTOCOL-CORE] Identifier of the role initiating the approval request (should correspond to role_id in Role module)."
147
+ },
148
+ "requested_at": {
149
+ "type": "string",
150
+ "format": "date-time",
151
+ "description": "[PROTOCOL-CORE] Approval request creation time (ISO 8601)."
152
+ },
153
+ "reason": {
154
+ "type": "string",
155
+ "description": "[PROTOCOL-CORE] Reason for the request, for humans and Agents."
156
+ },
157
+ "decisions": {
158
+ "type": "array",
159
+ "description": "[PROTOCOL-CORE] List of decision records related to this Confirm request.",
160
+ "items": {
161
+ "$ref": "#/$defs/confirm_decision_core"
162
+ }
163
+ },
164
+ "trace": {
165
+ "$ref": "common/trace-base.schema.json",
166
+ "description": "[PROTOCOL-CORE] Trace reference bound to this Confirm request (for cross-module tracing)."
167
+ },
168
+ "events": {
169
+ "type": "array",
170
+ "description": "[PROTOCOL-CORE] List of key events directly related to this Confirm request (creation, decision, cancellation, etc.).",
171
+ "items": {
172
+ "$ref": "common/events.schema.json"
173
+ }
174
+ }
175
+ },
176
+ "required": [
177
+ "meta",
178
+ "confirm_id",
179
+ "target_type",
180
+ "target_id",
181
+ "status",
182
+ "requested_by_role",
183
+ "requested_at"
184
+ ]
185
+ },
186
+ "confirm_decision_core": {
187
+ "type": "object",
188
+ "description": "[PROTOCOL-CORE] Minimal required semantics for a single approval decision record.",
189
+ "additionalProperties": false,
190
+ "properties": {
191
+ "decision_id": {
192
+ "$ref": "common/identifiers.schema.json",
193
+ "description": "[PROTOCOL-CORE] Global unique identifier for the decision record."
194
+ },
195
+ "status": {
196
+ "type": "string",
197
+ "description": "[PROTOCOL-CORE] Decision result status.",
198
+ "enum": [
199
+ "approved",
200
+ "rejected",
201
+ "cancelled"
202
+ ]
203
+ },
204
+ "decided_by_role": {
205
+ "type": "string",
206
+ "description": "[PROTOCOL-CORE] Identifier of the role making the decision (should correspond to role_id in Role module)."
207
+ },
208
+ "decided_at": {
209
+ "type": "string",
210
+ "format": "date-time",
211
+ "description": "[PROTOCOL-CORE] Decision time (ISO 8601)."
212
+ },
213
+ "reason": {
214
+ "type": "string",
215
+ "description": "[PROTOCOL-CORE] Summary of the decision reason (optional)."
216
+ }
217
+ },
218
+ "required": [
219
+ "decision_id",
220
+ "status",
221
+ "decided_by_role",
222
+ "decided_at"
223
+ ]
224
+ }
225
+ }
226
+ }