pub struct ContextArtifact {
pub kind: String,
pub epoch: String,
pub renderer_version: String,
pub trust_policy: String,
pub budget: ContextBudget,
pub sha256: String,
pub content_hash: String,
pub text: String,
}Expand description
The deterministic startup artifact (Atlas + Surface), hash-stable per epoch so prompt caches hit.
Fields§
§kind: String§epoch: String§renderer_version: String§trust_policy: String§budget: ContextBudget§sha256: StringDeterministic config-only hash (epoch + renderer + policy + budget) — the prompt-cache key, stable per epoch. Field name kept for the JSON contract.
content_hash: StringHash over the actual rendered content (config preimage + rendered text), so a content change that keeps the config identical still changes the hash (the audit’s name/content mismatch fix).
text: StringTrait Implementations§
Source§impl Clone for ContextArtifact
impl Clone for ContextArtifact
Source§impl Debug for ContextArtifact
impl Debug for ContextArtifact
Source§impl<'de> Deserialize<'de> for ContextArtifact
impl<'de> Deserialize<'de> for ContextArtifact
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextArtifact
impl PartialEq for ContextArtifact
Source§impl Serialize for ContextArtifact
impl Serialize for ContextArtifact
impl StructuralPartialEq for ContextArtifact
Auto Trait Implementations§
impl Freeze for ContextArtifact
impl RefUnwindSafe for ContextArtifact
impl Send for ContextArtifact
impl Sync for ContextArtifact
impl Unpin for ContextArtifact
impl UnsafeUnpin for ContextArtifact
impl UnwindSafe for ContextArtifact
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
Mutably borrows from an owned value. Read more