Add context packs impact analysis and message validation

This commit is contained in:
2026-05-07 10:17:24 +08:00
parent f2d0a83705
commit 0c5254eb1b
18 changed files with 780 additions and 13 deletions

View File

@@ -0,0 +1,63 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://gsp.local/schema/gsp.message.schema.json",
"title": "GSP Message",
"description": "GSP agent communication message schema.",
"type": "object",
"additionalProperties": true,
"required": ["gspMessageVersion", "id", "from", "to", "intent", "entry"],
"properties": {
"gspMessageVersion": {
"type": "string",
"enum": ["0.1"]
},
"id": {
"type": "string",
"minLength": 1
},
"from": {
"type": "string",
"minLength": 1
},
"to": {
"type": "string",
"minLength": 1
},
"intent": {
"type": "string",
"enum": ["design", "implement", "review", "test", "acceptance", "handoff", "inspect"]
},
"entry": {
"type": "string",
"minLength": 1
},
"stage": {
"type": "string",
"enum": ["design", "integrate", "implement", "bind", "release"]
},
"requires": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"contextPack": {
"type": "object",
"additionalProperties": true,
"properties": {
"mode": {
"type": "string",
"enum": ["design", "implement", "review", "test", "acceptance", "handoff", "inspect"]
},
"depth": {
"type": "integer"
},
"budget": {
"type": "integer",
"minimum": 0
}
}
}
}
}