This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Epiphany/epiphany-core/src/lib.rs
2026-05-30 01:28:32 +01:00

602 lines
31 KiB
Rust

mod agent_launch;
mod agent_memory;
mod agent_utterance_state;
mod continuity_gateway;
mod cultmesh_integration;
mod distillation;
mod eyes_gateway;
mod face_turn;
mod hands_gateway;
mod heartbeat_state;
mod memory_graph;
mod mind_gateway;
mod organ_dependencies;
mod promotion;
mod proposal;
mod retrieval;
mod runtime_spine;
mod soul_gateway;
mod state_ledger;
mod state_update;
mod substrate_gate;
mod surfaces;
mod thread_state_store;
pub use agent_launch::EPIPHANY_IMAGINATION_OWNER_ROLE;
pub use agent_launch::EPIPHANY_IMAGINATION_ROLE_BINDING_ID;
pub use agent_launch::EPIPHANY_MODELING_OWNER_ROLE;
pub use agent_launch::EPIPHANY_MODELING_ROLE_BINDING_ID;
pub use agent_launch::EPIPHANY_REORIENT_LAUNCH_BINDING_ID;
pub use agent_launch::EPIPHANY_REORIENT_OWNER_ROLE;
pub use agent_launch::EPIPHANY_RESEARCH_OWNER_ROLE;
pub use agent_launch::EPIPHANY_RESEARCH_ROLE_BINDING_ID;
pub use agent_launch::EPIPHANY_VERIFICATION_OWNER_ROLE;
pub use agent_launch::EPIPHANY_VERIFICATION_ROLE_BINDING_ID;
pub use agent_launch::EpiphanyCoordinatorPromptConfig;
pub use agent_launch::EpiphanyCrrcPromptConfig;
pub use agent_launch::EpiphanyImplementationPromptConfig;
pub use agent_launch::EpiphanyReorientationPromptConfig;
pub use agent_launch::EpiphanyRolePromptConfig;
pub use agent_launch::EpiphanySharedPromptConfig;
pub use agent_launch::EpiphanySpecialistPromptConfig;
pub use agent_launch::build_epiphany_job_launch_request;
pub use agent_launch::build_epiphany_reorient_launch_instruction;
pub use agent_launch::build_epiphany_reorient_launch_request;
pub use agent_launch::build_epiphany_role_launch_request;
pub use agent_launch::epiphany_agent_prompt_with_memory;
pub use agent_launch::epiphany_reorient_launch_output_schema;
pub use agent_launch::epiphany_role_binding_id;
pub use agent_launch::epiphany_role_label;
pub use agent_launch::epiphany_role_launch_output_schema;
pub use agent_launch::epiphany_role_owner;
pub use agent_launch::epiphany_specialist_prompt_config;
pub use agent_launch::epiphany_worker_prompt;
pub use agent_launch::render_epiphany_coordinator_note;
pub use agent_launch::render_epiphany_pre_compaction_checkpoint_intervention;
pub use agent_launch::unique_strings;
pub use agent_memory::AgentCanonicalTraitSeed;
pub use agent_memory::AgentMemoryReview;
pub use agent_memory::AgentSelfPatch;
pub use agent_memory::EpiphanyAgentMemoryEntry;
pub use agent_memory::EpiphanyOrganStateProfile;
pub use agent_memory::EpiphanyOrganStateProfileKind;
pub use agent_memory::GhostlightEvent;
pub use agent_memory::GhostlightMemory;
pub use agent_memory::GhostlightPerceivedStateOverlay;
pub use agent_memory::GhostlightRelationship;
pub use agent_memory::GhostlightScene;
pub use agent_memory::GhostlightTraitVector;
pub use agent_memory::PERSONA_STATE_SCHEMA_VERSION;
pub use agent_memory::agent_memory_role_ids;
pub use agent_memory::agent_memory_status;
pub use agent_memory::apply_agent_canonical_trait_seeds;
pub use agent_memory::apply_agent_self_patch;
pub use agent_memory::apply_agent_self_patch_document;
pub use agent_memory::load_agent_memory_entry_for_role;
pub use agent_memory::migrate_agent_memory_json_dir_to_cultcache;
pub use agent_memory::organ_state_profile_for_role;
pub use agent_memory::project_agent_memory_to_json_dir;
pub use agent_memory::project_persona_state_for_role;
pub use agent_memory::project_persona_state_from_entry;
pub use agent_memory::review_agent_self_patch;
pub use agent_memory::review_agent_self_patch_document;
pub use agent_memory::validate_agent_memory_store;
pub use agent_utterance_state::AGENT_CHARACTER_STATE_VECTOR_SIZE;
pub use agent_utterance_state::AGENT_UTTERANCE_STATE_SCHEMA_VERSION;
pub use agent_utterance_state::AgentUtteranceActivation;
pub use agent_utterance_state::AgentUtteranceCharacterStateAudit;
pub use agent_utterance_state::AgentUtteranceCharacterStateSlot;
pub use agent_utterance_state::AgentUtteranceCharacterStateVector;
pub use agent_utterance_state::AgentUtteranceEmbeddingBasis;
pub use agent_utterance_state::AgentUtteranceIdentity;
pub use agent_utterance_state::AgentUtteranceMood;
pub use agent_utterance_state::AgentUtterancePersonalityVectors;
pub use agent_utterance_state::AgentUtteranceState;
pub use agent_utterance_state::AgentUtteranceValue;
pub use agent_utterance_state::WEKSA_UTTERANCE_HANDOFF_SCHEMA_VERSION;
pub use agent_utterance_state::derive_agent_utterance_state;
pub use continuity_gateway::*;
pub use cultcache_rs::CacheBackingStore;
pub use cultcache_rs::CultCache;
pub use cultcache_rs::CultCacheEnvelope;
pub use cultcache_rs::DatabaseEntry;
pub use cultcache_rs::PushAllOptions;
pub use cultcache_rs::SingleFileMessagePackBackingStore;
pub use cultmesh_integration::EPIPHANY_CULTMESH_CONTINUITY_CONTRACT_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_CONTINUITY_CONTRACT_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_EYES_CONTRACT_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_EYES_CONTRACT_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_GLOBAL_ROOM_POLICY_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_GLOBAL_ROOM_POLICY_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_GLOBAL_TIER;
pub use cultmesh_integration::EPIPHANY_CULTMESH_GLOBAL_VERSE_ID;
pub use cultmesh_integration::EPIPHANY_CULTMESH_HANDS_CONTRACT_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_HANDS_CONTRACT_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_INTERNAL_TIER;
pub use cultmesh_integration::EPIPHANY_CULTMESH_INTERNAL_VERSE_ID;
pub use cultmesh_integration::EPIPHANY_CULTMESH_LOCAL_AREA_TIER;
pub use cultmesh_integration::EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID;
pub use cultmesh_integration::EPIPHANY_CULTMESH_MIND_CONTRACT_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_MIND_CONTRACT_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_RUN_INTENT_LATEST_KEY;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_RUN_INTENT_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_RUN_INTENT_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_RUN_RECEIPT_LATEST_KEY;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_RUN_RECEIPT_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_RUN_RECEIPT_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_SNAPSHOT_LATEST_KEY;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_SNAPSHOT_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_SNAPSHOT_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_STATUS_KEY;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_STATUS_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_OPERATOR_STATUS_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_SOUL_CONTRACT_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_SOUL_CONTRACT_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_STATUS_KEY;
pub use cultmesh_integration::EPIPHANY_CULTMESH_STATUS_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_STATUS_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_SUBSTRATE_GATE_CONTRACT_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_SUBSTRATE_GATE_CONTRACT_TYPE;
pub use cultmesh_integration::EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION;
pub use cultmesh_integration::EPIPHANY_CULTMESH_VERSE_POLICY_TYPE;
pub use cultmesh_integration::EpiphanyCultMeshContinuityContractEntry;
pub use cultmesh_integration::EpiphanyCultMeshDocuments;
pub use cultmesh_integration::EpiphanyCultMeshEyesContractEntry;
pub use cultmesh_integration::EpiphanyCultMeshGlobalRoomPolicyEntry;
pub use cultmesh_integration::EpiphanyCultMeshHandsContractEntry;
pub use cultmesh_integration::EpiphanyCultMeshMindContractEntry;
pub use cultmesh_integration::EpiphanyCultMeshOperatorRunIntentEntry;
pub use cultmesh_integration::EpiphanyCultMeshOperatorRunReceiptEntry;
pub use cultmesh_integration::EpiphanyCultMeshOperatorSnapshotEntry;
pub use cultmesh_integration::EpiphanyCultMeshOperatorStatusEntry;
pub use cultmesh_integration::EpiphanyCultMeshSoulContractEntry;
pub use cultmesh_integration::EpiphanyCultMeshStatusEntry;
pub use cultmesh_integration::EpiphanyCultMeshSubstrateGateContractEntry;
pub use cultmesh_integration::EpiphanyCultMeshVersePolicyEntry;
pub use cultmesh_integration::default_epiphany_cultmesh_operator_status;
pub use cultmesh_integration::epiphany_cultmesh_continuity_contracts;
pub use cultmesh_integration::epiphany_cultmesh_eyes_contracts;
pub use cultmesh_integration::epiphany_cultmesh_global_room_policies;
pub use cultmesh_integration::epiphany_cultmesh_hands_contracts;
pub use cultmesh_integration::epiphany_cultmesh_mind_contracts;
pub use cultmesh_integration::epiphany_cultmesh_operator_snapshot_from_status_json;
pub use cultmesh_integration::epiphany_cultmesh_soul_contracts;
pub use cultmesh_integration::epiphany_cultmesh_substrate_gate_contracts;
pub use cultmesh_integration::epiphany_cultmesh_verse_policies;
pub use cultmesh_integration::load_epiphany_cultmesh_operator_snapshot;
pub use cultmesh_integration::load_epiphany_cultmesh_operator_status;
pub use cultmesh_integration::load_epiphany_cultmesh_status;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_operator_run_intent;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_operator_run_receipt;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_operator_snapshot;
pub use cultmesh_integration::open_epiphany_cultmesh_node;
pub use cultmesh_integration::write_epiphany_cultmesh_continuity_contracts;
pub use cultmesh_integration::write_epiphany_cultmesh_eyes_contracts;
pub use cultmesh_integration::write_epiphany_cultmesh_global_room_policies;
pub use cultmesh_integration::write_epiphany_cultmesh_hands_contracts;
pub use cultmesh_integration::write_epiphany_cultmesh_mind_contracts;
pub use cultmesh_integration::write_epiphany_cultmesh_operator_run_intent;
pub use cultmesh_integration::write_epiphany_cultmesh_operator_run_receipt;
pub use cultmesh_integration::write_epiphany_cultmesh_operator_snapshot;
pub use cultmesh_integration::write_epiphany_cultmesh_operator_status;
pub use cultmesh_integration::write_epiphany_cultmesh_soul_contracts;
pub use cultmesh_integration::write_epiphany_cultmesh_status;
pub use cultmesh_integration::write_epiphany_cultmesh_substrate_gate_contracts;
pub use cultmesh_integration::write_epiphany_cultmesh_verse_policies;
pub use distillation::EpiphanyDistillInput;
pub use distillation::EpiphanyDistillProposal;
pub use distillation::distill_observation;
pub use epiphany_state_model::EpiphanyMemoryAnchor;
pub use epiphany_state_model::EpiphanyMemoryContextPacket;
pub use epiphany_state_model::EpiphanyMemoryContextQuery;
pub use epiphany_state_model::EpiphanyMemoryDomain;
pub use epiphany_state_model::EpiphanyMemoryEdge;
pub use epiphany_state_model::EpiphanyMemoryFreshness;
pub use epiphany_state_model::EpiphanyMemoryFreshnessStatus;
pub use epiphany_state_model::EpiphanyMemoryLifecycle;
pub use epiphany_state_model::EpiphanyMemoryNode;
pub use epiphany_state_model::EpiphanyMemoryProfile;
pub use epiphany_state_model::EpiphanyMemorySummary;
pub use epiphany_state_model::EpiphanyThreadState;
pub use epiphany_state_model::render_epiphany_state;
pub use eyes_gateway::EYES_EVIDENCE_PACKET_SCHEMA_VERSION;
pub use eyes_gateway::EYES_EVIDENCE_PACKET_TYPE;
pub use eyes_gateway::EYES_EVIDENCE_REFUSAL_RECEIPT_SCHEMA_VERSION;
pub use eyes_gateway::EYES_EVIDENCE_REFUSAL_RECEIPT_TYPE;
pub use eyes_gateway::EYES_EVIDENCE_REQUEST_SCHEMA_VERSION;
pub use eyes_gateway::EYES_EVIDENCE_REQUEST_TYPE;
pub use eyes_gateway::EYES_EVIDENCE_REVIEW_SCHEMA_VERSION;
pub use eyes_gateway::EYES_EVIDENCE_REVIEW_TYPE;
pub use eyes_gateway::EYES_SOURCE_LOOKUP_RECEIPT_SCHEMA_VERSION;
pub use eyes_gateway::EYES_SOURCE_LOOKUP_RECEIPT_TYPE;
pub use eyes_gateway::EyesCultNetContract;
pub use eyes_gateway::default_eyes_cultnet_contracts;
pub use face_turn::FACE_INTERPRETER_PROMPT_SCHEMA_VERSION;
pub use face_turn::FACE_PROJECTOR_PROMPT_SCHEMA_VERSION;
pub use face_turn::FACE_TURN_PROMPT_SCHEMA_VERSION;
pub use face_turn::FaceIdentity;
pub use face_turn::FaceInterpreterInput;
pub use face_turn::FaceProjectorInput;
pub use face_turn::FaceRepoActivity;
pub use face_turn::FaceSocialAffordance;
pub use face_turn::FaceTranscriptMessage;
pub use face_turn::FaceTurnInput;
pub use face_turn::build_face_interpreter_prompt;
pub use face_turn::build_face_projector_prompt;
pub use face_turn::build_face_turn_prompt;
pub use face_turn::face_projected_surface_is_clean;
pub use hands_gateway::*;
pub use heartbeat_state::EpiphanyHeartbeatCognitionEntry;
pub use heartbeat_state::EpiphanyHeartbeatStateEntry;
pub use heartbeat_state::GhostlightSceneParticipantSeed;
pub use heartbeat_state::HEARTBEAT_COGNITION_KEY;
pub use heartbeat_state::HEARTBEAT_COGNITION_SCHEMA_VERSION;
pub use heartbeat_state::HEARTBEAT_COGNITION_TYPE;
pub use heartbeat_state::HEARTBEAT_STATE_KEY;
pub use heartbeat_state::HEARTBEAT_STATE_SCHEMA_VERSION;
pub use heartbeat_state::HEARTBEAT_STATE_TYPE;
pub use heartbeat_state::HeartbeatAgentReaction;
pub use heartbeat_state::HeartbeatAgentThoughtAppraisal;
pub use heartbeat_state::HeartbeatAppraisalReview;
pub use heartbeat_state::HeartbeatBirthPersonalitySeed;
pub use heartbeat_state::HeartbeatCandidateImplications;
pub use heartbeat_state::HeartbeatCompleteOptions;
pub use heartbeat_state::HeartbeatEmotionalAppraisal;
pub use heartbeat_state::HeartbeatHeatUpdateOptions;
pub use heartbeat_state::HeartbeatHistoryEvent;
pub use heartbeat_state::HeartbeatInitiativeHeatPolicy;
pub use heartbeat_state::HeartbeatInitiativeMultiplier;
pub use heartbeat_state::HeartbeatMoodDimension;
pub use heartbeat_state::HeartbeatMoodTiming;
pub use heartbeat_state::HeartbeatPacingPolicy;
pub use heartbeat_state::HeartbeatParticipant;
pub use heartbeat_state::HeartbeatParticipantLocalContext;
pub use heartbeat_state::HeartbeatPendingMention;
pub use heartbeat_state::HeartbeatPendingTurn;
pub use heartbeat_state::HeartbeatPersonalityProjection;
pub use heartbeat_state::HeartbeatPumpOptions;
pub use heartbeat_state::HeartbeatQueueMentionOptions;
pub use heartbeat_state::HeartbeatSelectionPolicy;
pub use heartbeat_state::HeartbeatTickOptions;
pub use heartbeat_state::VoidRoutineOptions;
pub use heartbeat_state::complete_heartbeat_store;
pub use heartbeat_state::default_heartbeat_state;
pub use heartbeat_state::ghostlight_scene_heartbeat_state;
pub use heartbeat_state::heartbeat_state_cache;
pub use heartbeat_state::heartbeat_status_projection;
pub use heartbeat_state::initialize_ghostlight_scene_heartbeat_store;
pub use heartbeat_state::initialize_heartbeat_store;
pub use heartbeat_state::load_heartbeat_cognition_entry;
pub use heartbeat_state::load_heartbeat_state_entry;
pub use heartbeat_state::pump_heartbeat_store;
pub use heartbeat_state::queue_heartbeat_pending_mention_store;
pub use heartbeat_state::run_void_routine_store;
pub use heartbeat_state::tick_heartbeat_store;
pub use heartbeat_state::update_heartbeat_heat_store;
pub use heartbeat_state::validate_heartbeat_cognition;
pub use heartbeat_state::validate_heartbeat_state;
pub use heartbeat_state::write_heartbeat_cognition_entry;
pub use heartbeat_state::write_heartbeat_state_entry;
pub use memory_graph::EpiphanyMemoryEdgeKind;
pub use memory_graph::EpiphanyMemoryEmbeddingManifest;
pub use memory_graph::EpiphanyMemoryGraphEntry;
pub use memory_graph::EpiphanyMemoryGraphSnapshot;
pub use memory_graph::EpiphanyMemoryGraphValidationError;
pub use memory_graph::EpiphanyMemoryLifecycleReceipt;
pub use memory_graph::EpiphanyMemoryNodeKind;
pub use memory_graph::EpiphanyMemoryPatchCandidate;
pub use memory_graph::MEMORY_GRAPH_KEY;
pub use memory_graph::MEMORY_GRAPH_SCHEMA_VERSION;
pub use memory_graph::MEMORY_GRAPH_TYPE;
pub use memory_graph::compose_memory_graph_snapshots;
pub use memory_graph::derive_memory_graph_freshness;
pub use memory_graph::lifecycle_allowed_for_profile;
pub use memory_graph::load_memory_graph_entry;
pub use memory_graph::load_memory_graph_snapshot;
pub use memory_graph::memory_graph_cache;
pub use memory_graph::memory_graph_domain_id;
pub use memory_graph::memory_graph_edge_id;
pub use memory_graph::memory_graph_from_agent_memories;
pub use memory_graph::memory_graph_from_epiphany_graphs;
pub use memory_graph::memory_graph_from_heartbeat_cognition;
pub use memory_graph::memory_graph_node_id;
pub use memory_graph::plan_memory_graph_context_cut;
pub use memory_graph::validate_memory_graph_entry;
pub use memory_graph::validate_memory_graph_snapshot;
pub use memory_graph::write_memory_graph_entry;
pub use memory_graph::write_memory_graph_snapshot;
pub use mind_gateway::MIND_GATEWAY_REVIEW_SCHEMA_VERSION;
pub use mind_gateway::MIND_GATEWAY_REVIEW_TYPE;
pub use mind_gateway::MIND_INTERPRETER_PROMPT_SCHEMA_VERSION;
pub use mind_gateway::MIND_STATE_COMMIT_RECEIPT_SCHEMA_VERSION;
pub use mind_gateway::MIND_STATE_COMMIT_RECEIPT_TYPE;
pub use mind_gateway::MIND_STATE_EFFECT_PROPOSAL_SCHEMA_VERSION;
pub use mind_gateway::MIND_STATE_EFFECT_PROPOSAL_TYPE;
pub use mind_gateway::MIND_STATE_REJECTION_RECEIPT_SCHEMA_VERSION;
pub use mind_gateway::MIND_STATE_REJECTION_RECEIPT_TYPE;
pub use mind_gateway::MIND_THOUGHT_SCHEMA_VERSION;
pub use mind_gateway::MIND_THOUGHT_TYPE;
pub use mind_gateway::MIND_VERSE_ADOPTION_RECEIPT_SCHEMA_VERSION;
pub use mind_gateway::MIND_VERSE_ADOPTION_RECEIPT_TYPE;
pub use mind_gateway::MindCultNetContract;
pub use mind_gateway::MindGatewayDecision;
pub use mind_gateway::MindGatewayReview;
pub use mind_gateway::MindInterpreterPromptInput;
pub use mind_gateway::MindStateCommitReceipt;
pub use mind_gateway::build_mind_interpreter_prompt;
pub use mind_gateway::default_mind_cultnet_contracts;
pub use mind_gateway::mind_review_allows_state;
pub use mind_gateway::mind_review_reorient_acceptance;
pub use mind_gateway::mind_review_role_acceptance;
pub use mind_gateway::mind_state_commit_receipt;
pub use organ_dependencies::EPIPHANY_LAUNCH_ORGAN_CONTRACT_SCHEMA_VERSION;
pub use organ_dependencies::EPIPHANY_ORGAN_DEPENDENCY_SCHEMA_VERSION;
pub use organ_dependencies::EPIPHANY_STANDING_ORGANS;
pub use organ_dependencies::EpiphanyLaunchOrganContract;
pub use organ_dependencies::EpiphanyOrganDependency;
pub use organ_dependencies::EpiphanyReceiptEffectKind;
pub use organ_dependencies::EpiphanyReceiptProofProfile;
pub use organ_dependencies::default_launch_organ_contract;
pub use organ_dependencies::default_launch_required_receipts;
pub use organ_dependencies::default_organ_dependencies_for;
pub use organ_dependencies::default_organ_dependency_matrix;
pub use organ_dependencies::default_receipt_proof_profiles;
pub use organ_dependencies::render_organ_dependencies;
pub use organ_dependencies::render_organ_dependency;
pub use promotion::EpiphanyPromotionDecision;
pub use promotion::EpiphanyPromotionInput;
pub use promotion::EpiphanyStateReplacementValidationInput;
pub use promotion::evaluate_promotion;
pub use promotion::validate_state_replacement_patch;
pub use proposal::EpiphanyMapProposal;
pub use proposal::EpiphanyMapProposalInput;
pub use proposal::propose_map_update;
pub use retrieval::EPIPHANY_RETRIEVAL_DEFAULT_LIMIT;
pub use retrieval::EPIPHANY_RETRIEVAL_MAX_LIMIT;
pub use retrieval::EpiphanyRetrieveQuery;
pub use retrieval::EpiphanyRetrieveResponse;
pub use retrieval::EpiphanyRetrieveResult;
pub use retrieval::EpiphanyRetrieveResultKind;
pub use retrieval::index_workspace;
pub use retrieval::normalize_epiphany_retrieve_query;
pub use retrieval::retrieval_state_for_workspace;
pub use retrieval::retrieve_workspace;
pub use runtime_spine::COORDINATOR_RUN_RECEIPT_SCHEMA_VERSION;
pub use runtime_spine::COORDINATOR_RUN_RECEIPT_TYPE;
pub use runtime_spine::EpiphanyCoordinatorRunReceipt;
pub use runtime_spine::EpiphanyJobInterruptRequest;
pub use runtime_spine::EpiphanyJobInterruptResult;
pub use runtime_spine::EpiphanyJobLaunchRequest;
pub use runtime_spine::EpiphanyJobLaunchResult;
pub use runtime_spine::EpiphanyRuntimeEvent;
pub use runtime_spine::EpiphanyRuntimeIdentity;
pub use runtime_spine::EpiphanyRuntimeJob;
pub use runtime_spine::EpiphanyRuntimeJobResult;
pub use runtime_spine::EpiphanyRuntimeJobSnapshot;
pub use runtime_spine::EpiphanyRuntimeJobStatus;
pub use runtime_spine::EpiphanyRuntimeReorientWorkerResult;
pub use runtime_spine::EpiphanyRuntimeRoleWorkerResult;
pub use runtime_spine::EpiphanyRuntimeSession;
pub use runtime_spine::EpiphanyRuntimeSessionStatus;
pub use runtime_spine::EpiphanyRuntimeSpineStatus;
pub use runtime_spine::EpiphanyRuntimeWorkerLaunchRequest;
pub use runtime_spine::EpiphanyToolInvocationStatus;
pub use runtime_spine::RUNTIME_EVENT_TYPE;
pub use runtime_spine::RUNTIME_IDENTITY_KEY;
pub use runtime_spine::RUNTIME_IDENTITY_TYPE;
pub use runtime_spine::RUNTIME_JOB_RESULT_TYPE;
pub use runtime_spine::RUNTIME_JOB_TYPE;
pub use runtime_spine::RUNTIME_REORIENT_WORKER_RESULT_SCHEMA_VERSION;
pub use runtime_spine::RUNTIME_REORIENT_WORKER_RESULT_TYPE;
pub use runtime_spine::RUNTIME_ROLE_WORKER_RESULT_SCHEMA_VERSION;
pub use runtime_spine::RUNTIME_ROLE_WORKER_RESULT_TYPE;
pub use runtime_spine::RUNTIME_SESSION_TYPE;
pub use runtime_spine::RUNTIME_SPINE_SCHEMA_VERSION;
pub use runtime_spine::RUNTIME_WORKER_LAUNCH_REQUEST_SCHEMA_VERSION;
pub use runtime_spine::RUNTIME_WORKER_LAUNCH_REQUEST_TYPE;
pub use runtime_spine::RuntimeSpineEventOptions;
pub use runtime_spine::RuntimeSpineHeartbeatJobOptions;
pub use runtime_spine::RuntimeSpineHeartbeatLaunchPlan;
pub use runtime_spine::RuntimeSpineHeartbeatLaunchPlanOptions;
pub use runtime_spine::RuntimeSpineInitOptions;
pub use runtime_spine::RuntimeSpineJobOptions;
pub use runtime_spine::RuntimeSpineJobResultOptions;
pub use runtime_spine::RuntimeSpineSessionOptions;
pub use runtime_spine::append_runtime_event;
pub use runtime_spine::clear_epiphany_job_binding_backend;
pub use runtime_spine::complete_runtime_job;
pub use runtime_spine::create_runtime_job;
pub use runtime_spine::create_runtime_session;
pub use runtime_spine::ensure_runtime_session;
pub use runtime_spine::initialize_runtime_spine;
pub use runtime_spine::open_runtime_spine_heartbeat_job;
pub use runtime_spine::plan_runtime_spine_heartbeat_launch;
pub use runtime_spine::put_coordinator_run_receipt;
pub use runtime_spine::put_mind_gateway_review;
pub use runtime_spine::put_mind_state_commit_receipt;
pub use runtime_spine::put_runtime_reorient_worker_result;
pub use runtime_spine::put_runtime_role_worker_result;
pub use runtime_spine::replace_or_append_epiphany_job_binding;
pub use runtime_spine::runtime_hello_frame;
pub use runtime_spine::runtime_job_snapshot;
pub use runtime_spine::runtime_mind_gateway_review;
pub use runtime_spine::runtime_mind_state_commit_receipt;
pub use runtime_spine::runtime_reorient_worker_result;
pub use runtime_spine::runtime_role_worker_result;
pub use runtime_spine::runtime_schema_catalog_response;
pub use runtime_spine::runtime_spine_cache;
pub use runtime_spine::runtime_spine_status;
pub use runtime_spine::runtime_tool_invocation_statuses;
pub use runtime_spine::runtime_worker_launch_request;
pub use runtime_spine::write_runtime_hello_frame;
pub use runtime_spine::write_runtime_schema_catalog_json;
pub use soul_gateway::*;
pub use state_ledger::EpiphanyBranchRecord;
pub use state_ledger::EpiphanyLedgerEvidenceRecord;
pub use state_ledger::EpiphanyStateLedgerEntry;
pub use state_ledger::add_state_branch;
pub use state_ledger::append_state_evidence;
pub use state_ledger::close_state_branch;
pub use state_ledger::load_state_ledger;
pub use state_ledger::state_ledger_status;
pub use state_update::EpiphanyStateUpdate;
pub use state_update::EpiphanyStateUpdatedField;
pub use state_update::apply_epiphany_state_update;
pub use state_update::epiphany_state_update_validation_errors;
pub use substrate_gate::SUBSTRATE_GATE_REPO_ACCESS_GRANT_RECEIPT_SCHEMA_VERSION;
pub use substrate_gate::SUBSTRATE_GATE_REPO_ACCESS_GRANT_RECEIPT_TYPE;
pub use substrate_gate::SUBSTRATE_GATE_REPO_ACCESS_REFUSAL_RECEIPT_SCHEMA_VERSION;
pub use substrate_gate::SUBSTRATE_GATE_REPO_ACCESS_REFUSAL_RECEIPT_TYPE;
pub use substrate_gate::SUBSTRATE_GATE_REPO_ACCESS_REQUEST_SCHEMA_VERSION;
pub use substrate_gate::SUBSTRATE_GATE_REPO_ACCESS_REQUEST_TYPE;
pub use substrate_gate::SUBSTRATE_GATE_REPO_ACCESS_REVIEW_SCHEMA_VERSION;
pub use substrate_gate::SUBSTRATE_GATE_REPO_ACCESS_REVIEW_TYPE;
pub use substrate_gate::SUBSTRATE_GATE_REPO_MUTATION_RECEIPT_SCHEMA_VERSION;
pub use substrate_gate::SUBSTRATE_GATE_REPO_MUTATION_RECEIPT_TYPE;
pub use substrate_gate::SUBSTRATE_GATE_REPO_SNAPSHOT_RECEIPT_SCHEMA_VERSION;
pub use substrate_gate::SUBSTRATE_GATE_REPO_SNAPSHOT_RECEIPT_TYPE;
pub use substrate_gate::SubstrateGateCultNetContract;
pub use substrate_gate::default_substrate_gate_cultnet_contracts;
pub use surfaces::EpiphanyAcceptanceBundle;
pub use surfaces::EpiphanyContext;
pub use surfaces::EpiphanyContextMissing;
pub use surfaces::EpiphanyContextParams;
pub use surfaces::EpiphanyContextStateStatus;
pub use surfaces::EpiphanyContextView;
pub use surfaces::EpiphanyCoordinatorAction;
pub use surfaces::EpiphanyCoordinatorAutomationAction;
pub use surfaces::EpiphanyCoordinatorCrrcRecommendation;
pub use surfaces::EpiphanyCoordinatorDecision;
pub use surfaces::EpiphanyCoordinatorFindingSignals;
pub use surfaces::EpiphanyCoordinatorInput;
pub use surfaces::EpiphanyCoordinatorRoleId;
pub use surfaces::EpiphanyCoordinatorRoleLane;
pub use surfaces::EpiphanyCoordinatorRoleResultStatus;
pub use surfaces::EpiphanyCoordinatorRoleStatus;
pub use surfaces::EpiphanyCoordinatorSceneAction;
pub use surfaces::EpiphanyCoordinatorSignals;
pub use surfaces::EpiphanyCoordinatorSourceSignals;
pub use surfaces::EpiphanyCoordinatorStatus;
pub use surfaces::EpiphanyCoordinatorStatusInput;
pub use surfaces::EpiphanyCrrcAction;
pub use surfaces::EpiphanyCrrcInput;
pub use surfaces::EpiphanyCrrcRecommendation;
pub use surfaces::EpiphanyCrrcReorientAction;
pub use surfaces::EpiphanyCrrcResultStatus;
pub use surfaces::EpiphanyCrrcSceneAction;
pub use surfaces::EpiphanyCrrcStateStatus;
pub use surfaces::EpiphanyFreshnessInput;
pub use surfaces::EpiphanyFreshnessView;
pub use surfaces::EpiphanyFreshnessWatcherInput;
pub use surfaces::EpiphanyGraphContext;
pub use surfaces::EpiphanyGraphFreshness;
pub use surfaces::EpiphanyGraphFreshnessStatus;
pub use surfaces::EpiphanyGraphQuery;
pub use surfaces::EpiphanyGraphQueryDirection;
pub use surfaces::EpiphanyGraphQueryKind;
pub use surfaces::EpiphanyGraphQueryMatched;
pub use surfaces::EpiphanyGraphQueryMissing;
pub use surfaces::EpiphanyGraphQueryView;
pub use surfaces::EpiphanyInvalidationInput;
pub use surfaces::EpiphanyInvalidationStatus;
pub use surfaces::EpiphanyJobStatus;
pub use surfaces::EpiphanyJobView;
pub use surfaces::EpiphanyJobsInput;
pub use surfaces::EpiphanyPlanningStateStatus;
pub use surfaces::EpiphanyPlanningSummary;
pub use surfaces::EpiphanyPlanningView;
pub use surfaces::EpiphanyPressure;
pub use surfaces::EpiphanyPressureBasis;
pub use surfaces::EpiphanyPressureLevel;
pub use surfaces::EpiphanyPressureStatus;
pub use surfaces::EpiphanyReorientAcceptanceBundle;
pub use surfaces::EpiphanyReorientAcceptanceFinding;
pub use surfaces::EpiphanyReorientAction;
pub use surfaces::EpiphanyReorientCheckpointStatus;
pub use surfaces::EpiphanyReorientDecision;
pub use surfaces::EpiphanyReorientFindingInterpretation;
pub use surfaces::EpiphanyReorientFreshnessStatus;
pub use surfaces::EpiphanyReorientInput;
pub use surfaces::EpiphanyReorientLaunchRequestInput;
pub use surfaces::EpiphanyReorientPressureLevel;
pub use surfaces::EpiphanyReorientReason;
pub use surfaces::EpiphanyReorientStateStatus;
pub use surfaces::EpiphanyReorientWorkerLaunchDocument;
pub use surfaces::EpiphanyRetrievalFreshness;
pub use surfaces::EpiphanyRetrievalFreshnessStatus;
pub use surfaces::EpiphanyRoleAcceptanceFinding;
pub use surfaces::EpiphanyRoleBoardCheckpointSummary;
pub use surfaces::EpiphanyRoleBoardInput;
pub use surfaces::EpiphanyRoleBoardJob;
pub use surfaces::EpiphanyRoleBoardJobStatus;
pub use surfaces::EpiphanyRoleBoardLane;
pub use surfaces::EpiphanyRoleBoardPlanningSummary;
pub use surfaces::EpiphanyRoleFindingInterpretation;
pub use surfaces::EpiphanyRoleResultRoleId;
pub use surfaces::EpiphanyRoleSelfPersistenceReview;
pub use surfaces::EpiphanyRoleSelfPersistenceStatus;
pub use surfaces::EpiphanyRoleStatePatchDocument;
pub use surfaces::EpiphanyRoleWorkerLaunchDocument;
pub use surfaces::EpiphanyScene;
pub use surfaces::EpiphanySceneAction;
pub use surfaces::EpiphanySceneChurn;
pub use surfaces::EpiphanySceneGraph;
pub use surfaces::EpiphanySceneInput;
pub use surfaces::EpiphanySceneInvestigationCheckpoint;
pub use surfaces::EpiphanySceneRecord;
pub use surfaces::EpiphanySceneRecords;
pub use surfaces::EpiphanySceneRetrieval;
pub use surfaces::EpiphanySceneSource;
pub use surfaces::EpiphanySceneStateStatus;
pub use surfaces::EpiphanySceneStatusCount;
pub use surfaces::EpiphanySceneSubgoal;
pub use surfaces::EpiphanyTokenUsageSnapshot;
pub use surfaces::EpiphanyViewLens;
pub use surfaces::EpiphanyWorkerLaunchDocument;
pub use surfaces::REORIENT_WORKER_OUTPUT_CONTRACT_ID;
pub use surfaces::ROLE_WORKER_OUTPUT_CONTRACT_ID;
pub use surfaces::build_reorient_acceptance_bundle;
pub use surfaces::build_reorient_job_launch_request;
pub use surfaces::build_role_acceptance_bundle;
pub use surfaces::coordinator_automation_action;
pub use surfaces::crrc_scene_action_to_coordinator_scene_action;
pub use surfaces::default_epiphany_view_lenses;
pub use surfaces::derive_context;
pub use surfaces::derive_coordinator_finding_signals;
pub use surfaces::derive_coordinator_status;
pub use surfaces::derive_freshness;
pub use surfaces::derive_graph_query;
pub use surfaces::derive_jobs;
pub use surfaces::derive_planning_view;
pub use surfaces::derive_pressure_view;
pub use surfaces::derive_role_board;
pub use surfaces::derive_scene;
pub use surfaces::epiphany_view_needs_jobs;
pub use surfaces::epiphany_view_needs_pressure;
pub use surfaces::epiphany_view_needs_reorientation_inputs;
pub use surfaces::epiphany_view_needs_runtime_store;
pub use surfaces::imagination_role_state_patch_policy_errors;
pub use surfaces::interpret_runtime_reorient_worker_result;
pub use surfaces::interpret_runtime_role_worker_result;
pub use surfaces::modeling_role_state_patch_policy_errors;
pub use surfaces::recommend_coordinator_action;
pub use surfaces::recommend_crrc_action;
pub use surfaces::recommend_reorientation;
pub use surfaces::render_role_board_note;
pub use surfaces::reorient_finding_already_accepted;
pub use surfaces::reorientation_role_status;
pub use surfaces::research_role_state_patch_policy_errors;
pub use surfaces::review_role_self_patch_document;
pub use surfaces::role_board_job_status_to_role_status;
pub use surfaces::role_self_memory_target;
pub use surfaces::select_coordinator_automation_action;
pub use thread_state_store::EpiphanyThreadStateEntry;
pub use thread_state_store::THREAD_STATE_KEY;
pub use thread_state_store::THREAD_STATE_SCHEMA_VERSION;
pub use thread_state_store::THREAD_STATE_TYPE;
pub use thread_state_store::load_thread_state;
pub use thread_state_store::load_thread_state_entry;
pub use thread_state_store::thread_state_cache;
pub use thread_state_store::validate_thread_state_entry;
pub use thread_state_store::write_thread_state;
pub use thread_state_store::write_thread_state_entry;