cordance-cortex
Cortex adapter. Emits
cordance-cortex-receipt-v1-candidateJSON only; never writes to the cortex repo or runtime.
Part of the Cordance workspace.
Discoverability
Search terms: Cordance Cortex, Cortex receipt, candidate memory receipt, authority boundary, candidate-only evidence, AI memory intake, context pack provenance.
What it does
cordance-cortex builds a candidate receipt that Cortex's own
cortex_memory_accept flow can ingest. The receipt's AuthorityBoundary
is constructed only via AuthorityBoundary::candidate_only(), which sets
every authority-grant flag to false:
cortex_truth_allowed: falsecortex_admission_allowed: falsedurable_promotion_allowed: falsememory_promotion_allowed: falsedoctrine_promotion_allowed: falsetrusted_history_allowed: falserelease_acceptance_allowed: falseruntime_authority_allowed: false
Receipts deserialise back through validate_invariants(), so a tampered
JSON that flips any flag fails the post-parse check even if serde accepts
it. Every nested struct carries #[non_exhaustive] + #[serde(deny_unknown_fields)].
Cordance never modifies cortex storage. The operator hands the emitted receipt JSON to Cortex; Cortex decides what (if anything) to promote.
Install
[]
= "0.1"
= "0.1"
Quick start
use ;
use SourceLock;
use AdviseReport;
use schema;
let pack = CordancePack ;
let receipt = build_receipt.expect;
receipt.validate_invariants.expect;
let json = to_string_pretty.expect;
println!;
See also
- Cordance project README
cordance-core— defines the receipt structs +AuthorityBoundary.- The CLI subcommand
cordance cortex pushwraps this crate; it is the intended end-user entry point.
License
Dual-licensed under MIT OR Apache-2.0.