diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json index b81b0dae..c720c03a 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/ServerNotification.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/ServerNotification.json index b63f94f0..4adf68b5 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/ServerNotification.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/ServerNotification.json @@ -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", diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json index c2277bf3..0a5c39a8 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json index d1fca965..c9720510 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadEpiphanyJobsUpdatedNotification.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadEpiphanyJobsUpdatedNotification.json index 36055864..b366362d 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadEpiphanyJobsUpdatedNotification.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadEpiphanyJobsUpdatedNotification.json @@ -93,12 +93,6 @@ "null" ] }, - "runtimeAgentJobId": { - "type": [ - "string", - "null" - ] - }, "scope": { "type": "string" }, @@ -117,7 +111,7 @@ }, "ThreadEpiphanyJobBackendKind": { "enum": [ - "agentJobs" + "heartbeat" ], "type": "string" }, diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadEpiphanyStateUpdatedNotification.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadEpiphanyStateUpdatedNotification.json index e9893e96..78aac23b 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadEpiphanyStateUpdatedNotification.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadEpiphanyStateUpdatedNotification.json @@ -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", diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json index 63651b54..3bf6b38c 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadListResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadListResponse.json index 647b13ff..cac0c8ee 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadListResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadListResponse.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadMetadataUpdateResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadMetadataUpdateResponse.json index 46d46d15..33f96c3c 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadMetadataUpdateResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadMetadataUpdateResponse.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadReadResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadReadResponse.json index d434db16..ceb2c3da 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadReadResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadReadResponse.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json index d6bcfc1c..b02bdd8e 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadRollbackResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadRollbackResponse.json index 4a181e68..74b5208f 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadRollbackResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadRollbackResponse.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json index 2ae10ac6..7e2d2643 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartedNotification.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartedNotification.json index 4622b2ec..3624b372 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartedNotification.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartedNotification.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadUnarchiveResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadUnarchiveResponse.json index bc63950e..2848ebc9 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadUnarchiveResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadUnarchiveResponse.json @@ -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": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyAcceptanceReceipt.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyAcceptanceReceipt.ts new file mode 100644 index 00000000..547c1cad --- /dev/null +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyAcceptanceReceipt.ts @@ -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, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyJobBinding.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyJobBinding.ts index 4986678c..6903b06a 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyJobBinding.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyJobBinding.ts @@ -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, linked_graph_node_ids?: Array, 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, linked_graph_node_ids?: Array, progress_note?: string | null, blocking_reason?: string | null, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyRuntimeLink.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyRuntimeLink.ts new file mode 100644 index 00000000..4abbf2f6 --- /dev/null +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyRuntimeLink.ts @@ -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, linked_graph_node_ids?: Array, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyThreadState.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyThreadState.ts index 6b892213..f447334d 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyThreadState.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/EpiphanyThreadState.ts @@ -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, invariants?: Array, graphs?: EpiphanyGraphs, graph_frontier?: EpiphanyGraphFrontier | null, graph_checkpoint?: EpiphanyGraphCheckpoint | null, retrieval?: EpiphanyRetrievalState | null, scratch?: EpiphanyScratchPad | null, investigation_checkpoint?: EpiphanyInvestigationCheckpoint | null, job_bindings?: Array, observations?: Array, recent_evidence?: Array, 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, invariants?: Array, graphs?: EpiphanyGraphs, graph_frontier?: EpiphanyGraphFrontier | null, graph_checkpoint?: EpiphanyGraphCheckpoint | null, retrieval?: EpiphanyRetrievalState | null, scratch?: EpiphanyScratchPad | null, investigation_checkpoint?: EpiphanyInvestigationCheckpoint | null, job_bindings?: Array, acceptance_receipts?: Array, runtime_links?: Array, observations?: Array, recent_evidence?: Array, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, planning?: EpiphanyPlanningState, last_updated_turn_id?: string | null, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/index.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/index.ts index f26afcef..ef43f9ea 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/index.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/index.ts @@ -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"; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyJob.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyJob.ts index 9ecf4a6f..f85f3d8f 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyJob.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyJob.ts @@ -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, linkedSubgoalIds?: Array, linkedGraphNodeIds?: Array, }; +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, linkedSubgoalIds?: Array, linkedGraphNodeIds?: Array, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyJobBackendKind.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyJobBackendKind.ts index b570e7f7..73b91c42 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyJobBackendKind.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyJobBackendKind.ts @@ -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"; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyReorientFinding.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyReorientFinding.ts index 76a71a77..9253f9f1 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyReorientFinding.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyReorientFinding.ts @@ -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, frontierNodeIds?: Array, evidenceIds?: Array, 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, frontierNodeIds?: Array, evidenceIds?: Array, artifactRefs?: Array, runtimeResultId?: string | null, runtimeJobId?: string | null, jobError?: string | null, itemError?: string | null, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyRoleFinding.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyRoleFinding.ts index cdc2d92c..41be3a06 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyRoleFinding.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyRoleFinding.ts @@ -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, frontierNodeIds?: Array, evidenceIds?: Array, openQuestions?: Array, evidenceGaps?: Array, risks?: Array, 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, frontierNodeIds?: Array, evidenceIds?: Array, artifactRefs?: Array, runtimeResultId?: string | null, runtimeJobId?: string | null, openQuestions?: Array, evidenceGaps?: Array, risks?: Array, statePatch?: ThreadEpiphanyUpdatePatch | null, selfPatch?: unknown, selfPersistence?: ThreadEpiphanyRoleSelfPersistenceReview | null, jobError?: string | null, itemError?: string | null, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyStateUpdatedField.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyStateUpdatedField.ts index 50e2e18b..b0a77bb2 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyStateUpdatedField.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyStateUpdatedField.ts @@ -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"; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyUpdatePatch.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyUpdatePatch.ts index d6401b5e..2b1795ab 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyUpdatePatch.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyUpdatePatch.ts @@ -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 | null, invariants?: Array | null, graphs?: EpiphanyGraphs | null, graphFrontier?: EpiphanyGraphFrontier | null, graphCheckpoint?: EpiphanyGraphCheckpoint | null, scratch?: EpiphanyScratchPad | null, investigationCheckpoint?: EpiphanyInvestigationCheckpoint | null, jobBindings?: Array | null, observations?: Array, evidence?: Array, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, planning?: EpiphanyPlanningState | null, }; +export type ThreadEpiphanyUpdatePatch = { objective?: string | null, activeSubgoalId?: string | null, subgoals?: Array | null, invariants?: Array | null, graphs?: EpiphanyGraphs | null, graphFrontier?: EpiphanyGraphFrontier | null, graphCheckpoint?: EpiphanyGraphCheckpoint | null, scratch?: EpiphanyScratchPad | null, investigationCheckpoint?: EpiphanyInvestigationCheckpoint | null, jobBindings?: Array | null, acceptanceReceipts?: Array, runtimeLinks?: Array, observations?: Array, evidence?: Array, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, planning?: EpiphanyPlanningState | null, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs b/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs index 061c4224..1b72e379 100644 --- a/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs +++ b/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs @@ -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" } } }), diff --git a/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs b/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs index 848521fb..0ec2119f 100644 --- a/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs +++ b/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs @@ -4430,6 +4430,14 @@ pub struct ThreadEpiphanyRoleFinding { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub evidence_ids: Vec, #[serde(default, skip_serializing_if = "Vec::is_empty")] + pub artifact_refs: Vec, + #[serde(default, skip_serializing_if = "Option::is_none")] + #[ts(optional = nullable)] + pub runtime_result_id: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + #[ts(optional = nullable)] + pub runtime_job_id: Option, + #[serde(default, skip_serializing_if = "Vec::is_empty")] pub open_questions: Vec, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub evidence_gaps: Vec, @@ -4450,8 +4458,6 @@ pub struct ThreadEpiphanyRoleFinding { #[serde(default, skip_serializing_if = "Option::is_none")] #[ts(optional = nullable)] pub item_error: Option, - #[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, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub evidence_ids: Vec, + #[serde(default, skip_serializing_if = "Vec::is_empty")] + pub artifact_refs: Vec, + #[serde(default, skip_serializing_if = "Option::is_none")] + #[ts(optional = nullable)] + pub runtime_result_id: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + #[ts(optional = nullable)] + pub runtime_job_id: Option, #[serde(default, skip_serializing_if = "Option::is_none")] #[ts(optional = nullable)] pub job_error: Option, #[serde(default, skip_serializing_if = "Option::is_none")] #[ts(optional = nullable)] pub item_error: Option, - #[ts(type = "unknown")] - pub raw_result: serde_json::Value, } #[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)] diff --git a/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs b/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs index f1b84b2e..d5b96805 100644 --- a/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs +++ b/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs @@ -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 { } fn role_finding_runtime_result_id(finding: &ThreadEpiphanyRoleFinding) -> Option { - json_string_field(&finding.raw_result, "runtimeResultId") + finding.runtime_result_id.clone() } fn role_finding_runtime_job_id(finding: &ThreadEpiphanyRoleFinding) -> Option { - json_string_field(&finding.raw_result, "runtimeJobId") + finding.runtime_job_id.clone() } fn reorient_finding_runtime_result_id(finding: &ThreadEpiphanyReorientFinding) -> Option { - json_string_field(&finding.raw_result, "runtimeResultId") + finding.runtime_result_id.clone() } fn reorient_finding_runtime_job_id(finding: &ThreadEpiphanyReorientFinding) -> Option { - json_string_field(&finding.raw_result, "runtimeJobId") + finding.runtime_job_id.clone() } fn json_string_array_field(value: &serde_json::Value, key: &str) -> Vec { @@ -15735,11 +15739,10 @@ async fn load_completed_epiphany_role_finding( fn parse_role_finding_state_patch( finding: &ThreadEpiphanyRoleFinding, ) -> Result { - 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 { @@ -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);