125 lines
3.2 KiB
JSON
125 lines
3.2 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "https://gamecult.dev/epiphany/cultnet/epiphany.swarm-control-receipt.schema.json",
|
|
"title": "Epiphany Swarm Control Receipt",
|
|
"description": "Generic receipt emitted after a coordinator-owned Epiphany control action. The receipt names the authority that made the final yes/no decision, the transport that carried the order, and any host executor that gathered facts or performed side effects.",
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"properties": {
|
|
"schemaVersion": {
|
|
"type": "string"
|
|
},
|
|
"ok": {
|
|
"type": "boolean"
|
|
},
|
|
"action": {
|
|
"type": "string"
|
|
},
|
|
"authority": {
|
|
"type": "string"
|
|
},
|
|
"decisionOwner": {
|
|
"type": "string",
|
|
"description": "Authority that made the final yes/no verdict. For Epiphany-owned launch and reorientation flows this is epiphany-core, not the transport bridge."
|
|
},
|
|
"transportRole": {
|
|
"type": "string",
|
|
"description": "What the Epiphany-Codex transport bridge did for this action. Expected values are translateCultNetToCodexJson, translateCodexJsonToCultNet, carryOrder, carryReceipt, or a '+' joined combination. It must not make the launch/reorient verdict, gather host facts, or execute side effects."
|
|
},
|
|
"hostExecutorRole": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"description": "Host-side executor role that gathered facts or performed side effects after the core/coordinator verdict, when such an executor exists."
|
|
},
|
|
"intentDocumentType": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"decision": {
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"properties": {
|
|
"verdict": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"sourceDocumentType": {
|
|
"type": "string"
|
|
},
|
|
"sourceRevision": {
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"targetDocumentType": {
|
|
"type": "string"
|
|
},
|
|
"targetBindingId": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"targetRole": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"targetThreadId": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string"
|
|
},
|
|
"artifactPaths": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"hostFacts": {
|
|
"type": "array",
|
|
"description": "Host/runtime facts gathered by the host executor before execution, expressed as readable labels or artifact refs rather than private context.",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"sideEffects": {
|
|
"type": "array",
|
|
"description": "Side effects the host executor performed after the core/coordinator verdict.",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"note": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"schemaVersion",
|
|
"ok",
|
|
"action",
|
|
"authority",
|
|
"decisionOwner",
|
|
"transportRole",
|
|
"targetDocumentType",
|
|
"status",
|
|
"summary"
|
|
]
|
|
}
|