@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,179 +1,179 @@
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-extension.schema.json",
5
- "title": "MPLP Extension Module – Core Protocol v1.0",
6
- "description": "Extension Module Core Protocol: Describes the minimal required semantics (Core Profile) for the MPLP plugin system, capability injection, and protocol enhancement points.",
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
- "extension_id": {
38
- "$ref": "common/identifiers.schema.json",
39
- "description": "[PROTOCOL-CORE] Global unique identifier for the Extension."
40
- },
41
- "context_id": {
42
- "$ref": "common/identifiers.schema.json",
43
- "description": "[PROTOCOL-CORE] Identifier of the Context this Extension belongs to."
44
- },
45
- "name": {
46
- "type": "string",
47
- "minLength": 1,
48
- "description": "[PROTOCOL-CORE] Extension name (human-readable)."
49
- },
50
- "extension_type": {
51
- "type": "string",
52
- "description": "[PROTOCOL-CORE] Extension type classification.",
53
- "enum": [
54
- "capability",
55
- "policy",
56
- "integration",
57
- "transformation",
58
- "validation",
59
- "other"
60
- ]
61
- },
62
- "version": {
63
- "type": "string",
64
- "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
65
- "description": "[PROTOCOL-CORE] Extension version (SemVer format)."
66
- },
67
- "status": {
68
- "type": "string",
69
- "description": "[PROTOCOL-CORE] Extension status.",
70
- "enum": [
71
- "registered",
72
- "active",
73
- "inactive",
74
- "deprecated"
75
- ]
76
- },
77
- "config": {
78
- "type": "object",
79
- "description": "[PROTOCOL-CORE] Extension configuration object (L2 safe, implementation details excluded).",
80
- "additionalProperties": true
81
- },
82
- "trace": {
83
- "$ref": "common/trace-base.schema.json",
84
- "description": "[PROTOCOL-CORE] Trace reference bound to this Extension."
85
- },
86
- "events": {
87
- "type": "array",
88
- "description": "[PROTOCOL-CORE] List of key events directly related to this Extension.",
89
- "items": {
90
- "$ref": "common/events.schema.json"
91
- }
92
- }
93
- },
94
- "required": [
95
- "meta",
96
- "extension_id",
97
- "context_id",
98
- "name",
99
- "extension_type",
100
- "version",
101
- "status"
102
- ],
103
- "$defs": {
104
- "extension_core_properties": {
105
- "type": "object",
106
- "properties": {
107
- "meta": {
108
- "$ref": "common/metadata.schema.json",
109
- "description": "[PROTOCOL-CORE] MPLP protocol and schema metadata."
110
- },
111
- "extension_id": {
112
- "$ref": "common/identifiers.schema.json",
113
- "description": "[PROTOCOL-CORE] Global unique identifier for the Extension."
114
- },
115
- "context_id": {
116
- "$ref": "common/identifiers.schema.json",
117
- "description": "[PROTOCOL-CORE] Identifier of the Context this Extension belongs to."
118
- },
119
- "name": {
120
- "type": "string",
121
- "minLength": 1,
122
- "description": "[PROTOCOL-CORE] Extension name (human-readable)."
123
- },
124
- "extension_type": {
125
- "type": "string",
126
- "description": "[PROTOCOL-CORE] Extension type classification.",
127
- "enum": [
128
- "capability",
129
- "policy",
130
- "integration",
131
- "transformation",
132
- "validation",
133
- "other"
134
- ]
135
- },
136
- "version": {
137
- "type": "string",
138
- "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
139
- "description": "[PROTOCOL-CORE] Extension version (SemVer format)."
140
- },
141
- "status": {
142
- "type": "string",
143
- "description": "[PROTOCOL-CORE] Extension status.",
144
- "enum": [
145
- "registered",
146
- "active",
147
- "inactive",
148
- "deprecated"
149
- ]
150
- },
151
- "config": {
152
- "type": "object",
153
- "description": "[PROTOCOL-CORE] Extension configuration object (L2 safe, implementation details excluded).",
154
- "additionalProperties": true
155
- },
156
- "trace": {
157
- "$ref": "common/trace-base.schema.json",
158
- "description": "[PROTOCOL-CORE] Trace reference bound to this Extension."
159
- },
160
- "events": {
161
- "type": "array",
162
- "description": "[PROTOCOL-CORE] List of key events directly related to this Extension.",
163
- "items": {
164
- "$ref": "common/events.schema.json"
165
- }
166
- }
167
- },
168
- "required": [
169
- "meta",
170
- "extension_id",
171
- "context_id",
172
- "name",
173
- "extension_type",
174
- "version",
175
- "status"
176
- ]
177
- }
178
- }
179
- }
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-extension.schema.json",
5
+ "title": "MPLP Extension Module – Core Protocol v1.0",
6
+ "description": "Extension Module Core Protocol: Describes the minimal required semantics (Core Profile) for the MPLP plugin system, capability injection, and protocol enhancement points.",
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
+ "extension_id": {
38
+ "$ref": "common/identifiers.schema.json",
39
+ "description": "[PROTOCOL-CORE] Global unique identifier for the Extension."
40
+ },
41
+ "context_id": {
42
+ "$ref": "common/identifiers.schema.json",
43
+ "description": "[PROTOCOL-CORE] Identifier of the Context this Extension belongs to."
44
+ },
45
+ "name": {
46
+ "type": "string",
47
+ "minLength": 1,
48
+ "description": "[PROTOCOL-CORE] Extension name (human-readable)."
49
+ },
50
+ "extension_type": {
51
+ "type": "string",
52
+ "description": "[PROTOCOL-CORE] Extension type classification.",
53
+ "enum": [
54
+ "capability",
55
+ "policy",
56
+ "integration",
57
+ "transformation",
58
+ "validation",
59
+ "other"
60
+ ]
61
+ },
62
+ "version": {
63
+ "type": "string",
64
+ "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
65
+ "description": "[PROTOCOL-CORE] Extension version (SemVer format)."
66
+ },
67
+ "status": {
68
+ "type": "string",
69
+ "description": "[PROTOCOL-CORE] Extension status.",
70
+ "enum": [
71
+ "registered",
72
+ "active",
73
+ "inactive",
74
+ "deprecated"
75
+ ]
76
+ },
77
+ "config": {
78
+ "type": "object",
79
+ "description": "[PROTOCOL-CORE] Extension configuration object (L2 safe, implementation details excluded).",
80
+ "additionalProperties": true
81
+ },
82
+ "trace": {
83
+ "$ref": "common/trace-base.schema.json",
84
+ "description": "[PROTOCOL-CORE] Trace reference bound to this Extension."
85
+ },
86
+ "events": {
87
+ "type": "array",
88
+ "description": "[PROTOCOL-CORE] List of key events directly related to this Extension.",
89
+ "items": {
90
+ "$ref": "common/events.schema.json"
91
+ }
92
+ }
93
+ },
94
+ "required": [
95
+ "meta",
96
+ "extension_id",
97
+ "context_id",
98
+ "name",
99
+ "extension_type",
100
+ "version",
101
+ "status"
102
+ ],
103
+ "$defs": {
104
+ "extension_core_properties": {
105
+ "type": "object",
106
+ "properties": {
107
+ "meta": {
108
+ "$ref": "common/metadata.schema.json",
109
+ "description": "[PROTOCOL-CORE] MPLP protocol and schema metadata."
110
+ },
111
+ "extension_id": {
112
+ "$ref": "common/identifiers.schema.json",
113
+ "description": "[PROTOCOL-CORE] Global unique identifier for the Extension."
114
+ },
115
+ "context_id": {
116
+ "$ref": "common/identifiers.schema.json",
117
+ "description": "[PROTOCOL-CORE] Identifier of the Context this Extension belongs to."
118
+ },
119
+ "name": {
120
+ "type": "string",
121
+ "minLength": 1,
122
+ "description": "[PROTOCOL-CORE] Extension name (human-readable)."
123
+ },
124
+ "extension_type": {
125
+ "type": "string",
126
+ "description": "[PROTOCOL-CORE] Extension type classification.",
127
+ "enum": [
128
+ "capability",
129
+ "policy",
130
+ "integration",
131
+ "transformation",
132
+ "validation",
133
+ "other"
134
+ ]
135
+ },
136
+ "version": {
137
+ "type": "string",
138
+ "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
139
+ "description": "[PROTOCOL-CORE] Extension version (SemVer format)."
140
+ },
141
+ "status": {
142
+ "type": "string",
143
+ "description": "[PROTOCOL-CORE] Extension status.",
144
+ "enum": [
145
+ "registered",
146
+ "active",
147
+ "inactive",
148
+ "deprecated"
149
+ ]
150
+ },
151
+ "config": {
152
+ "type": "object",
153
+ "description": "[PROTOCOL-CORE] Extension configuration object (L2 safe, implementation details excluded).",
154
+ "additionalProperties": true
155
+ },
156
+ "trace": {
157
+ "$ref": "common/trace-base.schema.json",
158
+ "description": "[PROTOCOL-CORE] Trace reference bound to this Extension."
159
+ },
160
+ "events": {
161
+ "type": "array",
162
+ "description": "[PROTOCOL-CORE] List of key events directly related to this Extension.",
163
+ "items": {
164
+ "$ref": "common/events.schema.json"
165
+ }
166
+ }
167
+ },
168
+ "required": [
169
+ "meta",
170
+ "extension_id",
171
+ "context_id",
172
+ "name",
173
+ "extension_type",
174
+ "version",
175
+ "status"
176
+ ]
177
+ }
178
+ }
179
+ }