Delete the empty generic planning mirror
This commit is contained in:
parent
16c7b4d760
commit
2e3489c4f5
5 changed files with 4 additions and 350 deletions
|
|
@ -3,17 +3,15 @@ use std::path::Path;
|
|||
use anyhow::{Result, anyhow};
|
||||
use cultcache_rs::{CultCache, CultCacheEnvelope, DatabaseEntry};
|
||||
use epiphany_state_model::{
|
||||
EpiphanyBacklogItem, EpiphanyEvidenceRecord, EpiphanyInvariant,
|
||||
EpiphanyInvestigationCheckpoint, EpiphanyModeState, EpiphanyObjectiveDraft,
|
||||
EpiphanyObservation, EpiphanyPlanningCapture, EpiphanyPlanningState, EpiphanyRoadmapStream,
|
||||
EpiphanySubgoal,
|
||||
EpiphanyEvidenceRecord, EpiphanyInvariant, EpiphanyInvestigationCheckpoint,
|
||||
EpiphanyModeState, EpiphanyObservation, EpiphanySubgoal,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sha2::{Digest, Sha256};
|
||||
|
||||
use crate::{EpiphanyMindDocumentVersion, runtime_spine_cache};
|
||||
|
||||
pub const MIND_SCHEMA_EPOCH: &str = "epiphany.mind.epoch.v8";
|
||||
pub const MIND_SCHEMA_EPOCH: &str = "epiphany.mind.epoch.v9";
|
||||
pub const MIND_OBJECTIVE_KEY: &str = "objective";
|
||||
pub const MIND_FOCUS_KEY: &str = "focus";
|
||||
pub const MIND_MODE_KEY: &str = "mode";
|
||||
|
|
@ -297,46 +295,6 @@ pub struct EpiphanyMindInvestigationCheckpointDocument {
|
|||
pub value: EpiphanyInvestigationCheckpoint,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DatabaseEntry)]
|
||||
#[cultcache(
|
||||
type = "epiphany.mind.planning_capture.v1",
|
||||
schema = "EpiphanyMindPlanningCaptureDocument"
|
||||
)]
|
||||
pub struct EpiphanyMindPlanningCaptureDocument {
|
||||
#[cultcache(key = 0)]
|
||||
pub value: EpiphanyPlanningCapture,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DatabaseEntry)]
|
||||
#[cultcache(
|
||||
type = "epiphany.mind.backlog_item.v1",
|
||||
schema = "EpiphanyMindBacklogItemDocument"
|
||||
)]
|
||||
pub struct EpiphanyMindBacklogItemDocument {
|
||||
#[cultcache(key = 0)]
|
||||
pub value: EpiphanyBacklogItem,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DatabaseEntry)]
|
||||
#[cultcache(
|
||||
type = "epiphany.mind.roadmap_stream.v1",
|
||||
schema = "EpiphanyMindRoadmapStreamDocument"
|
||||
)]
|
||||
pub struct EpiphanyMindRoadmapStreamDocument {
|
||||
#[cultcache(key = 0)]
|
||||
pub value: EpiphanyRoadmapStream,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DatabaseEntry)]
|
||||
#[cultcache(
|
||||
type = "epiphany.mind.objective_draft.v1",
|
||||
schema = "EpiphanyMindObjectiveDraftDocument"
|
||||
)]
|
||||
pub struct EpiphanyMindObjectiveDraftDocument {
|
||||
#[cultcache(key = 0)]
|
||||
pub value: EpiphanyObjectiveDraft,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct EpiphanyMindView {
|
||||
pub schema_epoch: String,
|
||||
|
|
@ -356,7 +314,6 @@ pub struct EpiphanyMindView {
|
|||
pub agent_pass_admission_refusals: Vec<crate::EpiphanyAgentPassAdmissionRefusal>,
|
||||
pub investigation_checkpoint: Option<EpiphanyInvestigationCheckpoint>,
|
||||
pub mode: Option<EpiphanyModeState>,
|
||||
pub planning: EpiphanyPlanningState,
|
||||
pub repository_body_observation: Option<crate::RepositoryBodyObservationBasis>,
|
||||
pub repo_model: Option<crate::EpiphanyRepoModelView>,
|
||||
}
|
||||
|
|
@ -376,10 +333,6 @@ pub(crate) fn register_mind_document_types(cache: &mut CultCache) -> Result<()>
|
|||
cache.register_entry_type::<crate::EpiphanyMindReorientationDecisionDocument>()?;
|
||||
cache.register_entry_type::<crate::EpiphanyMindReorientationPassFailureDocument>()?;
|
||||
cache.register_entry_type::<EpiphanyMindInvestigationCheckpointDocument>()?;
|
||||
cache.register_entry_type::<EpiphanyMindPlanningCaptureDocument>()?;
|
||||
cache.register_entry_type::<EpiphanyMindBacklogItemDocument>()?;
|
||||
cache.register_entry_type::<EpiphanyMindRoadmapStreamDocument>()?;
|
||||
cache.register_entry_type::<EpiphanyMindObjectiveDraftDocument>()?;
|
||||
cache.register_entry_type::<EpiphanyMindRepositoryBodyObservationDocument>()?;
|
||||
crate::repo_model_documents::register_repo_model_document_types(cache)?;
|
||||
cache.register_entry_type::<crate::RepoFrontierPlanDecisionReceipt>()?;
|
||||
|
|
@ -524,22 +477,6 @@ pub(crate) fn validate_mind_write_envelope(envelope: &CultCacheEnvelope) -> Resu
|
|||
rmp_serde::from_slice::<EpiphanyMindInvestigationCheckpointDocument>(&envelope.payload)?
|
||||
.value
|
||||
.checkpoint_id
|
||||
} else if envelope.r#type == EpiphanyMindPlanningCaptureDocument::TYPE {
|
||||
rmp_serde::from_slice::<EpiphanyMindPlanningCaptureDocument>(&envelope.payload)?
|
||||
.value
|
||||
.id
|
||||
} else if envelope.r#type == EpiphanyMindBacklogItemDocument::TYPE {
|
||||
rmp_serde::from_slice::<EpiphanyMindBacklogItemDocument>(&envelope.payload)?
|
||||
.value
|
||||
.id
|
||||
} else if envelope.r#type == EpiphanyMindRoadmapStreamDocument::TYPE {
|
||||
rmp_serde::from_slice::<EpiphanyMindRoadmapStreamDocument>(&envelope.payload)?
|
||||
.value
|
||||
.id
|
||||
} else if envelope.r#type == EpiphanyMindObjectiveDraftDocument::TYPE {
|
||||
rmp_serde::from_slice::<EpiphanyMindObjectiveDraftDocument>(&envelope.payload)?
|
||||
.value
|
||||
.id
|
||||
} else if envelope.r#type == EpiphanyMindRepositoryBodyObservationDocument::TYPE {
|
||||
let value: EpiphanyMindRepositoryBodyObservationDocument =
|
||||
rmp_serde::from_slice(&envelope.payload)?;
|
||||
|
|
@ -599,14 +536,6 @@ pub fn assemble_mind_view(store_path: impl AsRef<Path>) -> Result<EpiphanyMindVi
|
|||
}
|
||||
let checkpoints =
|
||||
values::<EpiphanyMindInvestigationCheckpointDocument, _>(&cache, |value| value.value)?;
|
||||
let mut captures =
|
||||
values::<EpiphanyMindPlanningCaptureDocument, _>(&cache, |value| value.value)?;
|
||||
let mut backlog_items =
|
||||
values::<EpiphanyMindBacklogItemDocument, _>(&cache, |value| value.value)?;
|
||||
let mut roadmap_streams =
|
||||
values::<EpiphanyMindRoadmapStreamDocument, _>(&cache, |value| value.value)?;
|
||||
let mut objective_drafts =
|
||||
values::<EpiphanyMindObjectiveDraftDocument, _>(&cache, |value| value.value)?;
|
||||
let mut body_observations = cache.get_all::<EpiphanyMindRepositoryBodyObservationDocument>()?;
|
||||
for observation in &body_observations {
|
||||
observation.validate()?;
|
||||
|
|
@ -642,10 +571,6 @@ pub fn assemble_mind_view(store_path: impl AsRef<Path>) -> Result<EpiphanyMindVi
|
|||
reorientation_decisions.sort_by(|left, right| left.decision_id.cmp(&right.decision_id));
|
||||
reorientation_failures.sort_by(|left, right| left.failure_id.cmp(&right.failure_id));
|
||||
agent_pass_admission_refusals.sort_by(|left, right| left.refusal_id.cmp(&right.refusal_id));
|
||||
captures.sort_by(|left, right| left.id.cmp(&right.id));
|
||||
backlog_items.sort_by(|left, right| left.id.cmp(&right.id));
|
||||
roadmap_streams.sort_by(|left, right| left.id.cmp(&right.id));
|
||||
objective_drafts.sort_by(|left, right| left.id.cmp(&right.id));
|
||||
let investigation_checkpoint = match focus
|
||||
.as_ref()
|
||||
.and_then(|document| document.investigation_checkpoint_id.as_deref())
|
||||
|
|
@ -690,13 +615,6 @@ pub fn assemble_mind_view(store_path: impl AsRef<Path>) -> Result<EpiphanyMindVi
|
|||
agent_pass_admission_refusals,
|
||||
investigation_checkpoint,
|
||||
mode,
|
||||
planning: EpiphanyPlanningState {
|
||||
workspace_root: None,
|
||||
captures,
|
||||
backlog_items,
|
||||
roadmap_streams,
|
||||
objective_drafts,
|
||||
},
|
||||
repository_body_observation,
|
||||
repo_model,
|
||||
})
|
||||
|
|
@ -732,10 +650,6 @@ fn canonical_mind_versions(
|
|||
| crate::EpiphanyMindReorientationPassFailureDocument::TYPE
|
||||
| crate::EpiphanyAgentPassAdmissionRefusal::TYPE
|
||||
| EpiphanyMindInvestigationCheckpointDocument::TYPE
|
||||
| EpiphanyMindPlanningCaptureDocument::TYPE
|
||||
| EpiphanyMindBacklogItemDocument::TYPE
|
||||
| EpiphanyMindRoadmapStreamDocument::TYPE
|
||||
| EpiphanyMindObjectiveDraftDocument::TYPE
|
||||
| EpiphanyMindRepositoryBodyObservationDocument::TYPE
|
||||
)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -118,7 +118,6 @@ pub struct EpiphanyMindPromptProjection {
|
|||
pub agent_pass_admission_refusals: Vec<crate::EpiphanyAgentPassAdmissionRefusal>,
|
||||
pub investigation_checkpoint: Option<epiphany_state_model::EpiphanyInvestigationCheckpoint>,
|
||||
pub mode: Option<epiphany_state_model::EpiphanyModeState>,
|
||||
pub planning: epiphany_state_model::EpiphanyPlanningState,
|
||||
pub repository_body_observation: Option<crate::RepositoryBodyObservationBasis>,
|
||||
pub repo_model: Option<EpiphanyRepoModelPromptProjection>,
|
||||
}
|
||||
|
|
@ -141,7 +140,6 @@ impl From<crate::EpiphanyMindView> for EpiphanyMindPromptProjection {
|
|||
agent_pass_admission_refusals: value.agent_pass_admission_refusals,
|
||||
investigation_checkpoint: value.investigation_checkpoint,
|
||||
mode: value.mode,
|
||||
planning: value.planning,
|
||||
repository_body_observation: value.repository_body_observation,
|
||||
repo_model: value.repo_model.map(Into::into),
|
||||
}
|
||||
|
|
@ -2005,7 +2003,6 @@ mod tests {
|
|||
agent_pass_admission_refusals: Vec::new(),
|
||||
investigation_checkpoint: None,
|
||||
mode: None,
|
||||
planning: Default::default(),
|
||||
repository_body_observation: None,
|
||||
repo_model: None,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ pub const COORDINATOR_RUN_RECEIPT_TYPE: &str = "epiphany.coordinator_run_receipt
|
|||
pub const RUNTIME_IDENTITY_KEY: &str = "self";
|
||||
pub const RUNTIME_SWARM_BINDING_KEY: &str = "runtime-swarm-binding";
|
||||
pub const RUNTIME_SWARM_BINDING_SCHEMA_VERSION: &str = "epiphany.runtime.swarm_binding.v1";
|
||||
pub const RUNTIME_SPINE_SCHEMA_VERSION: &str = "epiphany.runtime_spine.v23";
|
||||
pub const RUNTIME_SPINE_SCHEMA_VERSION: &str = "epiphany.runtime_spine.v24";
|
||||
pub const EPIPHANY_RUNTIME_ROOT_SESSION_ID: &str = "epiphany-main";
|
||||
pub const RUNTIME_MODEL_EXECUTION_BINDING_SCHEMA_VERSION: &str =
|
||||
"epiphany.runtime.model_execution_binding.v0";
|
||||
|
|
|
|||
|
|
@ -2472,7 +2472,6 @@ mod tests {
|
|||
agent_pass_admission_refusals: Vec::new(),
|
||||
investigation_checkpoint: None,
|
||||
mode: None,
|
||||
planning: Default::default(),
|
||||
repository_body_observation: None,
|
||||
repo_model: None,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -389,262 +389,6 @@ pub enum EpiphanyModeKind {
|
|||
Default,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyPlanningState {
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub workspace_root: Option<PathBuf>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyPlanningCapture>")]
|
||||
pub captures: Vec<EpiphanyPlanningCapture>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyBacklogItem>")]
|
||||
pub backlog_items: Vec<EpiphanyBacklogItem>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyRoadmapStream>")]
|
||||
pub roadmap_streams: Vec<EpiphanyRoadmapStream>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyObjectiveDraft>")]
|
||||
pub objective_drafts: Vec<EpiphanyObjectiveDraft>,
|
||||
}
|
||||
|
||||
impl EpiphanyPlanningState {
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.workspace_root.is_none()
|
||||
&& self.captures.is_empty()
|
||||
&& self.backlog_items.is_empty()
|
||||
&& self.roadmap_streams.is_empty()
|
||||
&& self.objective_drafts.is_empty()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyPlanningCapture {
|
||||
pub id: String,
|
||||
pub title: String,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub body: Option<String>,
|
||||
pub confidence: String,
|
||||
pub status: String,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub speaker: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub tags: Vec<String>,
|
||||
pub source: EpiphanyPlanningSourceRef,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub updated_at: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyPlanningSourceRef {
|
||||
pub kind: String,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub provider: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub uri: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub external_id: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub repo: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "number | null")]
|
||||
pub issue_number: Option<u64>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub node_id: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "bigint | null")]
|
||||
pub database_id: Option<i64>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub url: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub state: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub labels: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub milestone: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub assignees: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub author: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub closed_at: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "boolean | null")]
|
||||
pub is_pull_request: Option<bool>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub imported_at: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyBacklogItem {
|
||||
pub id: String,
|
||||
pub title: String,
|
||||
pub kind: String,
|
||||
pub summary: String,
|
||||
pub status: String,
|
||||
pub horizon: String,
|
||||
pub priority: EpiphanyPlanningPriority,
|
||||
pub confidence: String,
|
||||
pub product_area: String,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub lane_hints: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub dependencies: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub blockers: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub acceptance_sketch: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub evidence_refs: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyPlanningSourceRef>")]
|
||||
pub source_refs: Vec<EpiphanyPlanningSourceRef>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub duplicate_of: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub updated_at: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyPlanningPriority {
|
||||
pub value: String,
|
||||
pub rationale: String,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub impact: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub urgency: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub confidence: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub effort: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub unblocks: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub blocks: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub reason: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyRoadmapStream {
|
||||
pub id: String,
|
||||
pub title: String,
|
||||
pub purpose: String,
|
||||
pub status: String,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub item_ids: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub near_term_focus: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub blocked_by: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub review_cadence: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyObjectiveDraft {
|
||||
pub id: String,
|
||||
pub title: String,
|
||||
pub summary: String,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub source_item_ids: Vec<String>,
|
||||
pub scope: EpiphanyObjectiveDraftScope,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub acceptance_criteria: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub evidence_required: Vec<String>,
|
||||
pub lane_plan: EpiphanyObjectiveDraftLanePlan,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub dependencies: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub risks: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub review_gates: Vec<String>,
|
||||
pub status: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyObjectiveDraftScope {
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub includes: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub excludes: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyObjectiveDraftLanePlan {
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub imagination: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub eyes: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub body: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub hands: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub soul: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub life: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyMemoryGraphSnapshot {
|
||||
pub graph_id: String,
|
||||
|
|
|
|||
Reference in a new issue