Skip to main content

Crate forge_memory_bridge

Crate forge_memory_bridge 

Source
Expand description

§forge-memory-bridge

Transforms Forge export envelopes into projection import batches for consumption by semantic-memory’s projection importer.

§Authority boundary

This crate owns the transformation from Forge’s export vocabulary to memory’s import vocabulary. It does NOT:

  • evaluate comparability or decide promotion,
  • guess missing semantics from live memory,
  • become a query service,
  • persist any state of its own.

§Phase status: current / implemented now

Structs§

BridgeImportFailureArtifact
First-class bridge import failure artifact for replayability and audit.
ImportClaimVersion
A claim projection version ready for import.
ImportEntityAlias
An entity alias ready for import.
ImportEpisodeRecord
An episode ready for import.
ImportEvidenceRef
An evidence reference ready for import.
ImportProjectionRecordV3
A single import record enriched with export-time semantics for kernel compilation.
ImportRelationVersion
A relation version ready for import.
ProjectionImportBatchV1Deprecated
A projection import batch produced by the bridge.
ProjectionImportBatchV2
A projection import batch produced by the bridge for the V2 contract.
ProjectionImportBatchV3
Canonical kernel-oriented projection import batch produced by the bridge.

Enums§

BridgeError
Errors produced by the forge-memory-bridge.
ClaimState
Lifecycle state of a claim.
ContradictionStatus
Contradiction status for claims and relations.
ImportProjectionRecord
A single record in a projection import batch.
MergeDecision
Merge decision provenance for entity aliases.
ProjectionFreshness
Projection freshness status.
ReviewState
Durable review state for alias/merge decisions.

Constants§

BRIDGE_IMPORT_FAILURE_ARTIFACT_V1_SCHEMA
Schema version constant for BridgeImportFailureArtifact.
PROJECTION_IMPORT_BATCH_V1_SCHEMADeprecated
Legacy compatibility import-batch schema version emitted by the bridge.
PROJECTION_IMPORT_BATCH_V2_SCHEMA
Canonical import-batch schema version emitted by the bridge.
PROJECTION_IMPORT_BATCH_V3_SCHEMA
Rich import-batch schema version emitted by the bridge for the kernel path.

Functions§

bridge_trace_ctx
Create a trace context for the bridge transformation, chaining from the source envelope’s trace context if available.
is_compatible_version
Validate that an export envelope’s version is compatible with this bridge.
transform_envelopeDeprecated
Transform an ExportEnvelopeV1 into a ProjectionImportBatchV1.
transform_envelope_v2Deprecated
Transform an ExportEnvelopeV2 into a ProjectionImportBatchV2.
transform_envelope_v3
Transform an ExportEnvelopeV3 into a ProjectionImportBatchV3.