pub struct Bridge {
pub id: String,
pub schema: String,
pub entity_name: String,
pub frontiers: Vec<String>,
pub frontier_ids: Vec<String>,
pub finding_refs: Vec<BridgeRef>,
pub tension: Option<String>,
pub derived_at: String,
pub status: BridgeStatus,
}Expand description
A first-class, content-addressed bridge object. Persisted in
.vela/bridges/<vbr_id>.json next to findings.
Fields§
§id: Stringvbr_<16hex>, content-addressed.
schema: StringSchema URL pin so old readers refuse mismatched data.
entity_name: StringCanonical (lowercased) entity name that bridges the frontiers.
frontiers: Vec<String>Human labels of the bridged frontiers (“bbb”, “landscape”, …), in canonical sort order (used in the content address).
frontier_ids: Vec<String>vfr_<id>s of the bridged frontiers, when known. Empty vec
when the source was a flat JSON file lacking frontier metadata.
finding_refs: Vec<BridgeRef>Per-finding evidence backing the bridge. Each entry pins one finding from one frontier; the bridge is “the entity links these findings.”
tension: Option<String>Some when at least one frontier asserts a positive direction
for the entity and another asserts negative — the most
interesting case (cross-domain tension).
derived_at: StringRFC 3339 timestamp when vela bridges derive produced this.
status: BridgeStatusReviewer state. Newly derived bridges start Derived.
Implementations§
Source§impl Bridge
impl Bridge
Sourcepub fn content_address(frontiers: &[String], entity_name: &str) -> String
pub fn content_address(frontiers: &[String], entity_name: &str) -> String
vbr_<16hex> content address. Preimage is
bridge|<sorted_frontiers>|<entity_name_lowercased>. Two
derivations against the same frontiers and entity always yield
the same id; re-derivation is idempotent.
Sourcepub fn from_detection(
b: &BridgeEntity,
frontier_ids: &HashMap<String, String>,
derived_at: &str,
) -> Self
pub fn from_detection( b: &BridgeEntity, frontier_ids: &HashMap<String, String>, derived_at: &str, ) -> Self
Lift a BridgeEntity (the v0.45 detection output) into a
content-addressed Bridge. The reviewer status defaults to
Derived; transitions are explicit acts.