Seal Epiphany raw result findings

This commit is contained in:
Meta Vens 2026-05-12 03:32:41 +01:00
commit a0f383ef80
29 changed files with 1862 additions and 222 deletions

View file

@ -742,6 +742,63 @@
],
"type": "object"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -1252,7 +1309,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -1319,12 +1376,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1845,6 +1896,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -4503,6 +4603,12 @@
},
"ThreadEpiphanyUpdatePatch": {
"properties": {
"acceptanceReceipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"activeSubgoalId": {
"type": [
"string",
@ -4615,6 +4721,12 @@
}
]
},
"runtimeLinks": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -1002,6 +1002,63 @@
],
"type": "string"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -1512,7 +1569,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -1579,12 +1636,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -2222,6 +2273,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -2278,6 +2378,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -2391,6 +2497,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{
@ -4519,12 +4631,6 @@
"null"
]
},
"runtimeAgentJobId": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
},
@ -4543,7 +4649,7 @@
},
"ThreadEpiphanyJobBackendKind": {
"enum": [
"agentJobs"
"heartbeat"
],
"type": "string"
},
@ -4617,6 +4723,8 @@
"scratch",
"investigationCheckpoint",
"jobBindings",
"acceptanceReceipts",
"runtimeLinks",
"observations",
"evidence",
"churn",

View file

