pub struct PerfRecord {Show 14 fields
pub build: u64,
pub version: String,
pub workflow: String,
pub task_preview: String,
pub started_at: String,
pub total_duration_ms: u64,
pub phases: Vec<PhaseRecord>,
pub totals: PerfTotals,
pub status: String,
pub failed_phase: Option<String>,
pub skills_used: Vec<String>,
pub skills_considered: Vec<String>,
pub tests_passed: Option<u64>,
pub tests_failed: Option<u64>,
}Expand description
Full performance record persisted to docs/performance/runs/.
Fields§
§build: u64§version: String§workflow: String§task_preview: String§started_at: String§total_duration_ms: u64§phases: Vec<PhaseRecord>§totals: PerfTotals§status: StringRun outcome (#56): “success” | “partial” | “failed”.
Why: When a phase fails mid-workflow, we still want to persist the
perf record so we can see where/how the run died. A separate status
field distinguishes clean completions from partial runs in tooling
that scans runs/*.json.
What: Defaults to “success” for back-compat with older fixtures.
failed_phase: Option<String>Name of the phase that failed, when status != "success" (#56).
skills_used: Vec<String>Distinct skill names injected into any phase prompt during this run (#171).
Why: Post-run persistence needs to know which skills were used so it
can increment use_count and refresh last_used. Carrying the list
through PerfRecord keeps the data in one place that’s already
flushed to disk for analysis.
What: Deduplicated, insertion-order-preserved list of skill names.
Defaults to empty for back-compat with older fixtures.
skills_considered: Vec<String>Distinct skill names matched by the pre-plan discovery step (#173).
Why: Discovery surfaces every skill the engine considered relevant for
a task — even if downstream prompt assembly only injected a subset (or
none). Recording the broader candidate set separately from
skills_used lets us measure recall vs. precision over time and
audit which signals the discovery step matched on.
What: Deduplicated, insertion-order-preserved list of skill names.
Defaults to empty for back-compat with older fixtures.
tests_passed: Option<u64>Tests passed in the QA phase, when the QA agent emitted a parsable
JSON envelope with a passed count.
Why: Run-over-run comparisons want raw test counts, not just the
pass/fail status. Tracking tests_passed/tests_failed separately
from status lets dashboards show “1118/1118 passing” without
re-parsing QA output.
What: Some(N) when QA returned a JSON envelope with passed,
None otherwise. Defaults to None for back-compat with older
fixtures and for runs that skip the QA phase.
Test: test_run_record_serializes_test_counts.
tests_failed: Option<u64>Tests failed in the QA phase, paired with tests_passed.
Trait Implementations§
Source§impl Clone for PerfRecord
impl Clone for PerfRecord
Source§fn clone(&self) -> PerfRecord
fn clone(&self) -> PerfRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PerfRecord
impl Debug for PerfRecord
Source§impl<'de> Deserialize<'de> for PerfRecord
impl<'de> Deserialize<'de> for PerfRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for PerfRecord
impl RefUnwindSafe for PerfRecord
impl Send for PerfRecord
impl Sync for PerfRecord
impl Unpin for PerfRecord
impl UnsafeUnpin for PerfRecord
impl UnwindSafe for PerfRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more