Skip to main content

Project

Struct Project 

Source
pub struct Project {
Show 29 fields pub vela_version: String, pub schema: String, pub frontier_id: Option<String>, pub project: ProjectMeta, pub stats: ProjectStats, pub findings: Vec<FindingBundle>, pub sources: Vec<SourceRecord>, pub evidence_atoms: Vec<EvidenceAtom>, pub condition_records: Vec<ConditionRecord>, pub review_events: Vec<ReviewEvent>, pub confidence_updates: Vec<ConfidenceUpdate>, pub events: Vec<StateEvent>, pub proposals: Vec<StateProposal>, pub proof_state: ProofState, pub signatures: Vec<SignedEnvelope>, pub actors: Vec<ActorRecord>, pub artifacts: Vec<Artifact>, pub released_diff_packs: Vec<ReleasedDiffPackRecord>, pub verdict_conflicts: Vec<VerdictConflict>, pub contradictions: Vec<Contradiction>, pub verifier_attachments: Vec<VerifierAttachment>, pub attempts: Vec<Attempt>, pub attempt_resolutions: Vec<ResolutionEvent>, pub transfers: Vec<Transfer>, pub endorsements: Vec<Endorsement>, pub statement_attestations: Vec<StatementAttestation>, pub anchor_links: Vec<AnchorLink>, pub attempt_claims: Vec<AttemptClaim>, pub statement_registrations: Vec<StatementRegistration>,
}

Fields§

§vela_version: String§schema: String§frontier_id: Option<String>

Stable Vela-addressable frontier ID, derived from a frontier.created genesis event hash. Optional for backward compatibility with v0.2 frontiers; new v0.3 frontiers populate it on assemble().

§project: ProjectMeta§stats: ProjectStats§findings: Vec<FindingBundle>§sources: Vec<SourceRecord>

Source artifacts that produced evidence-bearing units.

§evidence_atoms: Vec<EvidenceAtom>

Materialized source-grounded evidence units linked to findings.

§condition_records: Vec<ConditionRecord>

Materialized condition boundaries used to avoid claim overgeneralization.

§review_events: Vec<ReviewEvent>

Append-only log of review events (content-addressed).

§confidence_updates: Vec<ConfidenceUpdate>

Append-only log of confidence updates.

§events: Vec<StateEvent>

Canonical append-only event log for replayable frontier state.

§proposals: Vec<StateProposal>

Portable pending/applied proposal records for proposal-first writes.

§proof_state: ProofState

Frontier-local proof freshness projection.

§signatures: Vec<SignedEnvelope>

Cryptographic signatures for findings (Ed25519).

§actors: Vec<ActorRecord>

Registered actor identities, mapping a stable actor.id to an Ed25519 public key. Phase M (v0.4): once an actor is registered, any canonical event referencing that actor.id under --strict must carry a verifiable Ed25519 signature.

§artifacts: Vec<Artifact>

Generic content-addressed artifacts: protocols, trial registry records, supplements, notebooks, source files, and dataset manifests that need a durable byte or pointer commitment.

§released_diff_packs: Vec<ReleasedDiffPackRecord>

v0.213: Released Diff Pack tracking — first-class replay state for the v0.201 diff_pack.released and v0.205 diff_pack.reviewed event arms. Prior cycles left these arms metadata-only (Ok(()) returns); v0.213 makes them mutate this array so a consumer walking the canonical event log can answer “which packs have been released on this frontier?” without reading sibling directories.

Replay invariant: the array is append-only on diff_pack.released events (idempotent on pack_id) and updated in place on diff_pack.reviewed events. Theorem 29 pins the accumulation algebra.

§verdict_conflicts: Vec<VerdictConflict>

v0.218: Verdict-conflict resolutions on this frontier. The verdict_conflict.resolved reducer arm appends to this array (idempotent on conflict_id). Theorem 32 pins the accumulation algebra. Audit-trail semantics: every resolution stays here, even when a later resolution supersedes an earlier one — the substrate is honest about the full disagreement history, not just the latest verdict.

§contradictions: Vec<Contradiction>

