Skip to main content

Manifest

Struct Manifest 

pub struct Manifest {
Show 27 fields pub schema_version: u32, pub codelore_version: String, pub gix_version: String, pub arrow_version: String, pub duckdb_version: String, pub run_started_at: String, pub repo_path: String, pub head_sha: String, pub cache_key_hash: String, pub after_date: Option<String>, pub before_date: Option<String>, pub analysis: String, pub min_revs: u32, pub min_shared_revs: u32, pub min_coupling_pct: u8, pub max_changeset_size: u32, pub fisher_significance: f64, pub include_merges: bool, pub age_time_now: Option<String>, pub merge_handling: String, pub complexity_sample: String, pub rust_version: String, pub target_triple: String, pub grammars: BTreeMap<String, String>, pub options: Value, pub corpus_vintage: Option<String>, pub defect_vintage: Option<String>,
}

Fields§

§schema_version: u32

Provenance-manifest schema version. See MANIFEST_SCHEMA_VERSION for the bump contract.

§codelore_version: String§gix_version: String§arrow_version: String§duckdb_version: String§run_started_at: String§repo_path: String§head_sha: String

Resolved HEAD SHA of the analysed repository at run time. Empty string when the fact store could not surface a HEAD commit (degenerate case; should not happen on a successful ingest). Reproducibility-critical: without this an auditor can’t confirm two runs analysed the same code state.

§cache_key_hash: String

Hex-encoded SHA-256 of the persistent cache key for this run. Lets downstream tooling join provenance to cache entries on disk without recomputing the key.

§after_date: Option<String>§before_date: Option<String>§analysis: String§min_revs: u32§min_shared_revs: u32§min_coupling_pct: u8§max_changeset_size: u32§fisher_significance: f64§include_merges: bool§age_time_now: Option<String>§merge_handling: String§complexity_sample: String§rust_version: String

Workspace MSRV at build time. Pinned by RUST_VERSION in this module; mirrors [workspace.package].rust-version in the root Cargo.toml.

§target_triple: String

Build target triple (<arch>-<vendor>-<os>-<env>). Reproducibility check for cross-built binaries.

§grammars: BTreeMap<String, String>

Tree-sitter grammar pins as compiled into this build. Map from grammar crate name to its Cargo.toml version pin. A silent grammar bump can shift cognitive-complexity outputs without surfacing in any other manifest field.

§options: Value

Complete canonical JSON of every Options field at run time. Source of truth for reproducibility — auto-derives so newly-added Options fields propagate without per-field maintenance. The flat fields above remain for human readability and grep-ability.

§corpus_vintage: Option<String>

Vintage string of the corpus-calibration artifact active for this run (e.g. "world-2026-07"). Absent (None, omitted from JSON) when no calibration artifact was active — no --calibration file was passed and the embedded world artifact is still the placeholder.

§defect_vintage: Option<String>

Vintage string of the own-repo defect-calibration artifact active for this run (e.g. "defects-2026-07-15"). Absent (None, omitted from JSON) when no --defect-calibration file was passed.

Implementations§

§

impl Manifest

pub fn capture(db: &FactsDb, opts: &Options, analysis: &str) -> Result<Self>

Capture the manifest from a fact store + options + analysis name. _db is currently unused but reserved for reading provenance table values.

pub fn to_json(&self) -> Result<String>

Serialize the manifest to pretty JSON.

Trait Implementations§

§

impl Debug for Manifest

§

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

Formats the value using the given formatter. Read more
§

impl Serialize for Manifest

§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

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

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

Source§

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

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more