@ -7871,6 +7871,63 @@
],
"type": "object"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -8381,7 +8438,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -8448,12 +8505,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -9091,6 +9142,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -9147,6 +9247,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/v2/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -9260,6 +9366,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/v2/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{
@ -16120,12 +16232,6 @@
"null"
]
},
"runtimeAgentJobId": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
},
@ -16144,7 +16250,7 @@
},
"ThreadEpiphanyJobBackendKind": {
"enum": [
"agentJobs"
"heartbeat"
],
"type": "string"
},
@ -16461,6 +16567,12 @@
},
"ThreadEpiphanyReorientFinding": {
"properties": {
"artifactRefs": {
"items": {
"type": "string"
},
"type": "array"
},
"checkpointStillValid": {
"type": [
"boolean",
@ -16509,7 +16621,18 @@
"null"
]
},
"rawResult": true,
"runtimeJobId": {
"type": [
"string",
"null"
]
},
"runtimeResultId": {
"type": [
"string",
"null"
]
},
"summary": {
"type": [
"string",
@ -16517,9 +16640,6 @@
]
}
},
"required": [
"rawResult"
],
"type": "object"
},
"ThreadEpiphanyReorientReason": {
@ -16780,6 +16900,12 @@
},
"ThreadEpiphanyRoleFinding": {
"properties": {
"artifactRefs": {
"items": {
"type": "string"
},
"type": "array"
},
"checkpointSummary": {
"type": [
"string",
@ -16834,7 +16960,6 @@
},
"type": "array"
},
"rawResult": true,
"risks": {
"items": {
"type": "string"
@ -16844,6 +16969,18 @@
"roleId": {
"$ref": "#/definitions/v2/ThreadEpiphanyRoleId"
},
"runtimeJobId": {
"type": [
"string",
"null"
]
},
"runtimeResultId": {
"type": [
"string",
"null"
]
},
"scratchSummary": {
"type": [
"string",
@ -16885,7 +17022,6 @@
}
},
"required": [
"rawResult",
"roleId"
],
"type": "object"
@ -17494,6 +17630,8 @@
"scratch",
"investigationCheckpoint",
"jobBindings",
"acceptanceReceipts",
"runtimeLinks",
"observations",
"evidence",
"churn",
@ -17549,6 +17687,12 @@
},
"ThreadEpiphanyUpdatePatch": {
"properties": {
"acceptanceReceipts": {
"items": {
"$ref": "#/definitions/v2/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"activeSubgoalId": {
"type": [
"string",
@ -17661,6 +17805,12 @@
}
]
},
"runtimeLinks": {
"items": {
"$ref": "#/definitions/v2/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -4411,6 +4411,63 @@
],
"type": "object"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -4921,7 +4978,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -4988,12 +5045,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -5631,6 +5682,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -5687,6 +5787,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -5800,6 +5906,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{
@ -14007,12 +14119,6 @@
"null"
]
},
"runtimeAgentJobId": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
},
@ -14031,7 +14137,7 @@
},
"ThreadEpiphanyJobBackendKind": {
"enum": [
"agentJobs"
"heartbeat"
],
"type": "string"
},
@ -14348,6 +14454,12 @@
},
"ThreadEpiphanyReorientFinding": {
"properties": {
"artifactRefs": {
"items": {
"type": "string"
},
"type": "array"
},
"checkpointStillValid": {
"type": [
"boolean",
@ -14396,7 +14508,18 @@
"null"
]
},
"rawResult": true,
"runtimeJobId": {
"type": [
"string",
"null"
]
},
"runtimeResultId": {
"type": [
"string",
"null"
]
},
"summary": {
"type": [
"string",
@ -14404,9 +14527,6 @@
]
}
},
"required": [
"rawResult"
],
"type": "object"
},
"ThreadEpiphanyReorientReason": {
@ -14667,6 +14787,12 @@
},
"ThreadEpiphanyRoleFinding": {
"properties": {
"artifactRefs": {
"items": {
"type": "string"
},
"type": "array"
},
"checkpointSummary": {
"type": [
"string",
@ -14721,7 +14847,6 @@
},
"type": "array"
},
"rawResult": true,
"risks": {
"items": {
"type": "string"
@ -14731,6 +14856,18 @@
"roleId": {
"$ref": "#/definitions/ThreadEpiphanyRoleId"
},
"runtimeJobId": {
"type": [
"string",
"null"
]
},
"runtimeResultId": {
"type": [
"string",
"null"
]
},
"scratchSummary": {
"type": [
"string",
@ -14772,7 +14909,6 @@
}
},
"required": [
"rawResult",
"roleId"
],
"type": "object"
@ -15381,6 +15517,8 @@
"scratch",
"investigationCheckpoint",
"jobBindings",
"acceptanceReceipts",
"runtimeLinks",
"observations",
"evidence",
"churn",
@ -15436,6 +15574,12 @@
},
"ThreadEpiphanyUpdatePatch": {
"properties": {
"acceptanceReceipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"activeSubgoalId": {
"type": [
"string",
@ -15548,6 +15692,12 @@
}
]
},
"runtimeLinks": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -93,12 +93,6 @@
"null"
]
},
"runtimeAgentJobId": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
},
@ -117,7 +111,7 @@
},
"ThreadEpiphanyJobBackendKind": {
"enum": [
"agentJobs"
"heartbeat"
],
"type": "string"
},

View file

@ -1,6 +1,63 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -511,7 +568,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -578,12 +635,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1221,6 +1272,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1277,6 +1377,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -1390,6 +1496,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{
@ -1432,6 +1544,8 @@
"scratch",
"investigationCheckpoint",
"jobBindings",
"acceptanceReceipts",
"runtimeLinks",
"observations",
"evidence",
"churn",

View file

@ -449,6 +449,63 @@
],
"type": "string"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -959,7 +1016,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -1026,12 +1083,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1669,6 +1720,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1725,6 +1825,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -1838,6 +1944,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -390,6 +390,63 @@
],
"type": "string"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -900,7 +957,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -967,12 +1024,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1610,6 +1661,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1666,6 +1766,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -1779,6 +1885,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -390,6 +390,63 @@
],
"type": "string"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -900,7 +957,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -967,12 +1024,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1610,6 +1661,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1666,6 +1766,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -1779,6 +1885,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -390,6 +390,63 @@
],
"type": "string"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -900,7 +957,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -967,12 +1024,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1610,6 +1661,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1666,6 +1766,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -1779,6 +1885,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -449,6 +449,63 @@
],
"type": "string"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -959,7 +1016,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -1026,12 +1083,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1669,6 +1720,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1725,6 +1825,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -1838,6 +1944,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -390,6 +390,63 @@
],
"type": "string"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -900,7 +957,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -967,12 +1024,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1610,6 +1661,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1666,6 +1766,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -1779,6 +1885,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -449,6 +449,63 @@
],
"type": "string"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -959,7 +1016,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -1026,12 +1083,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1669,6 +1720,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1725,6 +1825,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -1838,6 +1944,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -390,6 +390,63 @@
],
"type": "string"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -900,7 +957,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -967,12 +1024,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1610,6 +1661,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1666,6 +1766,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -1779,6 +1885,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -390,6 +390,63 @@
],
"type": "string"
},
"EpiphanyAcceptanceReceipt": {
"properties": {
"accepted_at": {
"type": "string"
},
"accepted_evidence_id": {
"type": [
"string",
"null"
]
},
"accepted_observation_id": {
"type": [
"string",
"null"
]
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"result_id": {
"type": "string"
},
"role_id": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"accepted_at",
"binding_id",
"id",
"job_id",
"result_id",
"role_id",
"status",
"surface"
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
@ -900,7 +957,7 @@
},
"EpiphanyJobBackendKind": {
"enum": [
"agent_jobs"
"heartbeat"
],
"type": "string"
},
@ -967,12 +1024,6 @@
"null"
]
},
"runtime_agent_job_id": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}
@ -1610,6 +1661,55 @@
],
"type": "object"
},
"EpiphanyRuntimeLink": {
"properties": {
"authority_scope": {
"type": "string"
},
"binding_id": {
"type": "string"
},
"id": {
"type": "string"
},
"linked_graph_node_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"linked_subgoal_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"role_id": {
"type": "string"
},
"runtime_job_id": {
"type": "string"
},
"runtime_result_id": {
"type": [
"string",
"null"
]
},
"surface": {
"type": "string"
}
},
"required": [
"authority_scope",
"binding_id",
"id",
"role_id",
"runtime_job_id",
"surface"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1666,6 +1766,12 @@
},
"EpiphanyThreadState": {
"properties": {
"acceptance_receipts": {
"items": {
"$ref": "#/definitions/EpiphanyAcceptanceReceipt"
},
"type": "array"
},
"active_subgoal_id": {
"type": [
"string",
@ -1779,6 +1885,12 @@
"minimum": 0.0,
"type": "integer"
},
"runtime_links": {
"items": {
"$ref": "#/definitions/EpiphanyRuntimeLink"
},
"type": "array"
},
"scratch": {
"anyOf": [
{

View file

@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type EpiphanyAcceptanceReceipt = { id: string, result_id: string, job_id: string, binding_id: string, surface: string, role_id: string, status: string, accepted_at: string, accepted_observation_id?: string | null, accepted_evidence_id?: string | null, summary?: string | null, };

View file

@ -3,4 +3,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { EpiphanyJobKind } from "./EpiphanyJobKind";
export type EpiphanyJobBinding = { id: string, kind: EpiphanyJobKind, scope: string, owner_role: string, launcher_job_id?: string | null, authority_scope?: string | null, backend_kind?: EpiphanyJobBackendKind | null, backend_job_id?: string | null, runtime_agent_job_id?: string | null, linked_subgoal_ids?: Array<string>, linked_graph_node_ids?: Array<string>, progress_note?: string | null, blocking_reason?: string | null, };
export type EpiphanyJobBinding = { id: string, kind: EpiphanyJobKind, scope: string, owner_role: string, launcher_job_id?: string | null, authority_scope?: string | null, backend_kind?: EpiphanyJobBackendKind | null, backend_job_id?: string | null, linked_subgoal_ids?: Array<string>, linked_graph_node_ids?: Array<string>, progress_note?: string | null, blocking_reason?: string | null, };

View file

@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type EpiphanyRuntimeLink = { id: string, binding_id: string, surface: string, role_id: string, authority_scope: string, runtime_job_id: string, runtime_result_id?: string | null, linked_subgoal_ids?: Array<string>, linked_graph_node_ids?: Array<string>, };

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type EpiphanyThreadState = { revision: bigint, objective?: string | null, active_subgoal_id?: string | null, subgoals?: Array<EpiphanySubgoal>, invariants?: Array<EpiphanyInvariant>, graphs?: EpiphanyGraphs, graph_frontier?: EpiphanyGraphFrontier | null, graph_checkpoint?: EpiphanyGraphCheckpoint | null, retrieval?: EpiphanyRetrievalState | null, scratch?: EpiphanyScratchPad | null, investigation_checkpoint?: EpiphanyInvestigationCheckpoint | null, job_bindings?: Array<EpiphanyJobBinding>, observations?: Array<EpiphanyObservation>, recent_evidence?: Array<EpiphanyEvidenceRecord>, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, planning?: EpiphanyPlanningState, last_updated_turn_id?: string | null, };
export type EpiphanyThreadState = { revision: bigint, objective?: string | null, active_subgoal_id?: string | null, subgoals?: Array<EpiphanySubgoal>, invariants?: Array<EpiphanyInvariant>, graphs?: EpiphanyGraphs, graph_frontier?: EpiphanyGraphFrontier | null, graph_checkpoint?: EpiphanyGraphCheckpoint | null, retrieval?: EpiphanyRetrievalState | null, scratch?: EpiphanyScratchPad | null, investigation_checkpoint?: EpiphanyInvestigationCheckpoint | null, job_bindings?: Array<EpiphanyJobBinding>, acceptance_receipts?: Array<EpiphanyAcceptanceReceipt>, runtime_links?: Array<EpiphanyRuntimeLink>, observations?: Array<EpiphanyObservation>, recent_evidence?: Array<EpiphanyEvidenceRecord>, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, planning?: EpiphanyPlanningState, last_updated_turn_id?: string | null, };

View file

@ -12,6 +12,7 @@ export type { CollaborationMode } from "./CollaborationMode";
export type { ContentItem } from "./ContentItem";
export type { ConversationGitInfo } from "./ConversationGitInfo";
export type { ConversationSummary } from "./ConversationSummary";
export type { EpiphanyAcceptanceReceipt } from "./EpiphanyAcceptanceReceipt";
export type { EpiphanyChurnState } from "./EpiphanyChurnState";
export type { EpiphanyCodeRef } from "./EpiphanyCodeRef";
export type { EpiphanyEvidenceRecord } from "./EpiphanyEvidenceRecord";
@ -31,6 +32,7 @@ export type { EpiphanyModeState } from "./EpiphanyModeState";
export type { EpiphanyObservation } from "./EpiphanyObservation";
export type { EpiphanyPlanningState } from "./EpiphanyPlanningState";
export type { EpiphanyRetrievalStatus } from "./EpiphanyRetrievalStatus";
export type { EpiphanyRuntimeLink } from "./EpiphanyRuntimeLink";
export type { EpiphanyScratchPad } from "./EpiphanyScratchPad";
export type { EpiphanySubgoal } from "./EpiphanySubgoal";
export type { EpiphanyThreadState } from "./EpiphanyThreadState";

View file

@ -5,4 +5,4 @@ import type { ThreadEpiphanyJobBackendKind } from "./ThreadEpiphanyJobBackendKin
import type { ThreadEpiphanyJobKind } from "./ThreadEpiphanyJobKind";
import type { ThreadEpiphanyJobStatus } from "./ThreadEpiphanyJobStatus";
export type ThreadEpiphanyJob = { id: string, kind: ThreadEpiphanyJobKind, scope: string, ownerRole: string, launcherJobId?: string | null, authorityScope?: string | null, backendKind?: ThreadEpiphanyJobBackendKind | null, backendJobId?: string | null, status: ThreadEpiphanyJobStatus, runtimeAgentJobId?: string | null, itemsProcessed?: number | null, itemsTotal?: number | null, progressNote?: string | null, lastCheckpointAtUnixSeconds?: bigint | null, blockingReason?: string | null, activeThreadIds?: Array<string>, linkedSubgoalIds?: Array<string>, linkedGraphNodeIds?: Array<string>, };
export type ThreadEpiphanyJob = { id: string, kind: ThreadEpiphanyJobKind, scope: string, ownerRole: string, launcherJobId?: string | null, authorityScope?: string | null, backendKind?: ThreadEpiphanyJobBackendKind | null, backendJobId?: string | null, status: ThreadEpiphanyJobStatus, itemsProcessed?: number | null, itemsTotal?: number | null, progressNote?: string | null, lastCheckpointAtUnixSeconds?: bigint | null, blockingReason?: string | null, activeThreadIds?: Array<string>, linkedSubgoalIds?: Array<string>, linkedGraphNodeIds?: Array<string>, };

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyJobBackendKind = "agentJobs";
export type ThreadEpiphanyJobBackendKind = "heartbeat";

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyReorientFinding = { mode?: string | null, summary?: string | null, nextSafeMove?: string | null, checkpointStillValid?: boolean | null, filesInspected?: Array<string>, frontierNodeIds?: Array<string>, evidenceIds?: Array<string>, jobError?: string | null, itemError?: string | null, rawResult: unknown, };
export type ThreadEpiphanyReorientFinding = { mode?: string | null, summary?: string | null, nextSafeMove?: string | null, checkpointStillValid?: boolean | null, filesInspected?: Array<string>, frontierNodeIds?: Array<string>, evidenceIds?: Array<string>, artifactRefs?: Array<string>, runtimeResultId?: string | null, runtimeJobId?: string | null, jobError?: string | null, itemError?: string | null, };

View file

@ -5,4 +5,4 @@ import type { ThreadEpiphanyRoleId } from "./ThreadEpiphanyRoleId";
import type { ThreadEpiphanyRoleSelfPersistenceReview } from "./ThreadEpiphanyRoleSelfPersistenceReview";
import type { ThreadEpiphanyUpdatePatch } from "./ThreadEpiphanyUpdatePatch";
export type ThreadEpiphanyRoleFinding = { roleId: ThreadEpiphanyRoleId, verdict?: string | null, summary?: string | null, nextSafeMove?: string | null, checkpointSummary?: string | null, scratchSummary?: string | null, filesInspected?: Array<string>, frontierNodeIds?: Array<string>, evidenceIds?: Array<string>, openQuestions?: Array<string>, evidenceGaps?: Array<string>, risks?: Array<string>, statePatch?: ThreadEpiphanyUpdatePatch | null, selfPatch?: unknown, selfPersistence?: ThreadEpiphanyRoleSelfPersistenceReview | null, jobError?: string | null, itemError?: string | null, rawResult: unknown, };
export type ThreadEpiphanyRoleFinding = { roleId: ThreadEpiphanyRoleId, verdict?: string | null, summary?: string | null, nextSafeMove?: string | null, checkpointSummary?: string | null, scratchSummary?: string | null, filesInspected?: Array<string>, frontierNodeIds?: Array<string>, evidenceIds?: Array<string>, artifactRefs?: Array<string>, runtimeResultId?: string | null, runtimeJobId?: string | null, openQuestions?: Array<string>, evidenceGaps?: Array<string>, risks?: Array<string>, statePatch?: ThreadEpiphanyUpdatePatch | null, selfPatch?: unknown, selfPersistence?: ThreadEpiphanyRoleSelfPersistenceReview | null, jobError?: string | null, itemError?: string | null, };

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyStateUpdatedField = "objective" | "activeSubgoalId" | "subgoals" | "invariants" | "graphs" | "graphFrontier" | "graphCheckpoint" | "scratch" | "investigationCheckpoint" | "jobBindings" | "observations" | "evidence" | "churn" | "mode" | "planning";
export type ThreadEpiphanyStateUpdatedField = "objective" | "activeSubgoalId" | "subgoals" | "invariants" | "graphs" | "graphFrontier" | "graphCheckpoint" | "scratch" | "investigationCheckpoint" | "jobBindings" | "acceptanceReceipts" | "runtimeLinks" | "observations" | "evidence" | "churn" | "mode" | "planning";

View file

@ -1,6 +1,7 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { EpiphanyAcceptanceReceipt } from "../EpiphanyAcceptanceReceipt";
import type { EpiphanyChurnState } from "../EpiphanyChurnState";
import type { EpiphanyEvidenceRecord } from "../EpiphanyEvidenceRecord";
import type { EpiphanyGraphCheckpoint } from "../EpiphanyGraphCheckpoint";
@ -12,7 +13,8 @@ import type { EpiphanyJobBinding } from "../EpiphanyJobBinding";
import type { EpiphanyModeState } from "../EpiphanyModeState";
import type { EpiphanyObservation } from "../EpiphanyObservation";
import type { EpiphanyPlanningState } from "../EpiphanyPlanningState";
import type { EpiphanyRuntimeLink } from "../EpiphanyRuntimeLink";
import type { EpiphanyScratchPad } from "../EpiphanyScratchPad";
import type { EpiphanySubgoal } from "../EpiphanySubgoal";
export type ThreadEpiphanyUpdatePatch = { objective?: string | null, activeSubgoalId?: string | null, subgoals?: Array<EpiphanySubgoal> | null, invariants?: Array<EpiphanyInvariant> | null, graphs?: EpiphanyGraphs | null, graphFrontier?: EpiphanyGraphFrontier | null, graphCheckpoint?: EpiphanyGraphCheckpoint | null, scratch?: EpiphanyScratchPad | null, investigationCheckpoint?: EpiphanyInvestigationCheckpoint | null, jobBindings?: Array<EpiphanyJobBinding> | null, observations?: Array<EpiphanyObservation>, evidence?: Array<EpiphanyEvidenceRecord>, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, planning?: EpiphanyPlanningState | null, };
export type ThreadEpiphanyUpdatePatch = { objective?: string | null, activeSubgoalId?: string | null, subgoals?: Array<EpiphanySubgoal> | null, invariants?: Array<EpiphanyInvariant> | null, graphs?: EpiphanyGraphs | null, graphFrontier?: EpiphanyGraphFrontier | null, graphCheckpoint?: EpiphanyGraphCheckpoint | null, scratch?: EpiphanyScratchPad | null, investigationCheckpoint?: EpiphanyInvestigationCheckpoint | null, jobBindings?: Array<EpiphanyJobBinding> | null, acceptanceReceipts?: Array<EpiphanyAcceptanceReceipt>, runtimeLinks?: Array<EpiphanyRuntimeLink>, observations?: Array<EpiphanyObservation>, evidence?: Array<EpiphanyEvidenceRecord>, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, planning?: EpiphanyPlanningState | null, };

View file

@ -2263,6 +2263,9 @@ mod tests {
files_inspected: vec!["src/lib.rs".to_string()],
frontier_node_ids: vec!["state-spine".to_string()],
evidence_ids: vec!["ev-1".to_string()],
artifact_refs: Vec::new(),
runtime_result_id: Some("result-verification-1".to_string()),
runtime_job_id: Some("backend-2".to_string()),
open_questions: Vec::new(),
evidence_gaps: Vec::new(),
risks: Vec::new(),
@ -2271,11 +2274,6 @@ mod tests {
self_persistence: None,
job_error: None,
item_error: None,
raw_result: json!({
"verdict": "pass",
"summary": "Evidence covers the bounded change.",
"nextSafeMove": "Promote the verified patch."
}),
}),
note: "Verification role specialist completed. Next safe move: Promote the verified patch."
.to_string(),
@ -2320,11 +2318,8 @@ mod tests {
"filesInspected": ["src/lib.rs"],
"frontierNodeIds": ["state-spine"],
"evidenceIds": ["ev-1"],
"rawResult": {
"verdict": "pass",
"summary": "Evidence covers the bounded change.",
"nextSafeMove": "Promote the verified patch."
}
"runtimeResultId": "result-verification-1",
"runtimeJobId": "backend-2"
},
"note": "Verification role specialist completed. Next safe move: Promote the verified patch."
}
@ -2353,6 +2348,9 @@ mod tests {
files_inspected: vec!["src/lib.rs".to_string()],
frontier_node_ids: vec!["state-spine".to_string()],
evidence_ids: Vec::new(),
artifact_refs: Vec::new(),
runtime_result_id: Some("result-modeling-1".to_string()),
runtime_job_id: Some("backend-1".to_string()),
open_questions: Vec::new(),
evidence_gaps: Vec::new(),
risks: Vec::new(),
@ -2361,16 +2359,6 @@ mod tests {
self_persistence: None,
job_error: None,
item_error: None,
raw_result: json!({
"verdict": "checkpoint-update-needed",
"summary": "Graph frontier should keep state-spine active.",
"nextSafeMove": "Accept the reviewed modeling patch.",
"statePatch": {
"graphFrontier": {
"active_node_ids": ["state-spine"]
}
}
}),
};
let response = ClientResponse::ThreadEpiphanyRoleAccept {
request_id: RequestId::Integer(10),
@ -2425,20 +2413,12 @@ mod tests {
"nextSafeMove": "Accept the reviewed modeling patch.",
"filesInspected": ["src/lib.rs"],
"frontierNodeIds": ["state-spine"],
"runtimeResultId": "result-modeling-1",
"runtimeJobId": "backend-1",
"statePatch": {
"graphFrontier": {
"active_node_ids": ["state-spine"]
}
},
"rawResult": {
"verdict": "checkpoint-update-needed",
"summary": "Graph frontier should keep state-spine active.",
"nextSafeMove": "Accept the reviewed modeling patch.",
"statePatch": {
"graphFrontier": {
"active_node_ids": ["state-spine"]
}
}
}
}
}
@ -3352,14 +3332,11 @@ mod tests {
files_inspected: vec!["src/lib.rs".to_string()],
frontier_node_ids: vec!["state-spine".to_string()],
evidence_ids: vec!["ev-1".to_string()],
artifact_refs: Vec::new(),
runtime_result_id: Some("result-reorient-1".to_string()),
runtime_job_id: Some("backend-1".to_string()),
job_error: None,
item_error: None,
raw_result: json!({
"mode": "resume",
"summary": "Checkpoint remains source-grounded.",
"nextSafeMove": "Continue the read-back slice.",
"checkpointStillValid": true
}),
}),
note:
"Reorientation worker completed. Next safe move: Continue the read-back slice."
@ -3405,12 +3382,8 @@ mod tests {
"filesInspected": ["src/lib.rs"],
"frontierNodeIds": ["state-spine"],
"evidenceIds": ["ev-1"],
"rawResult": {
"mode": "resume",
"summary": "Checkpoint remains source-grounded.",
"nextSafeMove": "Continue the read-back slice.",
"checkpointStillValid": true
}
"runtimeResultId": "result-reorient-1",
"runtimeJobId": "backend-1"
},
"note": "Reorientation worker completed. Next safe move: Continue the read-back slice."
}
@ -3463,13 +3436,11 @@ mod tests {
files_inspected: Vec::new(),
frontier_node_ids: Vec::new(),
evidence_ids: Vec::new(),
artifact_refs: Vec::new(),
runtime_result_id: Some("result-reorient-1".to_string()),
runtime_job_id: Some("backend-1".to_string()),
job_error: None,
item_error: None,
raw_result: json!({
"mode": "resume",
"summary": "Checkpoint remains source-grounded.",
"nextSafeMove": "Continue the bounded slice."
}),
},
},
};
@ -3508,11 +3479,8 @@ mod tests {
"summary": "Checkpoint remains source-grounded.",
"nextSafeMove": "Continue the bounded slice.",
"checkpointStillValid": true,
"rawResult": {
"mode": "resume",
"summary": "Checkpoint remains source-grounded.",
"nextSafeMove": "Continue the bounded slice."
}
"runtimeResultId": "result-reorient-1",
"runtimeJobId": "backend-1"
}
}
}),

