@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,183 +1,183 @@
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-core.schema.json",
5
- "title": "MPLP Core Module – Core Protocol v1.0",
6
- "description": "Core Module Core Protocol: Describes the minimal required semantics (Core Profile) for an MPLP protocol instance's version, enabled modules, and overall state.",
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
- "core_id": {
38
- "$ref": "common/identifiers.schema.json",
39
- "description": "[PROTOCOL-CORE] Global unique identifier for the current Core instance."
40
- },
41
- "protocol_version": {
42
- "type": "string",
43
- "minLength": 1,
44
- "description": "[PROTOCOL-CORE] Major version number of the current MPLP protocol instance (e.g., 1.0.0)."
45
- },
46
- "status": {
47
- "type": "string",
48
- "description": "[PROTOCOL-CORE] Lifecycle status of the current Core instance.",
49
- "enum": [
50
- "draft",
51
- "active",
52
- "deprecated",
53
- "archived"
54
- ]
55
- },
56
- "modules": {
57
- "type": "array",
58
- "description": "[PROTOCOL-CORE] List of L2 modules enabled in the current protocol instance.",
59
- "minItems": 1,
60
- "items": {
61
- "$ref": "#/$defs/core_module_descriptor"
62
- }
63
- },
64
- "trace": {
65
- "$ref": "common/trace-base.schema.json",
66
- "description": "[PROTOCOL-CORE] Main Trace reference bound to this Core instance, used for auditing Core layer configuration changes."
67
- },
68
- "events": {
69
- "type": "array",
70
- "description": "[PROTOCOL-CORE] List of key events related to this Core instance (version upgrades, module enable/disable, etc.).",
71
- "items": {
72
- "$ref": "common/events.schema.json"
73
- }
74
- }
75
- },
76
- "required": [
77
- "meta",
78
- "core_id",
79
- "protocol_version",
80
- "status",
81
- "modules"
82
- ],
83
- "$defs": {
84
- "core_core_properties": {
85
- "type": "object",
86
- "properties": {
87
- "meta": {
88
- "$ref": "common/metadata.schema.json"
89
- },
90
- "core_id": {
91
- "$ref": "common/identifiers.schema.json"
92
- },
93
- "protocol_version": {
94
- "type": "string",
95
- "minLength": 1
96
- },
97
- "status": {
98
- "type": "string",
99
- "enum": [
100
- "draft",
101
- "active",
102
- "deprecated",
103
- "archived"
104
- ]
105
- },
106
- "modules": {
107
- "type": "array",
108
- "minItems": 1,
109
- "items": {
110
- "$ref": "#/$defs/core_module_descriptor"
111
- }
112
- },
113
- "trace": {
114
- "$ref": "common/trace-base.schema.json"
115
- },
116
- "events": {
117
- "type": "array",
118
- "items": {
119
- "$ref": "common/events.schema.json"
120
- }
121
- }
122
- },
123
- "required": [
124
- "meta",
125
- "core_id",
126
- "protocol_version",
127
- "status",
128
- "modules"
129
- ]
130
- },
131
- "core_module_descriptor": {
132
- "type": "object",
133
- "description": "[PROTOCOL-CORE] L2 module descriptor (used to declare which modules are enabled in the current instance).",
134
- "additionalProperties": false,
135
- "properties": {
136
- "module_id": {
137
- "type": "string",
138
- "description": "[PROTOCOL-CORE] Module identifier.",
139
- "enum": [
140
- "context",
141
- "plan",
142
- "confirm",
143
- "trace",
144
- "role",
145
- "extension",
146
- "dialog",
147
- "collab",
148
- "core",
149
- "network"
150
- ]
151
- },
152
- "version": {
153
- "type": "string",
154
- "minLength": 1,
155
- "description": "[PROTOCOL-CORE] Protocol version used by this module in the current instance (SemVer recommended)."
156
- },
157
- "status": {
158
- "type": "string",
159
- "description": "[PROTOCOL-CORE] Status of this module in the current instance.",
160
- "enum": [
161
- "enabled",
162
- "disabled",
163
- "experimental",
164
- "deprecated"
165
- ]
166
- },
167
- "required": {
168
- "type": "boolean",
169
- "description": "[PROTOCOL-CORE] Whether this module is mandatory for the current instance."
170
- },
171
- "description": {
172
- "type": "string",
173
- "description": "[PROTOCOL-CORE] Brief description of the module, for humans and Agents."
174
- }
175
- },
176
- "required": [
177
- "module_id",
178
- "version",
179
- "status"
180
- ]
181
- }
182
- }
183
- }
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-core.schema.json",
5
+ "title": "MPLP Core Module – Core Protocol v1.0",
6
+ "description": "Core Module Core Protocol: Describes the minimal required semantics (Core Profile) for an MPLP protocol instance's version, enabled modules, and overall state.",
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
+ "core_id": {
38
+ "$ref": "common/identifiers.schema.json",
39
+ "description": "[PROTOCOL-CORE] Global unique identifier for the current Core instance."
40
+ },
41
+ "protocol_version": {
42
+ "type": "string",
43
+ "minLength": 1,
44
+ "description": "[PROTOCOL-CORE] Major version number of the current MPLP protocol instance (e.g., 1.0.0)."
45
+ },
46
+ "status": {
47
+ "type": "string",
48
+ "description": "[PROTOCOL-CORE] Lifecycle status of the current Core instance.",
49
+ "enum": [
50
+ "draft",
51
+ "active",
52
+ "deprecated",
53
+ "archived"
54
+ ]
55
+ },
56
+ "modules": {
57
+ "type": "array",
58
+ "description": "[PROTOCOL-CORE] List of L2 modules enabled in the current protocol instance.",
59
+ "minItems": 1,
60
+ "items": {
61
+ "$ref": "#/$defs/core_module_descriptor"
62
+ }
63
+ },
64
+ "trace": {
65
+ "$ref": "common/trace-base.schema.json",
66
+ "description": "[PROTOCOL-CORE] Main Trace reference bound to this Core instance, used for auditing Core layer configuration changes."
67
+ },
68
+ "events": {
69
+ "type": "array",
70
+ "description": "[PROTOCOL-CORE] List of key events related to this Core instance (version upgrades, module enable/disable, etc.).",
71
+ "items": {
72
+ "$ref": "common/events.schema.json"
73
+ }
74
+ }
75
+ },
76
+ "required": [
77
+ "meta",
78
+ "core_id",
79
+ "protocol_version",
80
+ "status",
81
+ "modules"
82
+ ],
83
+ "$defs": {
84
+ "core_core_properties": {
85
+ "type": "object",
86
+ "properties": {
87
+ "meta": {
88
+ "$ref": "common/metadata.schema.json"
89
+ },
90
+ "core_id": {
91
+ "$ref": "common/identifiers.schema.json"
92
+ },
93
+ "protocol_version": {
94
+ "type": "string",
95
+ "minLength": 1
96
+ },
97
+ "status": {
98
+ "type": "string",
99
+ "enum": [
100
+ "draft",
101
+ "active",
102
+ "deprecated",
103
+ "archived"
104
+ ]
105
+ },
106
+ "modules": {
107
+ "type": "array",
108
+ "minItems": 1,
109
+ "items": {
110
+ "$ref": "#/$defs/core_module_descriptor"
111
+ }
112
+ },
113
+ "trace": {
114
+ "$ref": "common/trace-base.schema.json"
115
+ },
116
+ "events": {
117
+ "type": "array",
118
+ "items": {
119
+ "$ref": "common/events.schema.json"
120
+ }
121
+ }
122
+ },
123
+ "required": [
124
+ "meta",
125
+ "core_id",
126
+ "protocol_version",
127
+ "status",
128
+ "modules"
129
+ ]
130
+ },
131
+ "core_module_descriptor": {
132
+ "type": "object",
133
+ "description": "[PROTOCOL-CORE] L2 module descriptor (used to declare which modules are enabled in the current instance).",
134
+ "additionalProperties": false,
135
+ "properties": {
136
+ "module_id": {
137
+ "type": "string",
138
+ "description": "[PROTOCOL-CORE] Module identifier.",
139
+ "enum": [
140
+ "context",
141
+ "plan",
142
+ "confirm",
143
+ "trace",
144
+ "role",
145
+ "extension",
146
+ "dialog",
147
+ "collab",
148
+ "core",
149
+ "network"
150
+ ]
151
+ },
152
+ "version": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "description": "[PROTOCOL-CORE] Protocol version used by this module in the current instance (SemVer recommended)."
156
+ },
157
+ "status": {
158
+ "type": "string",
159
+ "description": "[PROTOCOL-CORE] Status of this module in the current instance.",
160
+ "enum": [
161
+ "enabled",
162
+ "disabled",
163
+ "experimental",
164
+ "deprecated"
165
+ ]
166
+ },
167
+ "required": {
168
+ "type": "boolean",
169
+ "description": "[PROTOCOL-CORE] Whether this module is mandatory for the current instance."
170
+ },
171
+ "description": {
172
+ "type": "string",
173
+ "description": "[PROTOCOL-CORE] Brief description of the module, for humans and Agents."
174
+ }
175
+ },
176
+ "required": [
177
+ "module_id",
178
+ "version",
179
+ "status"
180
+ ]
181
+ }
182
+ }
183
+ }