Skip to main content

TaskVerificationV0

Struct TaskVerificationV0 

Source
pub struct TaskVerificationV0 {
Show 26 fields pub revision: Option<u32>, pub verdict: String, pub unit: Unit, pub task: TaskRef, pub tree: String, pub spec: Option<SpecRef>, pub trace: Option<Value>, pub integrity: Option<Value>, pub monitor: Option<Value>, pub mutation: Option<Value>, pub sandbox: Option<Value>, pub executor: Option<Value>, pub model: Option<Value>, pub run: Option<Value>, pub decisions: Option<Value>, pub strength: Option<Value>, pub instructions: Option<Value>, pub decider: Option<Decider>, pub policy_sha256: String, pub time: String, pub red: Option<Red>, pub bug: Option<Value>, pub acceptance: Option<Value>, pub context: Option<Value>, pub dependencies: Option<Value>, pub extra: BTreeMap<String, Value>,
}
Expand description

The task-verification predicate, v0.

Fields null in a tick may be absent in a decision (attested, skipped), which carries decider instead of the test evidence.

Fields§

§revision: Option<u32>

Additive revision within v0; absent: 1.

§verdict: String

verified, regression_only, attested or skipped.

§unit: Unit

The unit.

§task: TaskRef

The task.

§tree: String

The task commit’s tree.

§spec: Option<SpecRef>

The requirement and its text’s hash (ticks).

§trace: Option<Value>

Requirement → scenario → test rows, each with its phase and result.

§integrity: Option<Value>

The diff audit’s findings ({ findings: [] }).

§monitor: Option<Value>

The gaming monitor: { state: clean|suspected|unreviewed|off, findings }.

§mutation: Option<Value>

Mutation testing: { caught, missed, … }, or null.

§sandbox: Option<Value>

Where the attempt ran: { mode, backend, network }.

§executor: Option<Value>

Who implemented: { kind, agent? }.

§model: Option<Value>

The judging model: { provider, model }, or null.

§run: Option<Value>

The agentplane run, or null.

§decisions: Option<Value>

People’s decisions on the attempt’s calls.

§strength: Option<Value>

The acceptance set’s strength (shares, near misses, permitted alternatives), or null.

§instructions: Option<Value>

Repository instruction files given to the attempt.

§decider: Option<Decider>

The decision’s maker (attested, skipped).

§policy_sha256: String

sha256 of the judge’s configuration at the parent commit.

§time: String

When it was recorded (RFC 3339, UTC).

§red: Option<Red>

The red run’s output excerpt (revision 2).

§bug: Option<Value>

A bug task’s evidence: where the bug lives, its triad’s digest, the outcome, the reproductions’ discrimination, special-case rejections and the pass-to-pass set. Opaque to the verifier.

§acceptance: Option<Value>

Where the acceptance tests were decided — { source: authored|review|bug_confirmation|person_test, pre_frozen }. Opaque here.

§context: Option<Value>

Reserved: what reached the model, by digest. Opaque here.

§dependencies: Option<Value>

Reserved: dependencies the change added, with their registry checksums. Opaque here.

§extra: BTreeMap<String, Value>

Fields this build does not know (a newer revision): kept, so the signed bytes survive a round-trip, and never read for an outcome.

Implementations§

Source§

impl TaskVerificationV0

Source

pub fn revision(&self) -> u32

The revision the statement claims (absent: 1).

Source

pub fn newer_fields(&self) -> Vec<String>

What this build does not know of the statement: the names of unknown fields, and revision N when it is newer than REVISION.

Source

pub fn reserved_present(&self) -> Vec<&'static str>

The reserved fields present (opaque here): their names.

Trait Implementations§

Source§

impl Clone for TaskVerificationV0

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TaskVerificationV0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TaskVerificationV0

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for TaskVerificationV0

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for TaskVerificationV0

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TaskVerificationV0

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TaskVerificationV0

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.