Skip to main content

Crate cortex_reflect

Crate cortex_reflect 

Source
Expand description

Reflection pipeline: LLM proposes, Rust validates and records audit-ready candidates only.

Re-exports§

pub use admission::admission_request_for_memory;
pub use admission::axiom_admission_proof_closure_invariant;
pub use admission::reflection_memory_proof_state;
pub use admission::require_reflection_durable_admission_allowed;
pub use admission::validate_reflection_admission;
pub use admission::ReflectionAdmissionDisposition;
pub use admission::ReflectionAdmissionError;
pub use admission::ReflectionDurableAdmissionRefusal;
pub use admission::REFLECTION_ADMISSION_PROOF_CLOSURE_INVARIANT;
pub use authority::validate_reflection_authority;
pub use authority::ReflectionAuthorityError;
pub use error::ReflectError;
pub use orchestrate::reflect;
pub use orchestrate::PersistedMemoryCandidate;
pub use orchestrate::ReflectOrchestrationError;
pub use orchestrate::ReflectionRejection;
pub use orchestrate::ReflectionReport;
pub use orchestrate::ReflectionReportStatus;
pub use orchestrate::DEFAULT_REFLECTION_MODEL;
pub use parse::parse_principle_candidates;
pub use parse::parse_reflection;
pub use parse::principle_candidate_batch_json_schema;
pub use parse::session_reflection_json_schema;
pub use principles::extract_candidates;
pub use principles::extract_deterministic_candidates;
pub use principles::AcceptedMemory;
pub use principles::PrincipleExtractionError;
pub use principles::PrincipleExtractionWindow;
pub use principles::DEFAULT_PRINCIPLE_EXTRACTION_MODEL;
pub use principles::MIN_SUPPORTING_DOMAINS;
pub use principles::MIN_SUPPORTING_MEMORIES;
pub use quarantine::quarantine_record;
pub use quarantine::REFLECTION_QUARANTINE_OPERATION;
pub use schema::EpisodeCandidate;
pub use schema::InitialSalience;
pub use schema::MemoryCandidate;
pub use schema::MemoryType;
pub use schema::PrincipleCandidate;
pub use schema::PrincipleCandidateBatch;
pub use schema::SessionReflection;

Modules§

admission
Reflection-to-memory admission checks.
authority
Reflection authority gates for source-origin-sensitive memory candidates.
error
Error types for reflection parsing and quarantine handoff.
orchestrate
Minimal reflection orchestration for Lane 2.B.
parse
Parsers for reflection JSON contracts.
principles
Principle candidate extraction.
quarantine
Store-backed quarantine audit records for rejected reflection output.
schema
Reflection JSON contracts from BUILD_SPEC §13.

Functions§

reflect_stub
Runs the reflection stub against an adapter (no store mutation yet).