pub struct EconomicsRun {Show 21 fields
pub schema: String,
pub id: String,
pub suite: String,
pub suite_version: u32,
pub methodology: u32,
pub task: String,
pub variant: String,
pub repetition: u32,
pub provider: String,
pub harness: EconomicsHarness,
pub model_requested: String,
pub models_reported: Vec<String>,
pub repository: EconomicsRevision,
pub majordomus_version: String,
pub fixture_digest: String,
pub inputs_digest: String,
pub configuration_digest: String,
pub started_at: String,
pub finished_at: String,
pub sessions: Vec<EconomicsSession>,
pub outcome: EconomicsOutcome,
}Expand description
One recorded run: a task, one variant, one repetition, every session of it. Raw facts only; nothing here is derived from another field.
use majordomus_cli::economics::model::EconomicsRun;
let run: EconomicsRun = serde_json::from_value(serde_json::json!({
"schema": "economics-run/v1", "id": "vat-rounding--baseline--r1", "suite": "pilot",
"suite_version": 1, "methodology": 1, "task": "vat-rounding", "variant": "baseline",
"repetition": 1, "provider": "anthropic",
"harness": { "name": "claude-code", "version": "2.0.1" },
"model_requested": "claude-sonnet-5", "models_reported": ["claude-sonnet-5"],
"repository": { "commit": "8d37d011ef", "dirty": false }, "majordomus_version": "0.7.0",
"fixture_digest": "f0", "inputs_digest": "i0", "configuration_digest": "c0",
"started_at": "2026-09-24T10:00:00Z", "finished_at": "2026-09-24T10:05:00Z",
"sessions": [], "outcome": { "completed": false, "checks": [], "changed_files": [] }
}))
.unwrap();
assert_eq!(run.id, format!("{}--{}--r{}", run.task, run.variant, run.repetition));Fields§
§schema: Stringeconomics-run/v1.
id: String<task>--<variant>--r<repetition>.
suite: StringThe suite.
suite_version: u32The suite’s version.
methodology: u32The methodology version.
task: StringThe task.
variant: StringThe variant.
repetition: u321-based.
provider: StringThe provider.
harness: EconomicsHarnessThe harness.
model_requested: StringThe model the harness was asked for.
models_reported: Vec<String>The models the harness reported using, sorted.
repository: EconomicsRevisionThe repository revision.
majordomus_version: StringThe Majordomus version the treatment was installed from.
fixture_digest: StringDigest of the fixture, setup patch and task declaration the run started from.
inputs_digest: StringDigest of the suite’s freshness inputs when the run was recorded.
configuration_digest: StringDigest of the harness invocation (flags, settings), the prompt excepted.
started_at: StringWhen the first session started, UTC.
finished_at: StringWhen the verification finished, UTC.
sessions: Vec<EconomicsSession>The sessions.
outcome: EconomicsOutcomeThe success gates’ verdict.
Trait Implementations§
Source§impl Clone for EconomicsRun
impl Clone for EconomicsRun
Source§fn clone(&self) -> EconomicsRun
fn clone(&self) -> EconomicsRun
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 EconomicsRun
impl Debug for EconomicsRun
Source§impl<'de> Deserialize<'de> for EconomicsRun
impl<'de> Deserialize<'de> for EconomicsRun
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>,
Source§impl JsonSchema for EconomicsRun
impl JsonSchema for EconomicsRun
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for EconomicsRun
impl PartialEq for EconomicsRun
Source§fn eq(&self, other: &EconomicsRun) -> bool
fn eq(&self, other: &EconomicsRun) -> bool
self and other values to be equal, and is used by ==.