Add Epiphany reorientation policy

This commit is contained in:
Meta Vens 2026-04-26 11:47:34 +01:00
commit 3ac09f9d1b
22 changed files with 1438 additions and 35 deletions

View file

@ -15339,6 +15339,117 @@
],
"type": "string"
},
"ThreadEpiphanyReorientAction": {
"enum": [
"resume",
"regather"
],
"type": "string"
},
"ThreadEpiphanyReorientCheckpointStatus": {
"enum": [
"missing",
"resumeReady",
"regatherRequired"
],
"type": "string"
},
"ThreadEpiphanyReorientDecision": {
"properties": {
"action": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientAction"
},
"activeFrontierNodeIds": {
"items": {
"type": "string"
},
"type": "array"
},
"checkpointChangedPaths": {
"items": {
"type": "string"
},
"type": "array"
},
"checkpointDirtyPaths": {
"items": {
"type": "string"
},
"type": "array"
},
"checkpointId": {
"type": [
"string",
"null"
]
},
"checkpointStatus": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientCheckpointStatus"
},
"graphStatus": {
"$ref": "#/definitions/v2/ThreadEpiphanyGraphFreshnessStatus"
},
"nextAction": {
"type": "string"
},
"note": {
"type": "string"
},
"pressureLevel": {
"$ref": "#/definitions/v2/ThreadEpiphanyPressureLevel"
},
"reasons": {
"items": {
"$ref": "#/definitions/v2/ThreadEpiphanyReorientReason"
},
"type": "array"
},
"retrievalStatus": {
"$ref": "#/definitions/v2/ThreadEpiphanyRetrievalFreshnessStatus"
},
"watcherStatus": {
"$ref": "#/definitions/v2/ThreadEpiphanyInvalidationStatus"
}
},
"required": [
"action",
"checkpointStatus",
"graphStatus",
"nextAction",
"note",
"pressureLevel",
"retrievalStatus",
"watcherStatus"
],
"type": "object"
},
"ThreadEpiphanyReorientReason": {
"enum": [
"missingState",
"missingCheckpoint",
"checkpointRequestedRegather",
"checkpointPathsDirty",
"checkpointPathsChanged",
"frontierChanged",
"unanchoredCheckpointWhileStateStale",
"checkpointReady"
],
"type": "string"
},
"ThreadEpiphanyReorientSource": {
"enum": [
"stored",
"live"
],
"type": "string"
},
"ThreadEpiphanyReorientStateStatus": {
"enum": [
"missing",
"ready"
],
"type": "string"
},
"ThreadEpiphanyRetrievalFreshness": {
"properties": {
"dirtyPaths": {
@ -15662,6 +15773,7 @@
"jobs",
"freshness",
"pressure",
"reorient",
"propose",
"promote",
"update"

View file

@ -13226,6 +13226,117 @@
],
"type": "string"
},
"ThreadEpiphanyReorientAction": {
"enum": [
"resume",
"regather"
],
"type": "string"
},
"ThreadEpiphanyReorientCheckpointStatus": {
"enum": [
"missing",
"resumeReady",
"regatherRequired"
],
"type": "string"
},
"ThreadEpiphanyReorientDecision": {
"properties": {
"action": {
"$ref": "#/definitions/ThreadEpiphanyReorientAction"
},
"activeFrontierNodeIds": {
"items": {
"type": "string"
},
"type": "array"
},
"checkpointChangedPaths": {
"items": {
"type": "string"
},
"type": "array"
},
"checkpointDirtyPaths": {
"items": {
"type": "string"
},
"type": "array"
},
"checkpointId": {
"type": [
"string",
"null"
]
},
"checkpointStatus": {
"$ref": "#/definitions/ThreadEpiphanyReorientCheckpointStatus"
},
"graphStatus": {
"$ref": "#/definitions/ThreadEpiphanyGraphFreshnessStatus"
},
"nextAction": {
"type": "string"
},
"note": {
"type": "string"
},
"pressureLevel": {
"$ref": "#/definitions/ThreadEpiphanyPressureLevel"
},
"reasons": {
"items": {
"$ref": "#/definitions/ThreadEpiphanyReorientReason"
},
"type": "array"
},
"retrievalStatus": {
"$ref": "#/definitions/ThreadEpiphanyRetrievalFreshnessStatus"
},
"watcherStatus": {
"$ref": "#/definitions/ThreadEpiphanyInvalidationStatus"
}
},
"required": [
"action",
"checkpointStatus",
"graphStatus",
"nextAction",
"note",
"pressureLevel",
"retrievalStatus",
"watcherStatus"
],
"type": "object"
},
"ThreadEpiphanyReorientReason": {
"enum": [
"missingState",
"missingCheckpoint",
"checkpointRequestedRegather",
"checkpointPathsDirty",
"checkpointPathsChanged",
"frontierChanged",
"unanchoredCheckpointWhileStateStale",
"checkpointReady"
],
"type": "string"
},
"ThreadEpiphanyReorientSource": {
"enum": [
"stored",
"live"
],
"type": "string"
},
"ThreadEpiphanyReorientStateStatus": {
"enum": [
"missing",
"ready"
],
"type": "string"
},
"ThreadEpiphanyRetrievalFreshness": {
"properties": {
"dirtyPaths": {
@ -13549,6 +13660,7 @@
"jobs",
"freshness",
"pressure",
"reorient",
"propose",
"promote",
"update"