pub struct JobRecord {
pub node: String,
pub round: Option<usize>,
pub seat: String,
pub id: String,
pub description: String,
pub checked_at: Timestamp,
pub status: JobStatus,
pub exit_code: Option<i32>,
pub result_summary: String,
pub source: String,
}Expand description
A command a seat’s own CLI reported running, kept for magi show and for
telling “this seat’s turn ended” apart from “the process it started is
done” — see agent::CommandEvidence, which is the only source this is
ever built from. Never something magi polled or supervised; a command the
CLI never reported finishing (or a CLI this crate has no adapter for at
all) simply has no entry here, which must read as “unknown”, not as
“nothing ran”.
Fields§
§node: StringGraph node the seat belongs to, e.g. "implement", "fix".
round: Option<usize>Review round this job belongs to, for a "review"/"fix" node —
None for every other node, where rounds do not apply, and for every
record written before this was tracked. Lets a reader ask “what did
this seat itself actually run this round”, distinct from and never
substituted for magi’s own recorded ReviewRound::e2e — an absent
entry here means unobserved, not that nothing ran (see this type’s
own doc).
seat: StringSeat key, e.g. "impl-A".
id: StringThe CLI’s own id for this command.
description: StringThe command itself, as the CLI reported it.
checked_at: TimestampWhen this evidence was captured — the moment this seat’s reply carrying it was read, not the command’s own start time, which no adapter here currently has. A lower bound on staleness only.
status: JobStatusWhat the CLI reported for it.
exit_code: Option<i32>Exit code the CLI reported.
result_summary: StringTail of the command’s own output, when reported.
source: StringWhich CLI/event stream this came from, e.g. "codex".
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobRecord
impl<'de> Deserialize<'de> for JobRecord
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 Forget for JobRecord
impl Freeze for JobRecord
impl Move for JobRecord
impl RefUnwindSafe for JobRecord
impl Send for JobRecordwhere
RawVecInner: Send,
impl Sync for JobRecordwhere
RawVecInner: Sync,
impl Unpin for JobRecord
impl UnsafeUnpin for JobRecord
impl UnwindSafe for JobRecordwhere
RawVecInner: UnwindSafe,
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