Add specialist self-memory persistence
This commit is contained in:
parent
1a2f40f2ec
commit
c37da10946
30 changed files with 2269 additions and 8 deletions
|
|
@ -16850,6 +16850,17 @@
|
|||
"null"
|
||||
]
|
||||
},
|
||||
"selfPatch": true,
|
||||
"selfPersistence": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/v2/ThreadEpiphanyRoleSelfPersistenceReview"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"statePatch": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
|
@ -16952,6 +16963,43 @@
|
|||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ThreadEpiphanyRoleSelfPersistenceReview": {
|
||||
"properties": {
|
||||
"reasons": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/v2/ThreadEpiphanyRoleSelfPersistenceStatus"
|
||||
},
|
||||
"targetAgentId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"targetPath": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"status"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ThreadEpiphanyRoleSelfPersistenceStatus": {
|
||||
"enum": [
|
||||
"missing",
|
||||
"accepted",
|
||||
"rejected"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ThreadEpiphanyRoleStatus": {
|
||||
"enum": [
|
||||
"ready",
|
||||
|
|
|
|||
|
|
@ -14737,6 +14737,17 @@
|
|||
"null"
|
||||
]
|
||||
},
|
||||
"selfPatch": true,
|
||||
"selfPersistence": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ThreadEpiphanyRoleSelfPersistenceReview"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"statePatch": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
|
@ -14839,6 +14850,43 @@
|
|||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ThreadEpiphanyRoleSelfPersistenceReview": {
|
||||
"properties": {
|
||||
"reasons": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/ThreadEpiphanyRoleSelfPersistenceStatus"
|
||||
},
|
||||
"targetAgentId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"targetPath": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"status"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ThreadEpiphanyRoleSelfPersistenceStatus": {
|
||||
"enum": [
|
||||
"missing",
|
||||
"accepted",
|
||||
"rejected"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ThreadEpiphanyRoleStatus": {
|
||||
"enum": [
|
||||
"ready",
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
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, 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>, 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, };
|
||||
|
|
|
|||
6
vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyRoleSelfPersistenceReview.ts
generated
vendored
Normal file
6
vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyRoleSelfPersistenceReview.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// 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 { ThreadEpiphanyRoleSelfPersistenceStatus } from "./ThreadEpiphanyRoleSelfPersistenceStatus";
|
||||
|
||||
export type ThreadEpiphanyRoleSelfPersistenceReview = { status: ThreadEpiphanyRoleSelfPersistenceStatus, targetAgentId?: string | null, targetPath?: string | null, reasons?: Array<string>, };
|
||||
5
vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyRoleSelfPersistenceStatus.ts
generated
vendored
Normal file
5
vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyRoleSelfPersistenceStatus.ts
generated
vendored
Normal 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 ThreadEpiphanyRoleSelfPersistenceStatus = "missing" | "accepted" | "rejected";
|
||||
2
vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/index.ts
generated
vendored
2
vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/index.ts
generated
vendored
|
|
@ -367,6 +367,8 @@ export type { ThreadEpiphanyRoleFinding } from "./ThreadEpiphanyRoleFinding";
|
|||
export type { ThreadEpiphanyRoleId } from "./ThreadEpiphanyRoleId";
|
||||
export type { ThreadEpiphanyRoleLane } from "./ThreadEpiphanyRoleLane";
|
||||
export type { ThreadEpiphanyRoleResultStatus } from "./ThreadEpiphanyRoleResultStatus";
|
||||
export type { ThreadEpiphanyRoleSelfPersistenceReview } from "./ThreadEpiphanyRoleSelfPersistenceReview";
|
||||
export type { ThreadEpiphanyRoleSelfPersistenceStatus } from "./ThreadEpiphanyRoleSelfPersistenceStatus";
|
||||
export type { ThreadEpiphanyRoleStatus } from "./ThreadEpiphanyRoleStatus";
|
||||
export type { ThreadEpiphanyRolesSource } from "./ThreadEpiphanyRolesSource";
|
||||
export type { ThreadEpiphanyScene } from "./ThreadEpiphanyScene";
|
||||
|
|
|
|||
|
|
@ -2273,6 +2273,8 @@ mod tests {
|
|||
evidence_gaps: Vec::new(),
|
||||
risks: Vec::new(),
|
||||
state_patch: None,
|
||||
self_patch: None,
|
||||
self_persistence: None,
|
||||
job_error: None,
|
||||
item_error: None,
|
||||
raw_result: json!({
|
||||
|
|
@ -2362,6 +2364,8 @@ mod tests {
|
|||
evidence_gaps: Vec::new(),
|
||||
risks: Vec::new(),
|
||||
state_patch: Some(patch.clone()),
|
||||
self_patch: None,
|
||||
self_persistence: None,
|
||||
job_error: None,
|
||||
item_error: None,
|
||||
raw_result: json!({
|
||||
|
|
|
|||
|
|
@ -4436,6 +4436,12 @@ pub struct ThreadEpiphanyRoleFinding {
|
|||
#[ts(optional = nullable)]
|
||||
pub state_patch: Option<ThreadEpiphanyUpdatePatch>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable, type = "unknown")]
|
||||
pub self_patch: Option<serde_json::Value>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub self_persistence: Option<ThreadEpiphanyRoleSelfPersistenceReview>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub job_error: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -4445,6 +4451,30 @@ pub struct ThreadEpiphanyRoleFinding {
|
|||
pub raw_result: serde_json::Value,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadEpiphanyRoleSelfPersistenceReview {
|
||||
pub status: ThreadEpiphanyRoleSelfPersistenceStatus,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub target_agent_id: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub target_path: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub reasons: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub enum ThreadEpiphanyRoleSelfPersistenceStatus {
|
||||
Missing,
|
||||
Accepted,
|
||||
Rejected,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
|
|
|
|||
Reference in a new issue