Skip to main content

ObserverFiber

Struct ObserverFiber 

Source
pub struct ObserverFiber {
    pub observer_did: String,
    pub semantic_cohort: Option<String>,
    pub affective_state: AffectiveStatus,
    pub epistemic_beliefs: Vec<DoxasticBelief>,
    pub cognitive_lens: CognitiveLens,
    pub perceived_frame_usi: String,
    pub shared_anchor_id: Option<u64>,
    pub shared_anchor_var: f64,
    pub local_chart_var: f64,
}
Expand description

Observer fiber — the inward inversion modeling how an observer perceives, filters, and constructs their experienced reality (OCS §8.2, §6.2.5.1).

Includes split correlated uncertainty (shared_anchor_var vs local_chart_var) so relative displacements between two observers sharing a coarse anchor cancel the coarse anchor variance rather than inflating local relative error.

Fields§

§observer_did: String§semantic_cohort: Option<String>§affective_state: AffectiveStatus§epistemic_beliefs: Vec<DoxasticBelief>§cognitive_lens: CognitiveLens§perceived_frame_usi: String§shared_anchor_id: Option<u64>

Optional shared coarse anchor identifier (e.g. sector / spacecraft / habitat USRI hash).

§shared_anchor_var: f64

Positional variance ($\text{m}^2$) of the coarse anchor relative to a cosmic root frame.

§local_chart_var: f64

Positional variance ($\text{m}^2$) within the local chart relative to shared_anchor_id.

Implementations§

Source§

impl ObserverFiber

Source

pub fn new(observer_did: &str, perceived_frame: &str) -> Self

Creates a new ObserverFiber.

Source

pub fn with_correlated_uncertainty( self, shared_anchor_id: u64, shared_anchor_var: f64, local_chart_var: f64, ) -> Self

Configure correlated anchor variance vs local chart variance (§6.2.5.1).

Source

pub fn is_hyper_vigilant(&self) -> bool

Whether this observer fiber is in a hyper-vigilant state (Packet OCS-13).

Source

pub fn total_positional_variance(&self) -> f64

Total absolute positional variance ($\text{m}^2$) relative to the cosmic root frame.

Source

pub fn relative_displacement_variance(&self, other: &Self) -> f64

Relative displacement variance ($\text{m}^2$) between self and other (§6.2.5.1).

When both observers share the same shared_anchor_id, the common-mode coarse anchor variance cancels in $\Delta\mathbf{x} = \mathbf{x}_A - \mathbf{x}_B$, leaving only self.local_chart_var + other.local_chart_var.

Source

pub fn relative_displacement_std(&self, other: &Self) -> f64

Standard deviation ($\text{m}$) of the relative displacement between self and other.

Source

pub fn check_presheaf_overlap( &self, other: &Self, max_belief_divergence: f32, ) -> Result<(), String>

Check presheaf overlap compatibility on $U_i \cap U_j$ before gluing/merging two observer fibers (§6.2.5.1).

Two fibers are compatible on their overlap if:

  1. For every shared proposition_iri, $|\mu_A - \mu_B| \le \text{max_belief_divergence}$ and $|\lambda_A - \lambda_B| \le \text{max_belief_divergence}$.
  2. If both fibers reference the same shared_anchor_id, their shared_anchor_var estimates agree within relative tolerance.
Source

pub fn merge_presheaf_compatible( &self, other: &Self, max_belief_divergence: f32, ) -> Result<ObserverFiber, String>

Glue two compatible observer fibers over their overlap $U_i \cap U_j$ (§6.2.5.1).

Fails closed if check_presheaf_overlap detects a contradiction on shared propositions or anchor metadata.

Source

pub fn epistemic_divergence( &self, empirical_frame_coords: &[f64], perceived_coords: &[f64], ) -> f64

Clinical epistemic divergence tensor Δ_epistemic (OCS §8.3).

Simple scalar version: the L2 norm of the difference between the perceived frame and the empirical frame, weighted by dissociation and trauma reactivity.

Source

pub fn needs_grounding(&self) -> bool

Whether this observer needs grounding intervention (OCS-T11).

Source

pub fn to_epistemic_claim_record(&self) -> Value

Project the observer’s phenomenological and doxastic state onto an explicit Claim/Opinion record (plane = "ClaimOpinion") without mutating physical coordinates or NaturalAgent identity (Packet OCS-13).

Source

pub fn to_value(&self) -> Value

Converts to value.

Trait Implementations§

Source§

impl Clone for ObserverFiber

Source§

fn clone(&self) -> Self

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 ObserverFiber

Source§

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

Formats the value using the given formatter. Read more

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

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.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,