Skip to main content

Attempt

Struct Attempt 

Source
pub struct Attempt {
Show 27 fields pub schema: String, pub attempt_id: String, pub problem: u32, pub frontier: String, pub kind: String, pub claim: String, pub detail: String, pub claimed_status: String, pub claim_digest: String, pub reproduction: Reproduction, pub cost: AttemptCost, pub insight: String, pub depends_on: Vec<String>, pub related_problems: Vec<u32>, pub reusable_for: String, pub verifier_attachments: Vec<String>, pub deliverable_grade: Option<String>, pub provenance: Provenance, pub base_frontier_root: String, pub target_obligation_id: String, pub statement_variant_id: String, pub method_families: Vec<String>, pub remaining_obligations: Vec<String>, pub named_obstructions: Vec<String>, pub producer: ProducerRef, pub signature: String, pub signer_pubkey_hex: String,
}
Expand description

A signed, content-addressed banked attempt.

Fields§

§schema: String§attempt_id: String

vat_<16hex>, content-addressed over the canonical body with attempt_id, signature, signer_pubkey_hex zeroed. Key-independent so Rust and Python derive the same id from the same body.

§problem: u32

The Erdős problem number this attempt targets, or 0 for a domain-general attempt (sidon / diff_triangle / other foundry kinds with no Erdős number — identified by frontier + kind + claim instead). Skip-guarded so every existing problem-numbered attempt content-addresses byte-identically; a 0 simply omits the field for a new id.

§frontier: String§kind: String§claim: String§detail: String§claimed_status: String

The proposer’s self-reported status. DISPLAY ONLY; never trusted. The verified status is derived from the gate + ResolutionEvents on read.

§claim_digest: String

sha256(claim.trim())[:16], the same rule the gate and Python use.

§reproduction: Reproduction§cost: AttemptCost§insight: String

What was learned, including from failure — so negatives survive as research assets, not as nothing.

§depends_on: Vec<String>§related_problems: Vec<u32>§reusable_for: String§verifier_attachments: Vec<String>

Ids of the vva_ verifier attachments that earn this attempt’s trust.

§deliverable_grade: Option<String>

Honest deliverable grade (anti-inflation), if assigned.

§provenance: Provenance§base_frontier_root: String

The frontier root this attempt was made against. The pin that makes “Agent B with vs without Agent A’s accepted state” a controlled compare, and that lets a later root be a clean continuation.

§target_obligation_id: String

The residual obligation this attempt targeted (free-form id; the Obligation/StatementVariant nouns stay domain-local until promoted).

§statement_variant_id: String

The statement variant attempted (free-form id).

§method_families: Vec<String>

Method families exercised. Drives duplicate-search detection in the ablation.

§remaining_obligations: Vec<String>

Obligations left open after this attempt (free-form ids).

§named_obstructions: Vec<String>

Named obstructions encountered, free-form kind:scope until the Obstruction noun is promoted under a second producer’s pressure.

§producer: ProducerRef

What produced this attempt (the generic Producer primitive).

§signature: String§signer_pubkey_hex: String

Implementations§

Source§

impl Attempt

Source

pub fn build(draft: AttemptDraft, key: &SigningKey) -> Result<Self, String>

Build and sign a banked attempt. The id is content-addressed over the canonical body (key-independent); the signature binds the signer.

Source

pub fn derive_id(&self) -> Result<String, String>

vat_<16hex> over the canonical content preimage.

Source

pub fn deposit_event( &self, actor_id: &str, actor_type: &str, reason: &str, ) -> StateEvent

Build the canonical attempt.deposited event that persists this signed deposit to the frontier event log. The full object travels in payload.attempt; the reducer verifies and upserts it.

Source

pub fn verify(&self) -> Result<(), String>

Verify: re-derive the id, verify the signature over the content preimage under the declared pubkey, and check claim_digest matches the claim. Any hand-edit to the body fails here.

Trait Implementations§

Source§

impl Clone for Attempt

Source§

fn clone(&self) -> Attempt

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 Attempt

Source§

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

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

impl<'de> Deserialize<'de> for Attempt

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 Eq for Attempt

Source§

impl PartialEq for Attempt

Source§

fn eq(&self, other: &Attempt) -> 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 Attempt

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 Attempt

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> Same for T

Source§

type Output = T

Should always be Self
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V