@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,119 +1,119 @@
|
|
|
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/learning/mplp-learning-sample-intent.schema.json",
|
|
5
|
-
"title": "MPLP LearningSample – Intent Resolution v1.0",
|
|
6
|
-
"description": "Specialized schema for intent_resolution samples capturing user intent clarification and plan generation",
|
|
7
|
-
"allOf": [
|
|
8
|
-
{
|
|
9
|
-
"$ref": "mplp-learning-sample-core.schema.json"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"type": "object",
|
|
13
|
-
"properties": {
|
|
14
|
-
"sample_family": {
|
|
15
|
-
"const": "intent_resolution",
|
|
16
|
-
"description": "Must be 'intent_resolution' for this sample type"
|
|
17
|
-
},
|
|
18
|
-
"input": {
|
|
19
|
-
"type": "object",
|
|
20
|
-
"properties": {
|
|
21
|
-
"intent_id": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "Intent identifier from IntentEvent or Plan.intent_model"
|
|
24
|
-
},
|
|
25
|
-
"raw_request_summary": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Abstracted summary of original user request (PII-scrubbed if needed)"
|
|
28
|
-
},
|
|
29
|
-
"constraints_summary": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "Optional: Key constraints mentioned (timeline, budget, resources, etc.)"
|
|
32
|
-
},
|
|
33
|
-
"dialog_turns_count": {
|
|
34
|
-
"type": "integer",
|
|
35
|
-
"minimum": 0,
|
|
36
|
-
"description": "Optional: Number of dialog exchanges before intent resolution"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"required": [
|
|
40
|
-
"intent_id",
|
|
41
|
-
"raw_request_summary"
|
|
42
|
-
],
|
|
43
|
-
"additionalProperties": true
|
|
44
|
-
},
|
|
45
|
-
"state": {
|
|
46
|
-
"type": "object",
|
|
47
|
-
"properties": {
|
|
48
|
-
"project_phase": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "Optional: Project state (greenfield, brownfield, maintenance, etc.)"
|
|
51
|
-
},
|
|
52
|
-
"psg_node_count": {
|
|
53
|
-
"type": "integer",
|
|
54
|
-
"minimum": 0,
|
|
55
|
-
"description": "Optional: PSG size before intent application"
|
|
56
|
-
},
|
|
57
|
-
"existing_plan_count": {
|
|
58
|
-
"type": "integer",
|
|
59
|
-
"minimum": 0,
|
|
60
|
-
"description": "Optional: Number of existing plans in context"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"additionalProperties": true
|
|
64
|
-
},
|
|
65
|
-
"output": {
|
|
66
|
-
"type": "object",
|
|
67
|
-
"properties": {
|
|
68
|
-
"final_intent_summary": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"description": "Refined/clarified intent after resolution process"
|
|
71
|
-
},
|
|
72
|
-
"plan_id": {
|
|
73
|
-
"type": "string",
|
|
74
|
-
"format": "uuid",
|
|
75
|
-
"description": "Optional: Generated Plan identifier (if plan created)"
|
|
76
|
-
},
|
|
77
|
-
"plan_step_count": {
|
|
78
|
-
"type": "integer",
|
|
79
|
-
"minimum": 0,
|
|
80
|
-
"description": "Optional: Number of steps in generated plan"
|
|
81
|
-
},
|
|
82
|
-
"resolution_quality_label": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"enum": [
|
|
85
|
-
"good",
|
|
86
|
-
"acceptable",
|
|
87
|
-
"bad",
|
|
88
|
-
"unknown"
|
|
89
|
-
],
|
|
90
|
-
"description": "Assessment of intent resolution quality"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"required": [
|
|
94
|
-
"final_intent_summary"
|
|
95
|
-
],
|
|
96
|
-
"additionalProperties": true
|
|
97
|
-
},
|
|
98
|
-
"meta": {
|
|
99
|
-
"type": "object",
|
|
100
|
-
"properties": {
|
|
101
|
-
"clarification_rounds": {
|
|
102
|
-
"type": "integer",
|
|
103
|
-
"minimum": 0,
|
|
104
|
-
"description": "Optional: Clarification rounds needed before resolution"
|
|
105
|
-
},
|
|
106
|
-
"ambiguity_flags": {
|
|
107
|
-
"type": "array",
|
|
108
|
-
"items": {
|
|
109
|
-
"type": "string"
|
|
110
|
-
},
|
|
111
|
-
"description": "Optional: Detected ambiguity types (vague_scope, missing_constraints, etc.)"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"additionalProperties": true
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
}
|
|
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/learning/mplp-learning-sample-intent.schema.json",
|
|
5
|
+
"title": "MPLP LearningSample – Intent Resolution v1.0",
|
|
6
|
+
"description": "Specialized schema for intent_resolution samples capturing user intent clarification and plan generation",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "mplp-learning-sample-core.schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"sample_family": {
|
|
15
|
+
"const": "intent_resolution",
|
|
16
|
+
"description": "Must be 'intent_resolution' for this sample type"
|
|
17
|
+
},
|
|
18
|
+
"input": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"intent_id": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Intent identifier from IntentEvent or Plan.intent_model"
|
|
24
|
+
},
|
|
25
|
+
"raw_request_summary": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Abstracted summary of original user request (PII-scrubbed if needed)"
|
|
28
|
+
},
|
|
29
|
+
"constraints_summary": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Optional: Key constraints mentioned (timeline, budget, resources, etc.)"
|
|
32
|
+
},
|
|
33
|
+
"dialog_turns_count": {
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"minimum": 0,
|
|
36
|
+
"description": "Optional: Number of dialog exchanges before intent resolution"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"intent_id",
|
|
41
|
+
"raw_request_summary"
|
|
42
|
+
],
|
|
43
|
+
"additionalProperties": true
|
|
44
|
+
},
|
|
45
|
+
"state": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"project_phase": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Optional: Project state (greenfield, brownfield, maintenance, etc.)"
|
|
51
|
+
},
|
|
52
|
+
"psg_node_count": {
|
|
53
|
+
"type": "integer",
|
|
54
|
+
"minimum": 0,
|
|
55
|
+
"description": "Optional: PSG size before intent application"
|
|
56
|
+
},
|
|
57
|
+
"existing_plan_count": {
|
|
58
|
+
"type": "integer",
|
|
59
|
+
"minimum": 0,
|
|
60
|
+
"description": "Optional: Number of existing plans in context"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"additionalProperties": true
|
|
64
|
+
},
|
|
65
|
+
"output": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"final_intent_summary": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "Refined/clarified intent after resolution process"
|
|
71
|
+
},
|
|
72
|
+
"plan_id": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"format": "uuid",
|
|
75
|
+
"description": "Optional: Generated Plan identifier (if plan created)"
|
|
76
|
+
},
|
|
77
|
+
"plan_step_count": {
|
|
78
|
+
"type": "integer",
|
|
79
|
+
"minimum": 0,
|
|
80
|
+
"description": "Optional: Number of steps in generated plan"
|
|
81
|
+
},
|
|
82
|
+
"resolution_quality_label": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"enum": [
|
|
85
|
+
"good",
|
|
86
|
+
"acceptable",
|
|
87
|
+
"bad",
|
|
88
|
+
"unknown"
|
|
89
|
+
],
|
|
90
|
+
"description": "Assessment of intent resolution quality"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": [
|
|
94
|
+
"final_intent_summary"
|
|
95
|
+
],
|
|
96
|
+
"additionalProperties": true
|
|
97
|
+
},
|
|
98
|
+
"meta": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"clarification_rounds": {
|
|
102
|
+
"type": "integer",
|
|
103
|
+
"minimum": 0,
|
|
104
|
+
"description": "Optional: Clarification rounds needed before resolution"
|
|
105
|
+
},
|
|
106
|
+
"ambiguity_flags": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"description": "Optional: Detected ambiguity types (vague_scope, missing_constraints, etc.)"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"additionalProperties": true
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|