Harden Epiphany state update notifications

This commit is contained in:
Meta Vens 2026-04-25 06:29:45 +01:00
commit 366354d359
16 changed files with 286 additions and 32 deletions

View file

@ -3712,11 +3712,39 @@
],
"type": "object"
},
"ThreadEpiphanyStateUpdatedField": {
"enum": [
"objective",
"activeSubgoalId",
"subgoals",
"invariants",
"graphs",
"graphFrontier",
"graphCheckpoint",
"scratch",
"observations",
"evidence",
"churn",
"mode"
],
"type": "string"
},
"ThreadEpiphanyStateUpdatedNotification": {
"properties": {
"changedFields": {
"items": {
"$ref": "#/definitions/ThreadEpiphanyStateUpdatedField"
},
"type": "array"
},
"epiphanyState": {
"$ref": "#/definitions/EpiphanyThreadState"
},
"revision": {
"format": "uint64",
"minimum": 0.0,
"type": "integer"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyStateUpdatedSource"
},
@ -3725,7 +3753,9 @@
}
},
"required": [
"changedFields",
"epiphanyState",
"revision",
"source",
"threadId"
],

View file

@ -14966,12 +14966,40 @@
],
"type": "object"
},
"ThreadEpiphanyStateUpdatedField": {
"enum": [
"objective",
"activeSubgoalId",
"subgoals",
"invariants",
"graphs",
"graphFrontier",
"graphCheckpoint",
"scratch",
"observations",
"evidence",
"churn",
"mode"
],
"type": "string"
},
"ThreadEpiphanyStateUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"changedFields": {
"items": {
"$ref": "#/definitions/v2/ThreadEpiphanyStateUpdatedField"
},
"type": "array"
},
"epiphanyState": {
"$ref": "#/definitions/v2/EpiphanyThreadState"
},
"revision": {
"format": "uint64",
"minimum": 0.0,
"type": "integer"
},
"source": {
"$ref": "#/definitions/v2/ThreadEpiphanyStateUpdatedSource"
},
@ -14980,7 +15008,9 @@
}
},
"required": [
"changedFields",
"epiphanyState",
"revision",
"source",
"threadId"
],

View file

@ -12853,12 +12853,40 @@
],
"type": "object"
},
"ThreadEpiphanyStateUpdatedField": {
"enum": [
"objective",
"activeSubgoalId",
"subgoals",
"invariants",
"graphs",
"graphFrontier",
"graphCheckpoint",
"scratch",
"observations",
"evidence",
"churn",
"mode"
],
"type": "string"
},
"ThreadEpiphanyStateUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"changedFields": {
"items": {
"$ref": "#/definitions/ThreadEpiphanyStateUpdatedField"
},
"type": "array"
},
"epiphanyState": {
"$ref": "#/definitions/EpiphanyThreadState"
},
"revision": {
"format": "uint64",
"minimum": 0.0,
"type": "integer"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyStateUpdatedSource"
},
@ -12867,7 +12895,9 @@
}
},
"required": [
"changedFields",
"epiphanyState",
"revision",
"source",
"threadId"
],

View file

@ -705,6 +705,23 @@
],
"type": "string"
},
"ThreadEpiphanyStateUpdatedField": {
"enum": [
"objective",
"activeSubgoalId",
"subgoals",
"invariants",
"graphs",
"graphFrontier",
"graphCheckpoint",
"scratch",
"observations",
"evidence",
"churn",
"mode"
],
"type": "string"
},
"ThreadEpiphanyStateUpdatedSource": {
"enum": [
"update",
@ -714,9 +731,20 @@
}
},
"properties": {
"changedFields": {
"items": {
"$ref": "#/definitions/ThreadEpiphanyStateUpdatedField"
},
"type": "array"
},
"epiphanyState": {
"$ref": "#/definitions/EpiphanyThreadState"
},
"revision": {
"format": "uint64",
"minimum": 0.0,
"type": "integer"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyStateUpdatedSource"
},
@ -725,7 +753,9 @@
}
},
"required": [
"changedFields",
"epiphanyState",
"revision",
"source",
"threadId"
],