pub struct IndexEntry {Show 19 fields
pub id: String,
pub title: String,
pub status: Status,
pub priority: u8,
pub parent: Option<String>,
pub dependencies: Vec<String>,
pub labels: Vec<String>,
pub assignee: Option<String>,
pub updated_at: DateTime<Utc>,
pub produces: Vec<String>,
pub requires: Vec<String>,
pub has_verify: bool,
pub verify: Option<String>,
pub created_at: DateTime<Utc>,
pub claimed_by: Option<String>,
pub attempts: u32,
pub paths: Vec<String>,
pub feature: bool,
pub has_decisions: bool,
}Expand description
A lightweight summary of a single unit, stored in the index cache.
IndexEntry contains only the fields needed for list/filter/graph
operations. For the full unit with description, notes, and history,
load the unit file directly via crate::unit::Unit::from_file or
crate::api::get_unit.
Fields§
§id: String§title: String§status: Status§priority: u8§parent: Option<String>§dependencies: Vec<String>§labels: Vec<String>§assignee: Option<String>§updated_at: DateTime<Utc>§produces: Vec<String>Artifacts this unit produces (for smart dependency inference)
requires: Vec<String>Artifacts this unit requires (for smart dependency inference)
has_verify: boolWhether this unit has a verify command (SPECs have verify, GOALs don’t)
verify: Option<String>The actual verify command string (so agents don’t need bn show per-unit)
created_at: DateTime<Utc>§claimed_by: Option<String>Agent or user currently holding a claim on this unit (e.g., “spro:12345” for agent with PID)
attempts: u32Number of verify attempts so far
paths: Vec<String>File paths this unit touches (for scope-based blocking)
feature: boolWhether this unit is a feature (product-level goal, human-only close)
has_decisions: boolWhether this unit has unresolved decisions
Trait Implementations§
Source§impl Clone for IndexEntry
impl Clone for IndexEntry
Source§fn clone(&self) -> IndexEntry
fn clone(&self) -> IndexEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more