Skip to main content

Module bundle

Module bundle 

Source
Expand description

Content-addressed finding bundles: the atomic object of the Vela protocol.

Structs§

Annotation
A lightweight annotation on a finding — like a comment on a line of code.
Artifact
Assertion
Attachment
A file attached to a finding (dataset, figure, supplementary material).
Author
CodeArtifact
v0.33: CodeArtifact as a first-class kernel object.
Conditions
Confidence
ConfidenceUpdate
A confidence update is a mutable interpretation layer event. The finding’s evidence is immutable; the confidence assessment can evolve.
Contribution
One attribution record at claim granularity: which actor contributed which unit of a finding, and in what role. Descriptive provenance only — the reducer never reads it as state, the gate never reads it as evidence, and it is outside the vf_ id preimage (adding it does not change the finding id).
Dataset
v0.33: Dataset as a first-class kernel object.
Entity
Evidence
Extraction
FindingBundle
Flags
Link
Provenance
ProvenanceRef
Phase β (v0.6): structured provenance reference attached to an annotation (or any future note-shaped object). At least one identifying field (doi, pmid, title) must be set when the provenance is present; an all-empty ProvenanceRef is rejected by validate_event_payload.
ResolvedId
A resolved identifier from a scientific database.
Review
ReviewEvent
A review event is a content-addressed record of human judgment on a finding. Like a Git commit, it records who, when, what changed, and why.
ReviewEvidence

Enums§

AgentKind
The kind of actor behind a contribution. A model holds no key and can never be accountable; only a human can carry a signature.
ArtifactAvailability
ArtifactDisclosure
Generic content-addressed artifact.
CausalClaim
v0.38: Pearlian causal typing for an assertion. The kernel’s pre-v0.38 record carried only direction: Some("positive" | "negative") — enough to know that “X covaries with Y” but not whether the speaker meant correlation, mediation, or intervention. In real review work those are different epistemic claims with different evidence requirements; conflating them produced silent over-claiming.
CausalEvidenceGrade
v0.38: study-design grade backing a causal claim. The grade is what makes the difference between “the data is consistent with X causing Y” (Observational) and “X causes Y” (Rct). The kernel carries the design label so reviewers can re-grade without re-extracting.
ConfidenceKind
Semantic category of the confidence score stored on the frontier.
ConfidenceMethod
Confidence method: how the score was determined.
ContributionRole
The kind of contribution. Only vouched carries trust weight, and it maps to a human signature — a model or agent can never be vouched.
ContributionUnitType
What sub-part of a finding a contribution applies to.
LinkParseError
LinkRef
v0.8: typed reference resolved from Link.target.
LocatorIntegrity
Mechanism
v0.45: structural causal mechanism on a directed edge.
MechanismSign
v0.45: causal direction on a Mechanism.
ResolutionMethod
How an entity was resolved to its canonical form (v0.2.0 schema).
ReviewAction
The action taken in a review event.
ReviewState
Typed review state. Replaces the v0.2 flags.contested: bool collapse of three semantically distinct review judgments. Doctrine line 6: “scientific disagreement should remain live state.”

Constants§

VALID_ARTIFACT_KINDS
Valid artifact kinds for the generic Artifact kernel object.
VALID_ASSERTION_TYPES
Valid assertion types per schema.
VALID_CAUSAL_CLAIMS
Valid string forms for serialized CausalClaim. The kernel validates against this on load.
VALID_CAUSAL_EVIDENCE_GRADES
Valid string forms for serialized CausalEvidenceGrade.
VALID_EVIDENCE_TYPES
Valid evidence types per schema.
VALID_LINK_TYPES
Valid link types per protocol §5.
VALID_PROVENANCE_SOURCE_TYPES
Valid provenance source types per schema.

Functions§

bare_finding_id
The local finding id of a link target, stripping any cross-frontier @vfr_… suffix. A vf_X@vfr_Y target resolves to vf_X; a plain vf_X is returned unchanged. Single source of truth for the resolution the graph builders and read tools all rely on.
valid_artifact_kind