@mplp/schema 1.0.4 → 1.0.6
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.
- package/LICENSE +17 -0
- package/LICENSE.txt +201 -201
- package/README.md +25 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -0
- package/dist/kernel-duties.d.ts +9 -0
- package/dist/kernel-duties.js +19 -0
- package/package.json +17 -7
- package/schemas/common/common-types.schema.json +49 -49
- package/schemas/common/events.schema.json +66 -66
- package/schemas/common/identifiers.schema.json +13 -13
- package/schemas/common/learning-sample.schema.json +194 -194
- package/schemas/common/metadata.schema.json +115 -113
- package/schemas/common/trace-base.schema.json +43 -43
- package/schemas/events/mplp-event-core.schema.json +58 -58
- package/schemas/events/mplp-graph-update-event.schema.json +58 -58
- package/schemas/events/mplp-map-event.schema.json +147 -147
- package/schemas/events/mplp-pipeline-stage-event.schema.json +56 -56
- package/schemas/events/mplp-runtime-execution-event.schema.json +58 -58
- package/schemas/events/mplp-sa-event.schema.json +109 -109
- package/schemas/integration/mplp-ci-event.schema.json +130 -130
- package/schemas/integration/mplp-file-update-event.schema.json +70 -70
- package/schemas/integration/mplp-git-event.schema.json +98 -98
- package/schemas/integration/mplp-tool-event.schema.json +83 -83
- package/schemas/invariants/integration-invariants.yaml +139 -147
- package/schemas/invariants/learning-invariants.yaml +98 -106
- package/schemas/invariants/map-invariants.yaml +65 -73
- package/schemas/invariants/observability-invariants.yaml +98 -106
- package/schemas/invariants/sa-invariants.yaml +64 -72
- package/schemas/kernel-duties.json +18 -0
- package/schemas/learning/mplp-learning-sample-core.schema.json +94 -94
- package/schemas/learning/mplp-learning-sample-delta.schema.json +137 -137
- package/schemas/learning/mplp-learning-sample-intent.schema.json +119 -119
- package/schemas/mplp-collab.schema.json +243 -243
- package/schemas/mplp-confirm.schema.json +226 -226
- package/schemas/mplp-context.schema.json +246 -246
- package/schemas/mplp-core.schema.json +183 -183
- package/schemas/mplp-dialog.schema.json +198 -198
- package/schemas/mplp-extension.schema.json +179 -179
- package/schemas/mplp-network.schema.json +230 -230
- package/schemas/mplp-plan.schema.json +193 -193
- package/schemas/mplp-role.schema.json +139 -139
- package/schemas/mplp-trace.schema.json +216 -216
|
@@ -1,113 +1,115 @@
|
|
|
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: ©
|
|
3
|
-
"$id": "https://schemas.mplp.dev/v1.0/common/metadata.schema.json",
|
|
4
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
-
"title": "MPLP Metadata",
|
|
6
|
-
"description": "Common metadata structure for all MPLP objects. Provides version control, creation info, tags, and cross-cutting concern declarations. All top-level objects in L2/L3/L4 should include the meta field.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"protocol_version": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
|
|
12
|
-
"description": "MPLP protocol version, using Semantic Versioning.",
|
|
13
|
-
"examples": [
|
|
14
|
-
"1.0.0",
|
|
15
|
-
"1.1.0"
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"schema_version": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
|
|
21
|
-
"description": "Schema version used by the current object, using Semantic Versioning.",
|
|
22
|
-
"examples": [
|
|
23
|
-
"2.0.0",
|
|
24
|
-
"2.1.0"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
"created_at": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"format": "date-time",
|
|
30
|
-
"description": "Object creation time (ISO 8601 format).",
|
|
31
|
-
"examples": [
|
|
32
|
-
"2025-01-28T15:30:00.000Z"
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"created_by": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"description": "Creator identifier (User ID / Agent Name / System ID).",
|
|
38
|
-
"examples": [
|
|
39
|
-
"user-123",
|
|
40
|
-
"agent-planner",
|
|
41
|
-
"system"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"updated_at": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"format": "date-time",
|
|
47
|
-
"description": "Object last update time (ISO 8601 format).",
|
|
48
|
-
"examples": [
|
|
49
|
-
"2025-01-28T16:45:00.000Z"
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"updated_by": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"description": "Last updater identifier.",
|
|
55
|
-
"examples": [
|
|
56
|
-
"user-456",
|
|
57
|
-
"agent-executor"
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
"tags": {
|
|
61
|
-
"type": "array",
|
|
62
|
-
"items": {
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
|
-
"description": "Set of tags for indexing/search. Supports custom classification and retrieval.",
|
|
66
|
-
"uniqueItems": true,
|
|
67
|
-
"examples": [
|
|
68
|
-
[
|
|
69
|
-
"production",
|
|
70
|
-
"high-priority"
|
|
71
|
-
],
|
|
72
|
-
[
|
|
73
|
-
"development",
|
|
74
|
-
"experimental"
|
|
75
|
-
]
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
"cross_cutting": {
|
|
79
|
-
"type": "array",
|
|
80
|
-
"description": "Declares cross-cutting concerns enabled for the current object (one of the
|
|
81
|
-
"items": {
|
|
82
|
-
"type": "string",
|
|
83
|
-
"enum": [
|
|
84
|
-
"coordination",
|
|
85
|
-
"error-handling",
|
|
86
|
-
"event-bus",
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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: © 2026 Bangshi Beijing Network Technology Limited Company\nLicense: Apache-2.0\nAny normative change requires a new protocol version.",
|
|
3
|
+
"$id": "https://schemas.mplp.dev/v1.0/common/metadata.schema.json",
|
|
4
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"title": "MPLP Metadata",
|
|
6
|
+
"description": "Common metadata structure for all MPLP objects. Provides version control, creation info, tags, and cross-cutting concern declarations. All top-level objects in L2/L3/L4 should include the meta field.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"protocol_version": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
|
|
12
|
+
"description": "MPLP protocol version, using Semantic Versioning.",
|
|
13
|
+
"examples": [
|
|
14
|
+
"1.0.0",
|
|
15
|
+
"1.1.0"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"schema_version": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
|
|
21
|
+
"description": "Schema version used by the current object, using Semantic Versioning.",
|
|
22
|
+
"examples": [
|
|
23
|
+
"2.0.0",
|
|
24
|
+
"2.1.0"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"created_at": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"format": "date-time",
|
|
30
|
+
"description": "Object creation time (ISO 8601 format).",
|
|
31
|
+
"examples": [
|
|
32
|
+
"2025-01-28T15:30:00.000Z"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"created_by": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Creator identifier (User ID / Agent Name / System ID).",
|
|
38
|
+
"examples": [
|
|
39
|
+
"user-123",
|
|
40
|
+
"agent-planner",
|
|
41
|
+
"system"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"updated_at": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"format": "date-time",
|
|
47
|
+
"description": "Object last update time (ISO 8601 format).",
|
|
48
|
+
"examples": [
|
|
49
|
+
"2025-01-28T16:45:00.000Z"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"updated_by": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Last updater identifier.",
|
|
55
|
+
"examples": [
|
|
56
|
+
"user-456",
|
|
57
|
+
"agent-executor"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"tags": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"description": "Set of tags for indexing/search. Supports custom classification and retrieval.",
|
|
66
|
+
"uniqueItems": true,
|
|
67
|
+
"examples": [
|
|
68
|
+
[
|
|
69
|
+
"production",
|
|
70
|
+
"high-priority"
|
|
71
|
+
],
|
|
72
|
+
[
|
|
73
|
+
"development",
|
|
74
|
+
"experimental"
|
|
75
|
+
]
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"cross_cutting": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"description": "Declares cross-cutting concerns enabled for the current object (one of the 11 concerns in Governance Plane).",
|
|
81
|
+
"items": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"enum": [
|
|
84
|
+
"coordination",
|
|
85
|
+
"error-handling",
|
|
86
|
+
"event-bus",
|
|
87
|
+
"learning-feedback",
|
|
88
|
+
"observability",
|
|
89
|
+
"orchestration",
|
|
90
|
+
"performance",
|
|
91
|
+
"protocol-versioning",
|
|
92
|
+
"security",
|
|
93
|
+
"state-sync",
|
|
94
|
+
"transaction"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"uniqueItems": true,
|
|
98
|
+
"examples": [
|
|
99
|
+
[
|
|
100
|
+
"security",
|
|
101
|
+
"transaction"
|
|
102
|
+
],
|
|
103
|
+
[
|
|
104
|
+
"performance",
|
|
105
|
+
"event-bus"
|
|
106
|
+
]
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"required": [
|
|
111
|
+
"protocol_version",
|
|
112
|
+
"schema_version"
|
|
113
|
+
],
|
|
114
|
+
"additionalProperties": false
|
|
115
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
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: ©
|
|
3
|
-
"$id": "https://schemas.mplp.dev/v1.0/common/trace-base.schema.json",
|
|
4
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
-
"title": "MPLP Trace Base",
|
|
6
|
-
"description": "Common base fields for Trace / Span structures. Designed based on W3C Trace Context standard, providing a unified tracing context for the MPLP execution chain. Supports distributed tracing and parent-child relationships of execution steps.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"trace_id": {
|
|
10
|
-
"$ref": "identifiers.schema.json",
|
|
11
|
-
"description": "Identifier for a complete execution chain. All related Spans share the same trace_id."
|
|
12
|
-
},
|
|
13
|
-
"span_id": {
|
|
14
|
-
"$ref": "identifiers.schema.json",
|
|
15
|
-
"description": "Identifier for the current step or operation. Each Span has a unique span_id."
|
|
16
|
-
},
|
|
17
|
-
"parent_span_id": {
|
|
18
|
-
"$ref": "identifiers.schema.json",
|
|
19
|
-
"description": "Identifier of the parent step's span_id. Can be omitted if it is a root span."
|
|
20
|
-
},
|
|
21
|
-
"context_id": {
|
|
22
|
-
"$ref": "identifiers.schema.json",
|
|
23
|
-
"description": "Identifier of the Context Root. Associates the Trace with a specific project context."
|
|
24
|
-
},
|
|
25
|
-
"attributes": {
|
|
26
|
-
"type": "object",
|
|
27
|
-
"description": "Additional attributes (key-value pairs) to extend trace information. Can contain custom metadata, tags, etc.",
|
|
28
|
-
"additionalProperties": true,
|
|
29
|
-
"examples": [
|
|
30
|
-
{
|
|
31
|
-
"module": "plan",
|
|
32
|
-
"operation": "create",
|
|
33
|
-
"user_id": "user-123"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"required": [
|
|
39
|
-
"trace_id",
|
|
40
|
-
"span_id"
|
|
41
|
-
],
|
|
42
|
-
"additionalProperties": false
|
|
43
|
-
}
|
|
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: © 2026 Bangshi Beijing Network Technology Limited Company\nLicense: Apache-2.0\nAny normative change requires a new protocol version.",
|
|
3
|
+
"$id": "https://schemas.mplp.dev/v1.0/common/trace-base.schema.json",
|
|
4
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"title": "MPLP Trace Base",
|
|
6
|
+
"description": "Common base fields for Trace / Span structures. Designed based on W3C Trace Context standard, providing a unified tracing context for the MPLP execution chain. Supports distributed tracing and parent-child relationships of execution steps.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"trace_id": {
|
|
10
|
+
"$ref": "identifiers.schema.json",
|
|
11
|
+
"description": "Identifier for a complete execution chain. All related Spans share the same trace_id."
|
|
12
|
+
},
|
|
13
|
+
"span_id": {
|
|
14
|
+
"$ref": "identifiers.schema.json",
|
|
15
|
+
"description": "Identifier for the current step or operation. Each Span has a unique span_id."
|
|
16
|
+
},
|
|
17
|
+
"parent_span_id": {
|
|
18
|
+
"$ref": "identifiers.schema.json",
|
|
19
|
+
"description": "Identifier of the parent step's span_id. Can be omitted if it is a root span."
|
|
20
|
+
},
|
|
21
|
+
"context_id": {
|
|
22
|
+
"$ref": "identifiers.schema.json",
|
|
23
|
+
"description": "Identifier of the Context Root. Associates the Trace with a specific project context."
|
|
24
|
+
},
|
|
25
|
+
"attributes": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"description": "Additional attributes (key-value pairs) to extend trace information. Can contain custom metadata, tags, etc.",
|
|
28
|
+
"additionalProperties": true,
|
|
29
|
+
"examples": [
|
|
30
|
+
{
|
|
31
|
+
"module": "plan",
|
|
32
|
+
"operation": "create",
|
|
33
|
+
"user_id": "user-123"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": [
|
|
39
|
+
"trace_id",
|
|
40
|
+
"span_id"
|
|
41
|
+
],
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
}
|
|
@@ -1,58 +1,58 @@
|
|
|
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: ©
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"$id": "https://mplp.dev/schemas/v1.0/events/mplp-event-core.schema.json",
|
|
5
|
-
"title": "MPLP Core Event v1.0",
|
|
6
|
-
"description": "Base structure for MPLP observability events - provides common fields inherited by all event families",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"event_id": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"format": "uuid",
|
|
12
|
-
"description": "Unique identifier for this event (UUID v4)"
|
|
13
|
-
},
|
|
14
|
-
"event_type": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Specific event subtype (e.g., 'import_started', 'pipeline_stage_completed')"
|
|
17
|
-
},
|
|
18
|
-
"event_family": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"enum": [
|
|
21
|
-
"import_process",
|
|
22
|
-
"intent",
|
|
23
|
-
"delta_intent",
|
|
24
|
-
"impact_analysis",
|
|
25
|
-
"compensation_plan",
|
|
26
|
-
"methodology",
|
|
27
|
-
"reasoning_graph",
|
|
28
|
-
"pipeline_stage",
|
|
29
|
-
"graph_update",
|
|
30
|
-
"runtime_execution",
|
|
31
|
-
"cost_budget",
|
|
32
|
-
"external_integration"
|
|
33
|
-
],
|
|
34
|
-
"description": "Event family classification - determines which minimal fields are required"
|
|
35
|
-
},
|
|
36
|
-
"timestamp": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"format": "date-time",
|
|
39
|
-
"description": "ISO 8601 timestamp when event occurred"
|
|
40
|
-
},
|
|
41
|
-
"project_id": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"format": "uuid",
|
|
44
|
-
"description": "Project context identifier (optional for system-level events)"
|
|
45
|
-
},
|
|
46
|
-
"payload": {
|
|
47
|
-
"type": "object",
|
|
48
|
-
"description": "Event-specific payload data (schema varies by event_family)"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"required": [
|
|
52
|
-
"event_id",
|
|
53
|
-
"event_type",
|
|
54
|
-
"event_family",
|
|
55
|
-
"timestamp"
|
|
56
|
-
],
|
|
57
|
-
"additionalProperties": true
|
|
58
|
-
}
|
|
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: © 2026 Bangshi Beijing Network Technology Limited Company\nLicense: Apache-2.0\nAny normative change requires a new protocol version.",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "https://mplp.dev/schemas/v1.0/events/mplp-event-core.schema.json",
|
|
5
|
+
"title": "MPLP Core Event v1.0",
|
|
6
|
+
"description": "Base structure for MPLP observability events - provides common fields inherited by all event families",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"event_id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "uuid",
|
|
12
|
+
"description": "Unique identifier for this event (UUID v4)"
|
|
13
|
+
},
|
|
14
|
+
"event_type": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Specific event subtype (e.g., 'import_started', 'pipeline_stage_completed')"
|
|
17
|
+
},
|
|
18
|
+
"event_family": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"import_process",
|
|
22
|
+
"intent",
|
|
23
|
+
"delta_intent",
|
|
24
|
+
"impact_analysis",
|
|
25
|
+
"compensation_plan",
|
|
26
|
+
"methodology",
|
|
27
|
+
"reasoning_graph",
|
|
28
|
+
"pipeline_stage",
|
|
29
|
+
"graph_update",
|
|
30
|
+
"runtime_execution",
|
|
31
|
+
"cost_budget",
|
|
32
|
+
"external_integration"
|
|
33
|
+
],
|
|
34
|
+
"description": "Event family classification - determines which minimal fields are required"
|
|
35
|
+
},
|
|
36
|
+
"timestamp": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "date-time",
|
|
39
|
+
"description": "ISO 8601 timestamp when event occurred"
|
|
40
|
+
},
|
|
41
|
+
"project_id": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"format": "uuid",
|
|
44
|
+
"description": "Project context identifier (optional for system-level events)"
|
|
45
|
+
},
|
|
46
|
+
"payload": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"description": "Event-specific payload data (schema varies by event_family)"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"event_id",
|
|
53
|
+
"event_type",
|
|
54
|
+
"event_family",
|
|
55
|
+
"timestamp"
|
|
56
|
+
],
|
|
57
|
+
"additionalProperties": true
|
|
58
|
+
}
|
|
@@ -1,58 +1,58 @@
|
|
|
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: ©
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"$id": "https://mplp.dev/schemas/v1.0/events/mplp-graph-update-event.schema.json",
|
|
5
|
-
"title": "MPLP GraphUpdateEvent v1.0",
|
|
6
|
-
"description": "**REQUIRED** - PSG structural update events (MANDATORY for v1.0 compliance)",
|
|
7
|
-
"allOf": [
|
|
8
|
-
{
|
|
9
|
-
"$ref": "mplp-event-core.schema.json"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"type": "object",
|
|
13
|
-
"properties": {
|
|
14
|
-
"event_family": {
|
|
15
|
-
"const": "graph_update",
|
|
16
|
-
"description": "Must be 'graph_update' for this event type"
|
|
17
|
-
},
|
|
18
|
-
"graph_id": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"format": "uuid",
|
|
21
|
-
"description": "PSG identifier (typically project-level graph)"
|
|
22
|
-
},
|
|
23
|
-
"update_kind": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"enum": [
|
|
26
|
-
"node_add",
|
|
27
|
-
"node_update",
|
|
28
|
-
"node_delete",
|
|
29
|
-
"edge_add",
|
|
30
|
-
"edge_update",
|
|
31
|
-
"edge_delete",
|
|
32
|
-
"bulk"
|
|
33
|
-
],
|
|
34
|
-
"description": "Type of graph mutation"
|
|
35
|
-
},
|
|
36
|
-
"node_delta": {
|
|
37
|
-
"type": "integer",
|
|
38
|
-
"description": "Node count delta (+/- or 0)"
|
|
39
|
-
},
|
|
40
|
-
"edge_delta": {
|
|
41
|
-
"type": "integer",
|
|
42
|
-
"description": "Edge count delta (+/- or 0)"
|
|
43
|
-
},
|
|
44
|
-
"source_module": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"description": "L2 module emitting this update (e.g., 'context', 'plan', 'collab')"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"required": [
|
|
50
|
-
"event_family",
|
|
51
|
-
"graph_id",
|
|
52
|
-
"update_kind",
|
|
53
|
-
"node_delta",
|
|
54
|
-
"edge_delta"
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
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: © 2026 Bangshi Beijing Network Technology Limited Company\nLicense: Apache-2.0\nAny normative change requires a new protocol version.",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "https://mplp.dev/schemas/v1.0/events/mplp-graph-update-event.schema.json",
|
|
5
|
+
"title": "MPLP GraphUpdateEvent v1.0",
|
|
6
|
+
"description": "**REQUIRED** - PSG structural update events (MANDATORY for v1.0 compliance)",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "mplp-event-core.schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"event_family": {
|
|
15
|
+
"const": "graph_update",
|
|
16
|
+
"description": "Must be 'graph_update' for this event type"
|
|
17
|
+
},
|
|
18
|
+
"graph_id": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "uuid",
|
|
21
|
+
"description": "PSG identifier (typically project-level graph)"
|
|
22
|
+
},
|
|
23
|
+
"update_kind": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": [
|
|
26
|
+
"node_add",
|
|
27
|
+
"node_update",
|
|
28
|
+
"node_delete",
|
|
29
|
+
"edge_add",
|
|
30
|
+
"edge_update",
|
|
31
|
+
"edge_delete",
|
|
32
|
+
"bulk"
|
|
33
|
+
],
|
|
34
|
+
"description": "Type of graph mutation"
|
|
35
|
+
},
|
|
36
|
+
"node_delta": {
|
|
37
|
+
"type": "integer",
|
|
38
|
+
"description": "Node count delta (+/- or 0)"
|
|
39
|
+
},
|
|
40
|
+
"edge_delta": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"description": "Edge count delta (+/- or 0)"
|
|
43
|
+
},
|
|
44
|
+
"source_module": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "L2 module emitting this update (e.g., 'context', 'plan', 'collab')"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"event_family",
|
|
51
|
+
"graph_id",
|
|
52
|
+
"update_kind",
|
|
53
|
+
"node_delta",
|
|
54
|
+
"edge_delta"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|