pub struct ActivityEnvelope {Show 15 fields
pub schema: String,
pub activity_id: String,
pub actor_id: String,
pub actor_type: String,
pub kind: String,
pub base_root: String,
pub input_roots: Vec<String>,
pub output_roots: Vec<String>,
pub tool_digests: Vec<String>,
pub trace_root: Option<String>,
pub risk_tags: Vec<String>,
pub claimed_relation: String,
pub created_at: String,
pub signature: String,
pub signer_pubkey_hex: String,
}Expand description
A non-authoritative record of one action against a named root.
Fields§
§schema: String§activity_id: Stringvac_<16hex>, content-addressed over the body with id/signature/signer
zeroed. Key-independent.
actor_id: String§actor_type: String§kind: Stringagent.run | retrieval | model.candidate | simulation |
review.note | other. Free-form, domain adapters refine it.
base_root: StringThe frontier / presentation root this ran against.
input_roots: Vec<String>§output_roots: Vec<String>§tool_digests: Vec<String>§trace_root: Option<String>Content hash of the full trace artifact (the raw transcript lives in object storage; only its address is bound here).
claimed_relation: StringWhat this activity CLAIMS (e.g. “improves A309370(13)”). A proposal, never accepted from here.
created_at: String§signature: String§signer_pubkey_hex: StringImplementations§
Source§impl ActivityEnvelope
impl ActivityEnvelope
Sourcepub fn new(draft: ActivityDraft) -> Result<Self, String>
pub fn new(draft: ActivityDraft) -> Result<Self, String>
Content-address an envelope from a draft (unsigned). Activity is cheap and
high-volume; a signature is optional and added by Self::sign.
Sourcepub fn derive_id(&self) -> Result<String, String>
pub fn derive_id(&self) -> Result<String, String>
vac_<16hex> over the canonical content preimage.
Sourcepub fn sign(&mut self, key: &SigningKey) -> Result<(), String>
pub fn sign(&mut self, key: &SigningKey) -> Result<(), String>
Optionally bind an accountable signer over the same content preimage.
false, always. Activity never carries authority; only an accepted
transition does. Present so the type makes the boundary explicit.
Trait Implementations§
Source§impl Clone for ActivityEnvelope
impl Clone for ActivityEnvelope
Source§fn clone(&self) -> ActivityEnvelope
fn clone(&self) -> ActivityEnvelope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActivityEnvelope
impl Debug for ActivityEnvelope
Source§impl<'de> Deserialize<'de> for ActivityEnvelope
impl<'de> Deserialize<'de> for ActivityEnvelope
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 ActivityEnvelope
Source§impl PartialEq for ActivityEnvelope
impl PartialEq for ActivityEnvelope
Source§impl Serialize for ActivityEnvelope
impl Serialize for ActivityEnvelope
impl StructuralPartialEq for ActivityEnvelope
Auto Trait Implementations§
impl Freeze for ActivityEnvelope
impl RefUnwindSafe for ActivityEnvelope
impl Send for ActivityEnvelope
impl Sync for ActivityEnvelope
impl Unpin for ActivityEnvelope
impl UnsafeUnpin for ActivityEnvelope
impl UnwindSafe for ActivityEnvelope
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.