T7: reviewed Contradiction objects (vcx_). Holds only contradictions a reviewer has acted on (under-review or adjudicated) — candidates are derived from the graph on demand and are not canonical state. Latest resolution per id wins; see apply_contradiction_resolved.

§verifier_attachments: Vec<VerifierAttachment>

verifier attachments bound to findings (target = vf_…). Sidecar collection (not a field on FindingBundle) so finding-state replay digests are unaffected. Per-finding trust-gate status is DERIVED from these on read, never stored. See verifier_attachment.

§attempts: Vec<Attempt>

Signed banked attempts (vat_). Immutable deposits; the verified status is DERIVED from the gate + attempt_resolutions on read, never stored. See apply_attempt_deposited.

§attempt_resolutions: Vec<ResolutionEvent>

Append-only lifecycle transitions on attempts (vre_). Idempotent by id; the head per attempt is the latest by at. See apply_attempt_resolved and Project::head_resolution.

§transfers: Vec<Transfer>

Signed cross-domain transfers (vtr_). Immutable deposits; admission (whether the link is sound) is DERIVED via derive_transfer_status on read, never stored. See apply_transfer_deposited.

§endorsements: Vec<Endorsement>

Signed significance endorsements (ven_). Stored as individual records, NEVER aggregated into a score — significance is social and uncomputed by design. See apply_endorsement_deposited and docs/SIGNIFICANCE_SLOT.md.

§statement_attestations: Vec<StatementAttestation>

Statement-faithfulness attestations (vsa_): signed human judgments that a formal statement encodes its informal problem. Events-only storage (the replay loader grafts them).

§anchor_links: Vec<AnchorLink>

Math-atlas anchor links: signed, retractable val_ assertions that a claim carries an external-catalogue anchor (OEIS / Erdős / mathlib / …). Events-only storage (the replay loader grafts them); the cross-frontier identity join reads these. See crate::anchor.

§attempt_claims: Vec<AttemptClaim>

Active obligation leases (events-only; replay-grafted). Expiry is computed at read time from claimed_at + ttl.

§statement_registrations: Vec<StatementRegistration>

Priority registrations: content-addressed statement hashes with their log timestamps (events-only; replay-grafted).

Implementations§

Source§

impl Project

Source

pub fn head_resolution(&self, attempt_id: &str) -> Option<&ResolutionEvent>

The head (latest by at) lifecycle resolution for an attempt, or None if the attempt is still an unresolved candidate. Computed on read from the append-only attempt_resolutions, never stored.

Source

pub fn frontier_id(&self) -> String

Return the stable Vela-addressable frontier ID. Prefers the stored field; if absent, derives from the frontier.created genesis event in events[0]; if no genesis event is present, falls back to meta-derivation (legacy v0.3 frontiers).

Source

pub fn cross_frontier_deps(&self) -> impl Iterator<Item = &ProjectDependency>

v0.8: iterate the cross-frontier dependencies (those with vfr_id set). Pre-v0.8 compile-time deps without vfr_id are filtered out.

Source

pub fn dep_for_vfr(&self, vfr_id: &str) -> Option<&ProjectDependency>

v0.8: look up the dependency record for a specific vfr_id. Returns None if no matching cross-frontier dep is declared.

Source

pub fn build_reverse_dep_index(&self) -> ReverseDepIndex

v0.49.3: build a reverse-dependency index from the forward links: Vec<Link> data on each finding. The forward direction (which findings does this finding depend on?) is O(1) per finding because it’s just f.links. The reverse direction (which findings depend on this finding?) previously required scanning every finding for every query — O(N×L). This index flips that to O(1) lookup once built.

Cost to build: O(N×L) one-time scan over all findings × links. At 48 findings × ~3 links each (the legacy BBB proof fixture), that’s ~150 hash-insert operations and microseconds. At 100K findings × 10 links, it’s still well under a second.

Used by retraction-impact queries (serve.rs), cascade computation, and any consumer that needs to walk the dependent graph rather than the dependency graph. The index is not serialized — it’s a derived structure that callers build when they need it and drop when they don’t.

Trait Implementations§

Source§

impl Debug for Project

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Project

Source§

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 Serialize for Project

Source§

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> 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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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.

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