pub struct RunReport {Show 17 fields
pub schema_version: &'static str,
pub oneharness_version: &'static str,
pub prompt: String,
pub model: Option<String>,
pub resume: Option<String>,
pub fork: bool,
pub permission_mode: PermissionMode,
pub bypass_permissions: bool,
pub dry_run: bool,
pub schema: Option<Value>,
pub schema_max_retries: Option<u32>,
pub batch: Option<BatchReport>,
pub mock_rules: Option<Value>,
pub spy_file: Option<String>,
pub history_file: Option<String>,
pub config_files: Vec<String>,
pub results: Vec<RunResult>,
}Expand description
The top-level run report written to stdout.
Fields§
§schema_version: &'static str§oneharness_version: &'static str§prompt: StringThe prompt sent. On an ordinary run this is the prompt every result
shares; on a batch run (see batch) it repeats the first prompt for
back-compat, and each result’s own prompt field is authoritative.
model: Option<String>§resume: Option<String>The session id being continued, when --resume was passed; else null.
fork: boolWhether the resumed session was forked (--fork) rather than appended to.
false unless --resume was given with --fork.
permission_mode: PermissionModeThe normalized approval mode requested for this run (see the README support matrix). Each harness maps it to its own mechanism.
bypass_permissions: boolBack-compat convenience: true exactly when permission_mode is
bypass. Retained so existing consumers keep working; new consumers
should read permission_mode.
dry_run: bool§schema: Option<Value>The JSON Schema applied to this run (structured output), or null when
none was requested. Echoed so a consumer sees the exact constraint each
result was validated against.
schema_max_retries: Option<u32>Maximum retries allowed per harness under the validate/retry loop; null
when no schema was requested.
batch: Option<BatchReport>Same-prefix batch metadata when this run fanned one harness over more
than one prompt; null on an ordinary run. Its presence is the signal a
consumer keys on to read each result’s own prompt.
mock_rules: Option<Value>The parsed --mock-rules ruleset this run was intercepted with; null
when no mocking was requested. Present so a consumer can tell a mocked
run’s report from a clean one without out-of-band state.
spy_file: Option<String>The spy-log path the mock hook appended tool-call records to (absolute);
null when none was requested.
history_file: Option<String>The history session file this run streamed normalized records to
(absolute); null when history was not enabled (or under --print-command,
where nothing runs). The programmatic handle a consumer captures to read the
session back later with oneharness history show.
config_files: Vec<String>Config files that shaped this run, in layering order (user first,
project last); empty under --no-config or when none exist.
results: Vec<RunResult>Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunReport
impl RefUnwindSafe for RunReport
impl Send for RunReport
impl Sync for RunReport
impl Unpin for RunReport
impl UnsafeUnpin for RunReport
impl UnwindSafe for RunReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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