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: Stringvat_<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: u32The 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: StringThe proposer’s self-reported status. DISPLAY ONLY; never trusted. The verified status is derived from the gate + ResolutionEvents on read.
claim_digest: Stringsha256(claim.trim())[:16], the same rule the gate and Python use.
reproduction: Reproduction§cost: AttemptCost§insight: StringWhat was learned, including from failure — so negatives survive as research assets, not as nothing.
depends_on: Vec<String>§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: StringThe 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: StringThe residual obligation this attempt targeted (free-form id; the Obligation/StatementVariant nouns stay domain-local until promoted).
statement_variant_id: StringThe 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: ProducerRefWhat produced this attempt (the generic Producer primitive).
signature: String§signer_pubkey_hex: StringImplementations§
Source§impl Attempt
impl Attempt
Sourcepub fn build(draft: AttemptDraft, key: &SigningKey) -> Result<Self, String>
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.
Sourcepub fn derive_id(&self) -> Result<String, String>
pub fn derive_id(&self) -> Result<String, String>
vat_<16hex> over the canonical content preimage.
Sourcepub fn deposit_event(
&self,
actor_id: &str,
actor_type: &str,
reason: &str,
) -> StateEvent
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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attempt
impl<'de> Deserialize<'de> for Attempt
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>,
impl Eq for Attempt
impl StructuralPartialEq for Attempt
Auto Trait Implementations§
impl Freeze for Attempt
impl RefUnwindSafe for Attempt
impl Send for Attempt
impl Sync for Attempt
impl Unpin for Attempt
impl UnsafeUnpin for Attempt
impl UnwindSafe for Attempt
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.