View file

@ -4430,6 +4430,14 @@ pub struct ThreadEpiphanyRoleFinding {
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub evidence_ids: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub artifact_refs: Vec<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub runtime_result_id: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub runtime_job_id: Option<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub open_questions: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub evidence_gaps: Vec<String>,
@ -4450,8 +4458,6 @@ pub struct ThreadEpiphanyRoleFinding {
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub item_error: Option<String>,
#[ts(type = "unknown")]
pub raw_result: serde_json::Value,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
@ -5212,14 +5218,20 @@ pub struct ThreadEpiphanyReorientFinding {
pub frontier_node_ids: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub evidence_ids: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub artifact_refs: Vec<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub runtime_result_id: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub runtime_job_id: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub job_error: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub item_error: Option<String>,
#[ts(type = "unknown")]
pub raw_result: serde_json::Value,
}
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]

View file

@ -13629,9 +13629,11 @@ fn map_epiphany_reorient_finding(
files_inspected: json_string_array_field(&raw_result, "filesInspected"),
frontier_node_ids: json_string_array_field(&raw_result, "frontierNodeIds"),
evidence_ids: json_string_array_field(&raw_result, "evidenceIds"),
artifact_refs: json_string_array_field(&raw_result, "artifactRefs"),
runtime_result_id: json_string_field(&raw_result, "runtimeResultId"),
runtime_job_id: json_string_field(&raw_result, "runtimeJobId"),
job_error,
item_error,
raw_result,
}
}
@ -13672,6 +13674,9 @@ fn map_epiphany_role_finding(
files_inspected: json_string_array_field(&raw_result, "filesInspected"),
frontier_node_ids: json_string_array_field(&raw_result, "frontierNodeIds"),
evidence_ids: json_string_array_field(&raw_result, "evidenceIds"),
artifact_refs: json_string_array_field(&raw_result, "artifactRefs"),
runtime_result_id: json_string_field(&raw_result, "runtimeResultId"),
runtime_job_id: json_string_field(&raw_result, "runtimeJobId"),
open_questions: json_string_array_field(&raw_result, "openQuestions"),
evidence_gaps: json_string_array_field(&raw_result, "evidenceGaps"),
risks: json_string_array_field(&raw_result, "risks"),
@ -13680,7 +13685,6 @@ fn map_epiphany_role_finding(
self_persistence,
job_error,
item_error,
raw_result,
}
}
@ -14129,19 +14133,19 @@ fn json_string_field(value: &serde_json::Value, key: &str) -> Option<String> {
}
fn role_finding_runtime_result_id(finding: &ThreadEpiphanyRoleFinding) -> Option<String> {
json_string_field(&finding.raw_result, "runtimeResultId")
finding.runtime_result_id.clone()
}
fn role_finding_runtime_job_id(finding: &ThreadEpiphanyRoleFinding) -> Option<String> {
json_string_field(&finding.raw_result, "runtimeJobId")
finding.runtime_job_id.clone()
}
fn reorient_finding_runtime_result_id(finding: &ThreadEpiphanyReorientFinding) -> Option<String> {
json_string_field(&finding.raw_result, "runtimeResultId")
finding.runtime_result_id.clone()
}
fn reorient_finding_runtime_job_id(finding: &ThreadEpiphanyReorientFinding) -> Option<String> {
json_string_field(&finding.raw_result, "runtimeJobId")
finding.runtime_job_id.clone()
}
fn json_string_array_field(value: &serde_json::Value, key: &str) -> Vec<String> {
@ -15735,11 +15739,10 @@ async fn load_completed_epiphany_role_finding(
fn parse_role_finding_state_patch(
finding: &ThreadEpiphanyRoleFinding,
) -> Result<ThreadEpiphanyUpdatePatch, String> {
let Some(value) = finding.raw_result.get("statePatch") else {
return Err("completed role finding did not include a reviewable statePatch".to_string());
};
serde_json::from_value(value.clone())
.map_err(|err| format!("completed role finding has invalid statePatch: {err}"))
finding
.state_patch
.clone()
.ok_or_else(|| "completed role finding did not include a reviewable statePatch".to_string())
}
fn imagination_role_accept_patch_errors(patch: &ThreadEpiphanyUpdatePatch) -> Vec<String> {
@ -20206,6 +20209,9 @@ mod tests {
"filesInspected": ["src/a.rs", "src/b.rs"],
"frontierNodeIds": ["node-1"],
"evidenceIds": ["ev-1"],
"artifactRefs": ["artifact:reorient"],
"runtimeResultId": "result-1",
"runtimeJobId": "job-1",
"extra": {"left": "intact"}
});
@ -20228,8 +20234,10 @@ mod tests {
assert_eq!(finding.files_inspected, vec!["src/a.rs", "src/b.rs"]);
assert_eq!(finding.frontier_node_ids, vec!["node-1"]);
assert_eq!(finding.evidence_ids, vec!["ev-1"]);
assert_eq!(finding.artifact_refs, vec!["artifact:reorient"]);
assert_eq!(finding.runtime_result_id.as_deref(), Some("result-1"));
assert_eq!(finding.runtime_job_id.as_deref(), Some("job-1"));
assert_eq!(finding.job_error.as_deref(), Some("job warning"));
assert_eq!(finding.raw_result, raw_result);
}
#[test]
@ -21635,7 +21643,10 @@ mod tests {
"nextSafeMove": "Promote after human review.",
"filesInspected": ["src/lib.rs"],
"frontierNodeIds": ["node-1"],
"evidenceIds": ["ev-1"]
"evidenceIds": ["ev-1"],
"artifactRefs": ["artifact:role"],
"runtimeResultId": "result-1",
"runtimeJobId": "job-1"
});
let finding = map_epiphany_role_finding(
@ -21654,7 +21665,9 @@ mod tests {
assert_eq!(finding.files_inspected, vec!["src/lib.rs"]);
assert_eq!(finding.frontier_node_ids, vec!["node-1"]);
assert_eq!(finding.evidence_ids, vec!["ev-1"]);
assert_eq!(finding.raw_result, raw_result);
assert_eq!(finding.artifact_refs, vec!["artifact:role"]);
assert_eq!(finding.runtime_result_id.as_deref(), Some("result-1"));
assert_eq!(finding.runtime_job_id.as_deref(), Some("job-1"));
}
#[test]
@ -22260,14 +22273,11 @@ mod tests {
files_inspected: vec!["src/lib.rs".to_string()],
frontier_node_ids: vec!["node-1".to_string()],
evidence_ids: Vec::new(),
artifact_refs: Vec::new(),
runtime_result_id: None,
runtime_job_id: None,
job_error: None,
item_error: None,
raw_result: serde_json::json!({
"mode": "regather",
"summary": "The old checkpoint no longer matches source.",
"nextSafeMove": "Re-read src/lib.rs before editing.",
"checkpointStillValid": false
}),
};
let scratch = reorient_finding_scratch("reorient-worker", &finding);