pub struct IntegrityConfig {
pub anchor: AnchorMode,
pub max_session_anchors: usize,
}Expand description
Configuration for vault-anchor downgrade-resistance ([integrity], issue #6449).
§Examples
use zeph_config::{AnchorMode, IntegrityConfig};
let cfg: IntegrityConfig = toml::from_str("").unwrap();
assert_eq!(cfg.anchor, AnchorMode::Vault);
assert_eq!(cfg.max_session_anchors, 512);Fields§
§anchor: AnchorModeVault-anchor downgrade-resistance posture.
max_session_anchors: usizeUpper bound on the number of session anchors retained in the vault at once. Once
exceeded, the reconcile-and-cap sweep evicts the oldest anchors (ordered by the
vault-embedded written_at field, never filesystem mtime) down to this cap — those
sessions degrade to chain-only (#6453-level) protection, never a brick (an evicted
session still opens normally). Transcript anchors are independently bounded by
subagent.transcript_max_files and need no separate cap. Default 512: typical
single-user/small-team deployments never evict.
Trait Implementations§
Source§impl Clone for IntegrityConfig
impl Clone for IntegrityConfig
Source§fn clone(&self) -> IntegrityConfig
fn clone(&self) -> IntegrityConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IntegrityConfig
Source§impl Debug for IntegrityConfig
impl Debug for IntegrityConfig
Source§impl Default for IntegrityConfig
impl Default for IntegrityConfig
Source§impl<'de> Deserialize<'de> for IntegrityConfigwhere
IntegrityConfig: Default,
impl<'de> Deserialize<'de> for IntegrityConfigwhere
IntegrityConfig: Default,
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
impl Eq for IntegrityConfig
Source§impl PartialEq for IntegrityConfig
impl PartialEq for IntegrityConfig
Source§impl Serialize for IntegrityConfig
impl Serialize for IntegrityConfig
impl StructuralPartialEq for IntegrityConfig
Auto Trait Implementations§
impl Freeze for IntegrityConfig
impl RefUnwindSafe for IntegrityConfig
impl Send for IntegrityConfig
impl Sync for IntegrityConfig
impl Unpin for IntegrityConfig
impl UnsafeUnpin for IntegrityConfig
impl UnwindSafe for IntegrityConfig
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
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
Compare self to
key and return true if they are equal.