Delete Epiphany view wrapper relics
This commit is contained in:
parent
32d6eed2d8
commit
1107d8d1f5
15 changed files with 74 additions and 1071 deletions
|
|
@ -336,26 +336,11 @@ client_request_definitions! {
|
|||
params: v2::ThreadReadParams,
|
||||
response: v2::ThreadReadResponse,
|
||||
},
|
||||
#[experimental("thread/epiphany/scene")]
|
||||
ThreadEpiphanyScene => "thread/epiphany/scene" {
|
||||
params: v2::ThreadEpiphanySceneParams,
|
||||
response: v2::ThreadEpiphanySceneResponse,
|
||||
},
|
||||
#[experimental("thread/epiphany/view")]
|
||||
ThreadEpiphanyView => "thread/epiphany/view" {
|
||||
params: v2::ThreadEpiphanyViewParams,
|
||||
response: v2::ThreadEpiphanyViewResponse,
|
||||
},
|
||||
#[experimental("thread/epiphany/jobs")]
|
||||
ThreadEpiphanyJobs => "thread/epiphany/jobs" {
|
||||
params: v2::ThreadEpiphanyJobsParams,
|
||||
response: v2::ThreadEpiphanyJobsResponse,
|
||||
},
|
||||
#[experimental("thread/epiphany/roles")]
|
||||
ThreadEpiphanyRoles => "thread/epiphany/roles" {
|
||||
params: v2::ThreadEpiphanyRolesParams,
|
||||
response: v2::ThreadEpiphanyRolesResponse,
|
||||
},
|
||||
#[experimental("thread/epiphany/roleLaunch")]
|
||||
ThreadEpiphanyRoleLaunch => "thread/epiphany/roleLaunch" {
|
||||
params: v2::ThreadEpiphanyRoleLaunchParams,
|
||||
|
|
@ -381,11 +366,6 @@ client_request_definitions! {
|
|||
params: v2::ThreadEpiphanyContextParams,
|
||||
response: v2::ThreadEpiphanyContextResponse,
|
||||
},
|
||||
#[experimental("thread/epiphany/planning")]
|
||||
ThreadEpiphanyPlanning => "thread/epiphany/planning" {
|
||||
params: v2::ThreadEpiphanyPlanningParams,
|
||||
response: v2::ThreadEpiphanyPlanningResponse,
|
||||
},
|
||||
#[experimental("thread/epiphany/graphQuery")]
|
||||
ThreadEpiphanyGraphQuery => "thread/epiphany/graphQuery" {
|
||||
params: v2::ThreadEpiphanyGraphQueryParams,
|
||||
|
|
@ -1661,221 +1641,6 @@ mod tests {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_thread_epiphany_scene_response() -> Result<()> {
|
||||
let response = ClientResponse::ThreadEpiphanyScene {
|
||||
request_id: RequestId::Integer(8),
|
||||
response: v2::ThreadEpiphanySceneResponse {
|
||||
thread_id: "thr_123".to_string(),
|
||||
scene: v2::ThreadEpiphanyScene {
|
||||
state_status: v2::ThreadEpiphanySceneStateStatus::Ready,
|
||||
source: v2::ThreadEpiphanySceneSource::Live,
|
||||
revision: Some(3),
|
||||
objective: Some("Keep the map visible".to_string()),
|
||||
active_subgoal: Some(v2::ThreadEpiphanySceneSubgoal {
|
||||
id: "phase-6".to_string(),
|
||||
title: "Reflect typed state".to_string(),
|
||||
status: "active".to_string(),
|
||||
summary: None,
|
||||
active: true,
|
||||
}),
|
||||
subgoals: Vec::new(),
|
||||
invariant_status_counts: vec![v2::ThreadEpiphanySceneStatusCount {
|
||||
status: "ok".to_string(),
|
||||
count: 2,
|
||||
}],
|
||||
graph: v2::ThreadEpiphanySceneGraph {
|
||||
architecture_node_count: 4,
|
||||
architecture_edge_count: 3,
|
||||
dataflow_node_count: 2,
|
||||
dataflow_edge_count: 1,
|
||||
link_count: 2,
|
||||
active_node_ids: vec!["state-spine".to_string()],
|
||||
active_edge_ids: Vec::new(),
|
||||
open_question_count: 1,
|
||||
open_gap_count: 0,
|
||||
dirty_paths: vec![PathBuf::from("notes/scene.md")],
|
||||
checkpoint_id: Some("ck-1".to_string()),
|
||||
checkpoint_summary: None,
|
||||
},
|
||||
retrieval: Some(v2::ThreadEpiphanySceneRetrieval {
|
||||
workspace_root: PathBuf::from("/workspace"),
|
||||
status: codex_protocol::protocol::EpiphanyRetrievalStatus::Ready,
|
||||
semantic_available: true,
|
||||
index_revision: Some("qdrant-v1".to_string()),
|
||||
indexed_file_count: Some(12),
|
||||
indexed_chunk_count: Some(34),
|
||||
shard_count: 1,
|
||||
dirty_path_count: 0,
|
||||
}),
|
||||
investigation_checkpoint: Some(
|
||||
v2::ThreadEpiphanySceneInvestigationCheckpoint {
|
||||
checkpoint_id: "ix-1".to_string(),
|
||||
kind: "slice_planning".to_string(),
|
||||
disposition: codex_protocol::protocol::EpiphanyInvestigationDisposition::ResumeReady,
|
||||
focus: "Keep the durable resume packet visible.".to_string(),
|
||||
summary: Some("Checkpointed the bounded planning slice.".to_string()),
|
||||
next_action: Some("Patch one typed field next.".to_string()),
|
||||
captured_at_turn_id: Some("turn-7".to_string()),
|
||||
open_question_count: 1,
|
||||
code_ref_count: 2,
|
||||
evidence_count: 1,
|
||||
},
|
||||
),
|
||||
observations: v2::ThreadEpiphanySceneRecords {
|
||||
total_count: 1,
|
||||
latest: vec![v2::ThreadEpiphanySceneRecord {
|
||||
id: "obs-1".to_string(),
|
||||
kind: "smoke".to_string(),
|
||||
status: "ok".to_string(),
|
||||
summary: "Scene projected".to_string(),
|
||||
code_ref_count: 1,
|
||||
}],
|
||||
},
|
||||
evidence: v2::ThreadEpiphanySceneRecords::default(),
|
||||
churn: Some(v2::ThreadEpiphanySceneChurn {
|
||||
understanding_status: "ready".to_string(),
|
||||
diff_pressure: "low".to_string(),
|
||||
graph_freshness: Some("fresh".to_string()),
|
||||
warning: None,
|
||||
unexplained_writes: Some(0),
|
||||
}),
|
||||
available_actions: vec![
|
||||
v2::ThreadEpiphanySceneAction::Index,
|
||||
v2::ThreadEpiphanySceneAction::Retrieve,
|
||||
v2::ThreadEpiphanySceneAction::Distill,
|
||||
v2::ThreadEpiphanySceneAction::Context,
|
||||
v2::ThreadEpiphanySceneAction::Planning,
|
||||
v2::ThreadEpiphanySceneAction::Jobs,
|
||||
v2::ThreadEpiphanySceneAction::Roles,
|
||||
v2::ThreadEpiphanySceneAction::Coordinator,
|
||||
v2::ThreadEpiphanySceneAction::RoleLaunch,
|
||||
v2::ThreadEpiphanySceneAction::RoleResult,
|
||||
v2::ThreadEpiphanySceneAction::JobLaunch,
|
||||
v2::ThreadEpiphanySceneAction::Freshness,
|
||||
v2::ThreadEpiphanySceneAction::Pressure,
|
||||
v2::ThreadEpiphanySceneAction::Reorient,
|
||||
v2::ThreadEpiphanySceneAction::Crrc,
|
||||
v2::ThreadEpiphanySceneAction::ReorientLaunch,
|
||||
v2::ThreadEpiphanySceneAction::Update,
|
||||
v2::ThreadEpiphanySceneAction::JobInterrupt,
|
||||
v2::ThreadEpiphanySceneAction::Propose,
|
||||
v2::ThreadEpiphanySceneAction::Promote,
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
assert_eq!(response.id(), &RequestId::Integer(8));
|
||||
assert_eq!(response.method(), "thread/epiphany/scene");
|
||||
assert_eq!(
|
||||
json!({
|
||||
"method": "thread/epiphany/scene",
|
||||
"id": 8,
|
||||
"response": {
|
||||
"threadId": "thr_123",
|
||||
"scene": {
|
||||
"stateStatus": "ready",
|
||||
"source": "live",
|
||||
"revision": 3,
|
||||
"objective": "Keep the map visible",
|
||||
"activeSubgoal": {
|
||||
"id": "phase-6",
|
||||
"title": "Reflect typed state",
|
||||
"status": "active",
|
||||
"active": true
|
||||
},
|
||||
"invariantStatusCounts": [
|
||||
{
|
||||
"status": "ok",
|
||||
"count": 2
|
||||
}
|
||||
],
|
||||
"graph": {
|
||||
"architectureNodeCount": 4,
|
||||
"architectureEdgeCount": 3,
|
||||
"dataflowNodeCount": 2,
|
||||
"dataflowEdgeCount": 1,
|
||||
"linkCount": 2,
|
||||
"activeNodeIds": ["state-spine"],
|
||||
"openQuestionCount": 1,
|
||||
"openGapCount": 0,
|
||||
"dirtyPaths": ["notes/scene.md"],
|
||||
"checkpointId": "ck-1"
|
||||
},
|
||||
"retrieval": {
|
||||
"workspaceRoot": "/workspace",
|
||||
"status": "ready",
|
||||
"semanticAvailable": true,
|
||||
"indexRevision": "qdrant-v1",
|
||||
"indexedFileCount": 12,
|
||||
"indexedChunkCount": 34,
|
||||
"shardCount": 1,
|
||||
"dirtyPathCount": 0
|
||||
},
|
||||
"investigationCheckpoint": {
|
||||
"checkpointId": "ix-1",
|
||||
"kind": "slice_planning",
|
||||
"disposition": "resume_ready",
|
||||
"focus": "Keep the durable resume packet visible.",
|
||||
"summary": "Checkpointed the bounded planning slice.",
|
||||
"nextAction": "Patch one typed field next.",
|
||||
"capturedAtTurnId": "turn-7",
|
||||
"openQuestionCount": 1,
|
||||
"codeRefCount": 2,
|
||||
"evidenceCount": 1
|
||||
},
|
||||
"observations": {
|
||||
"totalCount": 1,
|
||||
"latest": [
|
||||
{
|
||||
"id": "obs-1",
|
||||
"kind": "smoke",
|
||||
"status": "ok",
|
||||
"summary": "Scene projected",
|
||||
"codeRefCount": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"evidence": {
|
||||
"totalCount": 0
|
||||
},
|
||||
"churn": {
|
||||
"understandingStatus": "ready",
|
||||
"diffPressure": "low",
|
||||
"graphFreshness": "fresh",
|
||||
"unexplainedWrites": 0
|
||||
},
|
||||
"availableActions": [
|
||||
"index",
|
||||
"retrieve",
|
||||
"distill",
|
||||
"context",
|
||||
"planning",
|
||||
"jobs",
|
||||
"roles",
|
||||
"coordinator",
|
||||
"roleLaunch",
|
||||
"roleResult",
|
||||
"jobLaunch",
|
||||
"freshness",
|
||||
"pressure",
|
||||
"reorient",
|
||||
"crrc",
|
||||
"reorientLaunch",
|
||||
"update",
|
||||
"jobInterrupt",
|
||||
"propose",
|
||||
"promote"
|
||||
]
|
||||
}
|
||||
}
|
||||
}),
|
||||
serde_json::to_value(&response)?,
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_thread_epiphany_view_response() -> Result<()> {
|
||||
let request = ClientRequest::ThreadEpiphanyView {
|
||||
|
|
@ -1943,147 +1708,6 @@ mod tests {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_thread_epiphany_jobs_response() -> Result<()> {
|
||||
let response = ClientResponse::ThreadEpiphanyJobs {
|
||||
request_id: RequestId::Integer(8),
|
||||
response: v2::ThreadEpiphanyJobsResponse {
|
||||
thread_id: "thr_123".to_string(),
|
||||
source: v2::ThreadEpiphanyJobsSource::Live,
|
||||
state_revision: Some(3),
|
||||
jobs: vec![v2::ThreadEpiphanyJob {
|
||||
id: "retrieval-index".to_string(),
|
||||
kind: v2::ThreadEpiphanyJobKind::Indexing,
|
||||
scope: "/workspace".to_string(),
|
||||
owner_role: "epiphany-core".to_string(),
|
||||
launcher_job_id: None,
|
||||
authority_scope: None,
|
||||
backend_job_id: None,
|
||||
status: v2::ThreadEpiphanyJobStatus::Needed,
|
||||
items_processed: Some(12),
|
||||
items_total: None,
|
||||
progress_note: Some(
|
||||
"Retrieval catalog is stale; refresh is available.".to_string(),
|
||||
),
|
||||
last_checkpoint_at_unix_seconds: Some(1_744_500_000),
|
||||
blocking_reason: None,
|
||||
active_thread_ids: Vec::new(),
|
||||
linked_subgoal_ids: vec!["phase-6".to_string()],
|
||||
linked_graph_node_ids: vec!["retrieval".to_string()],
|
||||
}],
|
||||
},
|
||||
};
|
||||
|
||||
assert_eq!(response.id(), &RequestId::Integer(8));
|
||||
assert_eq!(response.method(), "thread/epiphany/jobs");
|
||||
assert_eq!(
|
||||
json!({
|
||||
"method": "thread/epiphany/jobs",
|
||||
"id": 8,
|
||||
"response": {
|
||||
"threadId": "thr_123",
|
||||
"source": "live",
|
||||
"stateRevision": 3,
|
||||
"jobs": [
|
||||
{
|
||||
"id": "retrieval-index",
|
||||
"kind": "indexing",
|
||||
"scope": "/workspace",
|
||||
"ownerRole": "epiphany-core",
|
||||
"status": "needed",
|
||||
"itemsProcessed": 12,
|
||||
"progressNote": "Retrieval catalog is stale; refresh is available.",
|
||||
"lastCheckpointAtUnixSeconds": 1744500000,
|
||||
"linkedSubgoalIds": ["phase-6"],
|
||||
"linkedGraphNodeIds": ["retrieval"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}),
|
||||
serde_json::to_value(&response)?,
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_thread_epiphany_roles_response() -> Result<()> {
|
||||
let response = ClientResponse::ThreadEpiphanyRoles {
|
||||
request_id: RequestId::Integer(8),
|
||||
response: v2::ThreadEpiphanyRolesResponse {
|
||||
thread_id: "thr_123".to_string(),
|
||||
source: v2::ThreadEpiphanyRolesSource::Live,
|
||||
state_status: v2::ThreadEpiphanyReorientStateStatus::Ready,
|
||||
state_revision: Some(3),
|
||||
roles: vec![v2::ThreadEpiphanyRoleLane {
|
||||
id: v2::ThreadEpiphanyRoleId::Verification,
|
||||
title: "Verification / Review".to_string(),
|
||||
owner_role: "epiphany-verifier".to_string(),
|
||||
status: v2::ThreadEpiphanyRoleStatus::Needed,
|
||||
note: "Review evidence before promotion.".to_string(),
|
||||
jobs: vec![v2::ThreadEpiphanyJob {
|
||||
id: "verification".to_string(),
|
||||
kind: v2::ThreadEpiphanyJobKind::Verification,
|
||||
scope: "invariant verification".to_string(),
|
||||
owner_role: "epiphany-verifier".to_string(),
|
||||
launcher_job_id: None,
|
||||
authority_scope: None,
|
||||
backend_job_id: None,
|
||||
status: v2::ThreadEpiphanyJobStatus::Needed,
|
||||
items_processed: None,
|
||||
items_total: None,
|
||||
progress_note: None,
|
||||
last_checkpoint_at_unix_seconds: None,
|
||||
blocking_reason: None,
|
||||
active_thread_ids: Vec::new(),
|
||||
linked_subgoal_ids: Vec::new(),
|
||||
linked_graph_node_ids: Vec::new(),
|
||||
}],
|
||||
authority_scopes: vec!["thread/epiphany/promote".to_string()],
|
||||
recommended_action: Some(v2::ThreadEpiphanySceneAction::Promote),
|
||||
}],
|
||||
note: "Role ownership is derived read-only.".to_string(),
|
||||
},
|
||||
};
|
||||
|
||||
assert_eq!(response.id(), &RequestId::Integer(8));
|
||||
assert_eq!(response.method(), "thread/epiphany/roles");
|
||||
assert_eq!(
|
||||
json!({
|
||||
"method": "thread/epiphany/roles",
|
||||
"id": 8,
|
||||
"response": {
|
||||
"threadId": "thr_123",
|
||||
"source": "live",
|
||||
"stateStatus": "ready",
|
||||
"stateRevision": 3,
|
||||
"roles": [
|
||||
{
|
||||
"id": "verification",
|
||||
"title": "Verification / Review",
|
||||
"ownerRole": "epiphany-verifier",
|
||||
"status": "needed",
|
||||
"note": "Review evidence before promotion.",
|
||||
"jobs": [
|
||||
{
|
||||
"id": "verification",
|
||||
"kind": "verification",
|
||||
"scope": "invariant verification",
|
||||
"ownerRole": "epiphany-verifier",
|
||||
"status": "needed"
|
||||
}
|
||||
],
|
||||
"authorityScopes": ["thread/epiphany/promote"],
|
||||
"recommendedAction": "promote"
|
||||
}
|
||||
],
|
||||
"note": "Role ownership is derived read-only."
|
||||
}
|
||||
}),
|
||||
serde_json::to_value(&response)?,
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_thread_epiphany_role_launch_response() -> Result<()> {
|
||||
let response = ClientResponse::ThreadEpiphanyRoleLaunch {
|
||||
|
|
@ -2608,178 +2232,6 @@ mod tests {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_thread_epiphany_planning_response() -> Result<()> {
|
||||
let github_source = codex_protocol::protocol::EpiphanyPlanningSourceRef {
|
||||
kind: "github_issue".to_string(),
|
||||
provider: Some("github".to_string()),
|
||||
repo: Some("GameCult/Epiphany".to_string()),
|
||||
issue_number: Some(42),
|
||||
url: Some("https://github.com/GameCult/Epiphany/issues/42".to_string()),
|
||||
labels: vec!["gui".to_string()],
|
||||
imported_at: Some("2026-05-01T05:00:00Z".to_string()),
|
||||
..Default::default()
|
||||
};
|
||||
let response = ClientResponse::ThreadEpiphanyPlanning {
|
||||
request_id: RequestId::Integer(9),
|
||||
response: v2::ThreadEpiphanyPlanningResponse {
|
||||
thread_id: "thr_123".to_string(),
|
||||
source: v2::ThreadEpiphanyContextSource::Live,
|
||||
state_status: v2::ThreadEpiphanyContextStateStatus::Ready,
|
||||
state_revision: Some(5),
|
||||
planning: codex_protocol::protocol::EpiphanyPlanningState {
|
||||
captures: vec![codex_protocol::protocol::EpiphanyPlanningCapture {
|
||||
id: "capture-github-42".to_string(),
|
||||
title: "Import issue backlog".to_string(),
|
||||
confidence: "medium".to_string(),
|
||||
status: "new".to_string(),
|
||||
source: github_source.clone(),
|
||||
..Default::default()
|
||||
}],
|
||||
backlog_items: vec![codex_protocol::protocol::EpiphanyBacklogItem {
|
||||
id: "backlog-planning-api".to_string(),
|
||||
title: "Expose planning projection".to_string(),
|
||||
kind: "feature".to_string(),
|
||||
summary: "Make planning state queryable by the GUI.".to_string(),
|
||||
status: "ready".to_string(),
|
||||
horizon: "now".to_string(),
|
||||
priority: codex_protocol::protocol::EpiphanyPlanningPriority {
|
||||
value: "p1".to_string(),
|
||||
rationale: "Unblocks the planning GUI.".to_string(),
|
||||
..Default::default()
|
||||
},
|
||||
confidence: "high".to_string(),
|
||||
product_area: "gui".to_string(),
|
||||
lane_hints: vec!["imagination".to_string()],
|
||||
source_refs: vec![github_source],
|
||||
..Default::default()
|
||||
}],
|
||||
objective_drafts: vec![codex_protocol::protocol::EpiphanyObjectiveDraft {
|
||||
id: "objdraft-planning-api".to_string(),
|
||||
title: "Build planning API slice".to_string(),
|
||||
summary: "Land typed planning state and read-only projection.".to_string(),
|
||||
source_item_ids: vec!["backlog-planning-api".to_string()],
|
||||
scope: codex_protocol::protocol::EpiphanyObjectiveDraftScope {
|
||||
includes: vec!["thread/epiphany/planning".to_string()],
|
||||
excludes: vec!["GUI planning table".to_string()],
|
||||
},
|
||||
acceptance_criteria: vec![
|
||||
"Projection returns planning counts.".to_string(),
|
||||
],
|
||||
lane_plan: codex_protocol::protocol::EpiphanyObjectiveDraftLanePlan {
|
||||
imagination: Some("Shape backlog and objective draft.".to_string()),
|
||||
hands: Some("Wire protocol and app-server read.".to_string()),
|
||||
..Default::default()
|
||||
},
|
||||
review_gates: vec!["Human adoption required".to_string()],
|
||||
status: "draft".to_string(),
|
||||
..Default::default()
|
||||
}],
|
||||
..Default::default()
|
||||
},
|
||||
summary: v2::ThreadEpiphanyPlanningSummary {
|
||||
capture_count: 1,
|
||||
pending_capture_count: 1,
|
||||
github_issue_capture_count: 1,
|
||||
backlog_item_count: 1,
|
||||
ready_backlog_item_count: 1,
|
||||
roadmap_stream_count: 0,
|
||||
objective_draft_count: 1,
|
||||
draft_objective_count: 1,
|
||||
active_objective: Some("Current adopted work".to_string()),
|
||||
note: "Planning substrate is available.".to_string(),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
assert_eq!(response.id(), &RequestId::Integer(9));
|
||||
assert_eq!(response.method(), "thread/epiphany/planning");
|
||||
assert_eq!(
|
||||
json!({
|
||||
"method": "thread/epiphany/planning",
|
||||
"id": 9,
|
||||
"response": {
|
||||
"threadId": "thr_123",
|
||||
"source": "live",
|
||||
"stateStatus": "ready",
|
||||
"stateRevision": 5,
|
||||
"planning": {
|
||||
"captures": [{
|
||||
"id": "capture-github-42",
|
||||
"title": "Import issue backlog",
|
||||
"confidence": "medium",
|
||||
"status": "new",
|
||||
"source": {
|
||||
"kind": "github_issue",
|
||||
"provider": "github",
|
||||
"repo": "GameCult/Epiphany",
|
||||
"issue_number": 42,
|
||||
"url": "https://github.com/GameCult/Epiphany/issues/42",
|
||||
"labels": ["gui"],
|
||||
"imported_at": "2026-05-01T05:00:00Z"
|
||||
}
|
||||
}],
|
||||
"backlog_items": [{
|
||||
"id": "backlog-planning-api",
|
||||
"title": "Expose planning projection",
|
||||
"kind": "feature",
|
||||
"summary": "Make planning state queryable by the GUI.",
|
||||
"status": "ready",
|
||||
"horizon": "now",
|
||||
"priority": {
|
||||
"value": "p1",
|
||||
"rationale": "Unblocks the planning GUI."
|
||||
},
|
||||
"confidence": "high",
|
||||
"product_area": "gui",
|
||||
"lane_hints": ["imagination"],
|
||||
"source_refs": [{
|
||||
"kind": "github_issue",
|
||||
"provider": "github",
|
||||
"repo": "GameCult/Epiphany",
|
||||
"issue_number": 42,
|
||||
"url": "https://github.com/GameCult/Epiphany/issues/42",
|
||||
"labels": ["gui"],
|
||||
"imported_at": "2026-05-01T05:00:00Z"
|
||||
}]
|
||||
}],
|
||||
"objective_drafts": [{
|
||||
"id": "objdraft-planning-api",
|
||||
"title": "Build planning API slice",
|
||||
"summary": "Land typed planning state and read-only projection.",
|
||||
"source_item_ids": ["backlog-planning-api"],
|
||||
"scope": {
|
||||
"includes": ["thread/epiphany/planning"],
|
||||
"excludes": ["GUI planning table"]
|
||||
},
|
||||
"acceptance_criteria": ["Projection returns planning counts."],
|
||||
"lane_plan": {
|
||||
"imagination": "Shape backlog and objective draft.",
|
||||
"hands": "Wire protocol and app-server read."
|
||||
},
|
||||
"review_gates": ["Human adoption required"],
|
||||
"status": "draft"
|
||||
}]
|
||||
},
|
||||
"summary": {
|
||||
"captureCount": 1,
|
||||
"pendingCaptureCount": 1,
|
||||
"githubIssueCaptureCount": 1,
|
||||
"backlogItemCount": 1,
|
||||
"readyBacklogItemCount": 1,
|
||||
"roadmapStreamCount": 0,
|
||||
"objectiveDraftCount": 1,
|
||||
"draftObjectiveCount": 1,
|
||||
"activeObjective": "Current adopted work",
|
||||
"note": "Planning substrate is available."
|
||||
}
|
||||
}
|
||||
}),
|
||||
serde_json::to_value(&response)?,
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_thread_epiphany_graph_query_request_and_response() -> Result<()> {
|
||||
let request = ClientRequest::ThreadEpiphanyGraphQuery {
|
||||
|
|
@ -4351,42 +3803,6 @@ mod tests {
|
|||
assert_eq!(reason, Some("thread/epiphany/retrieve"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn thread_epiphany_scene_is_marked_experimental() {
|
||||
let request = ClientRequest::ThreadEpiphanyScene {
|
||||
request_id: RequestId::Integer(1),
|
||||
params: v2::ThreadEpiphanySceneParams {
|
||||
thread_id: "thr_123".to_string(),
|
||||
},
|
||||
};
|
||||
let reason = crate::experimental_api::ExperimentalApi::experimental_reason(&request);
|
||||
assert_eq!(reason, Some("thread/epiphany/scene"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn thread_epiphany_jobs_is_marked_experimental() {
|
||||
let request = ClientRequest::ThreadEpiphanyJobs {
|
||||
request_id: RequestId::Integer(1),
|
||||
params: v2::ThreadEpiphanyJobsParams {
|
||||
thread_id: "thr_123".to_string(),
|
||||
},
|
||||
};
|
||||
let reason = crate::experimental_api::ExperimentalApi::experimental_reason(&request);
|
||||
assert_eq!(reason, Some("thread/epiphany/jobs"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn thread_epiphany_roles_is_marked_experimental() {
|
||||
let request = ClientRequest::ThreadEpiphanyRoles {
|
||||
request_id: RequestId::Integer(1),
|
||||
params: v2::ThreadEpiphanyRolesParams {
|
||||
thread_id: "thr_123".to_string(),
|
||||
},
|
||||
};
|
||||
let reason = crate::experimental_api::ExperimentalApi::experimental_reason(&request);
|
||||
assert_eq!(reason, Some("thread/epiphany/roles"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn thread_epiphany_role_launch_is_marked_experimental() {
|
||||
let request = ClientRequest::ThreadEpiphanyRoleLaunch {
|
||||
|
|
@ -4461,18 +3877,6 @@ mod tests {
|
|||
assert_eq!(reason, Some("thread/epiphany/context"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn thread_epiphany_planning_is_marked_experimental() {
|
||||
let request = ClientRequest::ThreadEpiphanyPlanning {
|
||||
request_id: RequestId::Integer(1),
|
||||
params: v2::ThreadEpiphanyPlanningParams {
|
||||
thread_id: "thr_123".to_string(),
|
||||
},
|
||||
};
|
||||
let reason = crate::experimental_api::ExperimentalApi::experimental_reason(&request);
|
||||
assert_eq!(reason, Some("thread/epiphany/planning"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn thread_epiphany_reorient_launch_is_marked_experimental() {
|
||||
let request = ClientRequest::ThreadEpiphanyReorientLaunch {
|
||||
|
|
|
|||
|
|
@ -3925,21 +3925,6 @@ pub struct ThreadReadResponse {
|
|||
pub thread: Thread,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadEpiphanySceneParams {
|
||||
pub thread_id: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadEpiphanySceneResponse {
|
||||
pub thread_id: String,
|
||||
pub scene: ThreadEpiphanyScene,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
|
|
@ -4169,46 +4154,6 @@ pub struct ThreadEpiphanySceneChurn {
|
|||
pub unexplained_writes: Option<u32>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadEpiphanyJobsParams {
|
||||
pub thread_id: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadEpiphanyJobsResponse {
|
||||
pub thread_id: String,
|
||||
pub source: ThreadEpiphanyJobsSource,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub state_revision: Option<u64>,
|
||||
pub jobs: Vec<ThreadEpiphanyJob>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadEpiphanyRolesParams {
|
||||
pub thread_id: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadEpiphanyRolesResponse {
|
||||
pub thread_id: String,
|
||||
pub source: ThreadEpiphanyRolesSource,
|
||||
pub state_status: ThreadEpiphanyReorientStateStatus,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub state_revision: Option<u64>,
|
||||
pub roles: Vec<ThreadEpiphanyRoleLane>,
|
||||
pub note: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
|
|
@ -4475,14 +4420,6 @@ pub enum ThreadEpiphanyRoleSelfPersistenceStatus {
|
|||
Rejected,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub enum ThreadEpiphanyJobsSource {
|
||||
Stored,
|
||||
Live,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
|
|
@ -4693,27 +4630,6 @@ pub struct ThreadEpiphanyContextParams {
|
|||
pub include_linked_evidence: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadEpiphanyPlanningParams {
|
||||
pub thread_id: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadEpiphanyPlanningResponse {
|
||||
pub thread_id: String,
|
||||
pub source: ThreadEpiphanyContextSource,
|
||||
pub state_status: ThreadEpiphanyContextStateStatus,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub state_revision: Option<u64>,
|
||||
pub planning: CoreEpiphanyPlanningState,
|
||||
pub summary: ThreadEpiphanyPlanningSummary,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
|
|
|
|||
Reference in a new issue