pub struct EpisodeExport {
pub export_key: String,
pub bundle_id: String,
pub rendering_version: u32,
pub namespace: String,
pub meta: Value,
pub content: String,
}Expand description
Deterministic rendered representation of an ExperimentEvidenceBundle.
Fields§
§export_key: StringDeterministic key for this export receipt and envelope identity.
bundle_id: StringThe bundle ID this export was derived from.
rendering_version: u32Rendering version used.
namespace: StringLegacy namespace routing input.
meta: ValueBundle metadata (JSON-encodable).
content: StringBundle content text for embedding or audit trails.
Implementations§
Source§impl EpisodeExport
impl EpisodeExport
Sourcepub fn from_bundle(bundle: &ExperimentEvidenceBundle, namespace: &str) -> Self
pub fn from_bundle(bundle: &ExperimentEvidenceBundle, namespace: &str) -> Self
Create an export rendering from an ExperimentEvidenceBundle.
The export_key is deterministic: blake3(bundle_id + rendering_version + namespace).
Sourcepub fn persist_receipt(
&self,
store: &ForgeStore,
write_through_ok: Option<bool>,
) -> ForgeResult<bool>
pub fn persist_receipt( &self, store: &ForgeStore, write_through_ok: Option<bool>, ) -> ForgeResult<bool>
Persist an export receipt to the store.
This is idempotent: exporting the same bundle twice produces no change.
Sourcepub fn already_exported(&self, store: &ForgeStore) -> ForgeResult<bool>
pub fn already_exported(&self, store: &ForgeStore) -> ForgeResult<bool>
Check if this export has already been receipted.
Sourcepub fn to_export_envelope_v1(
&self,
bundle: &ExperimentEvidenceBundle,
) -> ForgeResult<ExportEnvelopeV1>
👎Deprecated since 0.1.0: to_export_envelope_v1() is compatibility-only. Use to_export_envelope_v3() for the canonical export lane.
pub fn to_export_envelope_v1( &self, bundle: &ExperimentEvidenceBundle, ) -> ForgeResult<ExportEnvelopeV1>
to_export_envelope_v1() is compatibility-only. Use to_export_envelope_v3() for the canonical export lane.
Convert this rendering into Forge’s compatibility export envelope.
The compatibility path is:
ExportEnvelopeV1 -> forge-memory-bridge -> ProjectionImportBatchV1 -> semantic-memory import transaction.
Phase status: migration-only
Removal condition: remove when all consumers have migrated to to_export_envelope_v3()
Sourcepub fn to_export_envelope_v2(
&self,
bundle: &ExperimentEvidenceBundle,
) -> ForgeResult<ExportEnvelopeV2>
👎Deprecated since 0.2.0: to_export_envelope_v2() is compatibility-only. Use to_export_envelope_v3() for the canonical export lane.
pub fn to_export_envelope_v2( &self, bundle: &ExperimentEvidenceBundle, ) -> ForgeResult<ExportEnvelopeV2>
to_export_envelope_v2() is compatibility-only. Use to_export_envelope_v3() for the canonical export lane.
Convert this rendering into Forge’s compatibility-only V2 export envelope.
This lane is retained for legacy consumers and tests only. New users
should call to_export_envelope_v3 to
get canonical kernel-export semantics.
Phase status: migration-only
Removal condition: remove when all consumers have migrated to to_export_envelope_v3()
Sourcepub fn to_export_envelope_v3(
&self,
bundle: &ExperimentEvidenceBundle,
) -> ForgeResult<ExportEnvelopeV3>
pub fn to_export_envelope_v3( &self, bundle: &ExperimentEvidenceBundle, ) -> ForgeResult<ExportEnvelopeV3>
Convert this rendering into Forge’s canonical V3 export envelope.
This is the production lane. It derives ExportEnvelopeV3 directly
from the local bundle model and enriches records with concrete
semantics where the source bundle supplies them.
Trait Implementations§
Source§impl Clone for EpisodeExport
impl Clone for EpisodeExport
Source§fn clone(&self) -> EpisodeExport
fn clone(&self) -> EpisodeExport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more